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: Available since v1.111.0.
Example Usage
Basic Usage
resource "alicloud_ga_accelerator" "example" {
duration = 1
auto_use_coupon = true
spec = "1"
}
Argument Reference
The following arguments are supported:
spec- (Optional) The instance type of the GA instance. Specification of global acceleration instance. Valid values:1: Small 1.2: Small 2.3: Small 3.5: Medium 1.8: Medium 2.10: Medium 3.
bandwidth_billing_type- (Optional, ForceNew, Available since v1.205.0) The bandwidth billing method. Default value:BandwidthPackage. Valid values:BandwidthPackage: billed based on bandwidth plans.CDT: billed based on data transfer.
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. NOTE:cross_border_statusis valid only whenbandwidth_billing_typeis set toCDT.
cross_border_mode- (Optional, Available since v1.208.1) The type of cross-border acceleration. Default value:bgpPro. Valid values:bgpPro,private. NOTE:cross_border_modeis valid only whencross_border_statusis set totrue.duration- (Optional, Int) The subscription duration.- If the
pricing_cycleparameter is set toMonth, the valid values for thedurationparameter are 1 to 9. - If the
pricing_cycleparameter is set toYear, the valid values for thedurationparameter are 1 to 3.
- If the
pricing_cycle- (Optional, Available since v1.150.0) The billing cycle of the GA instance. Default value:Month. Valid values:Month: billed on a monthly basis.Year: billed on an annual basis.
auto_use_coupon- (Optional, Bool) Use coupons to pay bills automatically. Default value:false. Valid values:true: Use.false: Not used.
renewal_status- (Optional, Available since v1.146.0) Whether to renew an accelerator automatically or not. Default value: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.
auto_renew_duration- (Optional, Int, Available since v1.146.0) Auto renewal period of an instance, in the unit of month. The value range is 1-12.promotion_option_no- (Optional, Available since v1.208.1) The code of the coupon. NOTE: Thepromotion_option_notakes 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.accelerator_name- (Optional) The Name of the GA instance.description- (Optional) Descriptive information of the global acceleration 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 Accelerator. Value asaccelerator_id.status- The status of the GA instance.
Timeouts
The timeouts block allows you to specify timeouts for certain actions:
create- (Defaults to 1 mins) Used when creating the Ga Accelerator.update- (Defaults to 6 mins) Used when updating the Ga Accelerator.delete- (Defaults to 3 mins) Used when deleting the Ga Accelerator.
Import
Ga Accelerator can be imported using the id, e.g.
$ terraform import alicloud_ga_accelerator.example <id>
该文章对您有帮助吗?