ALIYUN::CEN::InterRegionTrafficQosQueue

更新时间:
复制为 MD 格式

ALIYUN::CEN::InterRegionTrafficQosQueue类型用于创建流量调度策略下队列的配置。

语法

{
  "Type": "ALIYUN::CEN::InterRegionTrafficQosQueue",
  "Properties": {
    "Dscps": List,
    "TrafficQosPolicyId": String,
    "Bandwidth": Integer,
    "InterRegionTrafficQosQueueName": String,
    "InterRegionTrafficQosQueueDescription": String,
    "RemainBandwidthPercent": Integer
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

Dscps

List

在当前队列中匹配的流量包的DSCP值。

范围限制:最小0,最大63

TrafficQosPolicyId

String

QoS策略的ID。

Bandwidth

Integer

可分配给队列的最大绝对带宽值。

单位:Mbit/s。

  • 该值指定绝对带宽。例如,值为20表示队列最多可以消耗20 Mbit/s的带宽。

  • 属于同一跨地域连接的所有队列指定的带宽值之和不能超过跨地域连接的最大带宽。

InterRegionTrafficQosQueueDescription

String

队列的描述。

此参数为可选。如果输入描述,其长度必须为1256个字符,且不能以http://或https://开头。长度限制:最小1,最大256

InterRegionTrafficQosQueueName

String

队列的名称。

名称可以为空或长度为1128个字符,且不能以http://或https://开头。长度限制:最小1,最大128

RemainBandwidthPercent

Integer

可分配给队列的跨地域带宽最大百分比。

单位:百分比。例如,值为20表示队列最多可以消耗20%的跨地域带宽。属于同一跨地域连接的所有队列指定的百分比之和不能超过100%。范围限制:最小0,最大100

返回值

Fn::GetAtt

  • RemainBandwidthPercent:可分配给队列的跨地域带宽最大百分比。

  • EffectiveBandwidth:当前队列的实际带宽值。

  • InterRegionTrafficQosQueueId:队列的ID。

  • Dscps:在当前队列中匹配的流量包的DSCP值。

  • Bandwidth:可分配给队列的最大绝对带宽值。单位:Mbit/s。

  • InterRegionTrafficQosQueueName:队列的名称。

  • TrafficQosPolicyId:QoS策略的ID。

  • InterRegionTrafficQosQueueDescription:队列的描述。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Dscps:
    AssociationPropertyMetadata:
      Parameter:
        Type: Number
        Description:
          en: The DSCP value that matches the current queue.
          zh: 匹配当前队列的DSCP值。
        Required: false
    AssociationProperty: List[Parameter]
    Type: Json
    Description:
      en: The DSCP value of the traffic packet to be matched in the current queue, ranging from 0 to 63.
      zh: 在当前队列中匹配的流量包的DSCP值,范围为0到63。
    Required: true
    MinLength: 0
    MaxLength: 63
  TrafficQosPolicyId:
    Type: String
    Description:
      en: The ID of the QoS policy.
      zh: QoS策略的ID。
    Required: true
Resources:
  ExtensionResource:
    Type: ALIYUN::CEN::InterRegionTrafficQosQueue
    Properties:
      Dscps:
        Ref: Dscps
      TrafficQosPolicyId:
        Ref: TrafficQosPolicyId
Outputs:
  RemainBandwidthPercent:
    Description:
      en: The maximum percentage of inter-region bandwidth that can be allocated to the queue.
      zh: 可分配给队列的跨地域带宽最大百分比。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - RemainBandwidthPercent
  EffectiveBandwidth:
    Description:
      en: The actual bandwidth value of the current queue.
      zh: 当前队列的实际带宽值。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - EffectiveBandwidth
  InterRegionTrafficQosQueueId:
    Description:
      en: The ID of the queue.
      zh: 队列的ID。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - InterRegionTrafficQosQueueId
  Dscps:
    Description:
      en: The DSCP value of the traffic packet to be matched in the current queue.
      zh: 在当前队列中匹配的流量包的DSCP值。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Dscps
  Bandwidth:
    Description:
      en: 'The maximum absolute bandwidth value that can be allocated to the queue. Unit: Mbit/s.'
      zh: 可分配给队列的最大绝对带宽值。单位:Mbit/s。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Bandwidth
  InterRegionTrafficQosQueueName:
    Description:
      en: The name of the queue.
      zh: 队列的名称。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - InterRegionTrafficQosQueueName
  TrafficQosPolicyId:
    Description:
      en: The ID of the QoS policy.
      zh: QoS策略的ID。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - TrafficQosPolicyId
  InterRegionTrafficQosQueueDescription:
    Description:
      en: The description of the queue.
      zh: 队列的描述。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - InterRegionTrafficQosQueueDescription
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Dscps": {
      "AssociationPropertyMetadata": {
        "Parameter": {
          "Type": "Number",
          "Description": {
            "en": "The DSCP value that matches the current queue.",
            "zh": "匹配当前队列的DSCP值。"
          },
          "Required": false
        }
      },
      "AssociationProperty": "List[Parameter]",
      "Type": "Json",
      "Description": {
        "en": "The DSCP value of the traffic packet to be matched in the current queue, ranging from 0 to 63.",
        "zh": "在当前队列中匹配的流量包的DSCP值,范围为0到63。"
      },
      "Required": true,
      "MinLength": 0,
      "MaxLength": 63
    },
    "TrafficQosPolicyId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the QoS policy.",
        "zh": "QoS策略的ID。"
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::CEN::InterRegionTrafficQosQueue",
      "Properties": {
        "Dscps": {
          "Ref": "Dscps"
        },
        "TrafficQosPolicyId": {
          "Ref": "TrafficQosPolicyId"
        }
      }
    }
  },
  "Outputs": {
    "RemainBandwidthPercent": {
      "Description": {
        "en": "The maximum percentage of inter-region bandwidth that can be allocated to the queue.",
        "zh": "可分配给队列的跨地域带宽最大百分比。"
      },
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "RemainBandwidthPercent"
        ]
      }
    },
    "EffectiveBandwidth": {
      "Description": {
        "en": "The actual bandwidth value of the current queue.",
        "zh": "当前队列的实际带宽值。"
      },
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "EffectiveBandwidth"
        ]
      }
    },
    "InterRegionTrafficQosQueueId": {
      "Description": {
        "en": "The ID of the queue.",
        "zh": "队列的ID。"
      },
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "InterRegionTrafficQosQueueId"
        ]
      }
    },
    "Dscps": {
      "Description": {
        "en": "The DSCP value of the traffic packet to be matched in the current queue.",
        "zh": "在当前队列中匹配的流量包的DSCP值。"
      },
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Dscps"
        ]
      }
    },
    "Bandwidth": {
      "Description": {
        "en": "The maximum absolute bandwidth value that can be allocated to the queue. Unit: Mbit/s.",
        "zh": "可分配给队列的最大绝对带宽值。单位:Mbit/s。"
      },
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Bandwidth"
        ]
      }
    },
    "InterRegionTrafficQosQueueName": {
      "Description": {
        "en": "The name of the queue.",
        "zh": "队列的名称。"
      },
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "InterRegionTrafficQosQueueName"
        ]
      }
    },
    "TrafficQosPolicyId": {
      "Description": {
        "en": "The ID of the QoS policy.",
        "zh": "QoS策略的ID。"
      },
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "TrafficQosPolicyId"
        ]
      }
    },
    "InterRegionTrafficQosQueueDescription": {
      "Description": {
        "en": "The description of the queue.",
        "zh": "队列的描述。"
      },
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "InterRegionTrafficQosQueueDescription"
        ]
      }
    }
  }
}