ALIYUN::ECS::EIP タイプを使用して EIP を作成します。
構文
{
"Type" : "ALIYUN::ECS::EIP",
"Properties" : {
"Bandwidth" : String,
"InternetChargeType" : String
}
}
属性
属性名 | 型 | 必須かどうか | 更新の許可 | 説明 | 制約 |
---|---|---|---|---|---|
InternetChargeType | string | いいえ | いいえ | トラフィック料金の支払い方法 | 値:PayByTraffic。 |
Bandwidth | number | いいえ | いいえ | EIP の帯域制限。 | 値の範囲:[1-200]。指定しない場合、デフォルトでは 5 Mbps です。 |
リターン値
Fn::GetAtt
EipAddress: 割り当てられた EIP。
AllocationId: EIP に関連付けられたインスタンス ID。
例
{
"ROSTemplateFormatVersion" : "2015-09-01",
"Resources" : {
"NewEip": {
"Type": "ALIYUN::ECS::EIP",
"Properties": {
"Bandwidth" : 50
}
}
},
"Outputs": {
"EipAddress": {
"Value" : {"Fn::GetAtt": ["NewEip", "EipAddress"]}
},
"AllocationId": {
"Value" : {"Fn::GetAtt": ["NewEip", "AllocationId"]}
}
}
}