alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

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:

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.

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.

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.

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.

Status string

(Available in 1.119.1+) The status of snat entry.

Id string

The provider-assigned unique ID for this managed resource.

SnatEntryId string

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.

snatEntryId String

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.

snatEntryId string

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

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.

snatEntryId String

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

Status string

(Available in 1.119.1+) The status of snat entry.

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.

Status string

(Available in 1.119.1+) The status of snat entry.

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.

status String

(Available in 1.119.1+) The status of snat entry.

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.

status string

(Available in 1.119.1+) The status of snat entry.

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.

status str

(Available in 1.119.1+) The status of snat entry.

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.

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.