DATASOURCE::GA::BandwidthPackages

更新时间:
复制 MD 格式

DATASOURCE::GA::BandwidthPackages类型用于查询带宽包信息列表。

语法

{
  "Type": "DATASOURCE::GA::BandwidthPackages",
  "Properties": {
    "Type": String,
    "ResourceGroupId": String,
    "BandwidthPackageId": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

Type

String

否

是

带宽包的类型。

取值:Basic,基础带宽包。

ResourceGroupId

String

否

是

资源组ID。

无

BandwidthPackageId

String

否

是

带宽包ID。

无

RefreshOptions

String

否

是

当资源栈更新时,数据源资源的刷新策略。

有效值:

  • Never(默认值):更新堆栈时,从不刷新数据源资源。

  • Always:更新堆栈时,始终刷新数据源资源。

返回值

Fn::GetAtt

  • BandwidthPackageIds:带宽包ID列表。

  • BandwidthPackages:带宽包详情列表。

属性名称

类型

描述

约束

BandwidthPackageIds

List

带宽包ID列表。

无

BandwidthPackages

List

带宽包详情列表。

无

ExpiredTime

String

带宽包到期时间的时间戳。

无

Type

String

带宽包的类型。

无

CbnGeographicRegionIdA

String

跨地域加速包的互通区域A。

无

ResourceGroupId

String

资源组ID。

无

CreateTime

String

带宽包的创建时间。

无

BandwidthPackageId

String

带宽包ID。

无

Ratio

String

95计费保底百分比。

无

CbnGeographicRegionIdB

String

跨地域加速包的互通区域B。

无

Bandwidth

Number

带宽包的带宽值。

无

BillingType

String

后付费计费方式。

无

BandwidthPackageName

String

带宽包的名称。

无

Description

String

带宽包的描述。

无

PaymentType

String

付费类型。

无

BandwidthType

String

带宽类型。

无

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  BandwidthPackageId:
    Description:
      en: The Resource ID of the bandwidth.
    Required: false
    Type: String
  ResourceGroupId:
    AssociationProperty: ALIYUN::ECS::ResourceGroup::ResourceGroupId
    Description:
      en: The ID of the resource group.
    Required: false
    Type: String
  Type:
    AllowedValues:
    - Basic
    - CrossDomain
    Description:
      en: 'The type of the bandwidth package. Value:

        Basic: Basic bandwidth package.

        CrossDomain: cross-region acceleration package.

        China Station only supports Basic.'
    Required: false
    Type: String
Resources:
  ExtensionDataSource:
    Properties:
      BandwidthPackageId:
        Ref: BandwidthPackageId
      ResourceGroupId:
        Ref: ResourceGroupId
      Type:
        Ref: Type
    Type: DATASOURCE::GA::BandwidthPackages
Outputs:
  BandwidthPackageIds:
    Description: The list of bandwidth package IDs.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - BandwidthPackageIds
  BandwidthPackages:
    Description: The list of bandwidth packages.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - BandwidthPackages
                        
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Type": {
      "Type": "String",
      "Description": {
        "en": "The type of the bandwidth package. Value:\nBasic: Basic bandwidth package.\nCrossDomain: cross-region acceleration package.\nChina Station only supports Basic."
      },
      "AllowedValues": [
        "Basic",
        "CrossDomain"
      ],
      "Required": false
    },
    "ResourceGroupId": {
      "AssociationProperty": "ALIYUN::ECS::ResourceGroup::ResourceGroupId",
      "Type": "String",
      "Description": {
        "en": "The ID of the resource group."
      },
      "Required": false
    },
    "BandwidthPackageId": {
      "Type": "String",
      "Description": {
        "en": "The Resource ID of the bandwidth."
      },
      "Required": false
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::GA::BandwidthPackages",
      "Properties": {
        "Type": {
          "Ref": "Type"
        },
        "ResourceGroupId": {
          "Ref": "ResourceGroupId"
        },
        "BandwidthPackageId": {
          "Ref": "BandwidthPackageId"
        }
      }
    }
  },
  "Outputs": {
    "BandwidthPackageIds": {
      "Description": "The list of bandwidth package IDs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "BandwidthPackageIds"
        ]
      }
    },
    "BandwidthPackages": {
      "Description": "The list of bandwidth packages.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "BandwidthPackages"
        ]
      }
    }
  }
}