alicloud logo
Alibaba Cloud v3.37.0, May 15 23

alicloud.ga.BasicAccelerator

Explore with Pulumi AI

Provides a Global Accelerator (GA) Basic Accelerator resource.

For information about Global Accelerator (GA) Basic Accelerator and how to use it, see What is Basic Accelerator.

NOTE: Available in v1.194.0+.

Example Usage

Basic Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var @default = new AliCloud.Ga.BasicAccelerator("default", new()
    {
        AutoPay = true,
        AutoUseCoupon = "true",
        BandwidthBillingType = "BandwidthPackage",
        BasicAcceleratorName = "tf-example-value",
        Description = "tf-example-value",
        Duration = 1,
        PricingCycle = "Month",
    });

});
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.NewBasicAccelerator(ctx, "default", &ga.BasicAcceleratorArgs{
			AutoPay:              pulumi.Bool(true),
			AutoUseCoupon:        pulumi.String("true"),
			BandwidthBillingType: pulumi.String("BandwidthPackage"),
			BasicAcceleratorName: pulumi.String("tf-example-value"),
			Description:          pulumi.String("tf-example-value"),
			Duration:             pulumi.Int(1),
			PricingCycle:         pulumi.String("Month"),
		})
		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.BasicAccelerator;
import com.pulumi.alicloud.ga.BasicAcceleratorArgs;
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 default_ = new BasicAccelerator("default", BasicAcceleratorArgs.builder()        
            .autoPay(true)
            .autoUseCoupon("true")
            .bandwidthBillingType("BandwidthPackage")
            .basicAcceleratorName("tf-example-value")
            .description("tf-example-value")
            .duration(1)
            .pricingCycle("Month")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.ga.BasicAccelerator("default",
    auto_pay=True,
    auto_use_coupon="true",
    bandwidth_billing_type="BandwidthPackage",
    basic_accelerator_name="tf-example-value",
    description="tf-example-value",
    duration=1,
    pricing_cycle="Month")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = new alicloud.ga.BasicAccelerator("default", {
    autoPay: true,
    autoUseCoupon: "true",
    bandwidthBillingType: "BandwidthPackage",
    basicAcceleratorName: "tf-example-value",
    description: "tf-example-value",
    duration: 1,
    pricingCycle: "Month",
});
resources:
  default:
    type: alicloud:ga:BasicAccelerator
    properties:
      autoPay: true
      autoUseCoupon: 'true'
      bandwidthBillingType: BandwidthPackage
      basicAcceleratorName: tf-example-value
      description: tf-example-value
      duration: 1
      pricingCycle: Month

Create BasicAccelerator Resource

new BasicAccelerator(name: string, args?: BasicAcceleratorArgs, opts?: CustomResourceOptions);
@overload
def BasicAccelerator(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     auto_pay: Optional[bool] = None,
                     auto_renew: Optional[bool] = None,
                     auto_renew_duration: Optional[int] = None,
                     auto_use_coupon: Optional[str] = None,
                     bandwidth_billing_type: Optional[str] = None,
                     basic_accelerator_name: Optional[str] = None,
                     description: Optional[str] = None,
                     duration: Optional[int] = None,
                     pricing_cycle: Optional[str] = None)
@overload
def BasicAccelerator(resource_name: str,
                     args: Optional[BasicAcceleratorArgs] = None,
                     opts: Optional[ResourceOptions] = None)
func NewBasicAccelerator(ctx *Context, name string, args *BasicAcceleratorArgs, opts ...ResourceOption) (*BasicAccelerator, error)
public BasicAccelerator(string name, BasicAcceleratorArgs? args = null, CustomResourceOptions? opts = null)
public BasicAccelerator(String name, BasicAcceleratorArgs args)
public BasicAccelerator(String name, BasicAcceleratorArgs args, CustomResourceOptions options)
type: alicloud:ga:BasicAccelerator
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args BasicAcceleratorArgs
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 BasicAcceleratorArgs
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 BasicAcceleratorArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args BasicAcceleratorArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args BasicAcceleratorArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

BasicAccelerator 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 BasicAccelerator resource accepts the following input properties:

AutoPay bool

Specifies whether to enable automatic payment. Default value: false. Valid values:

AutoRenew bool

Specifies whether to enable auto-renewal for the GA Basic Accelerator instance. Default value: false. Valid values:

AutoRenewDuration int

The auto-renewal period. Unit: months. Valid values: 1 to 12. Default value: 1. NOTE: This parameter is required only if auto_renew is set to true.

AutoUseCoupon string

Specifies whether to automatically pay bills by using coupons. Default value: false. NOTE: This parameter is required only if auto_pay is set to true.

BandwidthBillingType string

The bandwidth billing method. Valid values: BandwidthPackage, CDT, CDT95.

BasicAcceleratorName string

The name of the Global Accelerator Basic Accelerator instance.

Description string

The description of the Global Accelerator Basic Accelerator instance.

Duration int

The subscription duration. Default value: 1.

  • 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. Default value: Month. Valid values: Month, Year.

AutoPay bool

Specifies whether to enable automatic payment. Default value: false. Valid values:

AutoRenew bool

Specifies whether to enable auto-renewal for the GA Basic Accelerator instance. Default value: false. Valid values:

AutoRenewDuration int

The auto-renewal period. Unit: months. Valid values: 1 to 12. Default value: 1. NOTE: This parameter is required only if auto_renew is set to true.

AutoUseCoupon string

Specifies whether to automatically pay bills by using coupons. Default value: false. NOTE: This parameter is required only if auto_pay is set to true.

BandwidthBillingType string

The bandwidth billing method. Valid values: BandwidthPackage, CDT, CDT95.

BasicAcceleratorName string

The name of the Global Accelerator Basic Accelerator instance.

Description string

The description of the Global Accelerator Basic Accelerator instance.

Duration int

The subscription duration. Default value: 1.

  • 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. Default value: Month. Valid values: Month, Year.

autoPay Boolean

Specifies whether to enable automatic payment. Default value: false. Valid values:

autoRenew Boolean

Specifies whether to enable auto-renewal for the GA Basic Accelerator instance. Default value: false. Valid values:

autoRenewDuration Integer

The auto-renewal period. Unit: months. Valid values: 1 to 12. Default value: 1. NOTE: This parameter is required only if auto_renew is set to true.

autoUseCoupon String

Specifies whether to automatically pay bills by using coupons. Default value: false. NOTE: This parameter is required only if auto_pay is set to true.

bandwidthBillingType String

The bandwidth billing method. Valid values: BandwidthPackage, CDT, CDT95.

basicAcceleratorName String

The name of the Global Accelerator Basic Accelerator instance.

description String

The description of the Global Accelerator Basic Accelerator instance.

duration Integer

The subscription duration. Default value: 1.

  • 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. Default value: Month. Valid values: Month, Year.

autoPay boolean

Specifies whether to enable automatic payment. Default value: false. Valid values:

autoRenew boolean

Specifies whether to enable auto-renewal for the GA Basic Accelerator instance. Default value: false. Valid values:

autoRenewDuration number

The auto-renewal period. Unit: months. Valid values: 1 to 12. Default value: 1. NOTE: This parameter is required only if auto_renew is set to true.

autoUseCoupon string

Specifies whether to automatically pay bills by using coupons. Default value: false. NOTE: This parameter is required only if auto_pay is set to true.

bandwidthBillingType string

The bandwidth billing method. Valid values: BandwidthPackage, CDT, CDT95.

basicAcceleratorName string

The name of the Global Accelerator Basic Accelerator instance.

description string

The description of the Global Accelerator Basic Accelerator instance.

duration number

The subscription duration. Default value: 1.

  • 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. Default value: Month. Valid values: Month, Year.

auto_pay bool

Specifies whether to enable automatic payment. Default value: false. Valid values:

auto_renew bool

Specifies whether to enable auto-renewal for the GA Basic Accelerator instance. Default value: false. Valid values:

auto_renew_duration int

The auto-renewal period. Unit: months. Valid values: 1 to 12. Default value: 1. NOTE: This parameter is required only if auto_renew is set to true.

auto_use_coupon str

Specifies whether to automatically pay bills by using coupons. Default value: false. NOTE: This parameter is required only if auto_pay is set to true.

bandwidth_billing_type str

The bandwidth billing method. Valid values: BandwidthPackage, CDT, CDT95.

basic_accelerator_name str

The name of the Global Accelerator Basic Accelerator instance.

description str

The description of the Global Accelerator Basic Accelerator instance.

duration int

The subscription duration. Default value: 1.

  • 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. Default value: Month. Valid values: Month, Year.

autoPay Boolean

Specifies whether to enable automatic payment. Default value: false. Valid values:

autoRenew Boolean

Specifies whether to enable auto-renewal for the GA Basic Accelerator instance. Default value: false. Valid values:

autoRenewDuration Number

The auto-renewal period. Unit: months. Valid values: 1 to 12. Default value: 1. NOTE: This parameter is required only if auto_renew is set to true.

autoUseCoupon String

Specifies whether to automatically pay bills by using coupons. Default value: false. NOTE: This parameter is required only if auto_pay is set to true.

bandwidthBillingType String

The bandwidth billing method. Valid values: BandwidthPackage, CDT, CDT95.

basicAcceleratorName String

The name of the Global Accelerator Basic Accelerator instance.

description String

The description of the Global Accelerator Basic Accelerator instance.

duration Number

The subscription duration. Default value: 1.

  • 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. Default value: Month. Valid values: Month, Year.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Status string

The status of the Basic Accelerator instance.

Id string

The provider-assigned unique ID for this managed resource.

Status string

The status of the Basic Accelerator instance.

id String

The provider-assigned unique ID for this managed resource.

status String

The status of the Basic Accelerator instance.

id string

The provider-assigned unique ID for this managed resource.

status string

The status of the Basic Accelerator instance.

id str

The provider-assigned unique ID for this managed resource.

status str

The status of the Basic Accelerator instance.

id String

The provider-assigned unique ID for this managed resource.

status String

The status of the Basic Accelerator instance.

Look up Existing BasicAccelerator Resource

Get an existing BasicAccelerator 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?: BasicAcceleratorState, opts?: CustomResourceOptions): BasicAccelerator
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        auto_pay: Optional[bool] = None,
        auto_renew: Optional[bool] = None,
        auto_renew_duration: Optional[int] = None,
        auto_use_coupon: Optional[str] = None,
        bandwidth_billing_type: Optional[str] = None,
        basic_accelerator_name: Optional[str] = None,
        description: Optional[str] = None,
        duration: Optional[int] = None,
        pricing_cycle: Optional[str] = None,
        status: Optional[str] = None) -> BasicAccelerator
