ALIYUN::VPC::TrafficQos类型用于 创建高速通道QoS策略。
语法
{
"Type": "ALIYUN::VPC::TrafficQos",
"Properties": {
"QosName": String,
"QosDescription": String,
"ResourceGroupId": String,
"Tags": List
}
}
属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
QosDescription |
String |
否 |
是 |
QoS策略的描述。 |
描述长度为0~256个字符,不能以http://或https://开头。 |
|
QosName |
String |
否 |
是 |
QoS策略的名称。 |
名称长度为0~128个字符,不能以http://或https://开头。 |
|
ResourceGroupId |
String |
否 |
是 |
资源组ID。 |
无 |
|
Tags |
List |
否 |
是 |
流量QoS的标签。 |
长度:最大20。更多信息,请参考Tags属性。 |
Tags语法
"Tags": [
{
"Value": String,
"Key": String
}
]
Tags属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
Key |
String |
是 |
否 |
标签键。 |
无 |
|
Value |
String |
否 |
否 |
标签值。 |
无 |
返回值
Fn::GetAtt
-
ResourceGroupId:资源组ID。
-
QosId:QoS策略ID。
-
QosName:QoS策略的名称。
-
Tags:QoS策略的标签。
-
Progressing:QoS策略的配置进度。取值范围为**0**到**100**。
-
QosDescription:QoS策略的描述。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ResourceGroupId:
Type: String
Description:
en: The ID of the resource group.
AssociationProperty: ALIYUN::ECS::ResourceGroup::ResourceGroupId
Default: Null
Required: false
Tags:
Description:
en: Tags of traffic qos.
Required: false
Default: Null
Type: Json
MaxLength: 20
AssociationProperty: List[Parameters]
AssociationPropertyMetadata:
Parameters:
Key:
Type: String
Required: true
Value:
Type: String
Default: Null
Required: false
ListMetadata:
Order:
- Key
- Value
QosName:
Type: String
Description:
en: |-
The name of the QoS policy.
The name must be 0 to 128 characters in length and cannot start with http:// or https://.
MinLength: 0
MaxLength: 128
Default: Null
Required: false
QosDescription:
Type: String
Description:
en: |-
The description of the QoS policy.
The description must be 0 to 256 characters in length and cannot start with http:// or https://.
MinLength: 0
MaxLength: 256
Default: Null
Required: false
Resources:
ExtensionResource:
Type: ALIYUN::VPC::TrafficQos
Properties:
ResourceGroupId:
Ref: ResourceGroupId
Tags:
Ref: Tags
QosName:
Ref: QosName
QosDescription:
Ref: QosDescription
Outputs:
Tags:
Value:
Fn::GetAtt:
- ExtensionResource
- Tags
Description: The tag of the QoS policy.
Progressing:
Value:
Fn::GetAtt:
- ExtensionResource
- Progressing
Description: The configuration progress of the QoS policy. The value range is **0** to **100 * *.
QosDescription:
Value:
Fn::GetAtt:
- ExtensionResource
- QosDescription
Description: The description of the QoS policy.
ResourceGroupId:
Value:
Fn::GetAtt:
- ExtensionResource
- ResourceGroupId
Description: The ID of the resource group.
QosName:
Value:
Fn::GetAtt:
- ExtensionResource
- QosName
Description: The name of the QoS policy.
QosId:
Value:
Fn::GetAtt:
- ExtensionResource
- QosId
Description: The QoS policy ID.
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ResourceGroupId": {
"Type": "String",
"Description": {
"en": "The ID of the resource group."
},
"AssociationProperty": "ALIYUN::ECS::ResourceGroup::ResourceGroupId",
"Default": null,
"Required": false
},
"Tags": {
"Description": {
"en": "Tags of traffic qos."
},
"Required": false,
"Default": null,
"Type": "Json",
"MaxLength": 20,
"AssociationProperty": "List[Parameters]",
"AssociationPropertyMetadata": {
"Parameters": {
"Key": {
"Type": "String",
"Required": true
},
"Value": {
"Type": "String",
"Default": null,
"Required": false
}
},
"ListMetadata": {
"Order": [
"Key",
"Value"
]
}
}
},
"QosName": {
"Type": "String",
"Description": {
"en": "The name of the QoS policy.\nThe name must be 0 to 128 characters in length and cannot start with http:// or https://."
},
"MinLength": 0,
"MaxLength": 128,
"Default": null,
"Required": false
},
"QosDescription": {
"Type": "String",
"Description": {
"en": "The description of the QoS policy.\nThe description must be 0 to 256 characters in length and cannot start with http:// or https://."
},
"MinLength": 0,
"MaxLength": 256,
"Default": null,
"Required": false
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::VPC::TrafficQos",
"Properties": {
"ResourceGroupId": {
"Ref": "ResourceGroupId"
},
"Tags": {
"Ref": "Tags"
},
"QosName": {
"Ref": "QosName"
},
"QosDescription": {
"Ref": "QosDescription"
}
}
}
},
"Outputs": {
"Tags": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Tags"
]
},
"Description": "The tag of the QoS policy."
},
"Progressing": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Progressing"
]
},
"Description": "The configuration progress of the QoS policy. The value range is **0** to **100 * *."
},
"QosDescription": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"QosDescription"
]
},
"Description": "The description of the QoS policy."
},
"ResourceGroupId": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ResourceGroupId"
]
},
"Description": "The ID of the resource group."
},
"QosName": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"QosName"
]
},
"Description": "The name of the QoS policy."
},
"QosId": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"QosId"
]
},
"Description": "The QoS policy ID."
}
}
}该文章对您有帮助吗?