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",
},
});
}
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
foo = alicloud.cen.BandwidthPackage("foo",
bandwidth=5,
geographic_region_ids=[
"China",
"Asia-Pacific",
])import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const foo = new alicloud.cen.BandwidthPackage("foo", {
bandwidth: 5,
geographicRegionIds: [
"China",
"Asia-Pacific",
],
});Create a BandwidthPackage Resource
new BandwidthPackage(name: string, args: BandwidthPackageArgs, opts?: CustomResourceOptions);def BandwidthPackage(resource_name, opts=None, bandwidth=None, charge_type=None, description=None, geographic_region_ids=None, name=None, period=None, __props__=None);func NewBandwidthPackage(ctx *Context, name string, args BandwidthPackageArgs, opts ...ResourceOption) (*BandwidthPackage, error)public BandwidthPackage(string name, BandwidthPackageArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args BandwidthPackageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args BandwidthPackageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BandwidthPackageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
BandwidthPackage Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The BandwidthPackage resource accepts the following input properties:
- Bandwidth int
The bandwidth in Mbps of the bandwidth package. Cannot be less than 2Mbps.
- Geographic
Region List<string>Ids List of the two areas to connect. Valid value: China | North-America | Asia-Pacific | Europe | Middle-East | Australia.
- Charge
Type string The billing method. Valid value: PostPaid | PrePaid. Default to PostPaid. If set to PrePaid, the bandwidth package can’t be deleted before expired time.
- Description string
The description of the bandwidth package. Default to null.
- Name string
The name of the bandwidth package. Defaults to null.
- Period int
The purchase period in month. Valid value: 1, 2, 3, 6, 12. Default to 1.
- Bandwidth int
The bandwidth in Mbps of the bandwidth package. Cannot be less than 2Mbps.
- Geographic
Region []stringIds List of the two areas to connect. Valid value: China | North-America | Asia-Pacific | Europe | Middle-East | Australia.
- Charge
Type string The billing method. Valid value: PostPaid | PrePaid. Default to PostPaid. If set to PrePaid, the bandwidth package can’t be deleted before expired time.
- Description string
The description of the bandwidth package. Default to null.
- Name string
The name of the bandwidth package. Defaults to null.
- Period int
The purchase period in month. Valid value: 1, 2, 3, 6, 12. Default to 1.
- bandwidth number
The bandwidth in Mbps of the bandwidth package. Cannot be less than 2Mbps.
- geographic
Region string[]Ids List of the two areas to connect. Valid value: China | North-America | Asia-Pacific | Europe | Middle-East | Australia.
- charge
Type string The billing method. Valid value: PostPaid | PrePaid. Default to PostPaid. If set to PrePaid, the bandwidth package can’t be deleted before expired time.
- description string
The description of the bandwidth package. Default to null.
- name string
The name of the bandwidth package. Defaults to null.
- period number
The purchase period in month. Valid value: 1, 2, 3, 6, 12. Default to 1.
- bandwidth float
The bandwidth in Mbps of the bandwidth package. Cannot be less than 2Mbps.
- geographic_
region_ List[str]ids List of the two areas to connect. Valid value: China | North-America | Asia-Pacific | Europe | Middle-East | Australia.
- charge_
type str The billing method. Valid value: PostPaid | PrePaid. Default to PostPaid. If set to PrePaid, the bandwidth package can’t be deleted before expired time.
- description str
The description of the bandwidth package. Default to null.
- name str
The name of the bandwidth package. Defaults to null.
- period float
The purchase period in month. Valid value: 1, 2, 3, 6, 12. Default to 1.
Outputs
All input properties are implicitly available as output properties. Additionally, the BandwidthPackage resource produces the following output properties:
Look up an Existing BandwidthPackage Resource
Get an existing BandwidthPackage resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: BandwidthPackageState, opts?: CustomResourceOptions): BandwidthPackagestatic get(resource_name, id, opts=None, bandwidth=None, charge_type=None, description=None, expired_time=None, geographic_region_ids=None, name=None, period=None, status=None, __props__=None);func GetBandwidthPackage(ctx *Context, name string, id IDInput, state *BandwidthPackageState, opts ...ResourceOption) (*BandwidthPackage, error)public static BandwidthPackage Get(string name, Input<string> id, BandwidthPackageState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Bandwidth int
The bandwidth in Mbps of the bandwidth package. Cannot be less than 2Mbps.
- Charge
Type string The billing method. Valid value: PostPaid | PrePaid. Default to PostPaid. If set to PrePaid, the bandwidth package can’t be deleted before expired time.
- Description string
The description of the bandwidth package. Default to null.
- Expired
Time string The time of the bandwidth package to expire.
- Geographic
Region List<string>Ids List of the two areas to connect. Valid value: China | North-America | Asia-Pacific | Europe | Middle-East | Australia.
- Name string
The name of the bandwidth package. Defaults to null.
- Period int
The purchase period in month. Valid value: 1, 2, 3, 6, 12. Default to 1.
- Status string
The status of the bandwidth, including “InUse” and “Idle”.
- Bandwidth int
The bandwidth in Mbps of the bandwidth package. Cannot be less than 2Mbps.
- Charge
Type string The billing method. Valid value: PostPaid | PrePaid. Default to PostPaid. If set to PrePaid, the bandwidth package can’t be deleted before expired time.
- Description string
The description of the bandwidth package. Default to null.
- Expired
Time string The time of the bandwidth package to expire.
- Geographic
Region []stringIds List of the two areas to connect. Valid value: China | North-America | Asia-Pacific | Europe | Middle-East | Australia.
- Name string
The name of the bandwidth package. Defaults to null.
- Period int
The purchase period in month. Valid value: 1, 2, 3, 6, 12. Default to 1.
- Status string
The status of the bandwidth, including “InUse” and “Idle”.
- bandwidth number
The bandwidth in Mbps of the bandwidth package. Cannot be less than 2Mbps.
- charge
Type string The billing method. Valid value: PostPaid | PrePaid. Default to PostPaid. If set to PrePaid, the bandwidth package can’t be deleted before expired time.
- description string
The description of the bandwidth package. Default to null.
- expired
Time string The time of the bandwidth package to expire.
- geographic
Region string[]Ids List of the two areas to connect. Valid value: China | North-America | Asia-Pacific | Europe | Middle-East | Australia.
- name string
The name of the bandwidth package. Defaults to null.
- period number
The purchase period in month. Valid value: 1, 2, 3, 6, 12. Default to 1.
- status string
The status of the bandwidth, including “InUse” and “Idle”.
- bandwidth float
The bandwidth in Mbps of the bandwidth package. Cannot be less than 2Mbps.
- charge_
type str The billing method. Valid value: PostPaid | PrePaid. Default to PostPaid. If set to PrePaid, the bandwidth package can’t be deleted before expired time.
- description str
The description of the bandwidth package. Default to null.
- expired_
time str The time of the bandwidth package to expire.
- geographic_
region_ List[str]ids List of the two areas to connect. Valid value: China | North-America | Asia-Pacific | Europe | Middle-East | Australia.
- name str
The name of the bandwidth package. Defaults to null.
- period float
The purchase period in month. Valid value: 1, 2, 3, 6, 12. Default to 1.
- status str
The status of the bandwidth, including “InUse” and “Idle”.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.