1. Packages
  2. Ucloud Provider
  3. API Docs
  4. NatGateway
ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud

ucloud.NatGateway

Explore with Pulumi AI

Provides a Nat Gateway resource.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ucloud from "@pulumi/ucloud";

const fooVpc = new ucloud.Vpc("fooVpc", {
    tag: "tf-acc",
    cidrBlocks: ["192.168.0.0/16"],
});
const fooSubnet = new ucloud.Subnet("fooSubnet", {
    tag: "tf-acc",
    cidrBlock: "192.168.1.0/24",
    vpcId: fooVpc.vpcId,
});
const fooEip = new ucloud.Eip("fooEip", {
    bandwidth: 1,
    internetType: "bgp",
    chargeMode: "bandwidth",
    tag: "tf-acc",
});
const fooSecurityGroups = ucloud.getSecurityGroups({
    type: "recommend_web",
});
const fooNatGateway = new ucloud.NatGateway("fooNatGateway", {
    vpcId: fooVpc.vpcId,
    subnetIds: [fooSubnet.subnetId],
    eipId: fooEip.eipId,
    tag: "tf-acc",
    securityGroup: fooSecurityGroups.then(fooSecurityGroups => fooSecurityGroups.securityGroups?.[0]?.id),
});
Copy
import pulumi
import pulumi_ucloud as ucloud

foo_vpc = ucloud.Vpc("fooVpc",
    tag="tf-acc",
    cidr_blocks=["192.168.0.0/16"])
foo_subnet = ucloud.Subnet("fooSubnet",
    tag="tf-acc",
    cidr_block="192.168.1.0/24",
    vpc_id=foo_vpc.vpc_id)
foo_eip = ucloud.Eip("fooEip",
    bandwidth=1,
    internet_type="bgp",
    charge_mode="bandwidth",
    tag="tf-acc")
foo_security_groups = ucloud.get_security_groups(type="recommend_web")
foo_nat_gateway = ucloud.NatGateway("fooNatGateway",
    vpc_id=foo_vpc.vpc_id,
    subnet_ids=[foo_subnet.subnet_id],
    eip_id=foo_eip.eip_id,
    tag="tf-acc",
    security_group=foo_security_groups.security_groups[0].id)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ucloud/ucloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		fooVpc, err := ucloud.NewVpc(ctx, "fooVpc", &ucloud.VpcArgs{
			Tag: pulumi.String("tf-acc"),
			CidrBlocks: pulumi.StringArray{
				pulumi.String("192.168.0.0/16"),
			},
		})
		if err != nil {
			return err
		}
		fooSubnet, err := ucloud.NewSubnet(ctx, "fooSubnet", &ucloud.SubnetArgs{
			Tag:       pulumi.String("tf-acc"),
			CidrBlock: pulumi.String("192.168.1.0/24"),
			VpcId:     fooVpc.VpcId,
		})
		if err != nil {
			return err
		}
		fooEip, err := ucloud.NewEip(ctx, "fooEip", &ucloud.EipArgs{
			Bandwidth:    pulumi.Float64(1),
			InternetType: pulumi.String("bgp"),
			ChargeMode:   pulumi.String("bandwidth"),
			Tag:          pulumi.String("tf-acc"),
		})
		if err != nil {
			return err
		}
		fooSecurityGroups, err := ucloud.GetSecurityGroups(ctx, &ucloud.GetSecurityGroupsArgs{
			Type: pulumi.StringRef("recommend_web"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = ucloud.NewNatGateway(ctx, "fooNatGateway", &ucloud.NatGatewayArgs{
			VpcId: fooVpc.VpcId,
			SubnetIds: pulumi.StringArray{
				fooSubnet.SubnetId,
			},
			EipId:         fooEip.EipId,
			Tag:           pulumi.String("tf-acc"),
			SecurityGroup: pulumi.String(fooSecurityGroups.SecurityGroups[0].Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ucloud = Pulumi.Ucloud;

return await Deployment.RunAsync(() => 
{
    var fooVpc = new Ucloud.Vpc("fooVpc", new()
    {
        Tag = "tf-acc",
        CidrBlocks = new[]
        {
            "192.168.0.0/16",
        },
    });

    var fooSubnet = new Ucloud.Subnet("fooSubnet", new()
    {
        Tag = "tf-acc",
        CidrBlock = "192.168.1.0/24",
        VpcId = fooVpc.VpcId,
    });

    var fooEip = new Ucloud.Eip("fooEip", new()
    {
        Bandwidth = 1,
        InternetType = "bgp",
        ChargeMode = "bandwidth",
        Tag = "tf-acc",
    });

    var fooSecurityGroups = Ucloud.GetSecurityGroups.Invoke(new()
    {
        Type = "recommend_web",
    });

    var fooNatGateway = new Ucloud.NatGateway("fooNatGateway", new()
    {
        VpcId = fooVpc.VpcId,
        SubnetIds = new[]
        {
            fooSubnet.SubnetId,
        },
        EipId = fooEip.EipId,
        Tag = "tf-acc",
        SecurityGroup = fooSecurityGroups.Apply(getSecurityGroupsResult => getSecurityGroupsResult.SecurityGroups[0]?.Id),
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ucloud.Vpc;
import com.pulumi.ucloud.VpcArgs;
import com.pulumi.ucloud.Subnet;
import com.pulumi.ucloud.SubnetArgs;
import com.pulumi.ucloud.Eip;
import com.pulumi.ucloud.EipArgs;
import com.pulumi.ucloud.UcloudFunctions;
import com.pulumi.ucloud.inputs.GetSecurityGroupsArgs;
import com.pulumi.ucloud.NatGateway;
import com.pulumi.ucloud.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 fooVpc = new Vpc("fooVpc", VpcArgs.builder()
            .tag("tf-acc")
            .cidrBlocks("192.168.0.0/16")
            .build());

        var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()
            .tag("tf-acc")
            .cidrBlock("192.168.1.0/24")
            .vpcId(fooVpc.vpcId())
            .build());

        var fooEip = new Eip("fooEip", EipArgs.builder()
            .bandwidth(1)
            .internetType("bgp")
            .chargeMode("bandwidth")
            .tag("tf-acc")
            .build());

        final var fooSecurityGroups = UcloudFunctions.getSecurityGroups(GetSecurityGroupsArgs.builder()
            .type("recommend_web")
            .build());

        var fooNatGateway = new NatGateway("fooNatGateway", NatGatewayArgs.builder()
            .vpcId(fooVpc.vpcId())
            .subnetIds(fooSubnet.subnetId())
            .eipId(fooEip.eipId())
            .tag("tf-acc")
            .securityGroup(fooSecurityGroups.applyValue(getSecurityGroupsResult -> getSecurityGroupsResult.securityGroups()[0].id()))
            .build());

    }
}
Copy
resources:
  fooVpc:
    type: ucloud:Vpc
    properties:
      tag: tf-acc
      cidrBlocks:
        - 192.168.0.0/16
  fooSubnet:
    type: ucloud:Subnet
    properties:
      tag: tf-acc
      cidrBlock: 192.168.1.0/24
      vpcId: ${fooVpc.vpcId}
  fooEip:
    type: ucloud:Eip
    properties:
      bandwidth: 1
      internetType: bgp
      chargeMode: bandwidth
      tag: tf-acc
  fooNatGateway:
    type: ucloud:NatGateway
    properties:
      vpcId: ${fooVpc.vpcId}
      subnetIds:
        - ${fooSubnet.subnetId}
      eipId: ${fooEip.eipId}
      tag: tf-acc
      securityGroup: ${fooSecurityGroups.securityGroups[0].id}
variables:
  fooSecurityGroups:
    fn::invoke:
      function: ucloud:getSecurityGroups
      arguments:
        type: recommend_web
Copy

Create NatGateway Resource

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

Constructor syntax

new NatGateway(name: string, args: NatGatewayArgs, opts?: CustomResourceOptions);
@overload
def NatGateway(resource_name: str,
               args: NatGatewayArgs,
               opts: Optional[ResourceOptions] = None)

@overload
def NatGateway(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               eip_id: Optional[str] = None,
               enable_white_list: Optional[bool] = None,
               security_group: Optional[str] = None,
               subnet_ids: Optional[Sequence[str]] = None,
               vpc_id: Optional[str] = None,
               name: Optional[str] = None,
               nat_gateway_id: Optional[str] = None,
               remark: Optional[str] = None,
               tag: Optional[str] = None,
               white_lists: Optional[Sequence[str]] = None)
func NewNatGateway(ctx *Context, name string, args NatGatewayArgs, opts ...ResourceOption) (*NatGateway, error)
public NatGateway(string name, NatGatewayArgs args, CustomResourceOptions? opts = null)
public NatGateway(String name, NatGatewayArgs args)
public NatGateway(String name, NatGatewayArgs args, CustomResourceOptions options)
type: ucloud:NatGateway
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. NatGatewayArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. NatGatewayArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. NatGatewayArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. NatGatewayArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. NatGatewayArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var natGatewayResource = new Ucloud.NatGateway("natGatewayResource", new()
{
    EipId = "string",
    EnableWhiteList = false,
    SecurityGroup = "string",
    SubnetIds = new[]
    {
        "string",
    },
    VpcId = "string",
    Name = "string",
    NatGatewayId = "string",
    Remark = "string",
    Tag = "string",
    WhiteLists = new[]
    {
        "string",
    },
});
Copy
example, err := ucloud.NewNatGateway(ctx, "natGatewayResource", &ucloud.NatGatewayArgs{
EipId: pulumi.String("string"),
EnableWhiteList: pulumi.Bool(false),
SecurityGroup: pulumi.String("string"),
SubnetIds: pulumi.StringArray{
pulumi.String("string"),
},
VpcId: pulumi.String("string"),
Name: pulumi.String("string"),
NatGatewayId: pulumi.String("string"),
Remark: pulumi.String("string"),
Tag: pulumi.String("string"),
WhiteLists: pulumi.StringArray{
pulumi.String("string"),
},
})
Copy
var natGatewayResource = new NatGateway("natGatewayResource", NatGatewayArgs.builder()
    .eipId("string")
    .enableWhiteList(false)
    .securityGroup("string")
    .subnetIds("string")
    .vpcId("string")
    .name("string")
    .natGatewayId("string")
    .remark("string")
    .tag("string")
    .whiteLists("string")
    .build());
Copy
nat_gateway_resource = ucloud.NatGateway("natGatewayResource",
    eip_id="string",
    enable_white_list=False,
    security_group="string",
    subnet_ids=["string"],
    vpc_id="string",
    name="string",
    nat_gateway_id="string",
    remark="string",
    tag="string",
    white_lists=["string"])
Copy
const natGatewayResource = new ucloud.NatGateway("natGatewayResource", {
    eipId: "string",
    enableWhiteList: false,
    securityGroup: "string",
    subnetIds: ["string"],
    vpcId: "string",
    name: "string",
    natGatewayId: "string",
    remark: "string",
    tag: "string",
    whiteLists: ["string"],
});
Copy
type: ucloud:NatGateway
properties:
    eipId: string
    enableWhiteList: false
    name: string
    natGatewayId: string
    remark: string
    securityGroup: string
    subnetIds:
        - string
    tag: string
    vpcId: string
    whiteLists:
        - string
Copy

NatGateway Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The NatGateway resource accepts the following input properties:

EipId This property is required. string
The ID of eip associate to the Nat Gateway.
EnableWhiteList This property is required. bool
The boolean value to Controls whether or not start the whitelist mode.


SecurityGroup This property is required. string
The ID of the associated security group.
SubnetIds This property is required. List<string>
The list of subnet ID under the VPC.
VpcId This property is required. string
The ID of VPC linked to the Nat Gateway.
Name string
NatGatewayId string
The ID of the resource Nat Gateway.
Remark string
The remarks of the Nat Gateway. (Default: "").
Tag string
A tag assigned to Nat Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
WhiteLists List<string>
The white list of instance under the Nat Gateway.
EipId This property is required. string
The ID of eip associate to the Nat Gateway.
EnableWhiteList This property is required. bool
The boolean value to Controls whether or not start the whitelist mode.


SecurityGroup This property is required. string
The ID of the associated security group.
SubnetIds This property is required. []string
The list of subnet ID under the VPC.
VpcId This property is required. string
The ID of VPC linked to the Nat Gateway.
Name string
NatGatewayId string
The ID of the resource Nat Gateway.
Remark string
The remarks of the Nat Gateway. (Default: "").
Tag string
A tag assigned to Nat Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
WhiteLists []string
The white list of instance under the Nat Gateway.
eipId This property is required. String
The ID of eip associate to the Nat Gateway.
enableWhiteList This property is required. Boolean
The boolean value to Controls whether or not start the whitelist mode.


securityGroup This property is required. String
The ID of the associated security group.
subnetIds This property is required. List<String>
The list of subnet ID under the VPC.
vpcId This property is required. String
The ID of VPC linked to the Nat Gateway.
name String
natGatewayId String
The ID of the resource Nat Gateway.
remark String
The remarks of the Nat Gateway. (Default: "").
tag String
A tag assigned to Nat Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
whiteLists List<String>
The white list of instance under the Nat Gateway.
eipId This property is required. string
The ID of eip associate to the Nat Gateway.
enableWhiteList This property is required. boolean
The boolean value to Controls whether or not start the whitelist mode.


securityGroup This property is required. string
The ID of the associated security group.
subnetIds This property is required. string[]
The list of subnet ID under the VPC.
vpcId This property is required. string
The ID of VPC linked to the Nat Gateway.
name string
natGatewayId string
The ID of the resource Nat Gateway.
remark string
The remarks of the Nat Gateway. (Default: "").
tag string
A tag assigned to Nat Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
whiteLists string[]
The white list of instance under the Nat Gateway.
eip_id This property is required. str
The ID of eip associate to the Nat Gateway.
enable_white_list This property is required. bool
The boolean value to Controls whether or not start the whitelist mode.


security_group This property is required. str
The ID of the associated security group.
subnet_ids This property is required. Sequence[str]
The list of subnet ID under the VPC.
vpc_id This property is required. str
The ID of VPC linked to the Nat Gateway.
name str
nat_gateway_id str
The ID of the resource Nat Gateway.
remark str
The remarks of the Nat Gateway. (Default: "").
tag str
A tag assigned to Nat Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
white_lists Sequence[str]
The white list of instance under the Nat Gateway.
eipId This property is required. String
The ID of eip associate to the Nat Gateway.
enableWhiteList This property is required. Boolean
The boolean value to Controls whether or not start the whitelist mode.


securityGroup This property is required. String
The ID of the associated security group.
subnetIds This property is required. List<String>
The list of subnet ID under the VPC.
vpcId This property is required. String
The ID of VPC linked to the Nat Gateway.
name String
natGatewayId String
The ID of the resource Nat Gateway.
remark String
The remarks of the Nat Gateway. (Default: "").
tag String
A tag assigned to Nat Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
whiteLists List<String>
The white list of instance under the Nat Gateway.

Outputs

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

CreateTime string
The time of creation of Nat Gateway, formatted in RFC3339 time string.
Id string
The provider-assigned unique ID for this managed resource.
CreateTime string
The time of creation of Nat Gateway, formatted in RFC3339 time string.
Id string
The provider-assigned unique ID for this managed resource.
createTime String
The time of creation of Nat Gateway, formatted in RFC3339 time string.
id String
The provider-assigned unique ID for this managed resource.
createTime string
The time of creation of Nat Gateway, formatted in RFC3339 time string.
id string
The provider-assigned unique ID for this managed resource.
create_time str
The time of creation of Nat Gateway, formatted in RFC3339 time string.
id str
The provider-assigned unique ID for this managed resource.
createTime String
The time of creation of Nat Gateway, formatted in RFC3339 time string.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing NatGateway Resource

Get an existing NatGateway 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?: NatGatewayState, opts?: CustomResourceOptions): NatGateway
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        create_time: Optional[str] = None,
        eip_id: Optional[str] = None,
        enable_white_list: Optional[bool] = None,
        name: Optional[str] = None,
        nat_gateway_id: Optional[str] = None,
        remark: Optional[str] = None,
        security_group: Optional[str] = None,
        subnet_ids: Optional[Sequence[str]] = None,
        tag: Optional[str] = None,
        vpc_id: Optional[str] = None,
        white_lists: Optional[Sequence[str]] = None) -> NatGateway
func GetNatGateway(ctx *Context, name string, id IDInput, state *NatGatewayState, opts ...ResourceOption) (*NatGateway, error)
public static NatGateway Get(string name, Input<string> id, NatGatewayState? state, CustomResourceOptions? opts = null)
public static NatGateway get(String name, Output<String> id, NatGatewayState state, CustomResourceOptions options)
resources:  _:    type: ucloud:NatGateway    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
CreateTime string
The time of creation of Nat Gateway, formatted in RFC3339 time string.
EipId string
The ID of eip associate to the Nat Gateway.
EnableWhiteList bool
The boolean value to Controls whether or not start the whitelist mode.


Name string
NatGatewayId string
The ID of the resource Nat Gateway.
Remark string
The remarks of the Nat Gateway. (Default: "").
SecurityGroup string
The ID of the associated security group.
SubnetIds List<string>
The list of subnet ID under the VPC.
Tag string
A tag assigned to Nat Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
VpcId string
The ID of VPC linked to the Nat Gateway.
WhiteLists List<string>
The white list of instance under the Nat Gateway.
CreateTime string
The time of creation of Nat Gateway, formatted in RFC3339 time string.
EipId string
The ID of eip associate to the Nat Gateway.
EnableWhiteList bool
The boolean value to Controls whether or not start the whitelist mode.


Name string
NatGatewayId string
The ID of the resource Nat Gateway.
Remark string
The remarks of the Nat Gateway. (Default: "").
SecurityGroup string
The ID of the associated security group.
SubnetIds []string
The list of subnet ID under the VPC.
Tag string
A tag assigned to Nat Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
VpcId string
The ID of VPC linked to the Nat Gateway.
WhiteLists []string
The white list of instance under the Nat Gateway.
createTime String
The time of creation of Nat Gateway, formatted in RFC3339 time string.
eipId String
The ID of eip associate to the Nat Gateway.
enableWhiteList Boolean
The boolean value to Controls whether or not start the whitelist mode.


name String
natGatewayId String
The ID of the resource Nat Gateway.
remark String
The remarks of the Nat Gateway. (Default: "").
securityGroup String
The ID of the associated security group.
subnetIds List<String>
The list of subnet ID under the VPC.
tag String
A tag assigned to Nat Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
vpcId String
The ID of VPC linked to the Nat Gateway.
whiteLists List<String>
The white list of instance under the Nat Gateway.
createTime string
The time of creation of Nat Gateway, formatted in RFC3339 time string.
eipId string
The ID of eip associate to the Nat Gateway.
enableWhiteList boolean
The boolean value to Controls whether or not start the whitelist mode.


name string
natGatewayId string
The ID of the resource Nat Gateway.
remark string
The remarks of the Nat Gateway. (Default: "").
securityGroup string
The ID of the associated security group.
subnetIds string[]
The list of subnet ID under the VPC.
tag string
A tag assigned to Nat Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
vpcId string
The ID of VPC linked to the Nat Gateway.
whiteLists string[]
The white list of instance under the Nat Gateway.
create_time str
The time of creation of Nat Gateway, formatted in RFC3339 time string.
eip_id str
The ID of eip associate to the Nat Gateway.
enable_white_list bool
The boolean value to Controls whether or not start the whitelist mode.


name str
nat_gateway_id str
The ID of the resource Nat Gateway.
remark str
The remarks of the Nat Gateway. (Default: "").
security_group str
The ID of the associated security group.
subnet_ids Sequence[str]
The list of subnet ID under the VPC.
tag str
A tag assigned to Nat Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
vpc_id str
The ID of VPC linked to the Nat Gateway.
white_lists Sequence[str]
The white list of instance under the Nat Gateway.
createTime String
The time of creation of Nat Gateway, formatted in RFC3339 time string.
eipId String
The ID of eip associate to the Nat Gateway.
enableWhiteList Boolean
The boolean value to Controls whether or not start the whitelist mode.


name String
natGatewayId String
The ID of the resource Nat Gateway.
remark String
The remarks of the Nat Gateway. (Default: "").
securityGroup String
The ID of the associated security group.
subnetIds List<String>
The list of subnet ID under the VPC.
tag String
A tag assigned to Nat Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
vpcId String
The ID of VPC linked to the Nat Gateway.
whiteLists List<String>
The white list of instance under the Nat Gateway.

Import

Nat Gateway can be imported using the id, e.g.

$ pulumi import ucloud:index/natGateway:NatGateway example natgw-abc123456
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
ucloud ucloud/terraform-provider-ucloud
License
Notes
This Pulumi package is based on the ucloud Terraform Provider.