BaselineStrategyArgs

data class BaselineStrategyArgs(val baselineStrategyName: Output<String>? = null, val customType: Output<String>? = null, val cycleDays: Output<Int>? = null, val cycleStartTime: Output<Int>? = null, val endTime: Output<String>? = null, val riskSubTypeName: Output<String>? = null, val startTime: Output<String>? = null, val targetType: Output<String>? = null) : ConvertibleToJava<BaselineStrategyArgs>

Provides a Threat Detection Baseline Strategy resource. For information about Threat Detection Baseline Strategy and how to use it, see What is Baseline Strategy.

NOTE: Available since v1.195.0.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.threatdetection.BaselineStrategy;
import com.pulumi.alicloud.threatdetection.BaselineStrategyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new BaselineStrategy("default", BaselineStrategyArgs.builder()
.baselineStrategyName("apispec")
.customType("custom")
.cycleDays(3)
.endTime("08:00:00")
.riskSubTypeName("hc_exploit_redis")
.startTime("05:00:00")
.targetType("groupId")
.build());
}
}

Import

Threat Detection Baseline Strategy can be imported using the id, e.g.

$ pulumi import alicloud:threatdetection/baselineStrategy:BaselineStrategy example <id>

Constructors

Link copied to clipboard
fun BaselineStrategyArgs(baselineStrategyName: Output<String>? = null, customType: Output<String>? = null, cycleDays: Output<Int>? = null, cycleStartTime: Output<Int>? = null, endTime: Output<String>? = null, riskSubTypeName: Output<String>? = null, startTime: Output<String>? = null, targetType: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): BaselineStrategyArgs

Properties

Link copied to clipboard
val baselineStrategyName: Output<String>? = null

Policy name.

Link copied to clipboard
val customType: Output<String>? = null

The type of policy. Value:

Link copied to clipboard
val cycleDays: Output<Int>? = null

The detection period of the policy.

Link copied to clipboard
val cycleStartTime: Output<Int>? = null

The detection period of the policy. Value:

Link copied to clipboard
val endTime: Output<String>? = null

The baseline check policy execution end time.

Link copied to clipboard
val riskSubTypeName: Output<String>? = null

Detection item subtype.

Link copied to clipboard
val startTime: Output<String>? = null

The baseline check policy start time.

Link copied to clipboard
val targetType: Output<String>? = null

The method of adding assets that take effect from the policy. Value: