Skip to content

EIPAssociationProps

Properties for defining a EIPAssociation.

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

Initializer

import com.aliyun.ros.cdk.vpc.EIPAssociationProps;
EIPAssociationProps.builder()
    .allocationId(java.lang.String)
    .allocationId(IResolvable)
    .instanceId(java.lang.String)
    .instanceId(IResolvable)
//  .mode(java.lang.String)
//  .mode(IResolvable)
//  .privateIpAddress(java.lang.String)
//  .privateIpAddress(IResolvable)
    .build();

Properties

Name Type Description
allocationId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property allocationId: EIP instance id to bind.
instanceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceId: ECS\/SLB\/NAT\/HaVip\/ENI instance id to bid the EIP.
mode java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property mode: The mode of association.
privateIpAddress java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property privateIpAddress: An IP address in the CIDR block of the VSwitch.

allocationIdRequired

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

Property allocationId: EIP instance id to bind.


instanceIdRequired

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

Property instanceId: ECS\/SLB\/NAT\/HaVip\/ENI instance id to bid the EIP.


modeOptional

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

Property mode: The mode of association.

Valid values: NAT(Default): NAT mode. BINDED: Cut-through mode. MULTI_BINDED: Multi-EIP to ENI mode. This is required only when the value of InstanceType is NetworkInterface.


privateIpAddressOptional

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

Property privateIpAddress: An IP address in the CIDR block of the VSwitch.

If you leave the option empty, the system allocates a private IP address according to the VPC ID and VSwitch ID.