BandwidthPackage

class BandwidthPackage : KotlinCustomResource

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 with Subscription 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

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()
.autoPay(true)
.bandwidth(20)
.bandwidthType("Basic")
.duration(1)
.ratio(30)
.type("Basic")
.build());
}
}

Import

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

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

Properties

Link copied to clipboard
val autoPay: Output<Boolean>?

Whether to pay automatically. Valid values:

Link copied to clipboard
val autoRenewDuration: Output<Int>?

Auto renewal period of a bandwidth packet, in the unit of month. The value range is 1-12.

Link copied to clipboard
val autoUseCoupon: Output<Boolean>?

Whether use vouchers. Default value: false. Valid values:

Link copied to clipboard
val bandwidth: Output<Int>

The bandwidth value of bandwidth packet.

Link copied to clipboard

The name of the bandwidth packet.

Link copied to clipboard
val bandwidthType: Output<String>?

The bandwidth type of the bandwidth. Valid values: Advanced, Basic, Enhanced. If type is set to Basic, this parameter is required.

Link copied to clipboard
val billingType: Output<String>?

The billing type. Valid values: PayBy95, PayByTraffic.

Link copied to clipboard

Interworking area A of cross domain acceleration package. Only international stations support returning this parameter. Default value: China-mainland.

Link copied to clipboard

Interworking area B of cross domain acceleration package. Only international stations support returning this parameter. Default value: Global.

Link copied to clipboard
val description: Output<String>?

The description of bandwidth package.

Link copied to clipboard
val duration: Output<String>?

The subscription duration. NOTE: The ForceNew attribute has be removed from version 1.148.0. If payment_type is set to Subscription, this parameter is required.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val paymentType: Output<String>?

The payment type of the bandwidth. Default value: Subscription. Valid values: PayAsYouGo, Subscription.

Link copied to clipboard

The code of the coupon. NOTE: The promotion_option_no takes effect only for accounts registered on the international site (alibabacloud.com).

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val ratio: Output<Int>?

The minimum percentage for the pay-by-95th-percentile metering method. Valid values: 30 to 100.

Link copied to clipboard
val renewalStatus: Output<String>

Whether to renew a bandwidth packet. automatically or not. Valid values:

Link copied to clipboard
val status: Output<String>

The status of the Bandwidth Package.

Link copied to clipboard
val tags: Output<Map<String, Any>>?

A mapping of tags to assign to the resource.

Link copied to clipboard
val type: Output<String>

The type of the bandwidth packet. China station only supports return to basic. Valid values: Basic, CrossDomain.

Link copied to clipboard
val urn: Output<String>