NatGatewayArgs

data class NatGatewayArgs(val idleTimeoutInMinutes: Output<Int>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val skuName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val zones: Output<List<String>>? = null) : ConvertibleToJava<NatGatewayArgs>

Manages an Azure NAT Gateway.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "nat-gateway-example-rg",
location: "West Europe",
});
const exampleNatGateway = new azure.network.NatGateway("example", {
name: "nat-gateway",
location: example.location,
resourceGroupName: example.name,
skuName: "Standard",
idleTimeoutInMinutes: 10,
zones: ["1"],
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="nat-gateway-example-rg",
location="West Europe")
example_nat_gateway = azure.network.NatGateway("example",
name="nat-gateway",
location=example.location,
resource_group_name=example.name,
sku_name="Standard",
idle_timeout_in_minutes=10,
zones=["1"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "nat-gateway-example-rg",
Location = "West Europe",
});
var exampleNatGateway = new Azure.Network.NatGateway("example", new()
{
Name = "nat-gateway",
Location = example.Location,
ResourceGroupName = example.Name,
SkuName = "Standard",
IdleTimeoutInMinutes = 10,
Zones = new[]
{
"1",
},
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("nat-gateway-example-rg"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = network.NewNatGateway(ctx, "example", &network.NatGatewayArgs{
Name: pulumi.String("nat-gateway"),
Location: example.Location,
ResourceGroupName: example.Name,
SkuName: pulumi.String("Standard"),
IdleTimeoutInMinutes: pulumi.Int(10),
Zones: pulumi.StringArray{
pulumi.String("1"),
},
})
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.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.NatGateway;
import com.pulumi.azure.network.NatGatewayArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("nat-gateway-example-rg")
.location("West Europe")
.build());
var exampleNatGateway = new NatGateway("exampleNatGateway", NatGatewayArgs.builder()
.name("nat-gateway")
.location(example.location())
.resourceGroupName(example.name())
.skuName("Standard")
.idleTimeoutInMinutes(10)
.zones("1")
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: nat-gateway-example-rg
location: West Europe
exampleNatGateway:
type: azure:network:NatGateway
name: example
properties:
name: nat-gateway
location: ${example.location}
resourceGroupName: ${example.name}
skuName: Standard
idleTimeoutInMinutes: 10
zones:
- '1'

For more complete examples, please see the azure.network.NatGatewayPublicIpAssociation and azure.network.NatGatewayPublicIpPrefixAssociation resources.

Import

NAT Gateway can be imported using the resource id, e.g.

$ pulumi import azure:network/natGateway:NatGateway test /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/natGateways/gateway1

Constructors

Link copied to clipboard
constructor(idleTimeoutInMinutes: Output<Int>? = null, location: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, skuName: Output<String>? = null, tags: Output<Map<String, String>>? = null, zones: Output<List<String>>? = null)

Properties

Link copied to clipboard
val idleTimeoutInMinutes: Output<Int>? = null

The idle timeout which should be used in minutes. Defaults to 4.

Link copied to clipboard
val location: Output<String>? = null

Specifies the supported Azure location where the NAT Gateway should exist. Changing this forces a new resource to be created.

Link copied to clipboard
val name: Output<String>? = null

Specifies the name of the NAT Gateway. Changing this forces a new resource to be created.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

Specifies the name of the Resource Group in which the NAT Gateway should exist. Changing this forces a new resource to be created.

Link copied to clipboard
val skuName: Output<String>? = null

The SKU which should be used. At this time the only supported value is Standard. Defaults to Standard.

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

A mapping of tags to assign to the resource.

Link copied to clipboard
val zones: Output<List<String>>? = null

A list of Availability Zones in which this NAT Gateway should be located. Changing this forces a new NAT Gateway to be created.

Functions

Link copied to clipboard
open override fun toJava(): NatGatewayArgs