1. Packages
  2. Azure Native
  3. API Docs
  4. managednetworkfabric
  5. InternetGateway
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.41.0 published on Tuesday, May 14, 2024 by Pulumi

azure-native.managednetworkfabric.InternetGateway

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.41.0 published on Tuesday, May 14, 2024 by Pulumi

    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 (
    	"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.

    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

    The InternetGateway resource accepts the following input properties:

    NetworkFabricControllerId string
    ARM Resource ID of the Network Fabric Controller.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    Type string | Pulumi.AzureNative.ManagedNetworkFabric.GatewayType
    Gateway Type of the resource.
    Annotation string
    Switch configuration description.
    InternetGatewayName string
    Name of the Internet Gateway.
    InternetGatewayRuleId string
    ARM Resource ID of the Internet Gateway Rule.
    Location string
    The geo-location where the resource lives
    Tags Dictionary<string, string>
    Resource tags.
    NetworkFabricControllerId string
    ARM Resource ID of the Network Fabric Controller.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    Type string | GatewayType
    Gateway Type of the resource.
    Annotation string
    Switch configuration description.
    InternetGatewayName string
    Name of the Internet Gateway.
    InternetGatewayRuleId string
    ARM Resource ID of the Internet Gateway Rule.
    Location string
    The geo-location where the resource lives
    Tags map[string]string
    Resource tags.
    networkFabricControllerId String
    ARM Resource ID of the Network Fabric Controller.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    type String | GatewayType
    Gateway Type of the resource.
    annotation String
    Switch configuration description.
    internetGatewayName String
    Name of the Internet Gateway.
    internetGatewayRuleId String
    ARM Resource ID of the Internet Gateway Rule.
    location String
    The geo-location where the resource lives
    tags Map<String,String>
    Resource tags.
    networkFabricControllerId string
    ARM Resource ID of the Network Fabric Controller.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    type string | GatewayType
    Gateway Type of the resource.
    annotation string
    Switch configuration description.
    internetGatewayName string
    Name of the Internet Gateway.
    internetGatewayRuleId string
    ARM Resource ID of the Internet Gateway Rule.
    location string
    The geo-location where the resource lives
    tags {[key: string]: string}
    Resource tags.
    network_fabric_controller_id str
    ARM Resource ID of the Network Fabric Controller.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    type str | GatewayType
    Gateway Type of the resource.
    annotation str
    Switch configuration description.
    internet_gateway_name str
    Name of the Internet Gateway.
    internet_gateway_rule_id str
    ARM Resource ID of the Internet Gateway Rule.
    location str
    The geo-location where the resource lives
    tags Mapping[str, str]
    Resource tags.
    networkFabricControllerId String
    ARM Resource ID of the Network Fabric Controller.
    resourceGroupName String
    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.
    internetGatewayName String
    Name of the Internet Gateway.
    internetGatewayRuleId String
    ARM Resource ID of the Internet Gateway Rule.
    location String
    The geo-location where the resource lives
    tags 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.
    ProvisioningState string
    Provisioning state of resource.
    SystemData Pulumi.AzureNative.ManagedNetworkFabric.Outputs.SystemDataResponse
    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.
    ProvisioningState string
    Provisioning state of resource.
    SystemData SystemDataResponse
    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.
    provisioningState String
    Provisioning state of resource.
    systemData SystemDataResponse
    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.
    provisioningState string
    Provisioning state of resource.
    systemData SystemDataResponse
    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 SystemDataResponse
    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.
    provisioningState String
    Provisioning state of resource.
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.

    Supporting Types

    GatewayType, GatewayTypeArgs

    Infrastructure
    Infrastructure
    Workload
    Workload
    GatewayTypeInfrastructure
    Infrastructure
    GatewayTypeWorkload
    Workload
    Infrastructure
    Infrastructure
    Workload
    Workload
    Infrastructure
    Infrastructure
    Workload
    Workload
    INFRASTRUCTURE
    Infrastructure
    WORKLOAD
    Workload
    "Infrastructure"
    Infrastructure
    "Workload"
    Workload

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    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_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    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
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.41.0 published on Tuesday, May 14, 2024 by Pulumi