SnatEntryProps
Properties for defining a SnatEntry.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-vpc-snatentry
Initializer
import ros_cdk_vpc
ros_cdk_vpc.SnatEntryProps(
snat_ip: typing.Union[str, IResolvable],
snat_table_id: typing.Union[str, IResolvable],
eip_affinity: typing.Union[typing.Union[int, float], IResolvable] = None,
snat_entry_name: typing.Union[str, IResolvable] = None,
source_cidr: typing.Union[str, IResolvable] = None,
source_v_switch_ids: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]] = None
)
Properties
| Name | Type | Description |
|---|---|---|
snat_ip |
typing.Union[str, ros_cdk_core.IResolvable] |
Property snatIp: The public IP address. |
snat_table_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property snatTableId: The ID of the SNAT table. |
eip_affinity |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property eipAffinity: Specifies whether to enable EIP affinity. |
snat_entry_name |
typing.Union[str, ros_cdk_core.IResolvable] |
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:\/\/. |
source_cidr |
typing.Union[str, ros_cdk_core.IResolvable] |
Property sourceCidr: Specifies the network segment of the switch. |
source_v_switch_ids |
typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] |
Property sourceVSwitchIds: The ID of the VSwitch to access the Internet. |
snat_ipRequired
snat_ip: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property snatIp: The public IP address.
Separate multiple EIPs with commas.
snat_table_idRequired
snat_table_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property snatTableId: The ID of the SNAT table.
eip_affinityOptional
eip_affinity: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
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.
snat_entry_nameOptional
snat_entry_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
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:\/\/.
source_cidrOptional
source_cidr: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
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.
source_v_switch_idsOptional
source_v_switch_ids: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]]
Property sourceVSwitchIds: The ID of the VSwitch to access the Internet.