ALIYUN::VPC::AnycastEIPAssociation類型用於將任播Elastic IP Address(Anycast EIP)綁定到指定地區的雲資源執行個體上。
文法
{
"Type": "ALIYUN::VPC::AnycastEIPAssociation",
"Properties": {
"BindInstanceId": String,
"BindInstanceRegionId": String,
"BindInstanceType": String,
"AnycastId": String,
"AssociationMode": String,
"PrivateIpAddress": String,
"PopLocations": List
}
}屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
BindInstanceId | String | 是 | 否 | 待綁定的雲資源執行個體ID。 | 無 |
BindInstanceRegionId | String | 是 | 否 | 待綁定的雲資源執行個體地區ID。 | 無 |
BindInstanceType | String | 是 | 否 | 待綁定的雲資源執行個體類型。 | 取值:SlbInstance,表示私網負載平衡(SLB)執行個體。 只支援綁定以下地區的SLB執行個體:
|
AnycastId | String | 是 | 否 | Anycast EIP執行個體ID。 | 無 |
AssociationMode | String | 否 | 否 | 繫結模式。 | 取值:
|
PrivateIpAddress | String | 否 | 否 | 綁定的彈性網卡的輔助私網 IP。 | 只有當 BindInstanceType 取值為 NetworkInterface 時,返回該參數。 |
PopLocations | List | 否 | 否 | 綁定雲資源執行個體時,關聯的接入地區的存取點資訊列表。 | 更多資訊,請參見PopLocations屬性。 |
PopLocations文法
"PopLocations": [
{
"PopLocation": String
}
] PopLocations屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
PopLocation | String | 是 | 否 | 綁定雲資源執行個體時,關聯的接入地區的存取點資訊。 | 無 |
傳回值
Fn::GetAtt
BindInstanceId:已綁定的雲資源執行個體ID。
BindInstanceRegionId:已綁定的雲資源執行個體地區ID。
BindInstanceType:已綁定的雲資源執行個體類型。
AnycastId:Anycast EIP執行個體ID。
樣本
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"
]
}
}
}
}