1. Packages
  2. Volcengine
  3. API Docs
  4. nat
  5. Gateway
Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine

volcengine.nat.Gateway

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine

    Import

    NatGateway can be imported using the id, e.g.

     $ pulumi import volcengine:nat/gateway:Gateway default ngw-vv3t043k05sm****
    

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    using Volcengine = Volcengine.Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var fooZones = Volcengine.Ecs.Zones.Invoke();
    
        var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
        {
            VpcName = "acc-test-vpc",
            CidrBlock = "172.16.0.0/16",
        });
    
        var fooSubnet = new Volcengine.Vpc.Subnet("fooSubnet", new()
        {
            SubnetName = "acc-test-subnet",
            CidrBlock = "172.16.0.0/24",
            ZoneId = fooZones.Apply(zonesResult => zonesResult.Zones[0]?.Id),
            VpcId = fooVpc.Id,
        });
    
        var fooGateway = new Volcengine.Nat.Gateway("fooGateway", new()
        {
            VpcId = fooVpc.Id,
            SubnetId = fooSubnet.Id,
            Spec = "Small",
            NatGatewayName = "acc-test-ng",
            Description = "acc-test",
            BillingType = "PostPaid",
            ProjectName = "default",
            Tags = new[]
            {
                new Volcengine.Nat.Inputs.GatewayTagArgs
                {
                    Key = "k1",
                    Value = "v1",
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/nat"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		fooZones, err := ecs.Zones(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
    			VpcName:   pulumi.String("acc-test-vpc"),
    			CidrBlock: pulumi.String("172.16.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
    			SubnetName: pulumi.String("acc-test-subnet"),
    			CidrBlock:  pulumi.String("172.16.0.0/24"),
    			ZoneId:     *pulumi.String(fooZones.Zones[0].Id),
    			VpcId:      fooVpc.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = nat.NewGateway(ctx, "fooGateway", &nat.GatewayArgs{
    			VpcId:          fooVpc.ID(),
    			SubnetId:       fooSubnet.ID(),
    			Spec:           pulumi.String("Small"),
    			NatGatewayName: pulumi.String("acc-test-ng"),
    			Description:    pulumi.String("acc-test"),
    			BillingType:    pulumi.String("PostPaid"),
    			ProjectName:    pulumi.String("default"),
    			Tags: nat.GatewayTagArray{
    				&nat.GatewayTagArgs{
    					Key:   pulumi.String("k1"),
    					Value: pulumi.String("v1"),
    				},
    			},
    		})
    		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.volcengine.ecs.EcsFunctions;
    import com.pulumi.volcengine.ecs.inputs.ZonesArgs;
    import com.pulumi.volcengine.vpc.Vpc;
    import com.pulumi.volcengine.vpc.VpcArgs;
    import com.pulumi.volcengine.vpc.Subnet;
    import com.pulumi.volcengine.vpc.SubnetArgs;
    import com.pulumi.volcengine.nat.Gateway;
    import com.pulumi.volcengine.nat.GatewayArgs;
    import com.pulumi.volcengine.nat.inputs.GatewayTagArgs;
    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) {
            final var fooZones = EcsFunctions.Zones();
    
            var fooVpc = new Vpc("fooVpc", VpcArgs.builder()        
                .vpcName("acc-test-vpc")
                .cidrBlock("172.16.0.0/16")
                .build());
    
            var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()        
                .subnetName("acc-test-subnet")
                .cidrBlock("172.16.0.0/24")
                .zoneId(fooZones.applyValue(zonesResult -> zonesResult.zones()[0].id()))
                .vpcId(fooVpc.id())
                .build());
    
            var fooGateway = new Gateway("fooGateway", GatewayArgs.builder()        
                .vpcId(fooVpc.id())
                .subnetId(fooSubnet.id())
                .spec("Small")
                .natGatewayName("acc-test-ng")
                .description("acc-test")
                .billingType("PostPaid")
                .projectName("default")
                .tags(GatewayTagArgs.builder()
                    .key("k1")
                    .value("v1")
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo_zones = volcengine.ecs.zones()
    foo_vpc = volcengine.vpc.Vpc("fooVpc",
        vpc_name="acc-test-vpc",
        cidr_block="172.16.0.0/16")
    foo_subnet = volcengine.vpc.Subnet("fooSubnet",
        subnet_name="acc-test-subnet",
        cidr_block="172.16.0.0/24",
        zone_id=foo_zones.zones[0].id,
        vpc_id=foo_vpc.id)
    foo_gateway = volcengine.nat.Gateway("fooGateway",
        vpc_id=foo_vpc.id,
        subnet_id=foo_subnet.id,
        spec="Small",
        nat_gateway_name="acc-test-ng",
        description="acc-test",
        billing_type="PostPaid",
        project_name="default",
        tags=[volcengine.nat.GatewayTagArgs(
            key="k1",
            value="v1",
        )])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    import * as volcengine from "@volcengine/pulumi";
    
    const fooZones = volcengine.ecs.Zones({});
    const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
        vpcName: "acc-test-vpc",
        cidrBlock: "172.16.0.0/16",
    });
    const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
        subnetName: "acc-test-subnet",
        cidrBlock: "172.16.0.0/24",
        zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
        vpcId: fooVpc.id,
    });
    const fooGateway = new volcengine.nat.Gateway("fooGateway", {
        vpcId: fooVpc.id,
        subnetId: fooSubnet.id,
        spec: "Small",
        natGatewayName: "acc-test-ng",
        description: "acc-test",
        billingType: "PostPaid",
        projectName: "default",
        tags: [{
            key: "k1",
            value: "v1",
        }],
    });
    
    resources:
      fooVpc:
        type: volcengine:vpc:Vpc
        properties:
          vpcName: acc-test-vpc
          cidrBlock: 172.16.0.0/16
      fooSubnet:
        type: volcengine:vpc:Subnet
        properties:
          subnetName: acc-test-subnet
          cidrBlock: 172.16.0.0/24
          zoneId: ${fooZones.zones[0].id}
          vpcId: ${fooVpc.id}
      fooGateway:
        type: volcengine:nat:Gateway
        properties:
          vpcId: ${fooVpc.id}
          subnetId: ${fooSubnet.id}
          spec: Small
          natGatewayName: acc-test-ng
          description: acc-test
          billingType: PostPaid
          projectName: default
          tags:
            - key: k1
              value: v1
    variables:
      fooZones:
        fn::invoke:
          Function: volcengine:ecs:Zones
          Arguments: {}
    

    Create Gateway Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Gateway(name: string, args: GatewayArgs, opts?: CustomResourceOptions);
    @overload
    def Gateway(resource_name: str,
                args: GatewayArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Gateway(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                subnet_id: Optional[str] = None,
                vpc_id: Optional[str] = None,
                billing_type: Optional[str] = None,
                description: Optional[str] = None,
                nat_gateway_name: Optional[str] = None,
                period: Optional[int] = None,
                project_name: Optional[str] = None,
                spec: Optional[str] = None,
                tags: Optional[Sequence[GatewayTagArgs]] = None)
    func NewGateway(ctx *Context, name string, args GatewayArgs, opts ...ResourceOption) (*Gateway, error)
    public Gateway(string name, GatewayArgs args, CustomResourceOptions? opts = null)
    public Gateway(String name, GatewayArgs args)
    public Gateway(String name, GatewayArgs args, CustomResourceOptions options)
    
    type: volcengine:nat:Gateway
    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 GatewayArgs
    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 GatewayArgs
    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 GatewayArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GatewayArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GatewayArgs
    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 volcengineGatewayResource = new Volcengine.Nat.Gateway("volcengineGatewayResource", new()
    {
        SubnetId = "string",
        VpcId = "string",
        BillingType = "string",
        Description = "string",
        NatGatewayName = "string",
        Period = 0,
        ProjectName = "string",
        Spec = "string",
        Tags = new[]
        {
            new Volcengine.Nat.Inputs.GatewayTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
    });
    
    example, err := nat.NewGateway(ctx, "volcengineGatewayResource", &nat.GatewayArgs{
    	SubnetId:       pulumi.String("string"),
    	VpcId:          pulumi.String("string"),
    	BillingType:    pulumi.String("string"),
    	Description:    pulumi.String("string"),
    	NatGatewayName: pulumi.String("string"),
    	Period:         pulumi.Int(0),
    	ProjectName:    pulumi.String("string"),
    	Spec:           pulumi.String("string"),
    	Tags: nat.GatewayTagArray{
    		&nat.GatewayTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    })
    
    var volcengineGatewayResource = new Gateway("volcengineGatewayResource", GatewayArgs.builder()        
        .subnetId("string")
        .vpcId("string")
        .billingType("string")
        .description("string")
        .natGatewayName("string")
        .period(0)
        .projectName("string")
        .spec("string")
        .tags(GatewayTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .build());
    
    volcengine_gateway_resource = volcengine.nat.Gateway("volcengineGatewayResource",
        subnet_id="string",
        vpc_id="string",
        billing_type="string",
        description="string",
        nat_gateway_name="string",
        period=0,
        project_name="string",
        spec="string",
        tags=[volcengine.nat.GatewayTagArgs(
            key="string",
            value="string",
        )])
    
    const volcengineGatewayResource = new volcengine.nat.Gateway("volcengineGatewayResource", {
        subnetId: "string",
        vpcId: "string",
        billingType: "string",
        description: "string",
        natGatewayName: "string",
        period: 0,
        projectName: "string",
        spec: "string",
        tags: [{
            key: "string",
            value: "string",
        }],
    });
    
    type: volcengine:nat:Gateway
    properties:
        billingType: string
        description: string
        natGatewayName: string
        period: 0
        projectName: string
        spec: string
        subnetId: string
        tags:
            - key: string
              value: string
        vpcId: string
    

    Gateway 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 Gateway resource accepts the following input properties:

    SubnetId string
    The ID of the Subnet.
    VpcId string
    The ID of the VPC.
    BillingType string
    The billing type of the NatGateway, the value is PostPaid or PrePaid.
    Description string
    The description of the NatGateway.
    NatGatewayName string
    The name of the NatGateway.
    Period int
    The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to Month.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    ProjectName string
    The ProjectName of the NatGateway.
    Spec string
    The specification of the NatGateway. Optional choice contains Small(default), Medium, Large.
    Tags List<Volcengine.GatewayTag>
    Tags.
    SubnetId string
    The ID of the Subnet.
    VpcId string
    The ID of the VPC.
    BillingType string
    The billing type of the NatGateway, the value is PostPaid or PrePaid.
    Description string
    The description of the NatGateway.
    NatGatewayName string
    The name of the NatGateway.
    Period int
    The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to Month.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    ProjectName string
    The ProjectName of the NatGateway.
    Spec string
    The specification of the NatGateway. Optional choice contains Small(default), Medium, Large.
    Tags []GatewayTagArgs
    Tags.
    subnetId String
    The ID of the Subnet.
    vpcId String
    The ID of the VPC.
    billingType String
    The billing type of the NatGateway, the value is PostPaid or PrePaid.
    description String
    The description of the NatGateway.
    natGatewayName String
    The name of the NatGateway.
    period Integer
    The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to Month.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    projectName String
    The ProjectName of the NatGateway.
    spec String
    The specification of the NatGateway. Optional choice contains Small(default), Medium, Large.
    tags List<GatewayTag>
    Tags.
    subnetId string
    The ID of the Subnet.
    vpcId string
    The ID of the VPC.
    billingType string
    The billing type of the NatGateway, the value is PostPaid or PrePaid.
    description string
    The description of the NatGateway.
    natGatewayName string
    The name of the NatGateway.
    period number
    The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to Month.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    projectName string
    The ProjectName of the NatGateway.
    spec string
    The specification of the NatGateway. Optional choice contains Small(default), Medium, Large.
    tags GatewayTag[]
    Tags.
    subnet_id str
    The ID of the Subnet.
    vpc_id str
    The ID of the VPC.
    billing_type str
    The billing type of the NatGateway, the value is PostPaid or PrePaid.
    description str
    The description of the NatGateway.
    nat_gateway_name str
    The name of the NatGateway.
    period int
    The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to Month.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    project_name str
    The ProjectName of the NatGateway.
    spec str
    The specification of the NatGateway. Optional choice contains Small(default), Medium, Large.
    tags Sequence[GatewayTagArgs]
    Tags.
    subnetId String
    The ID of the Subnet.
    vpcId String
    The ID of the VPC.
    billingType String
    The billing type of the NatGateway, the value is PostPaid or PrePaid.
    description String
    The description of the NatGateway.
    natGatewayName String
    The name of the NatGateway.
    period Number
    The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to Month.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    projectName String
    The ProjectName of the NatGateway.
    spec String
    The specification of the NatGateway. Optional choice contains Small(default), Medium, Large.
    tags List<Property Map>
    Tags.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Gateway resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Gateway Resource

    Get an existing Gateway resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: GatewayState, opts?: CustomResourceOptions): Gateway
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            billing_type: Optional[str] = None,
            description: Optional[str] = None,
            nat_gateway_name: Optional[str] = None,
            period: Optional[int] = None,
            project_name: Optional[str] = None,
            spec: Optional[str] = None,
            subnet_id: Optional[str] = None,
            tags: Optional[Sequence[GatewayTagArgs]] = None,
            vpc_id: Optional[str] = None) -> Gateway
    func GetGateway(ctx *Context, name string, id IDInput, state *GatewayState, opts ...ResourceOption) (*Gateway, error)
    public static Gateway Get(string name, Input<string> id, GatewayState? state, CustomResourceOptions? opts = null)
    public static Gateway get(String name, Output<String> id, GatewayState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    BillingType string
    The billing type of the NatGateway, the value is PostPaid or PrePaid.
    Description string
    The description of the NatGateway.
    NatGatewayName string
    The name of the NatGateway.
    Period int
    The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to Month.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    ProjectName string
    The ProjectName of the NatGateway.
    Spec string
    The specification of the NatGateway. Optional choice contains Small(default), Medium, Large.
    SubnetId string
    The ID of the Subnet.
    Tags List<Volcengine.GatewayTag>
    Tags.
    VpcId string
    The ID of the VPC.
    BillingType string
    The billing type of the NatGateway, the value is PostPaid or PrePaid.
    Description string
    The description of the NatGateway.
    NatGatewayName string
    The name of the NatGateway.
    Period int
    The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to Month.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    ProjectName string
    The ProjectName of the NatGateway.
    Spec string
    The specification of the NatGateway. Optional choice contains Small(default), Medium, Large.
    SubnetId string
    The ID of the Subnet.
    Tags []GatewayTagArgs
    Tags.
    VpcId string
    The ID of the VPC.
    billingType String
    The billing type of the NatGateway, the value is PostPaid or PrePaid.
    description String
    The description of the NatGateway.
    natGatewayName String
    The name of the NatGateway.
    period Integer
    The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to Month.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    projectName String
    The ProjectName of the NatGateway.
    spec String
    The specification of the NatGateway. Optional choice contains Small(default), Medium, Large.
    subnetId String
    The ID of the Subnet.
    tags List<GatewayTag>
    Tags.
    vpcId String
    The ID of the VPC.
    billingType string
    The billing type of the NatGateway, the value is PostPaid or PrePaid.
    description string
    The description of the NatGateway.
    natGatewayName string
    The name of the NatGateway.
    period number
    The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to Month.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    projectName string
    The ProjectName of the NatGateway.
    spec string
    The specification of the NatGateway. Optional choice contains Small(default), Medium, Large.
    subnetId string
    The ID of the Subnet.
    tags GatewayTag[]
    Tags.
    vpcId string
    The ID of the VPC.
    billing_type str
    The billing type of the NatGateway, the value is PostPaid or PrePaid.
    description str
    The description of the NatGateway.
    nat_gateway_name str
    The name of the NatGateway.
    period int
    The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to Month.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    project_name str
    The ProjectName of the NatGateway.
    spec str
    The specification of the NatGateway. Optional choice contains Small(default), Medium, Large.
    subnet_id str
    The ID of the Subnet.
    tags Sequence[GatewayTagArgs]
    Tags.
    vpc_id str
    The ID of the VPC.
    billingType String
    The billing type of the NatGateway, the value is PostPaid or PrePaid.
    description String
    The description of the NatGateway.
    natGatewayName String
    The name of the NatGateway.
    period Number
    The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to Month.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    projectName String
    The ProjectName of the NatGateway.
    spec String
    The specification of the NatGateway. Optional choice contains Small(default), Medium, Large.
    subnetId String
    The ID of the Subnet.
    tags List<Property Map>
    Tags.
    vpcId String
    The ID of the VPC.

    Supporting Types

    GatewayTag, GatewayTagArgs

    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.
    key string
    The Key of Tags.
    value string
    The Value of Tags.
    key str
    The Key of Tags.
    value str
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine