Crie uma fila de qualidade de service (QoS) do Express Connect para classificação e priorização de tráfego.
Sintaxe
{
"Type": "ALIYUN::VPC::TrafficQosQueue",
"Properties": {
"QosId": String,
"QueueType": String,
"BandwidthPercent": String,
"QueueDescription": String,
"QueueName": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatório |
Editável |
Descrição |
Restrições |
|
QosId |
String |
Sim |
Não |
ID da política de QoS. |
Nenhuma |
|
QueueType |
String |
Sim |
Não |
Tipo da fila de QoS. |
Valores válidos:
|
|
BandwidthPercent |
String |
Não |
Sim |
Porcentagem de largura de banda da fila de QoS. |
Valores válidos:
|
|
QueueDescription |
String |
Não |
Sim |
Descrição da fila de QoS. |
A descrição deve ter entre 0 e 256 caracteres e não pode começar com |
|
QueueName |
String |
Não |
Sim |
Nome da fila de QoS. |
O nome deve ter entre 0 e 128 caracteres e não pode começar com |
Valores de retorno
Fn::GetAtt
QueueId: ID da fila de QoS.
QosId: ID da política de QoS.
BandwidthPercent: Porcentagem de largura de banda da fila de QoS.
QueueDescription: Descrição da fila de QoS.
QueueName: Nome da fila de QoS.
QueueType: Tipo da fila de QoS.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
QueueDescription:
Type: String
Description:
en: |-
The description of the QoS queue.
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
BandwidthPercent:
Type: String
Description:
en: |-
The bandwidth percentage of the QoS queue.
* If QueueType is **Medium**, this parameter is required. Valid values: 1 to 100.
* If QueueType is **Default**, the value of this parameter is "-".
Default: Null
Required: false
QueueType:
Type: String
Description:
en: |-
The type of the QoS queue. Valid values:
- **High**: a high-priority queue.
- **Medium**: a medium-priority queue.
- **Default**: a default-priority queue.
> Note: You cannot create a default-priority queue.
AllowedValues:
- High
- Medium
- Default
Required: true
QosId:
Type: String
Description:
en: The QoS policy ID.
Required: true
QueueName:
Type: String
Description:
en: |-
The name of the QoS queue.
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
Resources:
ExtensionResource:
Type: ALIYUN::VPC::TrafficQosQueue
Properties:
QueueDescription:
Ref: QueueDescription
BandwidthPercent:
Ref: BandwidthPercent
QueueType:
Ref: QueueType
QosId:
Ref: QosId
QueueName:
Ref: QueueName
Outputs:
QueueId:
Value:
Fn::GetAtt:
- ExtensionResource
- QueueId
Description: The ID of the QoS queue.
QueueType:
Value:
Fn::GetAtt:
- ExtensionResource
- QueueType
Description: The type of the QoS queue.
QueueDescription:
Value:
Fn::GetAtt:
- ExtensionResource
- QueueDescription
Description: The description of the QoS queue.
QosId:
Value:
Fn::GetAtt:
- ExtensionResource
- QosId
Description: The QoS policy ID.
BandwidthPercent:
Value:
Fn::GetAtt:
- ExtensionResource
- BandwidthPercent
Description: The bandwidth percentage of the QoS queue.
QueueName:
Value:
Fn::GetAtt:
- ExtensionResource
- QueueName
Description: The name of the QoS queue.
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"QueueDescription": {
"Type": "String",
"Description": {
"en": "The description of the QoS queue.\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
},
"BandwidthPercent": {
"Type": "String",
"Description": {
"en": "The bandwidth percentage of the QoS queue.\n* If QueueType is **Medium**, this parameter is required. Valid values: 1 to 100.\n* If QueueType is **Default**, the value of this parameter is \"-\"."
},
"Default": null,
"Required": false
},
"QueueType": {
"Type": "String",
"Description": {
"en": "The type of the QoS queue. Valid values:\n- **High**: a high-priority queue.\n- **Medium**: a medium-priority queue.\n- **Default**: a default-priority queue.\n> Note: You cannot create a default-priority queue."
},
"AllowedValues": [
"High",
"Medium",
"Default"
],
"Required": true
},
"QosId": {
"Type": "String",
"Description": {
"en": "The QoS policy ID."
},
"Required": true
},
"QueueName": {
"Type": "String",
"Description": {
"en": "The name of the QoS queue.\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
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::VPC::TrafficQosQueue",
"Properties": {
"QueueDescription": {
"Ref": "QueueDescription"
},
"BandwidthPercent": {
"Ref": "BandwidthPercent"
},
"QueueType": {
"Ref": "QueueType"
},
"QosId": {
"Ref": "QosId"
},
"QueueName": {
"Ref": "QueueName"
}
}
}
},
"Outputs": {
"QueueId": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"QueueId"
]
},
"Description": "The ID of the QoS queue."
},
"QueueType": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"QueueType"
]
},
"Description": "The type of the QoS queue."
},
"QueueDescription": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"QueueDescription"
]
},
"Description": "The description of the QoS queue."
},
"QosId": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"QosId"
]
},
"Description": "The QoS policy ID."
},
"BandwidthPercent": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"BandwidthPercent"
]
},
"Description": "The bandwidth percentage of the QoS queue."
},
"QueueName": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"QueueName"
]
},
"Description": "The name of the QoS queue."
}
}
}