ALIYUN::VPC::CommonBandwidthPackage

更新时间:2025-03-26 07:10:16

ALIYUN::VPC::CommonBandwidthPackage类型用于创建共享带宽实例。

说明

本资源仅支持创建按量付费共享带宽实例。

语法

{
  "Type": "ALIYUN::VPC::CommonBandwidthPackage",
  "Properties": {
    "Ratio": Integer,
    "Description": String,
    "Zone": String,
    "ISP": String,
    "ResourceGroupId": String,
    "Bandwidth": Integer,
    "InternetChargeType": String,
    "Name": String,
    "DeletionProtection": Boolean
    "Tags": List
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

属性名称

类型

必须

允许更新

描述

约束

Ratio

Integer

共享带宽的保底百分比。

InternetChargeType取值为PayBy95时,需指定该参数。

取值:20,表示保底百分比的范围是20%。

Description

String

共享带宽的描述信息。

长度为2~256个字符,必须以英文字母或汉字开头,但不能以http://https://开头。

Zone

String

共享带宽的可用区。

不需要指定该参数。

ISP

String

EIP的线路类型。

取值:BGP(多线)。

ResourceGroupId

String

资源组ID。

Bandwidth

Integer

共享带宽的带宽峰值。

取值范围:2~5000。

单位:Mbps。

InternetChargeType

String

共享带宽的计费方式。

取值范围:

  • PayByBandwidth(默认值):按带宽计费。

  • PayBy95:按增强型95计费。

Name

String

共享带宽的名称。

长度为2~128个字符。必须以英文字母或汉字开头,但不能以http://https://开头。可包含英文字母、汉字、数字、半角句号(.)、下划线(_)和短划线(-)。

Tags

List

标签。

最多支持添加20个标签。

更多信息,请参见Tags属性

DeletionProtection

Boolean

是否启用删除保护。

取值:

  • true:启用删除保护。

  • false(默认值):不启用删除保护。

Tags语法

"Tags": [
  {
    "Key": String,
    "Value": String
  }
]  

Tags属性

属性名称

类型

必须

允许更新

描述

约束

属性名称

类型

必须

允许更新

描述

约束

Key

String

标签键。

长度为1~128个字符,不能以aliyunacs:开头,不能包含http://或者https://

Value

String

标签值。

长度为0~128个字符,不能以aliyunacs:开头,不能包含http://或者https://

返回值

Fn::GetAtt

  • BandwidthPackageId:共享带宽实例的ID。

  • Arn:阿里云资源名称。

示例

YAML
JSON
ROSTemplateFormatVersion: '2015-09-01'
Parameters: {}
Resources:
  CommonBandwidthPackage:
    Type: ALIYUN::VPC::CommonBandwidthPackage
    Properties:
      Description: Test
      Name: test-dsa
      Bandwidth: 5
      InternetChargeType: PayByBandwidth
Outputs:
  BandwidthPackageId:
    Description: The ID of the Internet Shared Bandwidth instance.
    Value:
      Fn::GetAtt:
        - CommonBandwidthPackage
        - BandwidthPackageId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
  },
  "Resources": {
    "CommonBandwidthPackage": {
      "Type": "ALIYUN::VPC::CommonBandwidthPackage",
      "Properties": {
        "Description": "Test",
        "Name": "test-dsa",
        "Bandwidth": 5,
        "InternetChargeType": "PayByBandwidth"
      }
    }
  },
  "Outputs": {
    "BandwidthPackageId": {
      "Description": "The ID of the Internet Shared Bandwidth instance.",
      "Value": {
        "Fn::GetAtt": [
          "CommonBandwidthPackage",
          "BandwidthPackageId"
        ]
      }
    }
  }
}{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
  },
  "Resources": {
    "CommonBandwidthPackage": {
      "Type": "ALIYUN::VPC::CommonBandwidthPackage",
      "Properties": {
        "Description": "Test",
        "Name": "test-dsa",
        "Bandwidth": 5,
        "InternetChargeType": "PayByBandwidth"
      }
    }
  },
  "Outputs": {
    "BandwidthPackageId": {
      "Description": "The ID of the Internet Shared Bandwidth instance.",
      "Value": {
        "Fn::GetAtt": [
          "CommonBandwidthPackage",
          "BandwidthPackageId"
        ]
      }
    }
  }
}
  • 本页导读 (1)
  • 语法
  • 属性
  • Tags语法
  • Tags属性
  • 返回值
  • 示例
AI助理

点击开启售前

在线咨询服务

你好,我是AI助理

可以解答问题、推荐解决方案等