Internet Gateway Args
data class InternetGatewayArgs(val annotation: Output<String>? = null, val internetGatewayName: Output<String>? = null, val internetGatewayRuleId: Output<String>? = null, val location: Output<String>? = null, val networkFabricControllerId: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val type: Output<Either<String, GatewayType>>? = null) : ConvertibleToJava<InternetGatewayArgs>
The Internet Gateway resource definition. Uses 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,
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(annotation: Output<String>? = null, internetGatewayName: Output<String>? = null, internetGatewayRuleId: Output<String>? = null, location: Output<String>? = null, networkFabricControllerId: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null, type: Output<Either<String, GatewayType>>? = null)
Properties
Link copied to clipboard
Switch configuration description.
Link copied to clipboard
Name of the Internet Gateway.
Link copied to clipboard
ARM Resource ID of the Internet Gateway Rule.
Link copied to clipboard
ARM Resource ID of the Network Fabric Controller.
Link copied to clipboard
The name of the resource group. The name is case insensitive.
Link copied to clipboard
Gateway Type of the resource.