Provides a Threat Detection Baseline Strategy resource.
For information about Threat Detection Baseline Strategy and how to use it, see What is Baseline Strategy.
Basic Usage
resource "alicloud_threat_detection_baseline_strategy" "default" {
custom_type = "custom"
end_time = "08:00:00"
baseline_strategy_name = "apispec"
cycle_days = 3
target_type = "groupId"
start_time = "05:00:00"
risk_sub_type_name = "hc_exploit_redis"
}
The following arguments are supported:
baseline_strategy_name
- (Required, ForceNew) Policy name.custom_type
- (Required) The type of policy. Value:
cycle_days
- (Required) The detection period of the policy.cycle_start_time
- (Optional) The detection period of the policy. Value:
end_time
- (Required) The baseline check policy execution end time.risk_sub_type_name
- (Required) Detection item subtype.start_time
- (Required) The baseline check policy start time.target_type
- (Required) The method of adding assets that take effect from the policy. Value:
The following attributes are exported:
id
- The ID of the baseline check policy, same with baseline_strategy_id
.baseline_strategy_id
- The ID of the baseline check policy.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Baseline Strategy.delete
- (Defaults to 5 mins) Used when delete the Baseline Strategy.update
- (Defaults to 5 mins) Used when update the Baseline Strategy.Threat Detection Baseline Strategy can be imported using the id, e.g.
$terraform import alicloud_threat_detection_baseline_strategy.example <id>