AcceleratorArgs

data class AcceleratorArgs(val acceleratorName: Output<String>? = null, val autoRenewDuration: Output<Int>? = null, val autoUseCoupon: Output<Boolean>? = null, val description: Output<String>? = null, val duration: Output<Int>? = null, val pricingCycle: Output<String>? = null, val renewalStatus: Output<String>? = null, val spec: Output<String>? = null) : ConvertibleToJava<AcceleratorArgs>

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

NOTE: At present, The alicloud.ga.Accelerator cannot be deleted. you need to wait until the resource is outdated and released automatically. NOTE: Available in v1.111.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.Accelerator;
import com.pulumi.alicloud.ga.AcceleratorArgs;
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 Accelerator("example", AcceleratorArgs.builder()
.autoUseCoupon(true)
.duration(1)
.spec("1")
.build());
}
}

Import

Ga Accelerator can be imported using the id, e.g.

$ pulumi import alicloud:ga/accelerator:Accelerator example <accelerator_id>

Constructors

Link copied to clipboard
fun AcceleratorArgs(acceleratorName: Output<String>? = null, autoRenewDuration: Output<Int>? = null, autoUseCoupon: Output<Boolean>? = null, description: Output<String>? = null, duration: Output<Int>? = null, pricingCycle: Output<String>? = null, renewalStatus: Output<String>? = null, spec: Output<String>? = null)

Functions

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

Properties

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

The Name of the GA instance.

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

Auto renewal period of an instance, in the unit of month. The value range is 1-12.

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

Use coupons to pay bills automatically. Default value is false. Valid value: true: Use, false: Not used.

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

Descriptive information of the global acceleration instance.

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

The subscription duration. NOTE: Starting from v1.150.0+, the duration and pricing_cycle are both required.

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

The billing cycle of the GA instance. Valid values: Month,Year. The default value: Month.

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

Whether to renew an accelerator automatically or not. Default to "Normal". Valid values:

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

The instance type of the GA instance. Specification of global acceleration instance, value: 1: Small 1. 2: Small 2. 3: Small 3. 5: Medium 1. 8: Medium 2. 10: Medium 3.