SnatEntry
Provides a snat resource.
Create a SnatEntry Resource
new SnatEntry(name: string, args: SnatEntryArgs, opts?: CustomResourceOptions);def SnatEntry(resource_name, opts=None, snat_entry_name=None, snat_ip=None, snat_table_id=None, source_cidr=None, source_vswitch_id=None, __props__=None);func NewSnatEntry(ctx *Context, name string, args SnatEntryArgs, opts ...ResourceOption) (*SnatEntry, error)public SnatEntry(string name, SnatEntryArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
SnatEntry Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model 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.NatGatewayargumentbandwidth_packages.- Snat
Table stringId The value can get from
alicloud.vpc.NatGatewayAttributes “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_idparameter 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.NatGatewayargumentbandwidth_packages.- Snat
Table stringId The value can get from
alicloud.vpc.NatGatewayAttributes “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_idparameter 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.NatGatewayargumentbandwidth_packages.- snat
Table stringId The value can get from
alicloud.vpc.NatGatewayAttributes “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_idparameter 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.NatGatewayargumentbandwidth_packages.- snat_
table_ strid The value can get from
alicloud.vpc.NatGatewayAttributes “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_idparameter are mutually exclusive and cannot appear at the same time.- source_
vswitch_ strid 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- Snat
Entry stringId The id of the snat entry on the server.
- id string
- The provider-assigned unique ID for this managed resource.
- snat
Entry stringId The id of the snat entry on the server.
- id str
- The provider-assigned unique ID for this managed resource.
- snat_
entry_ strid The id of the snat entry on the server.
Look up an 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): SnatEntrystatic get(resource_name, id, opts=None, snat_entry_id=None, snat_entry_name=None, snat_ip=None, snat_table_id=None, source_cidr=None, source_vswitch_id=None, __props__=None);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)- 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.
The following state arguments are supported:
- 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.NatGatewayargumentbandwidth_packages.- Snat
Table stringId The value can get from
alicloud.vpc.NatGatewayAttributes “snat_table_ids”.- Source
Cidr string The private network segment of Ecs. This parameter and the
source_vswitch_idparameter are mutually exclusive and cannot appear at the same time.- Source
Vswitch stringId The vswitch ID.
- 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.NatGatewayargumentbandwidth_packages.- Snat
Table stringId The value can get from
alicloud.vpc.NatGatewayAttributes “snat_table_ids”.- Source
Cidr string The private network segment of Ecs. This parameter and the
source_vswitch_idparameter are mutually exclusive and cannot appear at the same time.- Source
Vswitch stringId The vswitch ID.
- 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.NatGatewayargumentbandwidth_packages.- snat
Table stringId The value can get from
alicloud.vpc.NatGatewayAttributes “snat_table_ids”.- source
Cidr string The private network segment of Ecs. This parameter and the
source_vswitch_idparameter are mutually exclusive and cannot appear at the same time.- source
Vswitch stringId The vswitch ID.
- 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.NatGatewayargumentbandwidth_packages.- snat_
table_ strid The value can get from
alicloud.vpc.NatGatewayAttributes “snat_table_ids”.- source_
cidr str The private network segment of Ecs. This parameter and the
source_vswitch_idparameter are mutually exclusive and cannot appear at the same time.- source_
vswitch_ strid The vswitch ID.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.