ALIYUN::SAG::QosAssociation类型用于将QoS策略应用到智能接入网关实例。
语法
{
  "Type": "ALIYUN::SAG::QosAssociation",
  "Properties": {
    "QosId": String,
    "SmartAGId": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
|---|---|---|---|---|---|
| QosId | String | 是 | 否 | QoS策略的实例ID。 | 关于QoS策略的更多信息,请参见什么是QoS策略。 | 
| SmartAGId | String | 是 | 否 | 需要应用QoS策略的智能接入网关实例ID。 | 无 | 
返回值
Fn::GetAtt
- QosId:QoS策略的实例ID。
- SmartAGId:需要应用QoS策略的智能接入网关实例ID。
示例
JSON格式
                  
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "QosId": {
      "Type": "String",
      "Description": "The instance ID of the QoS policy."
    },
    "SmartAGId": {
      "Type": "String",
      "Description": "The ID of the SAG instance to which the QoS policy is to be applied."
    }
  },
  "Resources": {
    "QosAssociation": {
      "Type": "ALIYUN::SAG::QosAssociation",
      "Properties": {
        "QosId": {
          "Ref": "QosId"
        },
        "SmartAGId": {
          "Ref": "SmartAGId"
        }
      }
    }
  },
  "Outputs": {
    "QosId": {
      "Description": "The ID of the QoS policy.",
      "Value": {
        "Fn::GetAtt": [
          "QosAssociation",
          "QosId"
        ]
      }
    },
    "SmartAGId": {
      "Description": "The ID of the SAG instance to which the QoS policy is to be applied.",
      "Value": {
        "Fn::GetAtt": [
          "QosAssociation",
          "SmartAGId"
        ]
      }
    }
  }
}