ALIYUN::VPC::CommonBandwidthPackageIp は、インターネット共有帯域幅インスタンスに 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
}
]Eips
| パラメーター | タイプ | 必須 | 編集可能 | 説明 | 制約 |
| Bandwidth | Integer | いいえ | いいえ | ピーク帯域幅。 | 0 は無制限を示します。 デフォルト値:0。 |
| AllocationId | String | はい | いいえ | Elastic IP アドレスのインスタンス ID。 | 有効な値:1025 ~ 10000。一般的に使用されるポート番号 2222、4500、4510、4560、7505、9000、9001、9002 は使用できません。 |
戻り値
Fn::GetAtt
- AllocationIds: すべての EIP の ID。
- IpAddresses: すべての EIP。
例
JSON形式{ "ROSTemplateFormatVersion": "2015-09-01", "Resources": { "CommonBandwidthPackageIp": { "Type": "ALIYUN::VPC::CommonBandwidthPackageIp", "Properties": { "Eips": { "Ref": "Eips" }, "BandwidthPackageId": { "Ref": "BandwidthPackageId" } } } }, "Parameters": { "Eips": { "Type": "Json", "Description": "List of eip associated with the Internet Shared Bandwidth instance." // インターネット共有帯域幅インスタンスに関連付けられたEIPのリスト。 }, "BandwidthPackageId": { "Type": "String", "Description": "The ID of the Internet Shared Bandwidth instance." // インターネット共有帯域幅インスタンスのID。 } }, "Outputs": { "AllocationIds": { "Description": "All eip allocation ids of common bandwidth package." // 共通帯域幅パッケージのすべてのEIP割り当てID。 "Value": { "Fn::GetAtt": [ "CommonBandwidthPackageIp", "AllocationIds" ] } }, "IpAddresses": { "Description": "All eip addresses of common bandwidth package." // 共通帯域幅パッケージのすべてのEIPアドレス。 "Value": { "Fn::GetAtt": [ "CommonBandwidthPackageIp", "IpAddresses" ] } } } }