Alibaba Cloud

v3.28.0 published on Tuesday, Aug 16, 2022 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: 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

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
	})
}
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 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",
});
resources:
  example:
    type: alicloud:ga:Accelerator
    properties:
      autoUseCoupon: true
      duration: 1
      spec: 1

Create 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_renew_duration: Optional[int] = None,
                auto_use_coupon: Optional[bool] = None,
                description: Optional[str] = None,
                duration: Optional[int] = None,
                pricing_cycle: Optional[str] = None,
                renewal_status: Optional[str] = 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)
public Accelerator(String name, AcceleratorArgs args)
public Accelerator(String name, AcceleratorArgs args, CustomResourceOptions options)
type: alicloud:ga:Accelerator
properties: # The arguments to resource properties.
options: # 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.
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.
name String
The unique name of the resource.
args AcceleratorArgs
The arguments to resource properties.
options 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 subscription duration. NOTE: Starting from v1.150.0+, the duration and pricing_cycle are both required.

  • If the pricing_cycle parameter is set to Month, the valid values for the duration parameter are 1 to 9.
  • If the pricing_cycle parameter is set to Year, the valid values for the duration parameter are 1 to 3.
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.

AutoRenewDuration int

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

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.

PricingCycle string

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

  • Month: billed on a monthly basis.
  • Year: billed on an annual basis.
RenewalStatus string

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

  • AutoRenewal: Enable auto renewal.
  • Normal: Disable auto renewal.
  • NotRenewal: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
Duration int

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

  • If the pricing_cycle parameter is set to Month, the valid values for the duration parameter are 1 to 9.
  • If the pricing_cycle parameter is set to Year, the valid values for the duration parameter are 1 to 3.
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.

AutoRenewDuration int

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

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.

PricingCycle string

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

  • Month: billed on a monthly basis.
  • Year: billed on an annual basis.
RenewalStatus string

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

  • AutoRenewal: Enable auto renewal.
  • Normal: Disable auto renewal.
  • NotRenewal: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
duration Integer

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

  • If the pricing_cycle parameter is set to Month, the valid values for the duration parameter are 1 to 9.
  • If the pricing_cycle parameter is set to Year, the valid values for the duration parameter are 1 to 3.
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.

autoRenewDuration Integer

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

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.

pricingCycle String

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

  • Month: billed on a monthly basis.
  • Year: billed on an annual basis.
renewalStatus String

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

  • AutoRenewal: Enable auto renewal.
  • Normal: Disable auto renewal.
  • NotRenewal: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
duration number

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

  • If the pricing_cycle parameter is set to Month, the valid values for the duration parameter are 1 to 9.
  • If the pricing_cycle parameter is set to Year, the valid values for the duration parameter are 1 to 3.
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.

autoRenewDuration number

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

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.

pricingCycle string

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

  • Month: billed on a monthly basis.
  • Year: billed on an annual basis.
renewalStatus string

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

  • AutoRenewal: Enable auto renewal.
  • Normal: Disable auto renewal.
  • NotRenewal: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
duration int

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

  • If the pricing_cycle parameter is set to Month, the valid values for the duration parameter are 1 to 9.
  • If the pricing_cycle parameter is set to Year, the valid values for the duration parameter are 1 to 3.
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_renew_duration int

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

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.

pricing_cycle str

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

  • Month: billed on a monthly basis.
  • Year: billed on an annual basis.
renewal_status str

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

  • AutoRenewal: Enable auto renewal.
  • Normal: Disable auto renewal.
  • NotRenewal: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
duration Number

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

  • If the pricing_cycle parameter is set to Month, the valid values for the duration parameter are 1 to 9.
  • If the pricing_cycle parameter is set to Year, the valid values for the duration parameter are 1 to 3.
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.

autoRenewDuration Number

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

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.

pricingCycle String

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

  • Month: billed on a monthly basis.
  • Year: billed on an annual basis.
renewalStatus String

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

  • AutoRenewal: Enable auto renewal.
  • Normal: Disable auto renewal.
  • NotRenewal: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.

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