func GetBasicAccelerator(ctx *Context, name string, id IDInput, state *BasicAcceleratorState, opts ...ResourceOption) (*BasicAccelerator, error)
public static BasicAccelerator Get(string name, Input<string> id, BasicAcceleratorState? state, CustomResourceOptions? opts = null)
public static BasicAccelerator get(String name, Output<String> id, BasicAcceleratorState 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:
AutoPay bool

Specifies whether to enable automatic payment. Default value: false. Valid values:

AutoRenew bool

Specifies whether to enable auto-renewal for the GA Basic Accelerator instance. Default value: false. Valid values:

AutoRenewDuration int

The auto-renewal period. Unit: months. Valid values: 1 to 12. Default value: 1. NOTE: This parameter is required only if auto_renew is set to true.

AutoUseCoupon string

Specifies whether to automatically pay bills by using coupons. Default value: false. NOTE: This parameter is required only if auto_pay is set to true.

BandwidthBillingType string

The bandwidth billing method. Valid values: BandwidthPackage, CDT, CDT95.

BasicAcceleratorName string

The name of the Global Accelerator Basic Accelerator instance.

Description string

The description of the Global Accelerator Basic Accelerator instance.

Duration int

The subscription duration. Default value: 1.

  • 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. Default value: Month. Valid values: Month, Year.

Status string

The status of the Basic Accelerator instance.

AutoPay bool

Specifies whether to enable automatic payment. Default value: false. Valid values:

AutoRenew bool

Specifies whether to enable auto-renewal for the GA Basic Accelerator instance. Default value: false. Valid values:

AutoRenewDuration int

The auto-renewal period. Unit: months. Valid values: 1 to 12. Default value: 1. NOTE: This parameter is required only if auto_renew is set to true.

AutoUseCoupon string

Specifies whether to automatically pay bills by using coupons. Default value: false. NOTE: This parameter is required only if auto_pay is set to true.

BandwidthBillingType string

The bandwidth billing method. Valid values: BandwidthPackage, CDT, CDT95.

BasicAcceleratorName string

The name of the Global Accelerator Basic Accelerator instance.

Description string

The description of the Global Accelerator Basic Accelerator instance.

Duration int

The subscription duration. Default value: 1.

  • 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. Default value: Month. Valid values: Month, Year.

Status string

The status of the Basic Accelerator instance.

autoPay Boolean

Specifies whether to enable automatic payment. Default value: false. Valid values:

autoRenew Boolean

Specifies whether to enable auto-renewal for the GA Basic Accelerator instance. Default value: false. Valid values:

autoRenewDuration Integer

The auto-renewal period. Unit: months. Valid values: 1 to 12. Default value: 1. NOTE: This parameter is required only if auto_renew is set to true.

autoUseCoupon String

Specifies whether to automatically pay bills by using coupons. Default value: false. NOTE: This parameter is required only if auto_pay is set to true.

bandwidthBillingType String

The bandwidth billing method. Valid values: BandwidthPackage, CDT, CDT95.

basicAcceleratorName String

The name of the Global Accelerator Basic Accelerator instance.

description String

The description of the Global Accelerator Basic Accelerator instance.

duration Integer

The subscription duration. Default value: 1.

  • 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. Default value: Month. Valid values: Month, Year.

status String

The status of the Basic Accelerator instance.

autoPay boolean

Specifies whether to enable automatic payment. Default value: false. Valid values:

autoRenew boolean

Specifies whether to enable auto-renewal for the GA Basic Accelerator instance. Default value: false. Valid values:

autoRenewDuration number

The auto-renewal period. Unit: months. Valid values: 1 to 12. Default value: 1. NOTE: This parameter is required only if auto_renew is set to true.

autoUseCoupon string

Specifies whether to automatically pay bills by using coupons. Default value: false. NOTE: This parameter is required only if auto_pay is set to true.

bandwidthBillingType string

The bandwidth billing method. Valid values: BandwidthPackage, CDT, CDT95.

basicAcceleratorName string

The name of the Global Accelerator Basic Accelerator instance.

description string

The description of the Global Accelerator Basic Accelerator instance.

duration number

The subscription duration. Default value: 1.

  • 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. Default value: Month. Valid values: Month, Year.

status string

The status of the Basic Accelerator instance.

auto_pay bool

Specifies whether to enable automatic payment. Default value: false. Valid values:

auto_renew bool

Specifies whether to enable auto-renewal for the GA Basic Accelerator instance. Default value: false. Valid values:

auto_renew_duration int

The auto-renewal period. Unit: months. Valid values: 1 to 12. Default value: 1. NOTE: This parameter is required only if auto_renew is set to true.

auto_use_coupon str

Specifies whether to automatically pay bills by using coupons. Default value: false. NOTE: This parameter is required only if auto_pay is set to true.

bandwidth_billing_type str

The bandwidth billing method. Valid values: BandwidthPackage, CDT, CDT95.

basic_accelerator_name str

The name of the Global Accelerator Basic Accelerator instance.

description str

The description of the Global Accelerator Basic Accelerator instance.

duration int

The subscription duration. Default value: 1.

  • 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. Default value: Month. Valid values: Month, Year.

status str

The status of the Basic Accelerator instance.

autoPay Boolean

Specifies whether to enable automatic payment. Default value: false. Valid values:

autoRenew Boolean

Specifies whether to enable auto-renewal for the GA Basic Accelerator instance. Default value: false. Valid values:

autoRenewDuration Number

The auto-renewal period. Unit: months. Valid values: 1 to 12. Default value: 1. NOTE: This parameter is required only if auto_renew is set to true.

autoUseCoupon String

Specifies whether to automatically pay bills by using coupons. Default value: false. NOTE: This parameter is required only if auto_pay is set to true.

bandwidthBillingType String

The bandwidth billing method. Valid values: BandwidthPackage, CDT, CDT95.

basicAcceleratorName String

The name of the Global Accelerator Basic Accelerator instance.

description String

The description of the Global Accelerator Basic Accelerator instance.

duration Number

The subscription duration. Default value: 1.

  • 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. Default value: Month. Valid values: Month, Year.

status String

The status of the Basic Accelerator instance.

Import

Global Accelerator (GA) Basic Accelerator can be imported using the id, e.g.

 $ pulumi import alicloud:ga/basicAccelerator:BasicAccelerator example <id>

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.