ALIYUN::GA::BandwidthPackageAcceleratorAddition类型用于将带宽包与全球加速实例绑定。

语法

{
  "Type": "ALIYUN::GA::BandwidthPackageAcceleratorAddition",
  "Properties": {
    "BandwidthPackageId": String,
    "AcceleratorId": String
  }
}

属性

属性名称 类型 必须 允许更新 描述 约束
BandwidthPackageId String 与全球加速实例绑定的带宽包的ID。
AcceleratorId String 要与带宽包绑定的全球加速实例的ID。

返回值

Fn::GetAtt

  • BandwidthPackageId:与全球加速实例绑定的带宽包的ID。
  • AcceleratorId:要与带宽包绑定的全球加速实例的ID。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      BandwidthPackageId:
        Type: String
        Description: The ID of the bandwidth package to associate.
      AcceleratorId:
        Type: String
        Description: >-
          The ID of the Global Accelerator instance with which you want to associate
          the bandwidth
    
          plan.
    Resources:
      BandwidthPackageAcceleratorAddition:
        Type: 'ALIYUN::GA::BandwidthPackageAcceleratorAddition'
        Properties:
          BandwidthPackageId:
            Ref: BandwidthPackageId
          AcceleratorId:
            Ref: AcceleratorId
    Outputs:
      BandwidthPackageId:
        Description: The ID of the bandwidth package which is associated
        Value:
          'Fn::GetAtt':
            - BandwidthPackageAcceleratorAddition
            - BandwidthPackageId
      AcceleratorId:
        Description: The ID of the Global Accelerator instance
        Value:
          'Fn::GetAtt':
            - BandwidthPackageAcceleratorAddition
            - AcceleratorId
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "BandwidthPackageId": {
          "Type": "String",
          "Description": "The ID of the bandwidth package to associate."
        },
        "AcceleratorId": {
          "Type": "String",
          "Description": "The ID of the Global Accelerator instance with which you want to associate the bandwidth\nplan."
        }
      },
      "Resources": {
        "BandwidthPackageAcceleratorAddition": {
          "Type": "ALIYUN::GA::BandwidthPackageAcceleratorAddition",
          "Properties": {
            "BandwidthPackageId": {
              "Ref": "BandwidthPackageId"
            },
            "AcceleratorId": {
              "Ref": "AcceleratorId"
            }
          }
        }
      },
      "Outputs": {
        "BandwidthPackageId": {
          "Description": "The ID of the bandwidth package which is associated",
          "Value": {
            "Fn::GetAtt": [
              "BandwidthPackageAcceleratorAddition",
              "BandwidthPackageId"
            ]
          }
        },
        "AcceleratorId": {
          "Description": "The ID of the Global Accelerator instance",
          "Value": {
            "Fn::GetAtt": [
              "BandwidthPackageAcceleratorAddition",
              "AcceleratorId"
            ]
          }
        }
      }
    }