edit-icon download-icon

ALIYUN::ECS::BandwidthPackage

Last Updated: Jun 13, 2018

Description

Creates a bandwidth package for a specified NAT gateway.

Syntax

  1. {
  2. "Type" : "ALIYUN::ECS::BandwidthPackage",
  3. "Properties" : {
  4. "Description" : String,
  5. "NatGatewayId" : String,
  6. "ZoneId" : String,
  7. "BandwidthPackageName" : String,
  8. "Bandwidth" : Integer,
  9. "IpCount" : Integer
  10. }
  11. }

Properties

Name Type Required Description Constraints
NatGatewayId String Yes ID of the NAT gateway. None.
Bandwidth Integer Yes Bandwidth. Value range: [5, 5000] Mbps.
Default value: 5 Mbps.
IpCount Integer Yes Number of public IP addresses of the NAT. Value range: [1, 5].
Description String No Bandwidth package description. It can contain 2 to 256 characters.
Default value: null.
ZoneId String No ID of the zone in which the NAT gateway is located. None.
BandwidthPackageName String No Name of the bandwidth package. It can contain 2 to 128 characters, including letters, digits, underscores (_), periods (.), and hyphens (-). It must start with a letter.

Return values

Fn::GetAtt

  • BandwidthPackageId: ID of the bandwidth package.
  • BandwidthPackageIps: all IP addresses included in the bandwidth package.

Example

  1. {
  2. "ROSTemplateFormatVersion" : "2015-09-01",
  3. "Resources" : {
  4. "BandwidthPackage": {
  5. "Type": "ALIYUN::ECS::BandwidthPackage",
  6. "Properties": {
  7. "BandwidthPackageName": "pkg_2",
  8. "Description": "my_bandwidth",
  9. "NatGatewayId": "ngw-h1xoxepyf",
  10. "IpCount": 2,
  11. "Bandwidth": 5,
  12. "ZoneId": "cn-beijing-c"
  13. }
  14. }
  15. },
  16. "Outputs": {
  17. "BandwidthPackageId": {
  18. "Value" : {"Fn::GetAttr": ["BandwidthPackage","BandwidthPackageId"]}
  19. },
  20. "BandwidthPackageIps": {
  21. "Value" : {"Fn::GetAttr": ["BandwidthPackage","BandwidthPackageIps"]}
  22. }
  23. }
  24. }
Thank you! We've received your feedback.