ALIYUN::VPC::AnycastEIP類型用於建立任播Elastic IP Address(Anycast EIP)執行個體。
文法
{
"Type": "ALIYUN::VPC::AnycastEIP",
"Properties": {
"Description": String,
"ServiceLocation": String,
"InstanceChargeType": String,
"InternetChargeType": String,
"Name": String,
"Bandwidth": Integer
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
Description | String | 否 | 是 | Anycast EIP執行個體描述。 | 無 |
ServiceLocation | String | 否 | 否 | Anycast EIP執行個體接入地區。 | 取值:international,表示中國內地以外的地區。 |
InstanceChargeType | String | 否 | 否 | Anycast EIP執行個體付費類型。 | 取值:PostPaid,表示後付費模式。 |
InternetChargeType | String | 否 | 否 | Anycast EIP執行個體訪問公網計費方式。 | 取值:PayByTraffic,表示按流量計費。 |
Name | String | 否 | 是 | Anycast EIP執行個體名稱。 | 長度為2~128個字元,需以英文字母或漢字開頭,可包含英文字母、漢字、數字、底線(_)和短劃線(-)。 |
Bandwidth | Integer | 否 | 否 | Anycast EIP執行個體頻寬峰值。 | 取值範圍:200~1000。 預設值:1000。 單位:Mbps。 說明 頻寬峰值不作為業務承諾指標,僅作為參考值。 |
傳回值
Fn::GetAtt
- AnycastId:Anycast EIP執行個體ID。
- IpAddress:Anycast EIP執行個體IP地址。
- OrderId:訂單ID。
- Name:Anycast EIP執行個體名稱。
樣本
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Description": {
"Type": "String",
"Description": "Anycast EIP instance description"
},
"ServiceLocation": {
"Type": "String",
"Description": "Anycast EIP instance access area",
"AllowedValues": [
"international"
],
"Default": "international"
},
"InstanceChargeType": {
"Type": "String",
"Description": "Anycast EIP instance charge type",
"AllowedValues": [
"PostPaid"
]
},
"InternetChargeType": {
"Type": "String",
"Description": "Anycast EIP instance access public network billing method",
"AllowedValues": [
"PayByTraffic"
]
},
"Name": {
"Type": "String",
"Description": "Anycast EIP instance name"
}
},
"Resources": {
"AnycastEip": {
"Type": "ALIYUN::VPC::AnycastEIP",
"Properties": {
"Description": {
"Ref": "Description"
},
"ServiceLocation": {
"Ref": "ServiceLocation"
},
"InstanceChargeType": {
"Ref": "InstanceChargeType"
},
"InternetChargeType": {
"Ref": "InternetChargeType"
},
"Name": {
"Ref": "Name"
}
}
}
},
"Outputs": {
"AnycastId": {
"Description": "Anycast EIP instance ID",
"Value": {
"Fn::GetAtt": [
"AnycastEip",
"AnycastId"
]
}
},
"IpAddress": {
"Description": "Anycase IP address",
"Value": {
"Fn::GetAtt": [
"AnycastEip",
"IpAddress"
]
}
},
"OrderId": {
"Description": "Order ID",
"Value": {
"Fn::GetAtt": [
"AnycastEip",
"OrderId"
]
}
},
"Name": {
"Description": "Anycast EIP instance name",
"Value": {
"Fn::GetAtt": [
"AnycastEip",
"Name"
]
}
}
}
}
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Description:
Description: Anycast EIP instance description
Type: String
InstanceChargeType:
AllowedValues:
- PostPaid
Description: Anycast EIP instance charge type
Type: String
InternetChargeType:
AllowedValues:
- PayByTraffic
Description: Anycast EIP instance access public network billing method
Type: String
Name:
Description: Anycast EIP instance name
Type: String
ServiceLocation:
AllowedValues:
- international
Default: international
Description: Anycast EIP instance access area
Type: String
Resources:
AnycastEip:
Properties:
Description:
Ref: Description
InstanceChargeType:
Ref: InstanceChargeType
InternetChargeType:
Ref: InternetChargeType
Name:
Ref: Name
ServiceLocation:
Ref: ServiceLocation
Type: ALIYUN::VPC::AnycastEIP
Outputs:
AnycastId:
Description: Anycast EIP instance ID
Value:
Fn::GetAtt:
- AnycastEip
- AnycastId
IpAddress:
Description: Anycase IP address
Value:
Fn::GetAtt:
- AnycastEip
- IpAddress
Name:
Description: Anycast EIP instance name
Value:
Fn::GetAtt:
- AnycastEip
- Name
OrderId:
Description: Order ID
Value:
Fn::GetAtt:
- AnycastEip
- OrderId