RuleArgs

data class RuleArgs(val category: Output<Int>? = null, val content: Output<String>? = null, val contentCategory: Output<String>? = null, val customType: Output<Int>? = null, val description: Output<String>? = null, val lang: Output<String>? = null, val productCode: Output<String>? = null, val productId: Output<String>? = null, val riskLevelId: Output<String>? = null, val ruleName: Output<String>? = null, val ruleType: Output<Int>? = null, val statExpress: Output<String>? = null, val status: Output<Int>? = null, val target: Output<String>? = null, val warnLevel: Output<Int>? = null) : ConvertibleToJava<RuleArgs>

Provides a Data Security Center Rule resource. For information about Data Security Center Rule and how to use it, see What is Rule.

NOTE: Available since v1.132.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.sddp.Rule;
import com.pulumi.alicloud.sddp.RuleArgs;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf_example_name");
var default_ = new Rule("default", RuleArgs.builder()
.category("0")
.content("content")
.ruleName(name)
.riskLevelId("4")
.productCode("OSS")
.build());
}
}

Import

Data Security Center Rule can be imported using the id, e.g.

$ pulumi import alicloud:sddp/rule:Rule example <id>

Constructors

Link copied to clipboard
fun RuleArgs(category: Output<Int>? = null, content: Output<String>? = null, contentCategory: Output<String>? = null, customType: Output<Int>? = null, description: Output<String>? = null, lang: Output<String>? = null, productCode: Output<String>? = null, productId: Output<String>? = null, riskLevelId: Output<String>? = null, ruleName: Output<String>? = null, ruleType: Output<Int>? = null, statExpress: Output<String>? = null, status: Output<Int>? = null, target: Output<String>? = null, warnLevel: Output<Int>? = null)

Functions

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

Properties

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

Sensitive Data Identification Rules for the Type of. Valid values:

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

Sensitive Data Identification Rules the Content.

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

The Content Classification.

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

Sensitive Data Identification Rules of Type. Valid values:

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

Sensitive Data Identification a Description of the Rule Information.

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

The Request and Receive the Language of the Message Type. Valid values:

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

Product Code. Valid values: OSS,RDS,ODPS(MaxCompute).

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

Product ID. Valid values:

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

Sensitive Data Identification Rules of Risk Level ID. Valid values:

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

Sensitive Data Identification Name of the Rule.

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

Rule Type.

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

Triggered the Alarm Conditions.

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

Sensitive Data Identification Rules Detection State of.

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

The Target of rule.

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

The Level of Risk. Valid values: