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),
});
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)
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
})
}
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),
});
});
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());
}
}
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
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 string
- The unique name of the resource.
- args NatGatewayArgs
- 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 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 string
- The unique name of the resource.
- args NatGatewayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NatGatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
},
});
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"),
},
})
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());
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"])
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"],
});
type: ucloud:NatGateway
properties:
eipId: string
enableWhiteList: false
name: string
natGatewayId: string
remark: string
securityGroup: string
subnetIds:
- string
tag: string
vpcId: string
whiteLists:
- string
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:
- Eip
Id string - The ID of eip associate to the Nat Gateway.
- Enable
White boolList - The boolean value to Controls whether or not start the whitelist mode.
- Security
Group string - The ID of the associated security group.
- Subnet
Ids List<string> - The list of subnet ID under the VPC.
- Vpc
Id string - The ID of VPC linked to the Nat Gateway.
- Name string
- Nat
Gateway stringId - 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
). - White
Lists List<string> - The white list of instance under the Nat Gateway.
- Eip
Id string - The ID of eip associate to the Nat Gateway.
- Enable
White boolList - The boolean value to Controls whether or not start the whitelist mode.
- Security
Group string - The ID of the associated security group.
- Subnet
Ids []string - The list of subnet ID under the VPC.
- Vpc
Id string - The ID of VPC linked to the Nat Gateway.
- Name string
- Nat
Gateway stringId - 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
). - White
Lists []string - The white list of instance under the Nat Gateway.
- eip
Id String - The ID of eip associate to the Nat Gateway.
- enable
White BooleanList - The boolean value to Controls whether or not start the whitelist mode.
- security
Group String - The ID of the associated security group.
- subnet
Ids List<String> - The list of subnet ID under the VPC.
- vpc
Id String - The ID of VPC linked to the Nat Gateway.
- name String
- nat
Gateway StringId - 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
). - white
Lists List<String> - The white list of instance under the Nat Gateway.
- eip
Id string - The ID of eip associate to the Nat Gateway.
- enable
White booleanList - The boolean value to Controls whether or not start the whitelist mode.
- security
Group string - The ID of the associated security group.
- subnet
Ids string[] - The list of subnet ID under the VPC.
- vpc
Id string - The ID of VPC linked to the Nat Gateway.
- name string
- nat
Gateway stringId - 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
). - white
Lists string[] - The white list of instance under the Nat Gateway.
- eip_
id str - The ID of eip associate to the Nat Gateway.
- enable_
white_ boollist - The boolean value to Controls whether or not start the whitelist mode.
- security_
group str - The ID of the associated security group.
- subnet_
ids Sequence[str] - The list of subnet ID under the VPC.
- vpc_
id str - The ID of VPC linked to the Nat Gateway.
- name str
- nat_
gateway_ strid - 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.
- eip
Id String - The ID of eip associate to the Nat Gateway.
- enable
White BooleanList - The boolean value to Controls whether or not start the whitelist mode.
- security
Group String - The ID of the associated security group.
- subnet
Ids List<String> - The list of subnet ID under the VPC.
- vpc
Id String - The ID of VPC linked to the Nat Gateway.
- name String
- nat
Gateway StringId - 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
). - white
Lists 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:
- Create
Time 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 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 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 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.
- create
Time 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
- 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.
- Create
Time string - The time of creation of Nat Gateway, formatted in RFC3339 time string.
- Eip
Id string - The ID of eip associate to the Nat Gateway.
- Enable
White boolList - The boolean value to Controls whether or not start the whitelist mode.
- Name string
- Nat
Gateway stringId - The ID of the resource Nat Gateway.
- Remark string
- The remarks of the Nat Gateway. (Default:
""
). - Security
Group string - The ID of the associated security group.
- Subnet
Ids 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
). - Vpc
Id string - The ID of VPC linked to the Nat Gateway.
- White
Lists List<string> - The white list of instance under the Nat Gateway.
- Create
Time string - The time of creation of Nat Gateway, formatted in RFC3339 time string.
- Eip
Id string - The ID of eip associate to the Nat Gateway.
- Enable
White boolList - The boolean value to Controls whether or not start the whitelist mode.
- Name string
- Nat
Gateway stringId - The ID of the resource Nat Gateway.
- Remark string
- The remarks of the Nat Gateway. (Default:
""
). - Security
Group string - The ID of the associated security group.
- Subnet
Ids []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
). - Vpc
Id string - The ID of VPC linked to the Nat Gateway.
- White
Lists []string - The white list of instance under the Nat Gateway.
- create
Time String - The time of creation of Nat Gateway, formatted in RFC3339 time string.
- eip
Id String - The ID of eip associate to the Nat Gateway.
- enable
White BooleanList - The boolean value to Controls whether or not start the whitelist mode.
- name String
- nat
Gateway StringId - The ID of the resource Nat Gateway.
- remark String
- The remarks of the Nat Gateway. (Default:
""
). - security
Group String - The ID of the associated security group.
- subnet
Ids 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
). - vpc
Id String - The ID of VPC linked to the Nat Gateway.
- white
Lists List<String> - The white list of instance under the Nat Gateway.
- create
Time string - The time of creation of Nat Gateway, formatted in RFC3339 time string.
- eip
Id string - The ID of eip associate to the Nat Gateway.
- enable
White booleanList - The boolean value to Controls whether or not start the whitelist mode.
- name string
- nat
Gateway stringId - The ID of the resource Nat Gateway.
- remark string
- The remarks of the Nat Gateway. (Default:
""
). - security
Group string - The ID of the associated security group.
- subnet
Ids 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
). - vpc
Id string - The ID of VPC linked to the Nat Gateway.
- white
Lists 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_ boollist - The boolean value to Controls whether or not start the whitelist mode.
- name str
- nat_
gateway_ strid - 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.
- create
Time String - The time of creation of Nat Gateway, formatted in RFC3339 time string.
- eip
Id String - The ID of eip associate to the Nat Gateway.
- enable
White BooleanList - The boolean value to Controls whether or not start the whitelist mode.
- name String
- nat
Gateway StringId - The ID of the resource Nat Gateway.
- remark String
- The remarks of the Nat Gateway. (Default:
""
). - security
Group String - The ID of the associated security group.
- subnet
Ids 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
). - vpc
Id String - The ID of VPC linked to the Nat Gateway.
- white
Lists 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
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.