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:
- 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 intDuration The auto-renewal period. Unit: months. Valid values:
1
to12
. Default value:1
. NOTE: This parameter is required only ifauto_renew
is set totrue
.- Auto
Use stringCoupon Specifies whether to automatically pay bills by using coupons. Default value:
false
. NOTE: This parameter is required only ifauto_pay
is set totrue
.- Bandwidth
Billing stringType The bandwidth billing method. Valid values:
BandwidthPackage
,CDT
,CDT95
.- Basic
Accelerator stringName 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 toMonth
, the valid values for theduration
parameter are1
to9
. - If the
pricing_cycle
parameter is set toYear
, the valid values for theduration
parameter are1
to3
.
- If the
- Pricing
Cycle 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 intDuration The auto-renewal period. Unit: months. Valid values:
1
to12
. Default value:1
. NOTE: This parameter is required only ifauto_renew
is set totrue
.- Auto
Use stringCoupon Specifies whether to automatically pay bills by using coupons. Default value:
false
. NOTE: This parameter is required only ifauto_pay
is set totrue
.- Bandwidth
Billing stringType The bandwidth billing method. Valid values:
BandwidthPackage
,CDT
,CDT95
.- Basic
Accelerator stringName 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 toMonth
, the valid values for theduration
parameter are1
to9
. - If the
pricing_cycle
parameter is set toYear
, the valid values for theduration
parameter are1
to3
.
- If the
- Pricing
Cycle string The billing cycle. Default value:
Month
. Valid values:Month
,Year
.
- auto
Pay Boolean Specifies whether to enable automatic payment. Default value:
false
. Valid values:- auto
Renew Boolean Specifies whether to enable auto-renewal for the GA Basic Accelerator instance. Default value:
false
. Valid values:- auto
Renew IntegerDuration The auto-renewal period. Unit: months. Valid values:
1
to12
. Default value:1
. NOTE: This parameter is required only ifauto_renew
is set totrue
.- auto
Use StringCoupon Specifies whether to automatically pay bills by using coupons. Default value:
false
. NOTE: This parameter is required only ifauto_pay
is set totrue
.- bandwidth
Billing StringType The bandwidth billing method. Valid values:
BandwidthPackage
,CDT
,CDT95
.- basic
Accelerator StringName 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 toMonth
, the valid values for theduration
parameter are1
to9
. - If the
pricing_cycle
parameter is set toYear
, the valid values for theduration
parameter are1
to3
.
- If the
- pricing
Cycle String The billing cycle. Default value:
Month
. Valid values:Month
,Year
.
- auto
Pay boolean Specifies whether to enable automatic payment. Default value:
false
. Valid values:- auto
Renew boolean Specifies whether to enable auto-renewal for the GA Basic Accelerator instance. Default value:
false
. Valid values:- auto
Renew numberDuration The auto-renewal period. Unit: months. Valid values:
1
to12
. Default value:1
. NOTE: This parameter is required only ifauto_renew
is set totrue
.- auto
Use stringCoupon Specifies whether to automatically pay bills by using coupons. Default value:
false
. NOTE: This parameter is required only ifauto_pay
is set totrue
.- bandwidth
Billing stringType The bandwidth billing method. Valid values:
BandwidthPackage
,CDT
,CDT95
.- basic
Accelerator stringName 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 toMonth
, the valid values for theduration
parameter are1
to9
. - If the
pricing_cycle
parameter is set toYear
, the valid values for theduration
parameter are1
to3
.
- If the
- pricing
Cycle 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_ intduration The auto-renewal period. Unit: months. Valid values:
1
to12
. Default value:1
. NOTE: This parameter is required only ifauto_renew
is set totrue
.- auto_
use_ strcoupon Specifies whether to automatically pay bills by using coupons. Default value:
false
. NOTE: This parameter is required only ifauto_pay
is set totrue
.- bandwidth_
billing_ strtype The bandwidth billing method. Valid values:
BandwidthPackage
,CDT
,CDT95
.- basic_
accelerator_ strname 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 toMonth
, the valid values for theduration
parameter are1
to9
. - If the
pricing_cycle
parameter is set toYear
, the valid values for theduration
parameter are1
to3
.
- If the
- pricing_
cycle str The billing cycle. Default value:
Month
. Valid values:Month
,Year
.
- auto
Pay Boolean Specifies whether to enable automatic payment. Default value:
false
. Valid values:- auto
Renew Boolean Specifies whether to enable auto-renewal for the GA Basic Accelerator instance. Default value:
false
. Valid values:- auto
Renew NumberDuration The auto-renewal period. Unit: months. Valid values:
1
to12
. Default value:1
. NOTE: This parameter is required only ifauto_renew
is set totrue
.- auto
Use StringCoupon Specifies whether to automatically pay bills by using coupons. Default value:
false
. NOTE: This parameter is required only ifauto_pay
is set totrue
.- bandwidth
Billing StringType The bandwidth billing method. Valid values:
BandwidthPackage
,CDT
,CDT95
.- basic
Accelerator StringName 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 toMonth
, the valid values for theduration
parameter are1
to9
. - If the
pricing_cycle
parameter is set toYear
, the valid values for theduration
parameter are1
to3
.
- If the
- pricing
Cycle 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:
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.
- 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 intDuration The auto-renewal period. Unit: months. Valid values:
1
to12
. Default value:1
. NOTE: This parameter is required only ifauto_renew
is set totrue
.- Auto
Use stringCoupon Specifies whether to automatically pay bills by using coupons. Default value:
false
. NOTE: This parameter is required only ifauto_pay
is set totrue
.- Bandwidth
Billing stringType The bandwidth billing method. Valid values:
BandwidthPackage
,CDT
,CDT95
.- Basic
Accelerator stringName 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 toMonth
, the valid values for theduration
parameter are1
to9
. - If the
pricing_cycle
parameter is set toYear
, the valid values for theduration
parameter are1
to3
.
- If the
- Pricing
Cycle 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 intDuration The auto-renewal period. Unit: months. Valid values:
1
to12
. Default value:1
. NOTE: This parameter is required only ifauto_renew
is set totrue
.- Auto
Use stringCoupon Specifies whether to automatically pay bills by using coupons. Default value:
false
. NOTE: This parameter is required only ifauto_pay
is set totrue
.- Bandwidth
Billing stringType The bandwidth billing method. Valid values:
BandwidthPackage
,CDT
,CDT95
.- Basic
Accelerator stringName 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 toMonth
, the valid values for theduration
parameter are1
to9
. - If the
pricing_cycle
parameter is set toYear
, the valid values for theduration
parameter are1
to3
.
- If the
- Pricing
Cycle string The billing cycle. Default value:
Month
. Valid values:Month
,Year
.- Status string
The status of the Basic Accelerator instance.
- auto
Pay Boolean Specifies whether to enable automatic payment. Default value:
false
. Valid values:- auto
Renew Boolean Specifies whether to enable auto-renewal for the GA Basic Accelerator instance. Default value:
false
. Valid values:- auto
Renew IntegerDuration The auto-renewal period. Unit: months. Valid values:
1
to12
. Default value:1
. NOTE: This parameter is required only ifauto_renew
is set totrue
.- auto
Use StringCoupon Specifies whether to automatically pay bills by using coupons. Default value:
false
. NOTE: This parameter is required only ifauto_pay
is set totrue
.- bandwidth
Billing StringType The bandwidth billing method. Valid values:
BandwidthPackage
,CDT
,CDT95
.- basic
Accelerator StringName 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 toMonth
, the valid values for theduration
parameter are1
to9
. - If the
pricing_cycle
parameter is set toYear
, the valid values for theduration
parameter are1
to3
.
- If the
- pricing
Cycle String The billing cycle. Default value:
Month
. Valid values:Month
,Year
.- status String
The status of the Basic Accelerator instance.
- auto
Pay boolean Specifies whether to enable automatic payment. Default value:
false
. Valid values:- auto
Renew boolean Specifies whether to enable auto-renewal for the GA Basic Accelerator instance. Default value:
false
. Valid values:- auto
Renew numberDuration The auto-renewal period. Unit: months. Valid values:
1
to12
. Default value:1
. NOTE: This parameter is required only ifauto_renew
is set totrue
.- auto
Use stringCoupon Specifies whether to automatically pay bills by using coupons. Default value:
false
. NOTE: This parameter is required only ifauto_pay
is set totrue
.- bandwidth
Billing stringType The bandwidth billing method. Valid values:
BandwidthPackage
,CDT
,CDT95
.- basic
Accelerator stringName 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 toMonth
, the valid values for theduration
parameter are1
to9
. - If the
pricing_cycle
parameter is set toYear
, the valid values for theduration
parameter are1
to3
.
- If the
- pricing
Cycle 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_ intduration The auto-renewal period. Unit: months. Valid values:
1
to12
. Default value:1
. NOTE: This parameter is required only ifauto_renew
is set totrue
.- auto_
use_ strcoupon Specifies whether to automatically pay bills by using coupons. Default value:
false
. NOTE: This parameter is required only ifauto_pay
is set totrue
.- bandwidth_
billing_ strtype The bandwidth billing method. Valid values:
BandwidthPackage
,CDT
,CDT95
.- basic_
accelerator_ strname 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 toMonth
, the valid values for theduration
parameter are1
to9
. - If the
pricing_cycle
parameter is set toYear
, the valid values for theduration
parameter are1
to3
.
- If the
- pricing_
cycle str The billing cycle. Default value:
Month
. Valid values:Month
,Year
.- status str
The status of the Basic Accelerator instance.
- auto
Pay Boolean Specifies whether to enable automatic payment. Default value:
false
. Valid values:- auto
Renew Boolean Specifies whether to enable auto-renewal for the GA Basic Accelerator instance. Default value:
false
. Valid values:- auto
Renew NumberDuration The auto-renewal period. Unit: months. Valid values:
1
to12
. Default value:1
. NOTE: This parameter is required only ifauto_renew
is set totrue
.- auto
Use StringCoupon Specifies whether to automatically pay bills by using coupons. Default value:
false
. NOTE: This parameter is required only ifauto_pay
is set totrue
.- bandwidth
Billing StringType The bandwidth billing method. Valid values:
BandwidthPackage
,CDT
,CDT95
.- basic
Accelerator StringName 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 toMonth
, the valid values for theduration
parameter are1
to9
. - If the
pricing_cycle
parameter is set toYear
, the valid values for theduration
parameter are1
to3
.
- If the
- pricing
Cycle 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.