ALIYUN::VPC::CommonBandwidthPackageIp リソースは、1 つ以上の EIP を共有帯域幅インスタンスに追加します。
説明
このリソースを使用して EIP を追加する際は、以下の点にご注意ください。
従量課金の EIP のみ追加できます。
EIP と共有帯域幅インスタンスは、同一リージョン内にある必要があります。
構文
{
"Type": "ALIYUN::VPC::CommonBandwidthPackageIp",
"Properties": {
"Eips": List,
"BandwidthPackageId": String
}
}プロパティ
パラメーター | タイプ | 必須 | 更新可 | 説明 | 制約 |
Eips | List | はい | いいえ | 共有帯域幅インスタンスに追加する EIP です。 | なし。 |
BandwidthPackageId | String | はい | いいえ | 共有帯域幅インスタンスの ID です。 | なし。 |
Eips 構文
"Eips": [
{
"Bandwidth": Integer,
"AllocationId": String,
"IpType": String
}
]Eips プロパティ
パラメーター | タイプ | 必須 | 更新可 | 説明 | 制約 |
Bandwidth | Integer | いいえ | いいえ | EIP のピーク帯域幅です。 | 値が 0 の場合、帯域幅は無制限です。 デフォルト値:0 |
AllocationId | String | はい | いいえ | EIP インスタンスの ID です。 | なし。 |
IpType | String | いいえ | いいえ | ネットワークタイプです。 | 有効な値:
|
戻り値
Fn::GetAtt
AllocationIds:EIP の ID です。
IpAddresses:EIP の IP アドレスです。
例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
BandwidthPackageId:
Type: String
Description: 共有帯域幅インスタンスの ID です。
Resources:
CommonBandwidthPackageIp:
Type: ALIYUN::VPC::CommonBandwidthPackageIp
Properties:
Eips:
- Bandwidth: 5
AllocationId: eip-8vbwv47kgXXXXXXXXX
BandwidthPackageId:
Ref: BandwidthPackageId
Outputs:
AllocationIds:
Description: 共有帯域幅パッケージ内の EIP の割り当て ID です。
Value:
Fn::GetAtt:
- CommonBandwidthPackageIp
- AllocationIds
IpAddresses:
Description: 共有帯域幅パッケージ内の EIP の IP アドレスです。
Value:
Fn::GetAtt:
- CommonBandwidthPackageIp
- IpAddresses{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"BandwidthPackageId": {
"Type": "String",
"Description": "共有帯域幅インスタンスの ID です。"
}
},
"Resources": {
"CommonBandwidthPackageIp": {
"Type": "ALIYUN::VPC::CommonBandwidthPackageIp",
"Properties": {
"Eips": [
{
"Bandwidth": 5,
"AllocationId": "eip-8vbwv47kgXXXXXXXXX"
}
],
"BandwidthPackageId": {
"Ref": "BandwidthPackageId"
}
}
}
},
"Outputs": {
"AllocationIds": {
"Description": "共有帯域幅パッケージ内の EIP の割り当て ID です。",
"Value": {
"Fn::GetAtt": [
"CommonBandwidthPackageIp",
"AllocationIds"
]
}
},
"IpAddresses": {
"Description": "共有帯域幅パッケージ内の EIP の IP アドレスです。",
"Value": {
"Fn::GetAtt": [
"CommonBandwidthPackageIp",
"IpAddresses"
]
}
}
}
}