Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Alibaba Cloud

v3.8.0 published on Monday, Oct 4, 2021 by Pulumi

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 in v1.111.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new AliCloud.Ga.Accelerator("example", new AliCloud.Ga.AcceleratorArgs
        {
            AutoUseCoupon = true,
            Duration = 1,
            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{
			AutoUseCoupon: pulumi.Bool(true),
			Duration:      pulumi.Int(1),
			Spec:          pulumi.String("1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.ga.Accelerator("example",
    auto_use_coupon=True,
    duration=1,
    spec="1")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = new alicloud.ga.Accelerator("example", {
    autoUseCoupon: true,
    duration: 1,
    spec: "1",
});

Create a Accelerator Resource

new Accelerator(name: string, args: AcceleratorArgs, opts?: CustomResourceOptions);
@overload
def Accelerator(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                accelerator_name: Optional[str] = None,
                auto_use_coupon: Optional[bool] = None,
                description: Optional[str] = None,
                duration: Optional[int] = None,
                spec: Optional[str] = None)
@overload
def Accelerator(resource_name: str,
                args: AcceleratorArgs,
                opts: Optional[ResourceOptions] = None)
func NewAccelerator(ctx *Context, name string, args AcceleratorArgs, opts ...ResourceOption) (*Accelerator, error)
public Accelerator(string name, AcceleratorArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args AcceleratorArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args AcceleratorArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args AcceleratorArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AcceleratorArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Accelerator Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Accelerator resource accepts the following input properties:

Duration int
The duration. The value range is 1-9.
Spec string
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.
AcceleratorName string
The Name of the GA instance.
AutoUseCoupon bool
Use coupons to pay bills automatically. Default value is false. Valid value: true: Use, false: Not used.
Description string
Descriptive information of the global acceleration instance.
Duration int
The duration. The value range is 1-9.
Spec string
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.
AcceleratorName string
The Name of the GA instance.
AutoUseCoupon bool
Use coupons to pay bills automatically. Default value is false. Valid value: true: Use, false: Not used.
Description string
Descriptive information of the global acceleration instance.
duration number
The duration. The value range is 1-9.
spec string
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.
acceleratorName string
The Name of the GA instance.
autoUseCoupon boolean
Use coupons to pay bills automatically. Default value is false. Valid value: true: Use, false: Not used.
description string
Descriptive information of the global acceleration instance.
duration int
The duration. The value range is 1-9.
spec str
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.
accelerator_name str
The Name of the GA instance.
auto_use_coupon bool
Use coupons to pay bills automatically. Default value is false. Valid value: true: Use, false: Not used.
description str
Descriptive information of the global acceleration instance.

Outputs

All input properties are implicitly available as output properties. Additionally, the Accelerator resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Status string
The status of the GA instance.
Id string
The provider-assigned unique ID for this managed resource.
Status string
The status of the GA instance.
id string
The provider-assigned unique ID for this managed resource.
status string
The status of the GA instance.
id str
The provider-assigned unique ID for this managed resource.
status str
The status of the GA instance.

Look up an Existing Accelerator Resource

Get an existing Accelerator resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AcceleratorState, opts?: CustomResourceOptions): Accelerator
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        accelerator_name: Optional[str] = None,
        auto_use_coupon: Optional[bool] = None,
        description: Optional[str] = None,
        duration: Optional[int] = None,
        spec: Optional[str] = None,
        status: Optional[str] = None) -> Accelerator
func GetAccelerator(ctx *Context, name string, id IDInput, state *AcceleratorState, opts ...ResourceOption) (*Accelerator, error)
public static Accelerator Get(string name, Input<string> id, AcceleratorState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

AcceleratorName string
The Name of the GA instance.
AutoUseCoupon bool
Use coupons to pay bills automatically. Default value is false. Valid value: true: Use, false: Not used.
Description string
Descriptive information of the global acceleration instance.
Duration int
The duration. The value range is 1-9.
Spec string
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.
Status string
The status of the GA instance.
AcceleratorName string
The Name of the GA instance.
AutoUseCoupon bool
Use coupons to pay bills automatically. Default value is false. Valid value: true: Use, false: Not used.
Description string
Descriptive information of the global acceleration instance.
Duration int
The duration. The value range is 1-9.
Spec string
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.
Status string
The status of the GA instance.
acceleratorName string
The Name of the GA instance.
autoUseCoupon boolean
Use coupons to pay bills automatically. Default value is false. Valid value: true: Use, false: Not used.
description string
Descriptive information of the global acceleration instance.
duration number
The duration. The value range is 1-9.
spec string
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.
status string
The status of the GA instance.
accelerator_name str
The Name of the GA instance.
auto_use_coupon bool
Use coupons to pay bills automatically. Default value is false. Valid value: true: Use, false: Not used.
description str
Descriptive information of the global acceleration instance.
duration int
The duration. The value range is 1-9.
spec str
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.
status str
The status of the GA instance.

Import

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

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

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.