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",
},
});
}
}
Inherited Members
Namespace: Pulumi.AliCloud.Cen
Assembly: Pulumi.AliCloud.dll
Syntax
public class BandwidthPackage : CustomResource
Constructors
View SourceBandwidthPackage(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 SourceBandwidth
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> |
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> |
Description
The description of the bandwidth package. Default to null.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ExpiredTime
The time of the bandwidth package to expire.
Declaration
public Output<string> ExpiredTime { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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>> |
Name
The name of the bandwidth package. Defaults to null.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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>> |
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 SourceGet(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 |