alicloud_ga_basic_accelerator
更新时间:
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 since v1.194.0.
Example Usage
Basic Usage
resource "alicloud_ga_basic_accelerator" "default" {
duration = 1
pricing_cycle = "Month"
basic_accelerator_name = "tf-example-value"
description = "tf-example-value"
bandwidth_billing_type = "BandwidthPackage"
auto_pay = true
auto_use_coupon = "true"
}
Argument Reference
The following arguments are supported:
bandwidth_billing_type
- (Optional, ForceNew) The bandwidth billing method. Valid values:BandwidthPackage
,CDT
,CDT95
.payment_type
- (Optional, ForceNew, Available since v1.208.1) The payment type. Default value:Subscription
. Valid values:PayAsYouGo
,Subscription
.cross_border_status
- (Optional, Bool, Available since v1.208.1) Indicates whether cross-border acceleration is enabled. Default value:false
. Valid values:true
: Enable.false
: Disable.
auto_pay
- (Optional, Bool) Specifies whether to enable automatic payment. Default value:false
. Valid values:true
: enables automatic payment. Payments are automatically completed.false
: disables automatic payment. If you select this option, you must go to the Order Center to complete the payment after an order is generated.
duration
- (Optional, 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
- (Optional) The billing cycle. Default value:Month
. Valid values:Month
,Year
.auto_use_coupon
- (Optional) Specifies whether to automatically pay bills by using coupons. Default value:false
. NOTE: This parameter is required only ifauto_pay
is set totrue
.auto_renew
- (Optional, Bool) Specifies whether to enable auto-renewal for the GA Basic Accelerator instance. Default value:false
. Valid values:true
: enables auto-renewal.false
: disables auto-renewal.
auto_renew_duration
- (Optional, Int) The auto-renewal period. Unit: months. Default value:1
. Valid values:1
to12
. NOTE: This parameter is required only ifauto_renew
is set totrue
.promotion_option_no
- (Optional, Available since v1.208.1) The code of the coupon. NOTE: Thepromotion_option_no
takes effect only for accounts registered on the international site (alibabacloud.com).resource_group_id
- (Optional, Available since v1.226.0) The ID of the resource group. Note: Once you set a value of this property, you cannot set it to an empty string anymore.basic_accelerator_name
- (Optional) The name of the Global Accelerator Basic Accelerator instance.description
- (Optional) The description of the Global Accelerator Basic Accelerator instance.tags
- (Optional, Available since v1.207.1) A mapping of tags to assign to the resource.
Attributes Reference
The following attributes are exported:
id
- The resource ID in terraform of Basic Accelerator.status
- The status of the Basic Accelerator instance.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 3 mins) Used when create the Basic Accelerator.update
- (Defaults to 3 mins) Used when update the Basic Accelerator.delete
- (Defaults to 3 mins) Used when delete the Basic Accelerator.
Import
Global Accelerator (GA) Basic Accelerator can be imported using the id, e.g.
$ terraform import alicloud_ga_basic_accelerator.example <id>
文档内容是否对您有帮助?