SnatEntry

Provides a snat resource.

Create a SnatEntry Resource

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:

SnatIp string

The SNAT ip address, the ip must along bandwidth package public ip which alicloud.vpc.NatGateway argument bandwidth_packages.

SnatTableId string

The value can get from alicloud.vpc.NatGateway Attributes “snat_table_ids”.

SnatEntryName string

The name of snat entry.

SourceCidr 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.

SourceVswitchId string

The vswitch ID.

SnatIp string

The SNAT ip address, the ip must along bandwidth package public ip which alicloud.vpc.NatGateway argument bandwidth_packages.

SnatTableId string

The value can get from alicloud.vpc.NatGateway Attributes “snat_table_ids”.

SnatEntryName string

The name of snat entry.

SourceCidr 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.

SourceVswitchId string

The vswitch ID.

snatIp string

The SNAT ip address, the ip must along bandwidth package public ip which alicloud.vpc.NatGateway argument bandwidth_packages.

snatTableId string

The value can get from alicloud.vpc.NatGateway Attributes “snat_table_ids”.

snatEntryName string

The name of snat entry.

sourceCidr 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.

sourceVswitchId string

The vswitch ID.

snat_ip str

The SNAT ip address, the ip must along bandwidth package public ip which alicloud.vpc.NatGateway argument bandwidth_packages.

snat_table_id str

The value can get from alicloud.vpc.NatGateway Attributes “snat_table_ids”.

snat_entry_name str

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_id str

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.
SnatEntryId string

The id of the snat entry on the server.

Id string
The provider-assigned unique ID for this managed resource.
SnatEntryId string

The id of the snat entry on the server.

id string
The provider-assigned unique ID for this managed resource.
snatEntryId string

The id of the snat entry on the server.

id str
The provider-assigned unique ID for this managed resource.
snat_entry_id str

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): SnatEntry
static 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:

SnatEntryId string

The id of the snat entry on the server.

SnatEntryName string

The name of snat entry.

SnatIp string

The SNAT ip address, the ip must along bandwidth package public ip which alicloud.vpc.NatGateway argument bandwidth_packages.

SnatTableId string

The value can get from alicloud.vpc.NatGateway Attributes “snat_table_ids”.

SourceCidr 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.

SourceVswitchId string

The vswitch ID.

SnatEntryId string

The id of the snat entry on the server.

SnatEntryName string

The name of snat entry.

SnatIp string

The SNAT ip address, the ip must along bandwidth package public ip which alicloud.vpc.NatGateway argument bandwidth_packages.

SnatTableId string

The value can get from alicloud.vpc.NatGateway Attributes “snat_table_ids”.

SourceCidr 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.

SourceVswitchId string

The vswitch ID.

snatEntryId string

The id of the snat entry on the server.

snatEntryName string

The name of snat entry.

snatIp string

The SNAT ip address, the ip must along bandwidth package public ip which alicloud.vpc.NatGateway argument bandwidth_packages.

snatTableId string

The value can get from alicloud.vpc.NatGateway Attributes “snat_table_ids”.

sourceCidr 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.

sourceVswitchId string

The vswitch ID.

snat_entry_id str

The id of the snat entry on the server.

snat_entry_name str

The name of snat entry.

snat_ip str

The SNAT ip address, the ip must along bandwidth package public ip which alicloud.vpc.NatGateway argument bandwidth_packages.

snat_table_id str

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_id str

The vswitch ID.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.