Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.19.0 published on Friday, Mar 18, 2022 by Pulumi

BandwidthPackage

Import

CEN bandwidth package can be imported using the id, e.g.

 $ pulumi import alicloud:cen/bandwidthPackage:BandwidthPackage example cenbwp-abc123456

Create a BandwidthPackage Resource

new BandwidthPackage(name: string, args: BandwidthPackageArgs, opts?: CustomResourceOptions);
@overload
def BandwidthPackage(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     bandwidth: Optional[int] = None,
                     cen_bandwidth_package_name: Optional[str] = None,
                     charge_type: Optional[str] = None,
                     description: Optional[str] = None,
                     geographic_region_a_id: Optional[str] = None,
                     geographic_region_b_id: Optional[str] = None,
                     geographic_region_ids: Optional[Sequence[str]] = None,
                     name: Optional[str] = None,
                     payment_type: Optional[str] = None,
                     period: Optional[int] = None)
@overload
def BandwidthPackage(resource_name: str,
                     args: BandwidthPackageArgs,
                     opts: Optional[ResourceOptions] = None)
func NewBandwidthPackage(ctx *Context, name string, args BandwidthPackageArgs, opts ...ResourceOption) (*BandwidthPackage, error)
public BandwidthPackage(string name, BandwidthPackageArgs args, CustomResourceOptions? opts = null)
public BandwidthPackage(String name, BandwidthPackageArgs args)
public BandwidthPackage(String name, BandwidthPackageArgs args, CustomResourceOptions options)
type: alicloud:cen:BandwidthPackage
properties: # The arguments to resource properties.
options: # 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.
resource_name str
The unique name of the resource.
args BandwidthPackageArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control 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.
name String
The unique name of the resource.
args BandwidthPackageArgs
The arguments to resource properties.
options 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 Architecture and Concepts 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.

CenBandwidthPackageName string

The name of the bandwidth package. Defaults to null.

ChargeType string

Field charge_type has been deprecated from version 1.97.0. Use payment_type and instead.

Deprecated:

Field 'charge_type' has been deprecated from version 1.98.0. Use 'payment_type' and instead.

Description string

The description of the bandwidth package. Default to null.

GeographicRegionAId string

The area A to which the network instance belongs. Valid values: China | North-America | Asia-Pacific | Europe | Australia.

GeographicRegionBId string

The area B to which the network instance belongs. Valid values: China | North-America | Asia-Pacific | Europe | Australia.

GeographicRegionIds List<string>

Field geographic_region_ids has been deprecated from version 1.97.0. Use geographic_region_a_id and geographic_region_b_id instead.

Deprecated:

Field 'geographic_region_ids' has been deprecated from version 1.98.0. Use 'geographic_region_a_id' and 'geographic_region_b_id' instead.

Name string

Field name has been deprecated from version 1.97.0. Use cen_bandwidth_package_name and instead.

Deprecated:

Field 'name' has been deprecated from version 1.98.0. Use 'cen_bandwidth_package_name' and instead.

PaymentType 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.

Period int
Bandwidth int

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

CenBandwidthPackageName string

The name of the bandwidth package. Defaults to null.

ChargeType string

Field charge_type has been deprecated from version 1.97.0. Use payment_type and instead.

Deprecated:

Field 'charge_type' has been deprecated from version 1.98.0. Use 'payment_type' and instead.

Description string

The description of the bandwidth package. Default to null.

GeographicRegionAId string

The area A to which the network instance belongs. Valid values: China | North-America | Asia-Pacific | Europe | Australia.

GeographicRegionBId string

The area B to which the network instance belongs. Valid values: China | North-America | Asia-Pacific | Europe | Australia.

GeographicRegionIds []string

Field geographic_region_ids has been deprecated from version 1.97.0. Use geographic_region_a_id and geographic_region_b_id instead.

Deprecated:

Field 'geographic_region_ids' has been deprecated from version 1.98.0. Use 'geographic_region_a_id' and 'geographic_region_b_id' instead.

Name string

Field name has been deprecated from version 1.97.0. Use cen_bandwidth_package_name and instead.

Deprecated:

Field 'name' has been deprecated from version 1.98.0. Use 'cen_bandwidth_package_name' and instead.

PaymentType 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.

Period int
bandwidth Integer

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

cenBandwidthPackageName String

The name of the bandwidth package. Defaults to null.

chargeType String

Field charge_type has been deprecated from version 1.97.0. Use payment_type and instead.

Deprecated:

Field 'charge_type' has been deprecated from version 1.98.0. Use 'payment_type' and instead.

description String

The description of the bandwidth package. Default to null.

geographicRegionAId String

