Skip to content

SnatEntryProps

Properties for defining a SnatEntry.

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

Initializer

import com.aliyun.ros.cdk.vpc.SnatEntryProps;
SnatEntryProps.builder()
    .snatIp(java.lang.String)
    .snatIp(IResolvable)
    .snatTableId(java.lang.String)
    .snatTableId(IResolvable)
//  .eipAffinity(java.lang.Number)
//  .eipAffinity(IResolvable)
//  .snatEntryName(java.lang.String)
//  .snatEntryName(IResolvable)
//  .sourceCidr(java.lang.String)
//  .sourceCidr(IResolvable)
//  .sourceVSwitchIds(IResolvable)
//  .sourceVSwitchIds(java.util.List<java.lang.String)
//  .sourceVSwitchIds(IResolvable>)
    .build();

Properties

Name Type Description
snatIp java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property snatIp: The public IP address.
snatTableId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property snatTableId: The ID of the SNAT table.
eipAffinity java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property eipAffinity: Specifies whether to enable EIP affinity.
snatEntryName java.lang.String OR com.aliyun.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 java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property sourceCidr: Specifies the network segment of the switch.
sourceVSwitchIds com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property sourceVSwitchIds: The ID of the VSwitch to access the Internet.

snatIpRequired

public java.lang.Object getSnatIp();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property snatIp: The public IP address.

Separate multiple EIPs with commas.


snatTableIdRequired

public java.lang.Object getSnatTableId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property snatTableId: The ID of the SNAT table.


eipAffinityOptional

public java.lang.Object getEipAffinity();
  • Type: java.lang.Number OR com.aliyun.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 java.lang.Object getSnatEntryName();
  • Type: java.lang.String OR com.aliyun.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 java.lang.Object getSourceCidr();
  • Type: java.lang.String OR com.aliyun.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 java.lang.Object getSourceVSwitchIds();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

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