Accelerator
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>
Properties
The Name of the GA instance.
Auto renewal period of an instance, in the unit of month. The value range is 1-12.
Use coupons to pay bills automatically. Default value: false
. Valid values:
The bandwidth billing method. Default value: BandwidthPackage
. Valid values:
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
.
Indicates whether cross-border acceleration is enabled. Default value: false
. Valid values:
Descriptive information of the global acceleration instance.
The payment type. Default value: Subscription
. Valid values: PayAsYouGo
, Subscription
.
The billing cycle of the GA instance. Default value: Month
. Valid values:
The code of the coupon. NOTE: The promotion_option_no
takes effect only for accounts registered on the international site (alibabacloud.com).
Whether to renew an accelerator automatically or not. Default value: Normal
. Valid values:
The ID of the resource group. Note: Once you set a value of this property, you cannot set it to an empty string anymore.