AnycastEIPAssociationProps
Properties for defining a AnycastEIPAssociation.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-vpc-anycasteipassociation
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkvpc"
&alicloudroscdkvpc.AnycastEIPAssociationProps {
AnycastId: interface{},
BindInstanceId: interface{},
BindInstanceRegionId: interface{},
BindInstanceType: interface{},
AssociationMode: interface{},
PopLocations: interface{},
PrivateIpAddress: interface{},
}
Properties
| Name | Type | Description |
|---|---|---|
AnycastId | interface{} | Property anycastId: Anycast EIP instance ID. |
BindInstanceId | interface{} | Property bindInstanceId: The ID of the cloud resource instance to be bound. |
BindInstanceRegionId | interface{} | Property bindInstanceRegionId: The region ID of the cloud resource instance to be bound. |
BindInstanceType | interface{} | Property bindInstanceType: The type of the cloud resource with which you want to associate the Anycast EIP. |
AssociationMode | interface{} | Property associationMode: The association mode. |
PopLocations | interface{} | Property popLocations: The pop locations. |
PrivateIpAddress | interface{} | Property privateIpAddress: The secondary private IP address of the ENI. |
AnycastIdRequired
AnycastId interface{}
- Type: interface{}
Property anycastId: Anycast EIP instance ID.
BindInstanceIdRequired
BindInstanceId interface{}
- Type: interface{}
Property bindInstanceId: The ID of the cloud resource instance to be bound.
BindInstanceRegionIdRequired
BindInstanceRegionId interface{}
- Type: interface{}
Property bindInstanceRegionId: The region ID of the cloud resource instance to be bound.
BindInstanceTypeRequired
BindInstanceType interface{}
- Type: interface{}
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
AssociationMode interface{}
- Type: interface{}
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
PopLocations interface{}
- Type: interface{}
Property popLocations: The pop locations.
PrivateIpAddressOptional
PrivateIpAddress interface{}
- Type: interface{}
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.