AnycastEIPAssociationProps
Properties for defining a AnycastEIPAssociation.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-vpc-anycasteipassociation
Initializer
import com.aliyun.ros.cdk.vpc.AnycastEIPAssociationProps;
AnycastEIPAssociationProps.builder()
.anycastId(java.lang.String)
.anycastId(IResolvable)
.bindInstanceId(java.lang.String)
.bindInstanceId(IResolvable)
.bindInstanceRegionId(java.lang.String)
.bindInstanceRegionId(IResolvable)
.bindInstanceType(java.lang.String)
.bindInstanceType(IResolvable)
// .associationMode(java.lang.String)
// .associationMode(IResolvable)
// .popLocations(IResolvable)
// .popLocations(java.util.List<IResolvable)
// .popLocations(PopLocationsProperty>)
// .privateIpAddress(java.lang.String)
// .privateIpAddress(IResolvable)
.build();
Properties
| Name | Type | Description |
|---|---|---|
anycastId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property anycastId: Anycast EIP instance ID. |
bindInstanceId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property bindInstanceId: The ID of the cloud resource instance to be bound. |
bindInstanceRegionId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property bindInstanceRegionId: The region ID of the cloud resource instance to be bound. |
bindInstanceType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property bindInstanceType: The type of the cloud resource with which you want to associate the Anycast EIP. |
associationMode | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property associationMode: The association mode. |
popLocations | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property popLocations: The pop locations. |
privateIpAddress | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property privateIpAddress: The secondary private IP address of the ENI. |
anycastIdRequired
public java.lang.Object getAnycastId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property anycastId: Anycast EIP instance ID.
bindInstanceIdRequired
public java.lang.Object getBindInstanceId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property bindInstanceId: The ID of the cloud resource instance to be bound.
bindInstanceRegionIdRequired
public java.lang.Object getBindInstanceRegionId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property bindInstanceRegionId: The region ID of the cloud resource instance to be bound.
bindInstanceTypeRequired
public java.lang.Object getBindInstanceType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property bindInstanceType: The type of the cloud resource with which you want to associate the Anycast EIP.
Valid values:
- SlbInstance: CLB instance in a virtual private cloud (VPC).
- NetworkInterface: ENI.
associationModeOptional
public java.lang.Object getAssociationMode();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property associationMode: The association mode.
Valid values:
- Default: the default mode. In this mode, the associated cloud resource is the default origin server.
- Normal: the normal mode. In this mode, the associated cloud resource is a normal origin server.
An Anycast EIP can be associated with cloud resources in multiple regions. However, you can specify only one default origin server and multiple normal origin servers. When you do not specify an access point or add a new access point, requests are forwarded to the default origin server by default.
- If this is your first time to associate a cloud resource with the Anycast EIP, the association mode is Default by default.
- If this is not your first time to associate a cloud resource with the Anycast EIP, you can set the association mode to Default. This makes the new cloud resource the default origin server, and the original default origin server becomes a normal origin server.
popLocationsOptional
public java.lang.Object getPopLocations();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
PopLocationsProperty>
Property popLocations: The pop locations.
privateIpAddressOptional
public java.lang.Object getPrivateIpAddress();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property privateIpAddress: The secondary private IP address of the ENI.
This parameter is required when BindInstanceType is set to NetworkInterface. If you do not specify this parameter, the primary private IP address of the ENI is used.