Skip to content

AnycastEIPAssociationProps

Properties for defining a AnycastEIPAssociation.

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

Initializer

import ros_cdk_vpc
ros_cdk_vpc.AnycastEIPAssociationProps(
  anycast_id: typing.Union[str, IResolvable],
  bind_instance_id: typing.Union[str, IResolvable],
  bind_instance_region_id: typing.Union[str, IResolvable],
  bind_instance_type: typing.Union[str, IResolvable],
  association_mode: typing.Union[str, IResolvable] = None,
  pop_locations: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, PopLocationsProperty]]] = None,
  private_ip_address: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
anycast_id typing.Union[str, ros_cdk_core.IResolvable] Property anycastId: Anycast EIP instance ID.
bind_instance_id typing.Union[str, ros_cdk_core.IResolvable] Property bindInstanceId: The ID of the cloud resource instance to be bound.
bind_instance_region_id typing.Union[str, ros_cdk_core.IResolvable] Property bindInstanceRegionId: The region ID of the cloud resource instance to be bound.
bind_instance_type typing.Union[str, ros_cdk_core.IResolvable] Property bindInstanceType: The type of the cloud resource with which you want to associate the Anycast EIP.
association_mode typing.Union[str, ros_cdk_core.IResolvable] Property associationMode: The association mode.
pop_locations typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, PopLocationsProperty]]] Property popLocations: The pop locations.
private_ip_address typing.Union[str, ros_cdk_core.IResolvable] Property privateIpAddress: The secondary private IP address of the ENI.

anycast_idRequired

anycast_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property anycastId: Anycast EIP instance ID.


bind_instance_idRequired

bind_instance_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property bindInstanceId: The ID of the cloud resource instance to be bound.


bind_instance_region_idRequired

bind_instance_region_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property bindInstanceRegionId: The region ID of the cloud resource instance to be bound.


bind_instance_typeRequired

bind_instance_type: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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.

association_modeOptional

association_mode: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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.

pop_locationsOptional

pop_locations: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, PopLocationsProperty]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, PopLocationsProperty]]]

Property popLocations: The pop locations.


private_ip_addressOptional

private_ip_address: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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.