Skip to content

SnatEntryProps

Properties for defining a SnatEntry.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-vpc-snatentry

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkvpc"
&alicloudroscdkvpc.SnatEntryProps {
    SnatIp: interface{},
    SnatTableId: interface{},
    EipAffinity: interface{},
    SnatEntryName: interface{},
    SourceCidr: interface{},
    SourceVSwitchIds: interface{},
}

Properties

Name Type Description
SnatIp interface{} Property snatIp: The public IP address.
SnatTableId interface{} Property snatTableId: The ID of the SNAT table.
EipAffinity interface{} Property eipAffinity: Specifies whether to enable EIP affinity.
SnatEntryName interface{} Property snatEntryName: he name of the SNAT rule is 2-128 characters long and must start with a letter or Chinese, but cannot begin with HTTP:\/\/ or https:\/\/.
SourceCidr interface{} Property sourceCidr: Specifies the network segment of the switch.
SourceVSwitchIds interface{} Property sourceVSwitchIds: The ID of the VSwitch to access the Internet.

SnatIpRequired

SnatIp interface{}
  • Type: interface{}

Property snatIp: The public IP address.

Separate multiple EIPs with commas.


SnatTableIdRequired

SnatTableId interface{}
  • Type: interface{}

Property snatTableId: The ID of the SNAT table.


EipAffinityOptional

EipAffinity interface{}
  • Type: interface{}

Property eipAffinity: Specifies whether to enable EIP affinity.

Valid values: 0: no 1: yes If EIP affinity is enabled and the SNAT entry is associated with multiple EIPs, a client uses the same EIP to access the Internet. Otherwise, the client uses an EIP selected from the associated EIPs to access the Internet.


SnatEntryNameOptional

SnatEntryName interface{}
  • Type: interface{}

Property snatEntryName: he name of the SNAT rule is 2-128 characters long and must start with a letter or Chinese, but cannot begin with HTTP:\/\/ or https:\/\/.


SourceCidrOptional

SourceCidr interface{}
  • Type: interface{}

Property sourceCidr: Specifies the network segment of the switch.

For example, 10.0.0.1/24. This parameter and the SourceVSwtichId parameter are mutually exclusive and cannot appear at the same time.


SourceVSwitchIdsOptional

SourceVSwitchIds interface{}
  • Type: interface{}

Property sourceVSwitchIds: The ID of the VSwitch to access the Internet.