Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Alibaba Cloud

v3.8.0 published on Monday, Oct 4, 2021 by Pulumi

BandwidthPackage

Provides a Global Accelerator (GA) Bandwidth Package resource.

For information about Global Accelerator (GA) Bandwidth Package and how to use it, see What is Bandwidth Package.

NOTE: Available in v1.112.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new AliCloud.Ga.BandwidthPackage("example", new AliCloud.Ga.BandwidthPackageArgs
        {
            AutoPay = true,
            Bandwidth = 20,
            BandwidthType = "Basic",
            Duration = "1",
            Ratio = 30,
            Type = "Basic",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ga"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ga.NewBandwidthPackage(ctx, "example", &ga.BandwidthPackageArgs{
			AutoPay:       pulumi.Bool(true),
			Bandwidth:     pulumi.Int(20),
			BandwidthType: pulumi.String("Basic"),
			Duration:      pulumi.String("1"),
			Ratio:         pulumi.Int(30),
			Type:          pulumi.String("Basic"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.ga.BandwidthPackage("example",
    auto_pay=True,
    bandwidth=20,
    bandwidth_type="Basic",
    duration="1",
    ratio=30,
    type="Basic")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = new alicloud.ga.BandwidthPackage("example", {
    autoPay: true,
    bandwidth: 20,
    bandwidthType: "Basic",
    duration: "1",
    ratio: 30,
    type: "Basic",
});

Create a BandwidthPackage Resource

new BandwidthPackage(name: string, args: BandwidthPackageArgs, opts?: CustomResourceOptions);
@overload
def BandwidthPackage(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     auto_pay: Optional[bool] = None,
                     auto_use_coupon: Optional[bool] = None,
                     bandwidth: Optional[int] = None,
                     bandwidth_package_name: Optional[str] = None,
                     bandwidth_type: Optional[str] = None,
                     billing_type: Optional[str] = None,
                     cbn_geographic_region_ida: Optional[str] = None,
                     cbn_geographic_region_idb: Optional[str] = None,
                     description: Optional[str] = None,
                     duration: Optional[str] = None,
                     payment_type: Optional[str] = None,
                     ratio: Optional[int] = None,
                     type: Optional[str] = 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)
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.

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 value of bandwidth packet.
Type string
The type of the bandwidth packet. China station only supports return to basic. Valid values: Basic, CrossDomain.
AutoPay bool
Whether to pay automatically. Valid values: false: If automatic payment is not enabled, you need to go to the order center to complete the payment after the order is generated. true: Enable automatic payment, automatic payment order.
AutoUseCoupon bool
Whether use vouchers. Default value is false. Valid values: false: Not used, true: Use.
BandwidthPackageName string
The name of the bandwidth packet.
BandwidthType string
The bandwidth type of the bandwidth. Valid values: Advanced, Basic, Enhanced.
BillingType string
The billing type. Valid values: PayBy95, PayByTraffic.
CbnGeographicRegionIda string
Interworking area A of cross domain acceleration package. Only international stations support returning this parameter. Default value is China-mainland.
CbnGeographicRegionIdb string
Interworking area B of cross domain acceleration package. Only international stations support returning this parameter. Default value is Global.
Description string
The description of bandwidth package.
Duration string
The duration.
PaymentType string
The payment type of the bandwidth. Valid values: PayAsYouGo, Subscription. Default value is Subscription.
Ratio int
The ratio.
Bandwidth int
The bandwidth value of bandwidth packet.
Type string
The type of the bandwidth packet. China station only supports return to basic. Valid values: Basic, CrossDomain.
AutoPay bool
Whether to pay automatically. Valid values: false: If automatic payment is not enabled, you need to go to the order center to complete the payment after the order is generated. true: Enable automatic payment, automatic payment order.
AutoUseCoupon bool
Whether use vouchers. Default value is false. Valid values: false: Not used, true: Use.
BandwidthPackageName string
The name of the bandwidth packet.
BandwidthType string
The bandwidth type of the bandwidth. Valid values: Advanced, Basic, Enhanced.
BillingType string
The billing type. Valid values: PayBy95, PayByTraffic.
CbnGeographicRegionIda string
Interworking area A of cross domain acceleration package. Only international stations support returning this parameter. Default value is China-mainland.
CbnGeographicRegionIdb string
Interworking area B of cross domain acceleration package. Only international stations support returning this parameter. Default value is Global.
Description string
The description of bandwidth package.
Duration string
The duration.
PaymentType string
The payment type of the bandwidth. Valid values: PayAsYouGo, Subscription. Default value is Subscription.
Ratio int
The ratio.
bandwidth number
The bandwidth value of bandwidth packet.
type string
The type of the bandwidth packet. China station only supports return to basic. Valid values: Basic, CrossDomain.
autoPay boolean
Whether to pay automatically. Valid values: false: If automatic payment is not enabled, you need to go to the order center to complete the payment after the order is generated. true: Enable automatic payment, automatic payment order.
autoUseCoupon boolean
Whether use vouchers. Default value is false. Valid values: false: Not used, true: Use.
bandwidthPackageName string
The name of the bandwidth packet.
bandwidthType string
The bandwidth type of the bandwidth. Valid values: Advanced, Basic, Enhanced.
billingType string
The billing type. Valid values: PayBy95, PayByTraffic.
cbnGeographicRegionIda string
Interworking area A of cross domain acceleration package. Only international stations support returning this parameter. Default value is China-mainland.
cbnGeographicRegionIdb string
Interworking area B of cross domain acceleration package. Only international stations support returning this parameter. Default value is Global.
description string
The description of bandwidth package.
duration string
The duration.
paymentType string
The payment type of the bandwidth. Valid values: PayAsYouGo, Subscription. Default value is Subscription.
ratio number
The ratio.
bandwidth int
The bandwidth value of bandwidth packet.
type str
The type of the bandwidth packet. China station only supports return to basic. Valid values: Basic, CrossDomain.
auto_pay bool
Whether to pay automatically. Valid values: false: If automatic payment is not enabled, you need to go to the order center to complete the payment after the order is generated. true: Enable automatic payment, automatic payment order.
auto_use_coupon bool
Whether use vouchers. Default value is false. Valid values: false: Not used, true: Use.
bandwidth_package_name str
The name of the bandwidth packet.
bandwidth_type str
The bandwidth type of the bandwidth. Valid values: Advanced, Basic, Enhanced.
billing_type str
The billing type. Valid values: PayBy95, PayByTraffic.
cbn_geographic_region_ida str
Interworking area A of cross domain acceleration package. Only international stations support returning this parameter. Default value is China-mainland.
cbn_geographic_region_idb str
Interworking area B of cross domain acceleration package. Only international stations support returning this parameter. Default value is Global.
description str
The description of bandwidth package.
duration str
The duration.
payment_type str
The payment type of the bandwidth. Valid values: PayAsYouGo, Subscription. Default value is Subscription.
ratio int
The ratio.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Status string
The status of the bandwidth plan.
Id string
The provider-assigned unique ID for this managed resource.
Status string
The status of the bandwidth plan.
id string
The provider-assigned unique ID for this managed resource.
status string
The status of the bandwidth plan.
id str
The provider-assigned unique ID for this managed resource.
status str
The status of the bandwidth plan.

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,
        auto_pay: Optional[bool] = None,
        auto_use_coupon: Optional[bool] = None,
        bandwidth: Optional[int] = None,
        bandwidth_package_name: Optional[str] = None,
        bandwidth_type: Optional[str] = None,
        billing_type: Optional[str] = None,
        cbn_geographic_region_ida: Optional[str] = None,
        cbn_geographic_region_idb: Optional[str] = None,
        description: Optional[str] = None,
        duration: Optional[str] = None,
        payment_type: Optional[str] = None,
        ratio: Optional[int] = None,
        status: Optional[str] = None,
        type: 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)
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:

AutoPay bool
Whether to pay automatically. Valid values: false: If automatic payment is not enabled, you need to go to the order center to complete the payment after the order is generated. true: Enable automatic payment, automatic payment order.
AutoUseCoupon bool
Whether use vouchers. Default value is false. Valid values: false: Not used, true: Use.
Bandwidth int
The bandwidth value of bandwidth packet.
BandwidthPackageName string
The name of the bandwidth packet.
BandwidthType string
The bandwidth type of the bandwidth. Valid values: Advanced, Basic, Enhanced.
BillingType string
The billing type. Valid values: PayBy95, PayByTraffic.
CbnGeographicRegionIda string
Interworking area A of cross domain acceleration package. Only international stations support returning this parameter. Default value is China-mainland.
CbnGeographicRegionIdb string
Interworking area B of cross domain acceleration package. Only international stations support returning this parameter. Default value is Global.
Description string
The description of bandwidth package.
Duration string
The duration.
PaymentType string
The payment type of the bandwidth. Valid values: PayAsYouGo, Subscription. Default value is Subscription.
Ratio int
The ratio.
Status string
The status of the bandwidth plan.
Type string
The type of the bandwidth packet. China station only supports return to basic. Valid values: Basic, CrossDomain.
AutoPay bool
Whether to pay automatically. Valid values: false: If automatic payment is not enabled, you need to go to the order center to complete the payment after the order is generated. true: Enable automatic payment, automatic payment order.
AutoUseCoupon bool
Whether use vouchers. Default value is false. Valid values: false: Not used, true: Use.
Bandwidth int
The bandwidth value of bandwidth packet.
BandwidthPackageName string
The name of the bandwidth packet.
BandwidthType string
The bandwidth type of the bandwidth. Valid values: Advanced, Basic, Enhanced.
BillingType string
The billing type. Valid values: PayBy95, PayByTraffic.
CbnGeographicRegionIda string
Interworking area A of cross domain acceleration package. Only international stations support returning this parameter. Default value is China-mainland.
CbnGeographicRegionIdb string
Interworking area B of cross domain acceleration package. Only international stations support returning this parameter. Default value is Global.
Description string
The description of bandwidth package.
Duration string
The duration.
PaymentType string
The payment type of the bandwidth. Valid values: PayAsYouGo, Subscription. Default value is Subscription.
Ratio int
The ratio.
Status string
The status of the bandwidth plan.
Type string
The type of the bandwidth packet. China station only supports return to basic. Valid values: Basic, CrossDomain.
autoPay boolean
Whether to pay automatically. Valid values: false: If automatic payment is not enabled, you need to go to the order center to complete the payment after the order is generated. true: Enable automatic payment, automatic payment order.
autoUseCoupon boolean
Whether use vouchers. Default value is false. Valid values: false: Not used, true: Use.
bandwidth number
The bandwidth value of bandwidth packet.
bandwidthPackageName string
The name of the bandwidth packet.
bandwidthType string
The bandwidth type of the bandwidth. Valid values: Advanced, Basic, Enhanced.
billingType string
The billing type. Valid values: PayBy95, PayByTraffic.
cbnGeographicRegionIda string
Interworking area A of cross domain acceleration package. Only international stations support returning this parameter. Default value is China-mainland.
cbnGeographicRegionIdb string
Interworking area B of cross domain acceleration package. Only international stations support returning this parameter. Default value is Global.
description string
The description of bandwidth package.
duration string
The duration.
paymentType string
The payment type of the bandwidth. Valid values: PayAsYouGo, Subscription. Default value is Subscription.
ratio number
The ratio.
status string
The status of the bandwidth plan.
type string
The type of the bandwidth packet. China station only supports return to basic. Valid values: Basic, CrossDomain.
auto_pay bool
Whether to pay automatically. Valid values: false: If automatic payment is not enabled, you need to go to the order center to complete the payment after the order is generated. true: Enable automatic payment, automatic payment order.
auto_use_coupon bool
Whether use vouchers. Default value is false. Valid values: false: Not used, true: Use.
bandwidth int
The bandwidth value of bandwidth packet.
bandwidth_package_name str
The name of the bandwidth packet.
bandwidth_type str
The bandwidth type of the bandwidth. Valid values: Advanced, Basic, Enhanced.
billing_type str
The billing type. Valid values: PayBy95, PayByTraffic.
cbn_geographic_region_ida str
Interworking area A of cross domain acceleration package. Only international stations support returning this parameter. Default value is China-mainland.
cbn_geographic_region_idb str
Interworking area B of cross domain acceleration package. Only international stations support returning this parameter. Default value is Global.
description str
The description of bandwidth package.
duration str
The duration.
payment_type str
The payment type of the bandwidth. Valid values: PayAsYouGo, Subscription. Default value is Subscription.
ratio int
The ratio.
status str
The status of the bandwidth plan.
type str
The type of the bandwidth packet. China station only supports return to basic. Valid values: Basic, CrossDomain.

Import

Ga Bandwidth Package can be imported using the id, e.g.

 $ pulumi import alicloud:ga/bandwidthPackage:BandwidthPackage example <id>

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.