ALIYUN::VPC::CommonBandwidthPackage は、インターネット共有帯域幅インスタンスを作成するために使用されます。
ALIYUN::VPC::CommonBandwidthPackage リソースタイプを使用して、従量課金制のインターネット共有帯域幅インスタンスのみを作成できます。
構文
{
"Type": "ALIYUN::VPC::CommonBandwidthPackage",
"Properties": {
"Description": String, // 説明
"Zone": String, // ゾーン
"ISP": String, // ISP
"ResourceGroupId": String, // リソースグループ ID
"Bandwidth": Integer, // 帯域幅
"InternetChargeType": String, // 課金方法
"Name": String, // 名前
"DeletionProtection": Boolean, // 削除保護
"Tags": List // タグ
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
Description | String | いいえ | はい | インターネット共有帯域幅インスタンスの説明。 | 説明は 2 ~ 256 文字でなければなりません。文字で始まり、 |
Zone | String | いいえ | いいえ | インターネット共有帯域幅インスタンスのゾーン。 | このプロパティを指定する必要はありません。 |
ISP | String | いいえ | いいえ | Elastic IP アドレス (EIP) の回線タイプ。 | 値を BGP に設定します。BGP の値は BGP(マルチ ISP) を指定します。 |
ResourceGroupId | String | いいえ | はい | リソースグループの ID。 | なし。 |
Bandwidth | Integer | はい | はい | インターネット共有帯域幅インスタンスの最大帯域幅。 | 有効な値:2 ~ 5000。 単位:Mbit/s。 |
InternetChargeType | String | いいえ | いいえ | インターネット共有帯域幅インスタンスの課金方法。 | 有効な値:
|
Name | String | いいえ | はい | インターネット共有帯域幅インスタンスの名前。 | 名前は 2 ~ 128 文字でなければなりません。文字で始まり、 |
Tags | List | いいえ | はい | タグ。 | 最大 20 個のタグを追加できます。 詳細については、「タグのプロパティ」をご参照ください。 |
DeletionProtection | Boolean | いいえ | はい | 削除保護を有効にするかどうかを指定します。 | 有効な値:
|
タグの構文
"Tags": [
{
"Key": String, // タグのキー
"Value": String // タグの値
}
] タグのプロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
Key | String | はい | いいえ | タグのキー。 | キーは 1 ~ 128 文字で、 |
Value | String | いいえ | いいえ | タグの値。 | 値は最大 128 文字で、 |
戻り値
Fn::GetAtt
BandwidthPackageId: インターネット共有帯域幅インスタンスの ID。
Arn: Alibaba Cloud リソースネーム (ARN)。
例
ROSTemplateFormatVersion: '2015-09-01'
Parameters: {}
Resources:
CommonBandwidthPackage:
Type: ALIYUN::VPC::CommonBandwidthPackage
Properties:
Description: Test
Name: test-dsa
Bandwidth: 5
InternetChargeType: PayByBandwidth
Outputs:
BandwidthPackageId:
Description: The ID of the Internet Shared Bandwidth instance.
Value:
Fn::GetAtt:
- CommonBandwidthPackage
- BandwidthPackageId{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
},
"Resources": {
"CommonBandwidthPackage": {
"Type": "ALIYUN::VPC::CommonBandwidthPackage",
"Properties": {
"Description": "Test",
"Name": "test-dsa",
"Bandwidth": 5,
"InternetChargeType": "PayByBandwidth"
}
}
},
"Outputs": {
"BandwidthPackageId": {
"Description": "インターネット共有帯域幅インスタンスの ID。",
"Value": {
"Fn::GetAtt": [
"CommonBandwidthPackage",
"BandwidthPackageId"
]
}
}
}
}{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
},
"Resources": {
"CommonBandwidthPackage": {
"Type": "ALIYUN::VPC::CommonBandwidthPackage",
"Properties": {
"Description": "Test",
"Name": "test-dsa",
"Bandwidth": 5,
"InternetChargeType": "PayByBandwidth"
}
}
},
"Outputs": {
"BandwidthPackageId": {
"Description": "インターネット共有帯域幅インスタンスの ID。",
"Value": {
"Fn::GetAtt": [
"CommonBandwidthPackage",
"BandwidthPackageId"
]
}
}
}
}