BandwidthPackageArgs

data class BandwidthPackageArgs(val autoPay: Output<Boolean>? = null, val autoRenewDuration: Output<Int>? = null, val autoUseCoupon: Output<Boolean>? = null, val bandwidth: Output<Int>? = null, val bandwidthPackageName: Output<String>? = null, val bandwidthType: Output<String>? = null, val billingType: Output<String>? = null, val cbnGeographicRegionIda: Output<String>? = null, val cbnGeographicRegionIdb: Output<String>? = null, val description: Output<String>? = null, val duration: Output<String>? = null, val paymentType: Output<String>? = null, val promotionOptionNo: Output<String>? = null, val ratio: Output<Int>? = null, val renewalStatus: Output<String>? = null, val tags: Output<Map<String, Any>>? = null, val type: Output<String>? = null) : ConvertibleToJava<BandwidthPackageArgs>

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>

Constructors

Link copied to clipboard
fun BandwidthPackageArgs(autoPay: Output<Boolean>? = null, autoRenewDuration: Output<Int>? = null, autoUseCoupon: Output<Boolean>? = null, bandwidth: Output<Int>? = null, bandwidthPackageName: Output<String>? = null, bandwidthType: Output<String>? = null, billingType: Output<String>? = null, cbnGeographicRegionIda: Output<String>? = null, cbnGeographicRegionIdb: Output<String>? = null, description: Output<String>? = null, duration: Output<String>? = null, paymentType: Output<String>? = null, promotionOptionNo: Output<String>? = null, ratio: Output<Int>? = null, renewalStatus: Output<String>? = null, tags: Output<Map<String, Any>>? = null, type: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): BandwidthPackageArgs

Properties

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

Whether to pay automatically. Valid values:

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

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>? = null

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

Link copied to clipboard
val bandwidth: Output<Int>? = null

The bandwidth value of bandwidth packet.

Link copied to clipboard
val bandwidthPackageName: Output<String>? = null

The name of the bandwidth packet.

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

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>? = null

The billing type. Valid values: PayBy95, PayByTraffic.

Link copied to clipboard
val cbnGeographicRegionIda: Output<String>? = null

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

Link copied to clipboard
val cbnGeographicRegionIdb: Output<String>? = null

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>? = null

The description of bandwidth package.

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

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 paymentType: Output<String>? = null

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

Link copied to clipboard
val promotionOptionNo: Output<String>? = null

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 ratio: Output<Int>? = null

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

Link copied to clipboard
val renewalStatus: Output<String>? = null

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

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

A mapping of tags to assign to the resource.

Link copied to clipboard
val type: Output<String>? = null

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