1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. sddp
  5. Rule
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.sddp.Rule

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    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

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf-example-name";
    const _default = new alicloud.sddp.Rule("default", {
        ruleName: name,
        category: 2,
        content: `  [
        {
          "rule": [
            {
              "operator": "contains",
              "target": "content",
              "value": "tf-testACCContent"
            }
          ],
          "ruleRelation": "AND"
        }
      ]
    `,
        riskLevelId: "4",
        productCode: "OSS",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf-example-name"
    default = alicloud.sddp.Rule("default",
        rule_name=name,
        category=2,
        content="""  [
        {
          "rule": [
            {
              "operator": "contains",
              "target": "content",
              "value": "tf-testACCContent"
            }
          ],
          "ruleRelation": "AND"
        }
      ]
    """,
        risk_level_id="4",
        product_code="OSS")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sddp"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "tf-example-name"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_, err := sddp.NewRule(ctx, "default", &sddp.RuleArgs{
    			RuleName: pulumi.String(name),
    			Category: pulumi.Int(2),
    			Content: pulumi.String(`  [
        {
          "rule": [
            {
              "operator": "contains",
              "target": "content",
              "value": "tf-testACCContent"
            }
          ],
          "ruleRelation": "AND"
        }
      ]
    `),
    			RiskLevelId: pulumi.String("4"),
    			ProductCode: pulumi.String("OSS"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "tf-example-name";
        var @default = new AliCloud.Sddp.Rule("default", new()
        {
            RuleName = name,
            Category = 2,
            Content = @"  [
        {
          ""rule"": [
            {
              ""operator"": ""contains"",
              ""target"": ""content"",
              ""value"": ""tf-testACCContent""
            }
          ],
          ""ruleRelation"": ""AND""
        }
      ]
    ",
            RiskLevelId = "4",
            ProductCode = "OSS",
        });
    
    });
    
    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()
                .ruleName(name)
                .category("2")
                .content("""
      [
        {
          "rule": [
            {
              "operator": "contains",
              "target": "content",
              "value": "tf-testACCContent"
            }
          ],
          "ruleRelation": "AND"
        }
      ]
                """)
                .riskLevelId("4")
                .productCode("OSS")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf-example-name
    resources:
      default:
        type: alicloud:sddp:Rule
        properties:
          ruleName: ${name}
          category: '2'
          content: |2
              [
                {
                  "rule": [
                    {
                      "operator": "contains",
                      "target": "content",
                      "value": "tf-testACCContent"
                    }
                  ],
                  "ruleRelation": "AND"
                }
              ]
          riskLevelId: '4'
          productCode: OSS
    

    Create Rule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Rule(name: string, args: RuleArgs, opts?: CustomResourceOptions);
    @overload
    def Rule(resource_name: str,
             args: RuleArgs,
             opts: Optional[ResourceOptions] = None)
    
    @overload
    def Rule(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             category: Optional[int] = None,
             content: Optional[str] = None,
             rule_name: Optional[str] = None,
             product_id: Optional[str] = None,
             lang: Optional[str] = None,
             product_code: Optional[str] = None,
             description: Optional[str] = None,
             risk_level_id: Optional[str] = None,
             content_category: Optional[str] = None,
             rule_type: Optional[int] = None,
             stat_express: Optional[str] = None,
             status: Optional[int] = None,
             target: Optional[str] = None,
             warn_level: Optional[int] = None)
    func NewRule(ctx *Context, name string, args RuleArgs, opts ...ResourceOption) (*Rule, error)
    public Rule(string name, RuleArgs args, CustomResourceOptions? opts = null)
    public Rule(String name, RuleArgs args)
    public Rule(String name, RuleArgs args, CustomResourceOptions options)
    
    type: alicloud:sddp:Rule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args RuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args RuleArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args RuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var exampleruleResourceResourceFromSddprule = new AliCloud.Sddp.Rule("exampleruleResourceResourceFromSddprule", new()
    {
        Category = 0,
        Content = "string",
        RuleName = "string",
        ProductId = "string",
        Lang = "string",
        ProductCode = "string",
        Description = "string",
        RiskLevelId = "string",
        ContentCategory = "string",
        RuleType = 0,
        StatExpress = "string",
        Status = 0,
        Target = "string",
        WarnLevel = 0,
    });
    
    example, err := sddp.NewRule(ctx, "exampleruleResourceResourceFromSddprule", &sddp.RuleArgs{
    	Category:        pulumi.Int(0),
    	Content:         pulumi.String("string"),
    	RuleName:        pulumi.String("string"),
    	ProductId:       pulumi.String("string"),
    	Lang:            pulumi.String("string"),
    	ProductCode:     pulumi.String("string"),
    	Description:     pulumi.String("string"),
    	RiskLevelId:     pulumi.String("string"),
    	ContentCategory: pulumi.String("string"),
    	RuleType:        pulumi.Int(0),
    	StatExpress:     pulumi.String("string"),
    	Status:          pulumi.Int(0),
    	Target:          pulumi.String("string"),
    	WarnLevel:       pulumi.Int(0),
    })
    
    var exampleruleResourceResourceFromSddprule = new Rule("exampleruleResourceResourceFromSddprule", RuleArgs.builder()
        .category(0)
        .content("string")
        .ruleName("string")
        .productId("string")
        .lang("string")
        .productCode("string")
        .description("string")
        .riskLevelId("string")
        .contentCategory("string")
        .ruleType(0)
        .statExpress("string")
        .status(0)
        .target("string")
        .warnLevel(0)
        .build());
    
    examplerule_resource_resource_from_sddprule = alicloud.sddp.Rule("exampleruleResourceResourceFromSddprule",
        category=0,
        content="string",
        rule_name="string",
        product_id="string",
        lang="string",
        product_code="string",
        description="string",
        risk_level_id="string",
        content_category="string",
        rule_type=0,
        stat_express="string",
        status=0,
        target="string",
        warn_level=0)
    
    const exampleruleResourceResourceFromSddprule = new alicloud.sddp.Rule("exampleruleResourceResourceFromSddprule", {
        category: 0,
        content: "string",
        ruleName: "string",
        productId: "string",
        lang: "string",
        productCode: "string",
        description: "string",
        riskLevelId: "string",
        contentCategory: "string",
        ruleType: 0,
        statExpress: "string",
        status: 0,
        target: "string",
        warnLevel: 0,
    });
    
    type: alicloud:sddp:Rule
    properties:
        category: 0
        content: string
        contentCategory: string
        description: string
        lang: string
        productCode: string
        productId: string
        riskLevelId: string
        ruleName: string
        ruleType: 0
        statExpress: string
        status: 0
        target: string
        warnLevel: 0
    

    Rule Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Rule resource accepts the following input properties:

    Category int
    The content type of the sensitive data detection rule. Valid values:
    Content string
    The content of the sensitive data detection rule. NOTE: From version 1.222.0, content can be modified.
    RuleName string
    The name of the sensitive data detection rule. NOTE: From version 1.222.0, rule_name can be modified.
    ContentCategory string
    The type of the content in the sensitive data detection rule. NOTE: From version 1.222.0, content_category cannot be modified.
    Description string
    The description of the rule. NOTE: From version 1.222.0, description cannot be modified.
    Lang string
    The language of the content within the request and response. Default value: zh. Valid values:
    ProductCode string
    The name of the service to which data in the column of the table belongs. Valid values: OSS, RDS, ODPS(MaxCompute).
    ProductId string
    The ID of the service to which the data asset belongs. Valid values:
    RiskLevelId string
    The sensitivity level of the sensitive data that hits the sensitive data detection rule. Valid values:
    RuleType int
    The type of the sensitive data detection rule. Valid values:
    StatExpress string
    The statistical expression. NOTE: From version 1.222.0, stat_express cannot be modified.
    Status int
    Sensitive Specifies whether to enable the sensitive data detection rule. Valid values:
    Target string
    The code of the service to which the sensitive data detection rule is applied. NOTE: From version 1.222.0, target cannot be modified.
    WarnLevel int
    The risk level of the alert that is triggered. Valid values:
    Category int
    The content type of the sensitive data detection rule. Valid values:
    Content string
    The content of the sensitive data detection rule. NOTE: From version 1.222.0, content can be modified.
    RuleName string
    The name of the sensitive data detection rule. NOTE: From version 1.222.0, rule_name can be modified.
    ContentCategory string
    The type of the content in the sensitive data detection rule. NOTE: From version 1.222.0, content_category cannot be modified.
    Description string
    The description of the rule. NOTE: From version 1.222.0, description cannot be modified.
    Lang string
    The language of the content within the request and response. Default value: zh. Valid values:
    ProductCode string
    The name of the service to which data in the column of the table belongs. Valid values: OSS, RDS, ODPS(MaxCompute).
    ProductId string
    The ID of the service to which the data asset belongs. Valid values:
    RiskLevelId string
    The sensitivity level of the sensitive data that hits the sensitive data detection rule. Valid values:
    RuleType int
    The type of the sensitive data detection rule. Valid values:
    StatExpress string
    The statistical expression. NOTE: From version 1.222.0, stat_express cannot be modified.
    Status int
    Sensitive Specifies whether to enable the sensitive data detection rule. Valid values:
    Target string
    The code of the service to which the sensitive data detection rule is applied. NOTE: From version 1.222.0, target cannot be modified.
    WarnLevel int
    The risk level of the alert that is triggered. Valid values:
    category Integer
    The content type of the sensitive data detection rule. Valid values:
    content String
    The content of the sensitive data detection rule. NOTE: From version 1.222.0, content can be modified.
    ruleName String
    The name of the sensitive data detection rule. NOTE: From version 1.222.0, rule_name can be modified.
    contentCategory String
    The type of the content in the sensitive data detection rule. NOTE: From version 1.222.0, content_category cannot be modified.
    description String
    The description of the rule. NOTE: From version 1.222.0, description cannot be modified.
    lang String
    The language of the content within the request and response. Default value: zh. Valid values:
    productCode String
    The name of the service to which data in the column of the table belongs. Valid values: OSS, RDS, ODPS(MaxCompute).
    productId String
    The ID of the service to which the data asset belongs. Valid values:
    riskLevelId String
    The sensitivity level of the sensitive data that hits the sensitive data detection rule. Valid values:
    ruleType Integer
    The type of the sensitive data detection rule. Valid values:
    statExpress String
    The statistical expression. NOTE: From version 1.222.0, stat_express cannot be modified.
    status Integer
    Sensitive Specifies whether to enable the sensitive data detection rule. Valid values:
    target String
    The code of the service to which the sensitive data detection rule is applied. NOTE: From version 1.222.0, target cannot be modified.
    warnLevel Integer
    The risk level of the alert that is triggered. Valid values:
    category number
    The content type of the sensitive data detection rule. Valid values:
    content string
    The content of the sensitive data detection rule. NOTE: From version 1.222.0, content can be modified.
    ruleName string
    The name of the sensitive data detection rule. NOTE: From version 1.222.0, rule_name can be modified.
    contentCategory string
    The type of the content in the sensitive data detection rule. NOTE: From version 1.222.0, content_category cannot be modified.
    description string
    The description of the rule. NOTE: From version 1.222.0, description cannot be modified.
    lang string
    The language of the content within the request and response. Default value: zh. Valid values:
    productCode string
    The name of the service to which data in the column of the table belongs. Valid values: OSS, RDS, ODPS(MaxCompute).
    productId string
    The ID of the service to which the data asset belongs. Valid values:
    riskLevelId string
    The sensitivity level of the sensitive data that hits the sensitive data detection rule. Valid values:
    ruleType number
    The type of the sensitive data detection rule. Valid values:
    statExpress string
    The statistical expression. NOTE: From version 1.222.0, stat_express cannot be modified.
    status number
    Sensitive Specifies whether to enable the sensitive data detection rule. Valid values:
    target string
    The code of the service to which the sensitive data detection rule is applied. NOTE: From version 1.222.0, target cannot be modified.
    warnLevel number
    The risk level of the alert that is triggered. Valid values:
    category int
    The content type of the sensitive data detection rule. Valid values:
    content str
    The content of the sensitive data detection rule. NOTE: From version 1.222.0, content can be modified.
    rule_name str
    The name of the sensitive data detection rule. NOTE: From version 1.222.0, rule_name can be modified.
    content_category str
    The type of the content in the sensitive data detection rule. NOTE: From version 1.222.0, content_category cannot be modified.
    description str
    The description of the rule. NOTE: From version 1.222.0, description cannot be modified.
    lang str
    The language of the content within the request and response. Default value: zh. Valid values:
    product_code str
    The name of the service to which data in the column of the table belongs. Valid values: OSS, RDS, ODPS(MaxCompute).
    product_id str
    The ID of the service to which the data asset belongs. Valid values:
    risk_level_id str
    The sensitivity level of the sensitive data that hits the sensitive data detection rule. Valid values:
    rule_type int
    The type of the sensitive data detection rule. Valid values:
    stat_express str
    The statistical expression. NOTE: From version 1.222.0, stat_express cannot be modified.
    status int
    Sensitive Specifies whether to enable the sensitive data detection rule. Valid values:
    target str
    The code of the service to which the sensitive data detection rule is applied. NOTE: From version 1.222.0, target cannot be modified.
    warn_level int
    The risk level of the alert that is triggered. Valid values:
    category Number
    The content type of the sensitive data detection rule. Valid values:
    content String
    The content of the sensitive data detection rule. NOTE: From version 1.222.0, content can be modified.
    ruleName String
    The name of the sensitive data detection rule. NOTE: From version 1.222.0, rule_name can be modified.
    contentCategory String
    The type of the content in the sensitive data detection rule. NOTE: From version 1.222.0, content_category cannot be modified.
    description String
    The description of the rule. NOTE: From version 1.222.0, description cannot be modified.
    lang String
    The language of the content within the request and response. Default value: zh. Valid values:
    productCode String
    The name of the service to which data in the column of the table belongs. Valid values: OSS, RDS, ODPS(MaxCompute).
    productId String
    The ID of the service to which the data asset belongs. Valid values:
    riskLevelId String
    The sensitivity level of the sensitive data that hits the sensitive data detection rule. Valid values:
    ruleType Number
    The type of the sensitive data detection rule. Valid values:
    statExpress String
    The statistical expression. NOTE: From version 1.222.0, stat_express cannot be modified.
    status Number
    Sensitive Specifies whether to enable the sensitive data detection rule. Valid values:
    target String
    The code of the service to which the sensitive data detection rule is applied. NOTE: From version 1.222.0, target cannot be modified.
    warnLevel Number
    The risk level of the alert that is triggered. Valid values:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Rule resource produces the following output properties:

    CustomType int
    The type of the sensitive data detection rule. NOTE: From version 1.222.0, custom_type cannot be specified when create Rule.
    Id string
    The provider-assigned unique ID for this managed resource.
    CustomType int
    The type of the sensitive data detection rule. NOTE: From version 1.222.0, custom_type cannot be specified when create Rule.
    Id string
    The provider-assigned unique ID for this managed resource.
    customType Integer
    The type of the sensitive data detection rule. NOTE: From version 1.222.0, custom_type cannot be specified when create Rule.
    id String
    The provider-assigned unique ID for this managed resource.
    customType number
    The type of the sensitive data detection rule. NOTE: From version 1.222.0, custom_type cannot be specified when create Rule.
    id string
    The provider-assigned unique ID for this managed resource.
    custom_type int
    The type of the sensitive data detection rule. NOTE: From version 1.222.0, custom_type cannot be specified when create Rule.
    id str
    The provider-assigned unique ID for this managed resource.
    customType Number
    The type of the sensitive data detection rule. NOTE: From version 1.222.0, custom_type cannot be specified when create Rule.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Rule Resource

    Get an existing Rule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: RuleState, opts?: CustomResourceOptions): Rule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            category: Optional[int] = None,
            content: Optional[str] = None,
            content_category: Optional[str] = None,
            custom_type: Optional[int] = None,
            description: Optional[str] = None,
            lang: Optional[str] = None,
            product_code: Optional[str] = None,
            product_id: Optional[str] = None,
            risk_level_id: Optional[str] = None,
            rule_name: Optional[str] = None,
            rule_type: Optional[int] = None,
            stat_express: Optional[str] = None,
            status: Optional[int] = None,
            target: Optional[str] = None,
            warn_level: Optional[int] = None) -> Rule
    func GetRule(ctx *Context, name string, id IDInput, state *RuleState, opts ...ResourceOption) (*Rule, error)
    public static Rule Get(string name, Input<string> id, RuleState? state, CustomResourceOptions? opts = null)
    public static Rule get(String name, Output<String> id, RuleState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Category int
    The content type of the sensitive data detection rule. Valid values:
    Content string
    The content of the sensitive data detection rule. NOTE: From version 1.222.0, content can be modified.
    ContentCategory string
    The type of the content in the sensitive data detection rule. NOTE: From version 1.222.0, content_category cannot be modified.
    CustomType int
    The type of the sensitive data detection rule. NOTE: From version 1.222.0, custom_type cannot be specified when create Rule.
    Description string
    The description of the rule. NOTE: From version 1.222.0, description cannot be modified.
    Lang string
    The language of the content within the request and response. Default value: zh. Valid values:
    ProductCode string
    The name of the service to which data in the column of the table belongs. Valid values: OSS, RDS, ODPS(MaxCompute).
    ProductId string
    The ID of the service to which the data asset belongs. Valid values:
    RiskLevelId string
    The sensitivity level of the sensitive data that hits the sensitive data detection rule. Valid values:
    RuleName string
    The name of the sensitive data detection rule. NOTE: From version 1.222.0, rule_name can be modified.
    RuleType int
    The type of the sensitive data detection rule. Valid values:
    StatExpress string
    The statistical expression. NOTE: From version 1.222.0, stat_express cannot be modified.
    Status int
    Sensitive Specifies whether to enable the sensitive data detection rule. Valid values:
    Target string
    The code of the service to which the sensitive data detection rule is applied. NOTE: From version 1.222.0, target cannot be modified.
    WarnLevel int
    The risk level of the alert that is triggered. Valid values:
    Category int
    The content type of the sensitive data detection rule. Valid values:
    Content string
    The content of the sensitive data detection rule. NOTE: From version 1.222.0, content can be modified.
    ContentCategory string
    The type of the content in the sensitive data detection rule. NOTE: From version 1.222.0, content_category cannot be modified.
    CustomType int
    The type of the sensitive data detection rule. NOTE: From version 1.222.0, custom_type cannot be specified when create Rule.
    Description string
    The description of the rule. NOTE: From version 1.222.0, description cannot be modified.
    Lang string
    The language of the content within the request and response. Default value: zh. Valid values:
    ProductCode string
    The name of the service to which data in the column of the table belongs. Valid values: OSS, RDS, ODPS(MaxCompute).
    ProductId string
    The ID of the service to which the data asset belongs. Valid values:
    RiskLevelId string
    The sensitivity level of the sensitive data that hits the sensitive data detection rule. Valid values:
    RuleName string
    The name of the sensitive data detection rule. NOTE: From version 1.222.0, rule_name can be modified.
    RuleType int
    The type of the sensitive data detection rule. Valid values:
    StatExpress string
    The statistical expression. NOTE: From version 1.222.0, stat_express cannot be modified.
    Status int
    Sensitive Specifies whether to enable the sensitive data detection rule. Valid values:
    Target string
    The code of the service to which the sensitive data detection rule is applied. NOTE: From version 1.222.0, target cannot be modified.
    WarnLevel int
    The risk level of the alert that is triggered. Valid values:
    category Integer
    The content type of the sensitive data detection rule. Valid values:
    content String
    The content of the sensitive data detection rule. NOTE: From version 1.222.0, content can be modified.
    contentCategory String
    The type of the content in the sensitive data detection rule. NOTE: From version 1.222.0, content_category cannot be modified.
    customType Integer
    The type of the sensitive data detection rule. NOTE: From version 1.222.0, custom_type cannot be specified when create Rule.
    description String
    The description of the rule. NOTE: From version 1.222.0, description cannot be modified.
    lang String
    The language of the content within the request and response. Default value: zh. Valid values:
    productCode String
    The name of the service to which data in the column of the table belongs. Valid values: OSS, RDS, ODPS(MaxCompute).
    productId String
    The ID of the service to which the data asset belongs. Valid values:
    riskLevelId String
    The sensitivity level of the sensitive data that hits the sensitive data detection rule. Valid values:
    ruleName String
    The name of the sensitive data detection rule. NOTE: From version 1.222.0, rule_name can be modified.
    ruleType Integer
    The type of the sensitive data detection rule. Valid values:
    statExpress String
    The statistical expression. NOTE: From version 1.222.0, stat_express cannot be modified.
    status Integer
    Sensitive Specifies whether to enable the sensitive data detection rule. Valid values:
    target String
    The code of the service to which the sensitive data detection rule is applied. NOTE: From version 1.222.0, target cannot be modified.
    warnLevel Integer
    The risk level of the alert that is triggered. Valid values:
    category number
    The content type of the sensitive data detection rule. Valid values:
    content string
    The content of the sensitive data detection rule. NOTE: From version 1.222.0, content can be modified.
    contentCategory string
    The type of the content in the sensitive data detection rule. NOTE: From version 1.222.0, content_category cannot be modified.
    customType number
    The type of the sensitive data detection rule. NOTE: From version 1.222.0, custom_type cannot be specified when create Rule.
    description string
    The description of the rule. NOTE: From version 1.222.0, description cannot be modified.
    lang string
    The language of the content within the request and response. Default value: zh. Valid values:
    productCode string
    The name of the service to which data in the column of the table belongs. Valid values: OSS, RDS, ODPS(MaxCompute).
    productId string
    The ID of the service to which the data asset belongs. Valid values:
    riskLevelId string
    The sensitivity level of the sensitive data that hits the sensitive data detection rule. Valid values:
    ruleName string
    The name of the sensitive data detection rule. NOTE: From version 1.222.0, rule_name can be modified.
    ruleType number
    The type of the sensitive data detection rule. Valid values:
    statExpress string
    The statistical expression. NOTE: From version 1.222.0, stat_express cannot be modified.
    status number
    Sensitive Specifies whether to enable the sensitive data detection rule. Valid values:
    target string
    The code of the service to which the sensitive data detection rule is applied. NOTE: From version 1.222.0, target cannot be modified.
    warnLevel number
    The risk level of the alert that is triggered. Valid values:
    category int
    The content type of the sensitive data detection rule. Valid values:
    content str
    The content of the sensitive data detection rule. NOTE: From version 1.222.0, content can be modified.
    content_category str
    The type of the content in the sensitive data detection rule. NOTE: From version 1.222.0, content_category cannot be modified.
    custom_type int
    The type of the sensitive data detection rule. NOTE: From version 1.222.0, custom_type cannot be specified when create Rule.
    description str
    The description of the rule. NOTE: From version 1.222.0, description cannot be modified.
    lang str
    The language of the content within the request and response. Default value: zh. Valid values:
    product_code str
    The name of the service to which data in the column of the table belongs. Valid values: OSS, RDS, ODPS(MaxCompute).
    product_id str
    The ID of the service to which the data asset belongs. Valid values:
    risk_level_id str
    The sensitivity level of the sensitive data that hits the sensitive data detection rule. Valid values:
    rule_name str
    The name of the sensitive data detection rule. NOTE: From version 1.222.0, rule_name can be modified.
    rule_type int
    The type of the sensitive data detection rule. Valid values:
    stat_express str
    The statistical expression. NOTE: From version 1.222.0, stat_express cannot be modified.
    status int
    Sensitive Specifies whether to enable the sensitive data detection rule. Valid values:
    target str
    The code of the service to which the sensitive data detection rule is applied. NOTE: From version 1.222.0, target cannot be modified.
    warn_level int
    The risk level of the alert that is triggered. Valid values:
    category Number
    The content type of the sensitive data detection rule. Valid values:
    content String
    The content of the sensitive data detection rule. NOTE: From version 1.222.0, content can be modified.
    contentCategory String
    The type of the content in the sensitive data detection rule. NOTE: From version 1.222.0, content_category cannot be modified.
    customType Number
    The type of the sensitive data detection rule. NOTE: From version 1.222.0, custom_type cannot be specified when create Rule.
    description String
    The description of the rule. NOTE: From version 1.222.0, description cannot be modified.
    lang String
    The language of the content within the request and response. Default value: zh. Valid values:
    productCode String
    The name of the service to which data in the column of the table belongs. Valid values: OSS, RDS, ODPS(MaxCompute).
    productId String
    The ID of the service to which the data asset belongs. Valid values:
    riskLevelId String
    The sensitivity level of the sensitive data that hits the sensitive data detection rule. Valid values:
    ruleName String
    The name of the sensitive data detection rule. NOTE: From version 1.222.0, rule_name can be modified.
    ruleType Number
    The type of the sensitive data detection rule. Valid values:
    statExpress String
    The statistical expression. NOTE: From version 1.222.0, stat_express cannot be modified.
    status Number
    Sensitive Specifies whether to enable the sensitive data detection rule. Valid values:
    target String
    The code of the service to which the sensitive data detection rule is applied. NOTE: From version 1.222.0, target cannot be modified.
    warnLevel Number
    The risk level of the alert that is triggered. Valid values:

    Import

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

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

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi