ALIYUN::ECD::NetworkPackage类型用于为办公网络创建一个公网精品带宽。
语法
{
"Type": "ALIYUN::ECD::NetworkPackage",
"Properties": {
"OfficeSiteId": String,
"PromotionId": String,
"Bandwidth": Integer,
"AutoRenew": Boolean,
"Period": Integer,
"AutoPay": Boolean,
"PayType": String,
"PeriodUnit": String,
"InternetChargeType": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
Bandwidth | Integer | 是 | 否 | 公网精品带宽的带宽大小。 | 单位:Mbps。取值范围:
|
OfficeSiteId | String | 是 | 否 | 办公网络ID。 | 无 |
AutoPay | Boolean | 否 | 否 | 是否自动支付。 | 取值:
|
AutoRenew | Boolean | 否 | 否 | 是否自动续费。 | 取值:
|
InternetChargeType | String | 否 | 否 | 公网精品带宽的计费方式。 |
|
PayType | String | 否 | 否 | 付费类型。 | 取值:
|
Period | Integer | 否 | 否 | 购买资源的时长。 | 单位由PeriodUnit指定。当参数PayType取值为PrePaid时才生效,且为必选值。如果PeriodUnit为Month,该参数的取值范围:
如果PeriodUnit为Year,该参数的取值范围:
|
PeriodUnit | String | 否 | 否 | 包年包月精品带宽的购买时长单位。 | 当参数
|
PromotionId | String | 否 | 否 | 优惠活动ID。 | 无 |
返回值
Fn::GetAtt
NetworkPackageId:精品带宽ID。
示例
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
OfficeSiteId:
Type: String
Description:
en: The ID of the workspace..
Required: true
Bandwidth:
Type: Number
Description:
en: |-
The maximum public bandwidth. Unit: Mbit/s.
Valid values for the pay-by-data-transfer type (PayByTraffic): 10 to 200.
Valid values for the pay-by-bandwith type (PayByBandwidth): 10 to 1000.
Required: true
MinValue: 2
MaxValue: 1000
PayType:
Type: String
Description:
en: |-
The billing method of the Internet access package. Enumeration Value:
PostPaid
PrePaid
AllowedValues:
- PostPaid
- PrePaid
Required: false
InternetChargeType:
AssociationPropertyMetadata:
LocaleKey: InternetChargeType
Type: String
Description:
en: |-
The metering method of the pay-as-you-go Internet access package. Valid values:
PayByTraffic: pay-by-data-transfer.
PayByBandwidth: pay-by-bandwidth.
Default value: PayByTraffic.
AllowedValues:
- PayByTraffic
- PayByBandwidth
Required: false
Resources:
ExtensionResource:
Type: ALIYUN::ECD::NetworkPackage
Properties:
OfficeSiteId:
Ref: OfficeSiteId
Bandwidth:
Ref: Bandwidth
PayType:
Ref: PayType
InternetChargeType:
Ref: InternetChargeType
Outputs:
NetworkPackageId:
Description: The ID of the Internet access package.
Value:
Fn::GetAtt:
- ExtensionResource
- NetworkPackageId
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"OfficeSiteId": {
"Type": "String",
"Description": {
"en": "The ID of the workspace.."
},
"Required": true
},
"Bandwidth": {
"Type": "Number",
"Description": {
"en": "The maximum public bandwidth. Unit: Mbit/s.\nValid values for the pay-by-data-transfer type (PayByTraffic): 10 to 200. \n Valid values for the pay-by-bandwith type (PayByBandwidth): 10 to 1000."
},
"Required": true,
"MinValue": 2,
"MaxValue": 1000
},
"PayType": {
"Type": "String",
"Description": {
"en": "The billing method of the Internet access package. Enumeration Value:\nPostPaid\nPrePaid"
},
"AllowedValues": [
"PostPaid",
"PrePaid"
],
"Required": false
},
"InternetChargeType": {
"AssociationPropertyMetadata": {
"LocaleKey": "InternetChargeType"
},
"Type": "String",
"Description": {
"en": "The metering method of the pay-as-you-go Internet access package. Valid values: \nPayByTraffic: pay-by-data-transfer.\nPayByBandwidth: pay-by-bandwidth. \nDefault value: PayByTraffic."
},
"AllowedValues": [
"PayByTraffic",
"PayByBandwidth"
],
"Required": false
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::ECD::NetworkPackage",
"Properties": {
"OfficeSiteId": {
"Ref": "OfficeSiteId"
},
"Bandwidth": {
"Ref": "Bandwidth"
},
"PayType": {
"Ref": "PayType"
},
"InternetChargeType": {
"Ref": "InternetChargeType"
}
}
}
},
"Outputs": {
"NetworkPackageId": {
"Description": "The ID of the Internet access package.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"NetworkPackageId"
]
}
}
}
}