alicloud.vpc.SnatEntry
Provides a snat resource.
Create SnatEntry Resource
new SnatEntry(name: string, args: SnatEntryArgs, opts?: CustomResourceOptions);
@overload
def SnatEntry(resource_name: str,
opts: Optional[ResourceOptions] = None,
snat_entry_name: Optional[str] = None,
snat_ip: Optional[str] = None,
snat_table_id: Optional[str] = None,
source_cidr: Optional[str] = None,
source_vswitch_id: Optional[str] = None)
@overload
def SnatEntry(resource_name: str,
args: SnatEntryArgs,
opts: Optional[ResourceOptions] = None)
func NewSnatEntry(ctx *Context, name string, args SnatEntryArgs, opts ...ResourceOption) (*SnatEntry, error)
public SnatEntry(string name, SnatEntryArgs args, CustomResourceOptions? opts = null)
public SnatEntry(String name, SnatEntryArgs args)
public SnatEntry(String name, SnatEntryArgs args, CustomResourceOptions options)
type: alicloud:vpc:SnatEntry
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SnatEntryArgs
- 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 SnatEntryArgs
- 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 SnatEntryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SnatEntryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SnatEntryArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
SnatEntry 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 SnatEntry resource accepts the following input properties:
- Snat
Ip string The SNAT ip address, the ip must along bandwidth package public ip which
alicloud.vpc.NatGateway
argumentbandwidth_packages
.- Snat
Table stringId The value can get from
alicloud.vpc.NatGateway
Attributes "snat_table_ids".- Snat
Entry stringName The name of snat entry.
- Source
Cidr string The private network segment of Ecs. This parameter and the
source_vswitch_id
parameter are mutually exclusive and cannot appear at the same time.- Source
Vswitch stringId The vswitch ID.
- Snat
Ip string The SNAT ip address, the ip must along bandwidth package public ip which
alicloud.vpc.NatGateway
argumentbandwidth_packages
.- Snat
Table stringId The value can get from
alicloud.vpc.NatGateway
Attributes "snat_table_ids".- Snat
Entry stringName The name of snat entry.
- Source
Cidr string The private network segment of Ecs. This parameter and the
source_vswitch_id
parameter are mutually exclusive and cannot appear at the same time.- Source
Vswitch stringId The vswitch ID.
- snat
Ip String The SNAT ip address, the ip must along bandwidth package public ip which
alicloud.vpc.NatGateway
argumentbandwidth_packages
.- snat
Table StringId The value can get from
alicloud.vpc.NatGateway
Attributes "snat_table_ids".- snat
Entry StringName The name of snat entry.
- source
Cidr String The private network segment of Ecs. This parameter and the
source_vswitch_id
parameter are mutually exclusive and cannot appear at the same time.- source
Vswitch StringId The vswitch ID.
- snat
Ip string The SNAT ip address, the ip must along bandwidth package public ip which
alicloud.vpc.NatGateway
argumentbandwidth_packages
.- snat
Table stringId The value can get from
alicloud.vpc.NatGateway
Attributes "snat_table_ids".- snat
Entry stringName The name of snat entry.
- source
Cidr string The private network segment of Ecs. This parameter and the
source_vswitch_id
parameter are mutually exclusive and cannot appear at the same time.- source
Vswitch stringId The vswitch ID.
- snat_
ip str The SNAT ip address, the ip must along bandwidth package public ip which
alicloud.vpc.NatGateway
argumentbandwidth_packages
.- snat_
table_ strid The value can get from
alicloud.vpc.NatGateway
Attributes "snat_table_ids".- snat_
entry_ strname The name of snat entry.
- source_
cidr str The private network segment of Ecs. This parameter and the
source_vswitch_id
parameter are mutually exclusive and cannot appear at the same time.- source_
vswitch_ strid The vswitch ID.
- snat
Ip String The SNAT ip address, the ip must along bandwidth package public ip which
alicloud.vpc.NatGateway
argumentbandwidth_packages
.- snat
Table StringId The value can get from
alicloud.vpc.NatGateway
Attributes "snat_table_ids".- snat
Entry StringName The name of snat entry.
- source
Cidr String The private network segment of Ecs. This parameter and the
source_vswitch_id
parameter are mutually exclusive and cannot appear at the same time.- source
Vswitch StringId The vswitch ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the SnatEntry resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Snat
Entry stringId The id of the snat entry on the server.
- Status string
(Available in 1.119.1+) The status of snat entry.
- Id string
The provider-assigned unique ID for this managed resource.
- Snat
Entry stringId The id of the snat entry on the server.
- Status string
(Available in 1.119.1+) The status of snat entry.
- id String
The provider-assigned unique ID for this managed resource.
- snat
Entry StringId The id of the snat entry on the server.
- status String
(Available in 1.119.1+) The status of snat entry.
- id string
The provider-assigned unique ID for this managed resource.
- snat
Entry stringId The id of the snat entry on the server.
- status string
(Available in 1.119.1+) The status of snat entry.
- id str
The provider-assigned unique ID for this managed resource.
- snat_
entry_ strid The id of the snat entry on the server.
- status str
(Available in 1.119.1+) The status of snat entry.
- id String
The provider-assigned unique ID for this managed resource.
- snat
Entry StringId The id of the snat entry on the server.
- status String
(Available in 1.119.1+) The status of snat entry.
Look up Existing SnatEntry Resource
Get an existing SnatEntry 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?: SnatEntryState, opts?: CustomResourceOptions): SnatEntry
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
snat_entry_id: Optional[str] = None,
snat_entry_name: Optional[str] = None,
snat_ip: Optional[str] = None,
snat_table_id: Optional[str] = None,
source_cidr: Optional[str] = None,
source_vswitch_id: Optional[str] = None,
status: Optional[str] = None) -> SnatEntry
func GetSnatEntry(ctx *Context, name string, id IDInput, state *SnatEntryState, opts ...ResourceOption) (*SnatEntry, error)
public static SnatEntry Get(string name, Input<string> id, SnatEntryState? state, CustomResourceOptions? opts = null)
public static SnatEntry get(String name, Output<String> id, SnatEntryState 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.
- Snat
Entry stringId The id of the snat entry on the server.
- Snat
Entry stringName The name of snat entry.
- Snat
Ip string The SNAT ip address, the ip must along bandwidth package public ip which
alicloud.vpc.NatGateway
argumentbandwidth_packages
.- Snat
Table stringId The value can get from
alicloud.vpc.NatGateway
Attributes "snat_table_ids".- Source
Cidr string The private network segment of Ecs. This parameter and the
source_vswitch_id
parameter are mutually exclusive and cannot appear at the same time.- Source
Vswitch stringId The vswitch ID.
- Status string
(Available in 1.119.1+) The status of snat entry.
- Snat
Entry stringId The id of the snat entry on the server.
- Snat
Entry stringName The name of snat entry.
- Snat
Ip string The SNAT ip address, the ip must along bandwidth package public ip which
alicloud.vpc.NatGateway
argumentbandwidth_packages
.- Snat
Table stringId The value can get from
alicloud.vpc.NatGateway
Attributes "snat_table_ids".- Source
Cidr string The private network segment of Ecs. This parameter and the
source_vswitch_id
parameter are mutually exclusive and cannot appear at the same time.- Source
Vswitch stringId The vswitch ID.
- Status string
(Available in 1.119.1+) The status of snat entry.
- snat
Entry StringId The id of the snat entry on the server.
- snat
Entry StringName The name of snat entry.
- snat
Ip String The SNAT ip address, the ip must along bandwidth package public ip which
alicloud.vpc.NatGateway
argumentbandwidth_packages
.- snat
Table StringId The value can get from
alicloud.vpc.NatGateway
Attributes "snat_table_ids".- source
Cidr String The private network segment of Ecs. This parameter and the
source_vswitch_id
parameter are mutually exclusive and cannot appear at the same time.- source
Vswitch StringId The vswitch ID.
- status String
(Available in 1.119.1+) The status of snat entry.
- snat
Entry stringId The id of the snat entry on the server.
- snat
Entry stringName The name of snat entry.
- snat
Ip string The SNAT ip address, the ip must along bandwidth package public ip which
alicloud.vpc.NatGateway
argumentbandwidth_packages
.- snat
Table stringId The value can get from
alicloud.vpc.NatGateway
Attributes "snat_table_ids".- source
Cidr string The private network segment of Ecs. This parameter and the
source_vswitch_id
parameter are mutually exclusive and cannot appear at the same time.- source
Vswitch stringId The vswitch ID.
- status string
(Available in 1.119.1+) The status of snat entry.
- snat_
entry_ strid The id of the snat entry on the server.
- snat_
entry_ strname The name of snat entry.
- snat_
ip str The SNAT ip address, the ip must along bandwidth package public ip which
alicloud.vpc.NatGateway
argumentbandwidth_packages
.- snat_
table_ strid The value can get from
alicloud.vpc.NatGateway
Attributes "snat_table_ids".- source_
cidr str The private network segment of Ecs. This parameter and the
source_vswitch_id
parameter are mutually exclusive and cannot appear at the same time.- source_
vswitch_ strid The vswitch ID.
- status str
(Available in 1.119.1+) The status of snat entry.
- snat
Entry StringId The id of the snat entry on the server.
- snat
Entry StringName The name of snat entry.
- snat
Ip String The SNAT ip address, the ip must along bandwidth package public ip which
alicloud.vpc.NatGateway
argumentbandwidth_packages
.- snat
Table StringId The value can get from
alicloud.vpc.NatGateway
Attributes "snat_table_ids".- source
Cidr String The private network segment of Ecs. This parameter and the
source_vswitch_id
parameter are mutually exclusive and cannot appear at the same time.- source
Vswitch StringId The vswitch ID.
- status String
(Available in 1.119.1+) The status of snat entry.
Import
Snat Entry can be imported using the id, e.g.
$ pulumi import alicloud:vpc/snatEntry:SnatEntry foo stb-1aece3:snat-232ce2
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.