ALIYUN::SAG::QosAssociation類(lèi)型用于將QoS策略應(yīng)用到智能接入網(wǎng)關(guān)實(shí)例。

語(yǔ)法

{
  "Type": "ALIYUN::SAG::QosAssociation",
  "Properties": {
    "QosId": String,
    "SmartAGId": String
  }
}

屬性

屬性名稱(chēng) 類(lèi)型 必須 允許更新 描述 約束
QosId String QoS策略的實(shí)例ID。 關(guān)于QoS策略的更多信息,請(qǐng)參見(jiàn)什么是QoS策略
SmartAGId String 需要應(yīng)用QoS策略的智能接入網(wǎng)關(guān)實(shí)例ID。 無(wú)

返回值

Fn::GetAtt

  • QosId:QoS策略的實(shí)例ID。
  • SmartAGId:需要應(yīng)用QoS策略的智能接入網(wǎng)關(guān)實(shí)例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"
        ]
      }
    }
  }
}