InternetGateway

class InternetGateway : KotlinCustomResource

The Internet Gateway resource definition. Uses Azure REST API version 2023-06-15. In version 2.x of the Azure Native provider, it used 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

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}

Properties

Link copied to clipboard
val annotation: Output<String>?

Switch configuration description.

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

ARM Resource ID of the Internet Gateway Rule.

Link copied to clipboard
val ipv4Address: Output<String>

IPv4 Address of Internet Gateway.

Link copied to clipboard
val location: Output<String>

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

ARM Resource ID of the Network Fabric Controller.

Link copied to clipboard
val port: Output<Int>

Port number of Internet Gateway.

Link copied to clipboard

Provisioning state of resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Resource tags.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>