AcceleratorArgs

data class AcceleratorArgs(val acceleratorName: Output<String>? = null, val autoRenewDuration: Output<Int>? = null, val autoUseCoupon: Output<Boolean>? = null, val bandwidthBillingType: Output<String>? = null, val crossBorderMode: 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 renewalStatus: Output<String>? = null, val resourceGroupId: Output<String>? = null, val spec: Output<String>? = null, val tags: Output<Map<String, 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: Available since v1.111.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.ga.Accelerator("example", {
duration: 1,
autoUseCoupon: true,
spec: "1",
});
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.ga.Accelerator("example",
duration=1,
auto_use_coupon=True,
spec="1")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.Ga.Accelerator("example", new()
{
Duration = 1,
AutoUseCoupon = true,
Spec = "1",
});
});
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.NewAccelerator(ctx, "example", &ga.AcceleratorArgs{
Duration: pulumi.Int(1),
AutoUseCoupon: pulumi.Bool(true),
Spec: pulumi.String("1"),
})
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.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()
.duration(1)
.autoUseCoupon(true)
.spec("1")
.build());
}
}
resources:
example:
type: alicloud:ga:Accelerator
properties:
duration: 1
autoUseCoupon: true
spec: '1'

Import

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

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

Constructors

Link copied to clipboard
constructor(acceleratorName: Output<String>? = null, autoRenewDuration: Output<Int>? = null, autoUseCoupon: Output<Boolean>? = null, bandwidthBillingType: Output<String>? = null, crossBorderMode: 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, renewalStatus: Output<String>? = null, resourceGroupId: Output<String>? = null, spec: Output<String>? = null, tags: Output<Map<String, String>>? = null)

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: false. Valid values:

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

The bandwidth billing method. Default value: BandwidthPackage. Valid values:

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

The type of cross-border acceleration. Default value: bgpPro. Valid values: bgpPro, private. NOTE: cross_border_mode is valid only when cross_border_status is set to true.

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

Descriptive information of the global acceleration instance.

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

The subscription duration.

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 of the GA instance. Default value: Month. Valid values:

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

Whether to renew an accelerator automatically or not. Default value: Normal. 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 spec: Output<String>? = null

The instance type of the GA instance. Specification of global acceleration instance. Valid values:

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(): AcceleratorArgs