Bandwidth Package
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: At present, The
alicloud.ga.BandwidthPackage
created withSubscription
cannot be deleted. you need to wait until the resource is outdated and released automatically. NOTE: Available since v1.112.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.ga.BandwidthPackage("example", {
bandwidth: 20,
type: "Basic",
bandwidthType: "Basic",
duration: "1",
autoPay: true,
});
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.ga.BandwidthPackage("example",
bandwidth=20,
type="Basic",
bandwidth_type="Basic",
duration="1",
auto_pay=True)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.Ga.BandwidthPackage("example", new()
{
Bandwidth = 20,
Type = "Basic",
BandwidthType = "Basic",
Duration = "1",
AutoPay = true,
});
});
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{
Bandwidth: pulumi.Int(20),
Type: pulumi.String("Basic"),
BandwidthType: pulumi.String("Basic"),
Duration: pulumi.String("1"),
AutoPay: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ga.BandwidthPackage;
import com.pulumi.alicloud.ga.BandwidthPackageArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new BandwidthPackage("example", BandwidthPackageArgs.builder()
.bandwidth(20)
.type("Basic")
.bandwidthType("Basic")
.duration(1)
.autoPay(true)
.build());
}
}
resources:
example:
type: alicloud:ga:BandwidthPackage
properties:
bandwidth: 20
type: Basic
bandwidthType: Basic
duration: 1
autoPay: true
Import
Ga Bandwidth Package can be imported using the id, e.g.
$ pulumi import alicloud:ga/bandwidthPackage:BandwidthPackage example <id>
Properties
Auto renewal period of a bandwidth packet, in the unit of month. Valid values: 1
to 12
.
Whether use vouchers. Default value: false
. Valid values:
The name of the bandwidth packet.
The bandwidth type of the bandwidth. Valid values: Advanced
, Basic
, Enhanced
. If type
is set to Basic
, this parameter is required.
The billing type. Valid values: PayBy95
, PayByTraffic
. NOTE: billing_type
is valid only when payment_type
is set to PayAsYouGo
.
Interworking area A of cross domain acceleration package. Only international stations support returning this parameter. Default value: China-mainland
.
Interworking area B of cross domain acceleration package. Only international stations support returning this parameter. Default value: Global
.
The description of bandwidth package.
The payment type of the bandwidth. Default value: Subscription
. Valid values: PayAsYouGo
, Subscription
.
The code of the coupon. NOTE: The promotion_option_no
takes effect only for accounts registered on the international site (alibabacloud.com).
Whether to renew a bandwidth packet. automatically or not. Valid values:
The ID of the resource group. Note: Once you set a value of this property, you cannot set it to an empty string anymore.