Skip to content

SnatEntryProps

Properties for defining a SnatEntry.

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

Initializer

import { SnatEntryProps } from '@alicloud/ros-cdk-vpc'
const snatEntryProps: SnatEntryProps = { ... }

Properties

Name Type Description
snatIp string | @alicloud/ros-cdk-core.IResolvable Property snatIp: The public IP address.
snatTableId string | @alicloud/ros-cdk-core.IResolvable Property snatTableId: The ID of the SNAT table.
eipAffinity number | @alicloud/ros-cdk-core.IResolvable Property eipAffinity: Specifies whether to enable EIP affinity.
snatEntryName string | @alicloud/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:\/\/.
sourceCidr string | @alicloud/ros-cdk-core.IResolvable Property sourceCidr: Specifies the network segment of the switch.
sourceVSwitchIds @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] Property sourceVSwitchIds: The ID of the VSwitch to access the Internet.

snatIpRequired

public readonly snatIp: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property snatIp: The public IP address.

Separate multiple EIPs with commas.


snatTableIdRequired

public readonly snatTableId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property snatTableId: The ID of the SNAT table.


eipAffinityOptional

public readonly eipAffinity: number | IResolvable;
  • Type: number | @alicloud/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.


snatEntryNameOptional

public readonly snatEntryName: string | IResolvable;
  • Type: string | @alicloud/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:\/\/.


sourceCidrOptional

public readonly sourceCidr: string | IResolvable;
  • Type: string | @alicloud/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.


sourceVSwitchIdsOptional

public readonly sourceVSwitchIds: IResolvable | string | IResolvable[];
  • Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]

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