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 resourceGroupId: Output<String>? = null, val tags: Output<Map<String, String>>? = 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

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>

Constructors

Link copied to clipboard
constructor(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, resourceGroupId: Output<String>? = null, tags: Output<Map<String, String>>? = null, type: Output<String>? = null)

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. Valid values: 1 to 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. NOTE: billing_type is valid only when payment_type is set to PayAsYouGo.

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. NOTE: ratio is valid only when billing_type is set to PayBy95.

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

The ID of the resource group. Note: Once you set a value of this property, you cannot set it to an empty string anymore.

Link copied to clipboard
val tags: Output<Map<String, String>>? = 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.

Functions

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