BasicAcceleratorArgs

data class BasicAcceleratorArgs(val autoPay: Output<Boolean>? = null, val autoRenew: Output<Boolean>? = null, val autoRenewDuration: Output<Int>? = null, val autoUseCoupon: Output<String>? = null, val bandwidthBillingType: Output<String>? = null, val basicAcceleratorName: Output<String>? = null, val crossBorderStatus: Output<Boolean>? = null, val description: Output<String>? = null, val duration: Output<Int>? = null, val paymentType: Output<String>? = null, val pricingCycle: Output<String>? = null, val promotionOptionNo: Output<String>? = null, val resourceGroupId: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<BasicAcceleratorArgs>

Provides a Global Accelerator (GA) Basic Accelerator resource. For information about Global Accelerator (GA) Basic Accelerator and how to use it, see What is Basic Accelerator.

NOTE: Available since v1.194.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = new alicloud.ga.BasicAccelerator("default", {
duration: 1,
pricingCycle: "Month",
basicAcceleratorName: "tf-example-value",
description: "tf-example-value",
bandwidthBillingType: "BandwidthPackage",
autoPay: true,
autoUseCoupon: "true",
});
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.ga.BasicAccelerator("default",
duration=1,
pricing_cycle="Month",
basic_accelerator_name="tf-example-value",
description="tf-example-value",
bandwidth_billing_type="BandwidthPackage",
auto_pay=True,
auto_use_coupon="true")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = new AliCloud.Ga.BasicAccelerator("default", new()
{
Duration = 1,
PricingCycle = "Month",
BasicAcceleratorName = "tf-example-value",
Description = "tf-example-value",
BandwidthBillingType = "BandwidthPackage",
AutoPay = true,
AutoUseCoupon = "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.NewBasicAccelerator(ctx, "default", &ga.BasicAcceleratorArgs{
Duration: pulumi.Int(1),
PricingCycle: pulumi.String("Month"),
BasicAcceleratorName: pulumi.String("tf-example-value"),
Description: pulumi.String("tf-example-value"),
BandwidthBillingType: pulumi.String("BandwidthPackage"),
AutoPay: pulumi.Bool(true),
AutoUseCoupon: pulumi.String("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.BasicAccelerator;
import com.pulumi.alicloud.ga.BasicAcceleratorArgs;
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 default_ = new BasicAccelerator("default", BasicAcceleratorArgs.builder()
.duration(1)
.pricingCycle("Month")
.basicAcceleratorName("tf-example-value")
.description("tf-example-value")
.bandwidthBillingType("BandwidthPackage")
.autoPay(true)
.autoUseCoupon("true")
.build());
}
}
resources:
default:
type: alicloud:ga:BasicAccelerator
properties:
duration: 1
pricingCycle: Month
basicAcceleratorName: tf-example-value
description: tf-example-value
bandwidthBillingType: BandwidthPackage
autoPay: true
autoUseCoupon: 'true'

Import

Global Accelerator (GA) Basic Accelerator can be imported using the id, e.g.

$ pulumi import alicloud:ga/basicAccelerator:BasicAccelerator example <id>

Constructors

Link copied to clipboard
constructor(autoPay: Output<Boolean>? = null, autoRenew: Output<Boolean>? = null, autoRenewDuration: Output<Int>? = null, autoUseCoupon: Output<String>? = null, bandwidthBillingType: Output<String>? = null, basicAcceleratorName: Output<String>? = null, crossBorderStatus: Output<Boolean>? = null, description: Output<String>? = null, duration: Output<Int>? = null, paymentType: Output<String>? = null, pricingCycle: Output<String>? = null, promotionOptionNo: Output<String>? = null, resourceGroupId: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

Specifies whether to enable automatic payment. Default value: false. Valid values:

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

Specifies whether to enable auto-renewal for the GA Basic Accelerator instance. Default value: false. Valid values:

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

The auto-renewal period. Unit: months. Default value: 1. Valid values: 1 to 12. NOTE: This parameter is required only if auto_renew is set to true.

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

Specifies whether to automatically pay bills by using coupons. Default value: false. NOTE: This parameter is required only if auto_pay is set to true.

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

The bandwidth billing method. Valid values: BandwidthPackage, CDT, CDT95.

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

The name of the Global Accelerator Basic Accelerator instance.

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

Indicates whether cross-border acceleration is enabled. Default value: false. Valid values:

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

The description of the Global Accelerator Basic Accelerator instance.

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

The subscription duration. Default value: 1.

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

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

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

The billing cycle. Default value: Month. Valid values: Month, Year.

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 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.

Functions

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