Provides a Global Accelerator (GA) Bandwidth Package resource.
For information about Global Accelerator (GA) Bandwidth Package and how to use it, see What is Bandwidth Package.
Basic Usage
resource "alicloud_ga_bandwidth_package" "example" {
bandwidth = 20
type = "Basic"
bandwidth_type = "Basic"
duration = 1
auto_pay = true
ratio = 30
}
The following arguments are supported:
bandwidth
- (Required, Int) The bandwidth value of bandwidth packet.type
- (Required, ForceNew) The type of the bandwidth packet. China station only supports return to basic. Valid values: Basic
, CrossDomain
.bandwidth_type
- (Optional) The bandwidth type of the bandwidth. Valid values: Advanced
, Basic
, Enhanced
. If type
is set to Basic
, this parameter is required.
The following attributes are exported:
id
- The resource ID in terraform of Bandwidth Package.status
- The status of the Bandwidth Package.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 3 mins) Used when create the Bandwidth Package.update
- (Defaults to 5 mins) Used when update the Bandwidth Package.delete
- (Defaults to 3 mins) Used when delete the Bandwidth Package.Ga Bandwidth Package can be imported using the id, e.g.
$ terraform import alicloud_ga_bandwidth_package.example <id>