The area A to which the network instance belongs. Valid values: China | North-America | Asia-Pacific | Europe | Australia.

geographicRegionBId String

The area B to which the network instance belongs. Valid values: China | North-America | Asia-Pacific | Europe | Australia.

geographicRegionIds List

Field geographic_region_ids has been deprecated from version 1.97.0. Use geographic_region_a_id and geographic_region_b_id instead.

Deprecated:

Field 'geographic_region_ids' has been deprecated from version 1.98.0. Use 'geographic_region_a_id' and 'geographic_region_b_id' instead.

name String

Field name has been deprecated from version 1.97.0. Use cen_bandwidth_package_name and instead.

Deprecated:

Field 'name' has been deprecated from version 1.98.0. Use 'cen_bandwidth_package_name' and instead.

paymentType 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.

period Integer
bandwidth number

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

cenBandwidthPackageName string

The name of the bandwidth package. Defaults to null.

chargeType string

Field charge_type has been deprecated from version 1.97.0. Use payment_type and instead.

Deprecated:

Field 'charge_type' has been deprecated from version 1.98.0. Use 'payment_type' and instead.

description string

The description of the bandwidth package. Default to null.

geographicRegionAId string

The area A to which the network instance belongs. Valid values: China | North-America | Asia-Pacific | Europe | Australia.

geographicRegionBId string

The area B to which the network instance belongs. Valid values: China | North-America | Asia-Pacific | Europe | Australia.

geographicRegionIds string[]

Field geographic_region_ids has been deprecated from version 1.97.0. Use geographic_region_a_id and geographic_region_b_id instead.

Deprecated:

Field 'geographic_region_ids' has been deprecated from version 1.98.0. Use 'geographic_region_a_id' and 'geographic_region_b_id' instead.

name string

Field name has been deprecated from version 1.97.0. Use cen_bandwidth_package_name and instead.

Deprecated:

Field 'name' has been deprecated from version 1.98.0. Use 'cen_bandwidth_package_name' and instead.

paymentType 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.

period number
bandwidth int

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

cen_bandwidth_package_name str

The name of the bandwidth package. Defaults to null.

charge_type str

Field charge_type has been deprecated from version 1.97.0. Use payment_type and instead.

Deprecated:

Field 'charge_type' has been deprecated from version 1.98.0. Use 'payment_type' and instead.

description str

The description of the bandwidth package. Default to null.

geographic_region_a_id str

The area A to which the network instance belongs. Valid values: China | North-America | Asia-Pacific | Europe | Australia.

geographic_region_b_id str

The area B to which the network instance belongs. Valid values: China | North-America | Asia-Pacific | Europe | Australia.

geographic_region_ids Sequence[str]

Field geographic_region_ids has been deprecated from version 1.97.0. Use geographic_region_a_id and geographic_region_b_id instead.

Deprecated:

Field 'geographic_region_ids' has been deprecated from version 1.98.0. Use 'geographic_region_a_id' and 'geographic_region_b_id' instead.

name str

Field name has been deprecated from version 1.97.0. Use cen_bandwidth_package_name and instead.

Deprecated:

Field 'name' has been deprecated from version 1.98.0. Use 'cen_bandwidth_package_name' and instead.

payment_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.

period int
bandwidth Number

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

cenBandwidthPackageName String

The name of the bandwidth package. Defaults to null.

chargeType String

Field charge_type has been deprecated from version 1.97.0. Use payment_type and instead.

Deprecated:

Field 'charge_type' has been deprecated from version 1.98.0. Use 'payment_type' and instead.

description String

The description of the bandwidth package. Default to null.

geographicRegionAId String

The area A to which the network instance belongs. Valid values: China | North-America | Asia-Pacific | Europe | Australia.

geographicRegionBId String

The area B to which the network instance belongs. Valid values: China | North-America | Asia-Pacific | Europe | Australia.

geographicRegionIds List

Field geographic_region_ids has been deprecated from version 1.97.0. Use geographic_region_a_id and geographic_region_b_id instead.

Deprecated:

Field 'geographic_region_ids' has been deprecated from version 1.98.0. Use 'geographic_region_a_id' and 'geographic_region_b_id' instead.

name String

Field name has been deprecated from version 1.97.0. Use cen_bandwidth_package_name and instead.

Deprecated:

Field 'name' has been deprecated from version 1.98.0. Use 'cen_bandwidth_package_name' and instead.

paymentType 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.

period Number

Outputs

All input properties are implicitly available as output properties. Additionally, the BandwidthPackage resource produces the following output properties:

ExpiredTime string

The time of the bandwidth package to expire.

Id string

The provider-assigned unique ID for this managed resource.

Status string

