Internet Shared Bandwidth インスタンスを作成します。
このリソースは、従量課金の Internet Shared Bandwidth インスタンスのみをサポートします。
構文
{
"Type": "ALIYUN::VPC::CommonBandwidthPackage",
"Properties": {
"Description": String,
"Zone": String,
"ISP": String,
"ResourceGroupId": String,
"Bandwidth": Integer,
"InternetChargeType": String,
"Name": String,
"DeletionProtection": Boolean,
"Tags": List
}
}
プロパティ
|
プロパティ |
タイプ |
必須 |
更新可能 |
説明 |
制約 |
|
Description |
文字列 |
いいえ |
はい |
インスタンスの説明です。 |
説明は 2~256 文字で、英字または漢字で始まる必要があります。 |
|
Zone |
文字列 |
いいえ |
いいえ |
インスタンスのゾーンです。 |
このパラメーターを指定する必要はありません。 |
|
ISP |
文字列 |
いいえ |
いいえ |
Elastic IP アドレス (EIP) の回線タイプです。 |
有効な値:BGP (マルチ ISP)。 |
|
ResourceGroupId |
文字列 |
いいえ |
はい |
リソースグループの ID です。 |
なし |
|
Bandwidth |
整数 |
はい |
はい |
インスタンスのピーク帯域幅です。 |
有効な値:2~5000。 単位:Mbps。 |
|
InternetChargeType |
文字列 |
いいえ |
いいえ |
インスタンスの課金方法です。 |
有効な値:
|
|
Name |
文字列 |
いいえ |
はい |
インスタンスの名前です。 |
名前は 2~128 文字の長さにする必要があります。先頭は英字または漢字にする必要がありますが、 |
|
Tags |
リスト |
いいえ |
はい |
インスタンスのタグです。 |
最大 20 個のタグを追加できます。 詳細については、「タグプロパティ」をご参照ください。 |
|
DeletionProtection |
ブール値 |
いいえ |
はい |
インスタンスの削除保護を有効にするかどうかを指定します。 |
有効な値:
|
タグ構文
"Tags": [
{
"Key": String,
"Value": String
}
]
タグプロパティ
|
プロパティ名 |
タイプ |
必須 |
更新可能 |
説明 |
制約 |
|
Key |
文字列 |
はい |
いいえ |
タグキーです。 |
タグキーは、 |
|
Value |
文字列 |
いいえ |
いいえ |
タグ値です。 |
タグ値は、長さが 0~128 文字である必要があります。 |
戻り値
Fn::GetAtt
-
BandwidthPackageId:Internet Shared Bandwidth インスタンスの 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: Internet Shared Bandwidth インスタンスの 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": "Internet Shared Bandwidth インスタンスの 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": "Internet Shared Bandwidth インスタンスの ID です。",
"Value": {
"Fn::GetAtt": [
"CommonBandwidthPackage",
"BandwidthPackageId"
]
}
}
}
}