alicloud.ga.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 System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.Ga.Accelerator("example", new()
{
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
andpricing_cycle
are both required.- If the
pricing_cycle
parameter is set toMonth
, the valid values for theduration
parameter are 1 to 9. - If the
pricing_cycle
parameter is set toYear
, the valid values for theduration
parameter are 1 to 3.
- If the
- 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.- Accelerator
Name string The Name of the GA instance.
- Auto
Renew intDuration Auto renewal period of an instance, in the unit of month. The value range is 1-12.
- Auto
Use boolCoupon 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.
- Pricing
Cycle string The billing cycle of the GA instance. Valid values:
Month
,Year
. The default value:Month
.- Renewal
Status string Whether to renew an accelerator automatically or not. Default to "Normal". Valid values:
- Duration int
The subscription duration. NOTE: Starting from v1.150.0+, the
duration
andpricing_cycle
are both required.- If the
pricing_cycle
parameter is set toMonth
, the valid values for theduration
parameter are 1 to 9. - If the
pricing_cycle
parameter is set toYear
, the valid values for theduration
parameter are 1 to 3.
- If the
- 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.- Accelerator
Name string The Name of the GA instance.
- Auto
Renew intDuration Auto renewal period of an instance, in the unit of month. The value range is 1-12.
- Auto
Use boolCoupon 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.
- Pricing
Cycle string The billing cycle of the GA instance. Valid values:
Month
,Year
. The default value:Month
.- Renewal
Status string Whether to renew an accelerator automatically or not. Default to "Normal". Valid values:
- duration Integer
The subscription duration. NOTE: Starting from v1.150.0+, the
duration
andpricing_cycle
are both required.- If the
pricing_cycle
parameter is set toMonth
, the valid values for theduration
parameter are 1 to 9. - If the
pricing_cycle
parameter is set toYear
, the valid values for theduration
parameter are 1 to 3.
- If the
- 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.- accelerator
Name String The Name of the GA instance.
- auto
Renew IntegerDuration Auto renewal period of an instance, in the unit of month. The value range is 1-12.
- auto
Use BooleanCoupon 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.
- pricing
Cycle String The billing cycle of the GA instance. Valid values:
Month
,Year
. The default value:Month
.- renewal
Status String Whether to renew an accelerator automatically or not. Default to "Normal". Valid values:
- duration number
The subscription duration. NOTE: Starting from v1.150.0+, the
duration
andpricing_cycle
are both required.- If the
pricing_cycle
parameter is set toMonth
, the valid values for theduration
parameter are 1 to 9. - If the
pricing_cycle
parameter is set toYear
, the valid values for theduration
parameter are 1 to 3.
- If the
- 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.- accelerator
Name string The Name of the GA instance.
- auto
Renew numberDuration Auto renewal period of an instance, in the unit of month. The value range is 1-12.
- auto
Use booleanCoupon 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.
- pricing
Cycle string The billing cycle of the GA instance. Valid values:
Month
,Year
. The default value:Month
.- renewal
Status string Whether to renew an accelerator automatically or not. Default to "Normal". Valid values:
- duration int
The subscription duration. NOTE: Starting from v1.150.0+, the
duration
andpricing_cycle
are both required.- If the
pricing_cycle
parameter is set toMonth
, the valid values for theduration
parameter are 1 to 9. - If the
pricing_cycle
parameter is set toYear
, the valid values for theduration
parameter are 1 to 3.
- If the
- 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_ intduration Auto renewal period of an instance, in the unit of month. The value range is 1-12.
- auto_
use_ boolcoupon 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
.- renewal_
status str Whether to renew an accelerator automatically or not. Default to "Normal". Valid values:
- duration Number
The subscription duration. NOTE: Starting from v1.150.0+, the
duration
andpricing_cycle
are both required.- If the
pricing_cycle
parameter is set toMonth
, the valid values for theduration
parameter are 1 to 9. - If the
pricing_cycle
parameter is set toYear
, the valid values for theduration
parameter are 1 to 3.
- If the
- 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.- accelerator
Name String The Name of the GA instance.
- auto
Renew NumberDuration Auto renewal period of an instance, in the unit of month. The value range is 1-12.
- auto
Use BooleanCoupon 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.
- pricing
Cycle String The billing cycle of the GA instance. Valid values:
Month
,Year
. The default value:Month
.- renewal
Status String Whether to renew an accelerator automatically or not. Default to "Normal". Valid values:
Outputs
All input properties are implicitly available as output properties. Additionally, the Accelerator resource produces the following output properties:
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.
- Accelerator
Name string The Name of the GA instance.
- Auto
Renew intDuration Auto renewal period of an instance, in the unit of month. The value range is 1-12.
- Auto
Use boolCoupon 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
andpricing_cycle
are both required.- If the
pricing_cycle
parameter is set toMonth
, the valid values for theduration
parameter are 1 to 9. - If the
pricing_cycle
parameter is set toYear
, the valid values for theduration
parameter are 1 to 3.
- If the
- Pricing
Cycle string The billing cycle of the GA instance. Valid values:
Month
,Year
. The default value:Month
.- Renewal
Status string Whether to renew an accelerator automatically or not. Default to "Normal". Valid values:
- 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 string The Name of the GA instance.
- Auto
Renew intDuration Auto renewal period of an instance, in the unit of month. The value range is 1-12.
- Auto
Use boolCoupon 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
andpricing_cycle
are both required.- If the
pricing_cycle
parameter is set toMonth
, the valid values for theduration
parameter are 1 to 9. - If the
pricing_cycle
parameter is set toYear
, the valid values for theduration
parameter are 1 to 3.
- If the
- Pricing
Cycle string The billing cycle of the GA instance. Valid values:
Month
,Year
. The default value:Month
.- Renewal
Status string Whether to renew an accelerator automatically or not. Default to "Normal". Valid values:
- 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 String The Name of the GA instance.
- auto
Renew IntegerDuration Auto renewal period of an instance, in the unit of month. The value range is 1-12.
- auto
Use BooleanCoupon 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
andpricing_cycle
are both required.- If the
pricing_cycle
parameter is set toMonth
, the valid values for theduration
parameter are 1 to 9. - If the
pricing_cycle
parameter is set toYear
, the valid values for theduration
parameter are 1 to 3.
- If the
- pricing
Cycle String The billing cycle of the GA instance. Valid values:
Month
,Year
. The default value:Month
.- renewal
Status String Whether to renew an accelerator automatically or not. Default to "Normal". Valid values:
- 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 string The Name of the GA instance.
- auto
Renew numberDuration Auto renewal period of an instance, in the unit of month. The value range is 1-12.
- auto
Use booleanCoupon 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
andpricing_cycle
are both required.- If the
pricing_cycle
parameter is set toMonth
, the valid values for theduration
parameter are 1 to 9. - If the
pricing_cycle
parameter is set toYear
, the valid values for theduration
parameter are 1 to 3.
- If the
- pricing
Cycle string The billing cycle of the GA instance. Valid values:
Month
,Year
. The default value:Month
.- renewal
Status string Whether to renew an accelerator automatically or not. Default to "Normal". Valid values:
- 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_ intduration Auto renewal period of an instance, in the unit of month. The value range is 1-12.
- auto_
use_ boolcoupon 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
andpricing_cycle
are both required.- If the
pricing_cycle
parameter is set toMonth
, the valid values for theduration
parameter are 1 to 9. - If the
pricing_cycle
parameter is set toYear
, the valid values for theduration
parameter are 1 to 3.
- If the
- pricing_
cycle str The billing cycle of the GA instance. Valid values:
Month
,Year
. The default value:Month
.- renewal_
status str Whether to renew an accelerator automatically or not. Default to "Normal". Valid values:
- 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.
- accelerator
Name String The Name of the GA instance.
- auto
Renew NumberDuration Auto renewal period of an instance, in the unit of month. The value range is 1-12.
- auto
Use BooleanCoupon 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
andpricing_cycle
are both required.- If the
pricing_cycle
parameter is set toMonth
, the valid values for theduration
parameter are 1 to 9. - If the
pricing_cycle
parameter is set toYear
, the valid values for theduration
parameter are 1 to 3.
- If the
- pricing
Cycle String The billing cycle of the GA instance. Valid values:
Month
,Year
. The default value:Month
.- renewal
Status String Whether to renew an accelerator automatically or not. Default to "Normal". Valid values:
- 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
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.