This topic was translated by AI and is currently in queue for revision by our editors. Alibaba Cloud does not guarantee the accuracy of AI-translated content. Request expedited revision

Aliyun::VPC::AnycastEIPAssociation

Updated at: 2025-03-26 07:44

The ALIYUN::VPC::AnycastEIPAssociation type associates an Anycast Elastic IP Address (Anycast EIP) with a cloud resource in a specified region.

Syntax

{
  "Type": "ALIYUN::VPC::AnycastEIPAssociation",
  "Properties": {
    "BindInstanceId": String,
    "BindInstanceRegionId": String,
    "BindInstanceType": String,
    "AnycastId": String,
    "AssociationMode": String,
    "PrivateIpAddress": String,
    "PopLocations": List
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

Property

Type

Required

Editable

Description

Constraint

BindInstanceId

String

Yes

No

The ID of the cloud resource to be associated.

None

BindInstanceRegionId

String

Yes

No

The region ID of the cloud resource to be associated.

None

BindInstanceType

String

Yes

No

The type of the cloud resource to be associated.

Valid value: SlbInstance, which indicates an internal-facing SLB instance.

Only SLB instances in the following regions are supported:

  • cn-hongkong: China (Hong Kong)

  • eu-west-1: UK (London)

  • eu-central-1: Germany (Frankfurt)

  • us-east-1: US (Virginia)

  • us-west-1: US (Silicon Valley)

  • ap-southeast-1: Singapore

  • ap-southeast-3: Malaysia (Kuala Lumpur)

  • ap-northeast-1: Japan (Tokyo)

AnycastId

String

Yes

No

The ID of the Anycast EIP instance.

None

AssociationMode

String

No

No

The association mode.

Valid values:

  • Default: Default mode. The associated cloud resource is used as the default origin server.

  • Normal: NAT mode. The associated cloud resource is used as a normal origin server.

PrivateIpAddress

String

No

No

The secondary private IP address of the associated ENI.

This parameter is returned only when BindInstanceType is set to NetworkInterface.

PopLocations

List

No

No

The list of access points in associated access areas when you associate an Anycast EIP with a cloud resource.

For more information, see the PopLocations properties.

Poplocations syntax

"PopLocations": [
  {
    "PopLocation": String
  }
]  

Poplocations properties

Property

Type

Required

Editable

Description

Constraint

Property

Type

Required

Editable

Description

Constraint

PopLocation

String

Yes

No

The information about the access points in associated access areas when you associate an Anycast EIP with a cloud resource.

None

Return values

Fn::GetAtt

  • BindInstanceId: The ID of the associated cloud resource.

  • BindInstanceRegionId: The region ID of the associated cloud resource.

  • BindInstanceType: The type of the associated cloud resource.

  • AnycastId: The ID of the Anycast EIP instance.

Examples

YAML
JSON
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  AnycastId:
    Description: Anycast EIP instance ID.
    Type: String
  BindInstanceId:
    Description: The ID of the cloud resource instance to be bound.
    Type: String
  BindInstanceRegionId:
    Description: The region ID of the cloud resource instance to be bound.
    Type: String
  BindInstanceType:
    Description: 'The cloud resource instance type to be bound. Valid value: SlbInstance,
      SLB instance of private network type.'
    Type: String
Resources:
  AnycastEIPAssociation:
    Properties:
      AnycastId:
        Ref: AnycastId
      BindInstanceId:
        Ref: BindInstanceId
      BindInstanceRegionId:
        Ref: BindInstanceRegionId
      BindInstanceType:
        Ref: BindInstanceType
    Type: ALIYUN::VPC::AnycastEIPAssociation
Outputs:
  AnycastId:
    Description: Anycast EIP instance ID.
    Value:
      Fn::GetAtt:
      - AnycastEIPAssociation
      - AnycastId
  BindInstanceId:
    Description: The ID of the cloud resource instance to be bound.
    Value:
      Fn::GetAtt:
      - AnycastEIPAssociation
      - BindInstanceId
  BindInstanceRegionId:
    Description: The region ID of the cloud resource instance to be bound.
    Value:
      Fn::GetAtt:
      - AnycastEIPAssociation
      - BindInstanceRegionId
  BindInstanceType:
    Description: The cloud resource instance type to be bound.
    Value:
      Fn::GetAtt:
      - AnycastEIPAssociation
      - BindInstanceType
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "BindInstanceId": {
      "Type": "String",
      "Description": "The ID of the cloud resource instance to be bound."
    },
    "BindInstanceRegionId": {
      "Type": "String",
      "Description": "The region ID of the cloud resource instance to be bound."
    },
    "BindInstanceType": {
      "Type": "String",
      "Description": "The cloud resource instance type to be bound. Valid value: SlbInstance, SLB instance of private network type."
    },
    "AnycastId": {
      "Type": "String",
      "Description": "Anycast EIP instance ID."
    }
  },
  "Resources": {
    "AnycastEIPAssociation": {
      "Type": "ALIYUN::VPC::AnycastEIPAssociation",
      "Properties": {
        "BindInstanceId": {
          "Ref": "BindInstanceId"
        },
        "BindInstanceRegionId": {
          "Ref": "BindInstanceRegionId"
        },
        "BindInstanceType": {
          "Ref": "BindInstanceType"
        },
        "AnycastId": {
          "Ref": "AnycastId"
        }
      }
    }
  },
  "Outputs": {
    "BindInstanceId": {
      "Description": "The ID of the cloud resource instance to be bound.",
      "Value": {
        "Fn::GetAtt": [
          "AnycastEIPAssociation",
          "BindInstanceId"
        ]
      }
    },
    "BindInstanceRegionId": {
      "Description": "The region ID of the cloud resource instance to be bound.",
      "Value": {
        "Fn::GetAtt": [
          "AnycastEIPAssociation",
          "BindInstanceRegionId"
        ]
      }
    },
    "BindInstanceType": {
      "Description": "The cloud resource instance type to be bound.",
      "Value": {
        "Fn::GetAtt": [
          "AnycastEIPAssociation",
          "BindInstanceType"
        ]
      }
    },
    "AnycastId": {
      "Description": "Anycast EIP instance ID.",
      "Value": {
        "Fn::GetAtt": [
          "AnycastEIPAssociation",
          "AnycastId"
        ]
      }
    }
  }
}
  • On this page (1)
  • Syntax
  • Properties
  • Poplocations syntax
  • Poplocations properties
  • Return values
  • Examples
Feedback
phone Contact Us

Chat now with Alibaba Cloud Customer Service to assist you in finding the right products and services to meet your needs.

alicare alicarealicarealicare