Using this data source can open VPC Traffic Mirror service automatically. If the service has been opened, it will return opened.
For information about VPC Traffic Mirror and how to use it, see What is VPC Traffic Mirror.
-> NOTE: Available since v1.141.0.
Example Usage
Basic Usage
data "alicloud_vpc_traffic_mirror_service" "open" {
enable = "On"
}
Argument Reference
The following arguments are supported:
enable
- (Optional) Setting the value toOn
to enable the service. If has been enabled, return the result. Default value:Off
. Valid values:On
andOff
.
-> NOTE: Setting enable = "On"
to open the VPC Traffic Mirror service that means you have read and agreed the VPC Traffic Mirror Terms of Service. The service can not closed once it is opened.
Attributes Reference
The following attributes are exported in addition to the arguments listed above:
status
- The current service enable status.
该文章对您有帮助吗?
- 本页导读 (1)
- Example Usage
- Argument Reference
- Attributes Reference