id String

The provider-assigned unique ID for this managed resource.

status String

The status of the GA instance.

Look up 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_renew_duration: Optional[int] = None,
        auto_use_coupon: Optional[bool] = None,
        description: Optional[str] = None,
        duration: Optional[int] = None,
        pricing_cycle: Optional[str] = None,
        renewal_status: Optional[str] = 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)
public static Accelerator get(String name, Output<String> id, AcceleratorState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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.
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.

AutoRenewDuration int

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

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 subscription duration. NOTE: Starting from v1.150.0+, the duration and pricing_cycle are both required.

  • If the pricing_cycle parameter is set to Month, the valid values for the duration parameter are 1 to 9.
  • If the pricing_cycle parameter is set to Year, the valid values for the duration parameter are 1 to 3.
PricingCycle string

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

  • Month: billed on a monthly basis.
  • Year: billed on an annual basis.
RenewalStatus string

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

  • AutoRenewal: Enable auto renewal.
  • Normal: Disable auto renewal.
  • NotRenewal: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
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.

AutoRenewDuration int

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

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 subscription duration. NOTE: Starting from v1.150.0+, the duration and pricing_cycle are both required.

  • If the pricing_cycle parameter is set to Month, the valid values for the duration parameter are 1 to 9.
  • If the pricing_cycle parameter is set to Year, the valid values for the duration parameter are 1 to 3.
PricingCycle string

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

  • Month: billed on a monthly basis.
  • Year: billed on an annual basis.
RenewalStatus string

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

  • AutoRenewal: Enable auto renewal.
  • Normal: Disable auto renewal.
  • NotRenewal: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
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.

autoRenewDuration Integer

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

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 Integer

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

  • If the pricing_cycle parameter is set to Month, the valid values for the duration parameter are 1 to 9.
  • If the pricing_cycle parameter is set to Year, the valid values for the duration parameter are 1 to 3.
pricingCycle String

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

  • Month: billed on a monthly basis.
  • Year: billed on an annual basis.
renewalStatus String

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

  • AutoRenewal: Enable auto renewal.
  • Normal: Disable auto renewal.
  • NotRenewal: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
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.

autoRenewDuration number

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

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 subscription duration. NOTE: Starting from v1.150.0+, the duration and pricing_cycle are both required.

  • If the pricing_cycle parameter is set to Month, the valid values for the duration parameter are 1 to 9.
  • If the pricing_cycle parameter is set to Year, the valid values for the duration parameter are 1 to 3.
pricingCycle string

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

  • Month: billed on a monthly basis.
  • Year: billed on an annual basis.
renewalStatus string

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

  • AutoRenewal: Enable auto renewal.
  • Normal: Disable auto renewal.
  • NotRenewal: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
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_renew_duration int

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

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 subscription duration. NOTE: Starting from v1.150.0+, the duration and pricing_cycle are both required.

  • If the pricing_cycle parameter is set to Month, the valid values for the duration parameter are 1 to 9.
  • If the pricing_cycle parameter is set to Year, the valid values for the duration parameter are 1 to 3.
pricing_cycle str

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

  • Month: billed on a monthly basis.
  • Year: billed on an annual basis.
renewal_status str

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

  • AutoRenewal: Enable auto renewal.
  • Normal: Disable auto renewal.
  • NotRenewal: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
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.

acceleratorName String

The Name of the GA instance.

autoRenewDuration Number

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

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 subscription duration. NOTE: Starting from v1.150.0+, the duration and pricing_cycle are both required.

  • If the pricing_cycle parameter is set to Month, the valid values for the duration parameter are 1 to 9.
  • If the pricing_cycle parameter is set to Year, the valid values for the duration parameter are 1 to 3.
pricingCycle String

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

  • Month: billed on a monthly basis.
  • Year: billed on an annual basis.
renewalStatus String

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

  • AutoRenewal: Enable auto renewal.
  • Normal: Disable auto renewal.
  • NotRenewal: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
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.

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.