The association status of the bandwidth package.

ExpiredTime string

The time of the bandwidth package to expire.

Id string

The provider-assigned unique ID for this managed resource.

Status string

The association status of the bandwidth package.

expiredTime String

The time of the bandwidth package to expire.

id String

The provider-assigned unique ID for this managed resource.

status String

The association status of the bandwidth package.

expiredTime string

The time of the bandwidth package to expire.

id string

The provider-assigned unique ID for this managed resource.

status string

The association status of the bandwidth package.

expired_time str

The time of the bandwidth package to expire.

id str

The provider-assigned unique ID for this managed resource.

status str

The association status of the bandwidth package.

expiredTime String

The time of the bandwidth package to expire.

id String

The provider-assigned unique ID for this managed resource.

status String

The association status of the bandwidth package.

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): BandwidthPackage
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        bandwidth: Optional[int] = None,
        cen_bandwidth_package_name: Optional[str] = None,
        charge_type: Optional[str] = None,
        description: Optional[str] = None,
        expired_time: Optional[str] = None,
        geographic_region_a_id: Optional[str] = None,
        geographic_region_b_id: Optional[str] = None,
        geographic_region_ids: Optional[Sequence[str]] = None,
        name: Optional[str] = None,
        payment_type: Optional[str] = None,
        period: Optional[int] = None,
        status: Optional[str] = None) -> BandwidthPackage
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)
public static BandwidthPackage get(String name, Output<String> id, BandwidthPackageState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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.
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.

CenBandwidthPackageName string

The name of the bandwidth package. Defaults to null.

ChargeType string

Field charge_type has been deprecated from version 1.97.0. Use payment_type and instead.

Deprecated:

Field 'charge_type' has been deprecated from version 1.98.0. Use 'payment_type' and instead.

Description string

The description of the bandwidth package. Default to null.

ExpiredTime string

The time of the bandwidth package to expire.

GeographicRegionAId string

The area A to which the network instance belongs. Valid values: China | North-America | Asia-Pacific | Europe | Australia.

GeographicRegionBId string

The area B to which the network instance belongs. Valid values: China | North-America | Asia-Pacific | Europe | Australia.

GeographicRegionIds List<string>

Field geographic_region_ids has been deprecated from version 1.97.0. Use geographic_region_a_id and geographic_region_b_id instead.

Deprecated:

Field 'geographic_region_ids' has been deprecated from version 1.98.0. Use 'geographic_region_a_id' and 'geographic_region_b_id' instead.

Name string

Field name has been deprecated from version 1.97.0. Use cen_bandwidth_package_name and instead.

Deprecated:

Field 'name' has been deprecated from version 1.98.0. Use 'cen_bandwidth_package_name' and instead.

PaymentType 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.

Period int
Status string

The association status of the bandwidth package.

Bandwidth int

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

CenBandwidthPackageName string

The name of the bandwidth package. Defaults to null.

ChargeType string

Field charge_type has been deprecated from version 1.97.0. Use payment_type and instead.

Deprecated:

Field 'charge_type' has been deprecated from version 1.98.0. Use 'payment_type' and instead.

Description string

The description of the bandwidth package. Default to null.

ExpiredTime string

The time of the bandwidth package to expire.

GeographicRegionAId string

The area A to which the network instance belongs. Valid values: China | North-America | Asia-Pacific | Europe | Australia.

GeographicRegionBId string

The area B to which the network instance belongs. Valid values: China | North-America | Asia-Pacific | Europe | Australia.

GeographicRegionIds []string

Field geographic_region_ids has been deprecated from version 1.97.0. Use geographic_region_a_id and geographic_region_b_id instead.

Deprecated:

Field 'geographic_region_ids' has been deprecated from version 1.98.0. Use 'geographic_region_a_id' and 'geographic_region_b_id' instead.

Name string

Field name has been deprecated from version 1.97.0. Use cen_bandwidth_package_name and instead.

Deprecated:

Field 'name' has been deprecated from version 1.98.0. Use 'cen_bandwidth_package_name' and instead.

PaymentType 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.

Period int
Status string

The association status of the bandwidth package.

bandwidth Integer

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

cenBandwidthPackageName String

The name of the bandwidth package. Defaults to null.

chargeType String

Field charge_type has been deprecated from version 1.97.0. Use payment_type and instead.

Deprecated:

Field 'charge_type' has been deprecated from version 1.98.0. Use 'payment_type' and instead.

description String

The description of the bandwidth package. Default to null.

expiredTime String

The time of the bandwidth package to expire.

geographicRegionAId String

The area A to which the network instance belongs. Valid values: China | North-America | Asia-Pacific | Europe | Australia.

geographicRegionBId String

The area B to which the network instance belongs. Valid values: China | North-America | Asia-Pacific | Europe | Australia.

geographicRegionIds List

Field geographic_region_ids has been deprecated from version 1.97.0. Use geographic_region_a_id and geographic_region_b_id instead.

Deprecated:

Field 'geographic_region_ids' has been deprecated from version 1.98.0. Use 'geographic_region_a_id' and 'geographic_region_b_id' instead.

name String

Field name has been deprecated from version 1.97.0. Use cen_bandwidth_package_name and instead.

Deprecated:

Field 'name' has been deprecated from version 1.98.0. Use 'cen_bandwidth_package_name' and instead.

paymentType 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.

period Integer
status String

The association status of the bandwidth package.

bandwidth number

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

cenBandwidthPackageName string

The name of the bandwidth package. Defaults to null.

chargeType string

Field charge_type has been deprecated from version 1.97.0. Use payment_type and instead.

Deprecated:

Field 'charge_type' has been deprecated from version 1.98.0. Use 'payment_type' and instead.

description string

The description of the bandwidth package. Default to null.

expiredTime string

The time of the bandwidth package to expire.

geographicRegionAId string

The area A to which the network instance belongs. Valid values: China | North-America | Asia-Pacific | Europe | Australia.

geographicRegionBId string

The area B to which the network instance belongs. Valid values: China | North-America | Asia-Pacific | Europe | Australia.

geographicRegionIds string[]

Field geographic_region_ids has been deprecated from version 1.97.0. Use geographic_region_a_id and geographic_region_b_id instead.

Deprecated:

Field 'geographic_region_ids' has been deprecated from version 1.98.0. Use 'geographic_region_a_id' and 'geographic_region_b_id' instead.

name string

Field name has been deprecated from version 1.97.0. Use cen_bandwidth_package_name and instead.

Deprecated:

Field 'name' has been deprecated from version 1.98.0. Use 'cen_bandwidth_package_name' and instead.

paymentType 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.

period number
status string

The association status of the bandwidth package.

bandwidth int

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

cen_bandwidth_package_name str

The name of the bandwidth package. Defaults to null.

charge_type str

Field charge_type has been deprecated from version 1.97.0. Use payment_type and instead.

Deprecated:

Field 'charge_type' has been deprecated from version 1.98.0. Use 'payment_type' and instead.

description str

The description of the bandwidth package. Default to null.

expired_time str

The time of the bandwidth package to expire.

geographic_region_a_id str

The area A to which the network instance belongs. Valid values: China | North-America | Asia-Pacific | Europe | Australia.

geographic_region_b_id str

The area B to which the network instance belongs. Valid values: China | North-America | Asia-Pacific | Europe | Australia.

geographic_region_ids Sequence[str]

Field geographic_region_ids has been deprecated from version 1.97.0. Use geographic_region_a_id and geographic_region_b_id instead.

Deprecated:

Field 'geographic_region_ids' has been deprecated from version 1.98.0. Use 'geographic_region_a_id' and 'geographic_region_b_id' instead.

name str

Field name has been deprecated from version 1.97.0. Use cen_bandwidth_package_name and instead.

Deprecated:

Field 'name' has been deprecated from version 1.98.0. Use 'cen_bandwidth_package_name' and instead.

payment_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.

period int
status str

The association status of the bandwidth package.

bandwidth Number

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

cenBandwidthPackageName String

The name of the bandwidth package. Defaults to null.

chargeType String

Field charge_type has been deprecated from version 1.97.0. Use payment_type and instead.

Deprecated:

Field 'charge_type' has been deprecated from version 1.98.0. Use 'payment_type' and instead.

description String

The description of the bandwidth package. Default to null.

expiredTime String

The time of the bandwidth package to expire.

geographicRegionAId String

The area A to which the network instance belongs. Valid values: China | North-America | Asia-Pacific | Europe | Australia.

geographicRegionBId String

The area B to which the network instance belongs. Valid values: China | North-America | Asia-Pacific | Europe | Australia.

geographicRegionIds List

Field geographic_region_ids has been deprecated from version 1.97.0. Use geographic_region_a_id and geographic_region_b_id instead.

Deprecated:

Field 'geographic_region_ids' has been deprecated from version 1.98.0. Use 'geographic_region_a_id' and 'geographic_region_b_id' instead.

name String

Field name has been deprecated from version 1.97.0. Use cen_bandwidth_package_name and instead.

Deprecated:

Field 'name' has been deprecated from version 1.98.0. Use 'cen_bandwidth_package_name' and instead.

paymentType 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.

period Number
status String

The association status of the bandwidth package.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.