Show / Hide Table of Contents

Class BandwidthPackage

Provides a CEN bandwidth package resource. The CEN bandwidth package is an abstracted object that includes an interconnection bandwidth and interconnection areas. To buy a bandwidth package, you must specify the areas to connect. An area consists of one or more Alibaba Cloud regions. The areas in CEN include Mainland China, Asia Pacific, North America, and Europe.

For information about CEN and how to use it, see Manage bandwidth packages.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var foo = new AliCloud.Cen.BandwidthPackage("foo", new AliCloud.Cen.BandwidthPackageArgs
    {
        Bandwidth = 5,
        GeographicRegionIds = 
        {
            "China",
            "Asia-Pacific",
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
BandwidthPackage
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Cen
Assembly: Pulumi.AliCloud.dll
Syntax
public class BandwidthPackage : CustomResource

Constructors

View Source

BandwidthPackage(String, BandwidthPackageArgs, CustomResourceOptions)

Create a BandwidthPackage resource with the given unique name, arguments, and options.

Declaration
public BandwidthPackage(string name, BandwidthPackageArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

BandwidthPackageArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Bandwidth

The bandwidth in Mbps of the bandwidth package. Cannot be less than 2Mbps.

Declaration
public Output<int> Bandwidth { get; }
Property Value
Type Description
Output<System.Int32>
View Source

ChargeType

The billing method. Valid value: PostPaid | PrePaid. Default to PostPaid. If set to PrePaid, the bandwidth package can't be deleted before expired time.

Declaration
public Output<string> ChargeType { get; }
Property Value
Type Description
Output<System.String>
View Source

Description

The description of the bandwidth package. Default to null.

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Output<System.String>
View Source

ExpiredTime

The time of the bandwidth package to expire.

Declaration
public Output<string> ExpiredTime { get; }
Property Value
Type Description
Output<System.String>
View Source

GeographicRegionIds

List of the two areas to connect. Valid value: China | North-America | Asia-Pacific | Europe | Middle-East.

Declaration
public Output<ImmutableArray<string>> GeographicRegionIds { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

Name

The name of the bandwidth package. Defaults to null.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

Period

The purchase period in month. Valid value: 1, 2, 3, 6, 12. Default to 1.

Declaration
public Output<int?> Period { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

Status

The status of the bandwidth, including "InUse" and "Idle".

Declaration
public Output<string> Status { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, BandwidthPackageState, CustomResourceOptions)

Get an existing BandwidthPackage resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static BandwidthPackage Get(string name, Input<string> id, BandwidthPackageState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

BandwidthPackageState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
BandwidthPackage
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.