azure-native.managednetworkfabric.InternetGateway
Explore with Pulumi AI
The Internet Gateway resource definition. Azure REST API version: 2023-06-15.
Example Usage
InternetGateways_Create_MaximumSet_Gen
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var internetGateway = new AzureNative.ManagedNetworkFabric.InternetGateway("internetGateway", new()
{
Annotation = "annotation",
InternetGatewayName = "example-internetGateway",
InternetGatewayRuleId = "/subscriptions/xxxx-xxxx-xxxx-xxxx/providers/Microsoft.ManagedNetworkFabric/internetGatewayRules/example-internetGatewayRule",
Location = "eastus",
NetworkFabricControllerId = "/subscriptions/xxxx-xxxx-xxxx-xxxx/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/example-networkFabricController",
ResourceGroupName = "example-rg",
Tags =
{
{ "key3540", "1234" },
},
Type = AzureNative.ManagedNetworkFabric.GatewayType.Infrastructure,
});
});
package main
import (
managednetworkfabric "github.com/pulumi/pulumi-azure-native-sdk/managednetworkfabric/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := managednetworkfabric.NewInternetGateway(ctx, "internetGateway", &managednetworkfabric.InternetGatewayArgs{
Annotation: pulumi.String("annotation"),
InternetGatewayName: pulumi.String("example-internetGateway"),
InternetGatewayRuleId: pulumi.String("/subscriptions/xxxx-xxxx-xxxx-xxxx/providers/Microsoft.ManagedNetworkFabric/internetGatewayRules/example-internetGatewayRule"),
Location: pulumi.String("eastus"),
NetworkFabricControllerId: pulumi.String("/subscriptions/xxxx-xxxx-xxxx-xxxx/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/example-networkFabricController"),
ResourceGroupName: pulumi.String("example-rg"),
Tags: pulumi.StringMap{
"key3540": pulumi.String("1234"),
},
Type: pulumi.String(managednetworkfabric.GatewayTypeInfrastructure),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.managednetworkfabric.InternetGateway;
import com.pulumi.azurenative.managednetworkfabric.InternetGatewayArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var internetGateway = new InternetGateway("internetGateway", InternetGatewayArgs.builder()
.annotation("annotation")
.internetGatewayName("example-internetGateway")
.internetGatewayRuleId("/subscriptions/xxxx-xxxx-xxxx-xxxx/providers/Microsoft.ManagedNetworkFabric/internetGatewayRules/example-internetGatewayRule")
.location("eastus")
.networkFabricControllerId("/subscriptions/xxxx-xxxx-xxxx-xxxx/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/example-networkFabricController")
.resourceGroupName("example-rg")
.tags(Map.of("key3540", "1234"))
.type("Infrastructure")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
internet_gateway = azure_native.managednetworkfabric.InternetGateway("internetGateway",
annotation="annotation",
internet_gateway_name="example-internetGateway",
internet_gateway_rule_id="/subscriptions/xxxx-xxxx-xxxx-xxxx/providers/Microsoft.ManagedNetworkFabric/internetGatewayRules/example-internetGatewayRule",
location="eastus",
network_fabric_controller_id="/subscriptions/xxxx-xxxx-xxxx-xxxx/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/example-networkFabricController",
resource_group_name="example-rg",
tags={
"key3540": "1234",
},
type=azure_native.managednetworkfabric.GatewayType.INFRASTRUCTURE)
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const internetGateway = new azure_native.managednetworkfabric.InternetGateway("internetGateway", {
annotation: "annotation",
internetGatewayName: "example-internetGateway",
internetGatewayRuleId: "/subscriptions/xxxx-xxxx-xxxx-xxxx/providers/Microsoft.ManagedNetworkFabric/internetGatewayRules/example-internetGatewayRule",
location: "eastus",
networkFabricControllerId: "/subscriptions/xxxx-xxxx-xxxx-xxxx/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/example-networkFabricController",
resourceGroupName: "example-rg",
tags: {
key3540: "1234",
},
type: azure_native.managednetworkfabric.GatewayType.Infrastructure,
});
resources:
internetGateway:
type: azure-native:managednetworkfabric:InternetGateway
properties:
annotation: annotation
internetGatewayName: example-internetGateway
internetGatewayRuleId: /subscriptions/xxxx-xxxx-xxxx-xxxx/providers/Microsoft.ManagedNetworkFabric/internetGatewayRules/example-internetGatewayRule
location: eastus
networkFabricControllerId: /subscriptions/xxxx-xxxx-xxxx-xxxx/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/example-networkFabricController
resourceGroupName: example-rg
tags:
key3540: '1234'
type: Infrastructure
Create InternetGateway Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InternetGateway(name: string, args: InternetGatewayArgs, opts?: CustomResourceOptions);
@overload
def InternetGateway(resource_name: str,
args: InternetGatewayArgs,
opts: Optional[ResourceOptions] = None)
@overload
def InternetGateway(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_fabric_controller_id: Optional[str] = None,
resource_group_name: Optional[str] = None,
type: Optional[Union[str, GatewayType]] = None,
annotation: Optional[str] = None,
internet_gateway_name: Optional[str] = None,
internet_gateway_rule_id: Optional[str] = None,
location: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewInternetGateway(ctx *Context, name string, args InternetGatewayArgs, opts ...ResourceOption) (*InternetGateway, error)
public InternetGateway(string name, InternetGatewayArgs args, CustomResourceOptions? opts = null)
public InternetGateway(String name, InternetGatewayArgs args)
public InternetGateway(String name, InternetGatewayArgs args, CustomResourceOptions options)
type: azure-native:managednetworkfabric:InternetGateway
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args InternetGatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args InternetGatewayArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InternetGatewayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InternetGatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InternetGatewayArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var internetGatewayResource = new AzureNative.ManagedNetworkFabric.InternetGateway("internetGatewayResource", new()
{
NetworkFabricControllerId = "string",
ResourceGroupName = "string",
Type = "string",
Annotation = "string",
InternetGatewayName = "string",
InternetGatewayRuleId = "string",
Location = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := managednetworkfabric.NewInternetGateway(ctx, "internetGatewayResource", &managednetworkfabric.InternetGatewayArgs{
NetworkFabricControllerId: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
Type: pulumi.String("string"),
Annotation: pulumi.String("string"),
InternetGatewayName: pulumi.String("string"),
InternetGatewayRuleId: pulumi.String("string"),
Location: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var internetGatewayResource = new InternetGateway("internetGatewayResource", InternetGatewayArgs.builder()
.networkFabricControllerId("string")
.resourceGroupName("string")
.type("string")
.annotation("string")
.internetGatewayName("string")
.internetGatewayRuleId("string")
.location("string")
.tags(Map.of("string", "string"))
.build());
internet_gateway_resource = azure_native.managednetworkfabric.InternetGateway("internetGatewayResource",
network_fabric_controller_id="string",
resource_group_name="string",
type="string",
annotation="string",
internet_gateway_name="string",
internet_gateway_rule_id="string",
location="string",
tags={
"string": "string",
})
const internetGatewayResource = new azure_native.managednetworkfabric.InternetGateway("internetGatewayResource", {
networkFabricControllerId: "string",
resourceGroupName: "string",
type: "string",
annotation: "string",
internetGatewayName: "string",
internetGatewayRuleId: "string",
location: "string",
tags: {
string: "string",
},
});
type: azure-native:managednetworkfabric:InternetGateway
properties:
annotation: string
internetGatewayName: string
internetGatewayRuleId: string
location: string
networkFabricControllerId: string
resourceGroupName: string
tags:
string: string
type: string
InternetGateway Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The InternetGateway resource accepts the following input properties:
- Network
Fabric stringController Id - ARM Resource ID of the Network Fabric Controller.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Type
string | Pulumi.
Azure Native. Managed Network Fabric. Gateway Type - Gateway Type of the resource.
- Annotation string
- Switch configuration description.
- Internet
Gateway stringName - Name of the Internet Gateway.
- Internet
Gateway stringRule Id - ARM Resource ID of the Internet Gateway Rule.
- Location string
- The geo-location where the resource lives
- Dictionary<string, string>
- Resource tags.
- Network
Fabric stringController Id - ARM Resource ID of the Network Fabric Controller.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Type
string | Gateway
Type - Gateway Type of the resource.
- Annotation string
- Switch configuration description.
- Internet
Gateway stringName - Name of the Internet Gateway.
- Internet
Gateway stringRule Id - ARM Resource ID of the Internet Gateway Rule.
- Location string
- The geo-location where the resource lives
- map[string]string
- Resource tags.
- network
Fabric StringController Id - ARM Resource ID of the Network Fabric Controller.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- type
String | Gateway
Type - Gateway Type of the resource.
- annotation String
- Switch configuration description.
- internet
Gateway StringName - Name of the Internet Gateway.
- internet
Gateway StringRule Id - ARM Resource ID of the Internet Gateway Rule.
- location String
- The geo-location where the resource lives
- Map<String,String>
- Resource tags.
- network
Fabric stringController Id - ARM Resource ID of the Network Fabric Controller.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- type
string | Gateway
Type - Gateway Type of the resource.
- annotation string
- Switch configuration description.
- internet
Gateway stringName - Name of the Internet Gateway.
- internet
Gateway stringRule Id - ARM Resource ID of the Internet Gateway Rule.
- location string
- The geo-location where the resource lives
- {[key: string]: string}
- Resource tags.
- network_
fabric_ strcontroller_ id - ARM Resource ID of the Network Fabric Controller.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- type
str | Gateway
Type - Gateway Type of the resource.
- annotation str
- Switch configuration description.
- internet_
gateway_ strname - Name of the Internet Gateway.
- internet_
gateway_ strrule_ id - ARM Resource ID of the Internet Gateway Rule.
- location str
- The geo-location where the resource lives
- Mapping[str, str]
- Resource tags.
- network
Fabric StringController Id - ARM Resource ID of the Network Fabric Controller.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- type String | "Infrastructure" | "Workload"
- Gateway Type of the resource.
- annotation String
- Switch configuration description.
- internet
Gateway StringName - Name of the Internet Gateway.
- internet
Gateway StringRule Id - ARM Resource ID of the Internet Gateway Rule.
- location String
- The geo-location where the resource lives
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the InternetGateway resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipv4Address string
- IPv4 Address of Internet Gateway.
- Name string
- The name of the resource
- Port int
- Port number of Internet Gateway.
- Provisioning
State string - Provisioning state of resource.
- System
Data Pulumi.Azure Native. Managed Network Fabric. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipv4Address string
- IPv4 Address of Internet Gateway.
- Name string
- The name of the resource
- Port int
- Port number of Internet Gateway.
- Provisioning
State string - Provisioning state of resource.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- id String
- The provider-assigned unique ID for this managed resource.
- ipv4Address String
- IPv4 Address of Internet Gateway.
- name String
- The name of the resource
- port Integer
- Port number of Internet Gateway.
- provisioning
State String - Provisioning state of resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- id string
- The provider-assigned unique ID for this managed resource.
- ipv4Address string
- IPv4 Address of Internet Gateway.
- name string
- The name of the resource
- port number
- Port number of Internet Gateway.
- provisioning
State string - Provisioning state of resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- id str
- The provider-assigned unique ID for this managed resource.
- ipv4_
address str - IPv4 Address of Internet Gateway.
- name str
- The name of the resource
- port int
- Port number of Internet Gateway.
- provisioning_
state str - Provisioning state of resource.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- id String
- The provider-assigned unique ID for this managed resource.
- ipv4Address String
- IPv4 Address of Internet Gateway.
- name String
- The name of the resource
- port Number
- Port number of Internet Gateway.
- provisioning
State String - Provisioning state of resource.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
Supporting Types
GatewayType, GatewayTypeArgs
- Infrastructure
- Infrastructure
- Workload
- Workload
- Gateway
Type Infrastructure - Infrastructure
- Gateway
Type Workload - Workload
- Infrastructure
- Infrastructure
- Workload
- Workload
- Infrastructure
- Infrastructure
- Workload
- Workload
- INFRASTRUCTURE
- Infrastructure
- WORKLOAD
- Workload
- "Infrastructure"
- Infrastructure
- "Workload"
- Workload
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:managednetworkfabric:InternetGateway example-internetGateway /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/internetGateways/{internetGatewayName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0