alicloud_cen_inter_region_traffic_qos_policy
更新时间:
Provides a Cloud Enterprise Network (CEN) Inter Region Traffic Qos Policy resource.
For information about Cloud Enterprise Network (CEN) Inter Region Traffic Qos Policy and how to use it, see What is Inter Region Traffic Qos Policy.
-> NOTE: Available since v1.246.0.
Example Usage
Basic Usage
variable "name" {
default = "terraform-example"
}
provider "alicloud" {
region = "cn-hangzhou"
alias = "hz"
}
provider "alicloud" {
region = "cn-beijing"
alias = "bj"
}
resource "alicloud_cen_instance" "defaultpSZB78" {
}
resource "alicloud_cen_transit_router" "defaultUmmxnE" {
provider = alicloud.bj
cen_id = alicloud_cen_instance.defaultpSZB78.id
}
resource "alicloud_cen_transit_router" "defaultksqgSa" {
provider = alicloud.hz
cen_id = alicloud_cen_instance.defaultpSZB78.id
}
resource "alicloud_cen_transit_router_peer_attachment" "defaultnXZ83y" {
provider = alicloud.bj
default_link_type = "Platinum"
bandwidth_type = "DataTransfer"
cen_id = alicloud_cen_instance.defaultpSZB78.id
peer_transit_router_region_id = "cn-hangzhou"
transit_router_id = alicloud_cen_transit_router.defaultUmmxnE.transit_router_id
peer_transit_router_id = alicloud_cen_transit_router.defaultksqgSa.transit_router_id
bandwidth = "10"
}
resource "alicloud_cen_inter_region_traffic_qos_policy" "default" {
provider = alicloud.bj
transit_router_attachment_id = alicloud_cen_transit_router_peer_attachment.defaultnXZ83y.transit_router_attachment_id
inter_region_traffic_qos_policy_name = "example1"
inter_region_traffic_qos_policy_description = "example1"
bandwidth_guarantee_mode = "byBandwidthPercent"
transit_router_id = alicloud_cen_transit_router.defaultksqgSa.transit_router_id
}
Argument Reference
The following arguments are supported:
bandwidth_guarantee_mode
- (Optional, ForceNew) Bandwidth guarantee mode. You can select by bandwidth or by bandwidth percentage. The default is by percentage.inter_region_traffic_qos_policy_description
- (Optional) The description information of the traffic scheduling policy.inter_region_traffic_qos_policy_name
- (Optional) The name of the traffic scheduling policy.transit_router_attachment_id
- (Required, ForceNew) Peer Attachment ID.transit_router_id
- (Required, ForceNew) The ID of the forwarding router instance.
Attributes Reference
The following attributes are exported:
id
- The ID of the resource supplied above.status
- The status of the traffic scheduling policy.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Inter Region Traffic Qos Policy.delete
- (Defaults to 5 mins) Used when delete the Inter Region Traffic Qos Policy.update
- (Defaults to 5 mins) Used when update the Inter Region Traffic Qos Policy.
Import
Cloud Enterprise Network (CEN) Inter Region Traffic Qos Policy can be imported using the id, e.g.
$ terraform import alicloud_cen_inter_region_traffic_qos_policy.example <id>
该文章对您有帮助吗?