gcp.dataloss.PreventionInspectTemplate
Explore with Pulumi AI
An inspect job template.
To get more information about InspectTemplate, see:
- API documentation
- How-to Guides
Example Usage
Dlp Inspect Template Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const basic = new gcp.dataloss.PreventionInspectTemplate("basic", {
    parent: "projects/my-project-name",
    description: "My description",
    displayName: "display_name",
    inspectConfig: {
        infoTypes: [
            {
                name: "EMAIL_ADDRESS",
            },
            {
                name: "PERSON_NAME",
            },
            {
                name: "LAST_NAME",
            },
            {
                name: "DOMAIN_NAME",
            },
            {
                name: "PHONE_NUMBER",
            },
            {
                name: "FIRST_NAME",
            },
        ],
        minLikelihood: "UNLIKELY",
        ruleSets: [
            {
                infoTypes: [{
                    name: "EMAIL_ADDRESS",
                }],
                rules: [{
                    exclusionRule: {
                        regex: {
                            pattern: ".+@example.com",
                        },
                        matchingType: "MATCHING_TYPE_FULL_MATCH",
                    },
                }],
            },
            {
                infoTypes: [
                    {
                        name: "EMAIL_ADDRESS",
                    },
                    {
                        name: "DOMAIN_NAME",
                    },
                    {
                        name: "PHONE_NUMBER",
                    },
                    {
                        name: "PERSON_NAME",
                    },
                    {
                        name: "FIRST_NAME",
                    },
                ],
                rules: [{
                    exclusionRule: {
                        dictionary: {
                            wordList: {
                                words: ["TEST"],
                            },
                        },
                        matchingType: "MATCHING_TYPE_PARTIAL_MATCH",
                    },
                }],
            },
            {
                infoTypes: [{
                    name: "PERSON_NAME",
                }],
                rules: [{
                    hotwordRule: {
                        hotwordRegex: {
                            pattern: "patient",
                        },
                        proximity: {
                            windowBefore: 50,
                        },
                        likelihoodAdjustment: {
                            fixedLikelihood: "VERY_LIKELY",
                        },
                    },
                }],
            },
        ],
        limits: {
            maxFindingsPerItem: 10,
            maxFindingsPerRequest: 50,
            maxFindingsPerInfoTypes: [
                {
                    maxFindings: 75,
                    infoType: {
                        name: "PERSON_NAME",
                    },
                },
                {
                    maxFindings: 80,
                    infoType: {
                        name: "LAST_NAME",
                    },
                },
            ],
        },
    },
});
import pulumi
import pulumi_gcp as gcp
basic = gcp.dataloss.PreventionInspectTemplate("basic",
    parent="projects/my-project-name",
    description="My description",
    display_name="display_name",
    inspect_config={
        "info_types": [
            {
                "name": "EMAIL_ADDRESS",
            },
            {
                "name": "PERSON_NAME",
            },
            {
                "name": "LAST_NAME",
            },
            {
                "name": "DOMAIN_NAME",
            },
            {
                "name": "PHONE_NUMBER",
            },
            {
                "name": "FIRST_NAME",
            },
        ],
        "min_likelihood": "UNLIKELY",
        "rule_sets": [
            {
                "info_types": [{
                    "name": "EMAIL_ADDRESS",
                }],
                "rules": [{
                    "exclusion_rule": {
                        "regex": {
                            "pattern": ".+@example.com",
                        },
                        "matching_type": "MATCHING_TYPE_FULL_MATCH",
                    },
                }],
            },
            {
                "info_types": [
                    {
                        "name": "EMAIL_ADDRESS",
                    },
                    {
                        "name": "DOMAIN_NAME",
                    },
                    {
                        "name": "PHONE_NUMBER",
                    },
                    {
                        "name": "PERSON_NAME",
                    },
                    {
                        "name": "FIRST_NAME",
                    },
                ],
                "rules": [{
                    "exclusion_rule": {
                        "dictionary": {
                            "word_list": {
                                "words": ["TEST"],
                            },
                        },
                        "matching_type": "MATCHING_TYPE_PARTIAL_MATCH",
                    },
                }],
            },
            {
                "info_types": [{
                    "name": "PERSON_NAME",
                }],
                "rules": [{
                    "hotword_rule": {
                        "hotword_regex": {
                            "pattern": "patient",
                        },
                        "proximity": {
                            "window_before": 50,
                        },
                        "likelihood_adjustment": {
                            "fixed_likelihood": "VERY_LIKELY",
                        },
                    },
                }],
            },
        ],
        "limits": {
            "max_findings_per_item": 10,
            "max_findings_per_request": 50,
            "max_findings_per_info_types": [
                {
                    "max_findings": 75,
                    "info_type": {
                        "name": "PERSON_NAME",
                    },
                },
                {
                    "max_findings": 80,
                    "info_type": {
                        "name": "LAST_NAME",
                    },
                },
            ],
        },
    })
package main
import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/dataloss"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dataloss.NewPreventionInspectTemplate(ctx, "basic", &dataloss.PreventionInspectTemplateArgs{
			Parent:      pulumi.String("projects/my-project-name"),
			Description: pulumi.String("My description"),
			DisplayName: pulumi.String("display_name"),
			InspectConfig: &dataloss.PreventionInspectTemplateInspectConfigArgs{
				InfoTypes: dataloss.PreventionInspectTemplateInspectConfigInfoTypeArray{
					&dataloss.PreventionInspectTemplateInspectConfigInfoTypeArgs{
						Name: pulumi.String("EMAIL_ADDRESS"),
					},
					&dataloss.PreventionInspectTemplateInspectConfigInfoTypeArgs{
						Name: pulumi.String("PERSON_NAME"),
					},
					&dataloss.PreventionInspectTemplateInspectConfigInfoTypeArgs{
						Name: pulumi.String("LAST_NAME"),
					},
					&dataloss.PreventionInspectTemplateInspectConfigInfoTypeArgs{
						Name: pulumi.String("DOMAIN_NAME"),
					},
					&dataloss.PreventionInspectTemplateInspectConfigInfoTypeArgs{
						Name: pulumi.String("PHONE_NUMBER"),
					},
					&dataloss.PreventionInspectTemplateInspectConfigInfoTypeArgs{
						Name: pulumi.String("FIRST_NAME"),
					},
				},
				MinLikelihood: pulumi.String("UNLIKELY"),
				RuleSets: dataloss.PreventionInspectTemplateInspectConfigRuleSetArray{
					&dataloss.PreventionInspectTemplateInspectConfigRuleSetArgs{
						InfoTypes: dataloss.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArray{
							&dataloss.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs{
								Name: pulumi.String("EMAIL_ADDRESS"),
							},
						},
						Rules: dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleArray{
							&dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleArgs{
								ExclusionRule: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleArgs{
									Regex: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleRegexArgs{
										Pattern: pulumi.String(".+@example.com"),
									},
									MatchingType: pulumi.String("MATCHING_TYPE_FULL_MATCH"),
								},
							},
						},
					},
					&dataloss.PreventionInspectTemplateInspectConfigRuleSetArgs{
						InfoTypes: dataloss.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArray{
							&dataloss.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs{
								Name: pulumi.String("EMAIL_ADDRESS"),
							},
							&dataloss.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs{
								Name: pulumi.String("DOMAIN_NAME"),
							},
							&dataloss.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs{
								Name: pulumi.String("PHONE_NUMBER"),
							},
							&dataloss.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs{
								Name: pulumi.String("PERSON_NAME"),
							},
							&dataloss.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs{
								Name: pulumi.String("FIRST_NAME"),
							},
						},
						Rules: dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleArray{
							&dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleArgs{
								ExclusionRule: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleArgs{
									Dictionary: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleDictionaryArgs{
										WordList: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleDictionaryWordListArgs{
											Words: pulumi.StringArray{
												pulumi.String("TEST"),
											},
										},
									},
									MatchingType: pulumi.String("MATCHING_TYPE_PARTIAL_MATCH"),
								},
							},
						},
					},
					&dataloss.PreventionInspectTemplateInspectConfigRuleSetArgs{
						InfoTypes: dataloss.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArray{
							&dataloss.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs{
								Name: pulumi.String("PERSON_NAME"),
							},
						},
						Rules: dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleArray{
							&dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleArgs{
								HotwordRule: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleArgs{
									HotwordRegex: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs{
										Pattern: pulumi.String("patient"),
									},
									Proximity: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleProximityArgs{
										WindowBefore: pulumi.Int(50),
									},
									LikelihoodAdjustment: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs{
										FixedLikelihood: pulumi.String("VERY_LIKELY"),
									},
								},
							},
						},
					},
				},
				Limits: &dataloss.PreventionInspectTemplateInspectConfigLimitsArgs{
					MaxFindingsPerItem:    pulumi.Int(10),
					MaxFindingsPerRequest: pulumi.Int(50),
					MaxFindingsPerInfoTypes: dataloss.PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeArray{
						&dataloss.PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeArgs{
							MaxFindings: pulumi.Int(75),
							InfoType: &dataloss.PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeArgs{
								Name: pulumi.String("PERSON_NAME"),
							},
						},
						&dataloss.PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeArgs{
							MaxFindings: pulumi.Int(80),
							InfoType: &dataloss.PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeArgs{
								Name: pulumi.String("LAST_NAME"),
							},
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() => 
{
    var basic = new Gcp.DataLoss.PreventionInspectTemplate("basic", new()
    {
        Parent = "projects/my-project-name",
        Description = "My description",
        DisplayName = "display_name",
        InspectConfig = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigArgs
        {
            InfoTypes = new[]
            {
                new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigInfoTypeArgs
                {
                    Name = "EMAIL_ADDRESS",
                },
                new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigInfoTypeArgs
                {
                    Name = "PERSON_NAME",
                },
                new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigInfoTypeArgs
                {
                    Name = "LAST_NAME",
                },
                new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigInfoTypeArgs
                {
                    Name = "DOMAIN_NAME",
                },
                new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigInfoTypeArgs
                {
                    Name = "PHONE_NUMBER",
                },
                new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigInfoTypeArgs
                {
                    Name = "FIRST_NAME",
                },
            },
            MinLikelihood = "UNLIKELY",
            RuleSets = new[]
            {
                new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetArgs
                {
                    InfoTypes = new[]
                    {
                        new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs
                        {
                            Name = "EMAIL_ADDRESS",
                        },
                    },
                    Rules = new[]
                    {
                        new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleArgs
                        {
                            ExclusionRule = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleArgs
                            {
                                Regex = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleRegexArgs
                                {
                                    Pattern = ".+@example.com",
                                },
                                MatchingType = "MATCHING_TYPE_FULL_MATCH",
                            },
                        },
                    },
                },
                new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetArgs
                {
                    InfoTypes = new[]
                    {
                        new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs
                        {
                            Name = "EMAIL_ADDRESS",
                        },
                        new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs
                        {
                            Name = "DOMAIN_NAME",
                        },
                        new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs
                        {
                            Name = "PHONE_NUMBER",
                        },
                        new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs
                        {
                            Name = "PERSON_NAME",
                        },
                        new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs
                        {
                            Name = "FIRST_NAME",
                        },
                    },
                    Rules = new[]
                    {
                        new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleArgs
                        {
                            ExclusionRule = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleArgs
                            {
                                Dictionary = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleDictionaryArgs
                                {
                                    WordList = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleDictionaryWordListArgs
                                    {
                                        Words = new[]
                                        {
                                            "TEST",
                                        },
                                    },
                                },
                                MatchingType = "MATCHING_TYPE_PARTIAL_MATCH",
                            },
                        },
                    },
                },
                new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetArgs
                {
                    InfoTypes = new[]
                    {
                        new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs
                        {
                            Name = "PERSON_NAME",
                        },
                    },
                    Rules = new[]
                    {
                        new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleArgs
                        {
                            HotwordRule = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleArgs
                            {
                                HotwordRegex = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs
                                {
                                    Pattern = "patient",
                                },
                                Proximity = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleProximityArgs
                                {
                                    WindowBefore = 50,
                                },
                                LikelihoodAdjustment = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs
                                {
                                    FixedLikelihood = "VERY_LIKELY",
                                },
                            },
                        },
                    },
                },
            },
            Limits = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigLimitsArgs
            {
                MaxFindingsPerItem = 10,
                MaxFindingsPerRequest = 50,
                MaxFindingsPerInfoTypes = new[]
                {
                    new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeArgs
                    {
                        MaxFindings = 75,
                        InfoType = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeArgs
                        {
                            Name = "PERSON_NAME",
                        },
                    },
                    new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeArgs
                    {
                        MaxFindings = 80,
                        InfoType = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeArgs
                        {
                            Name = "LAST_NAME",
                        },
                    },
                },
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.dataloss.PreventionInspectTemplate;
import com.pulumi.gcp.dataloss.PreventionInspectTemplateArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionInspectTemplateInspectConfigArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionInspectTemplateInspectConfigLimitsArgs;
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 basic = new PreventionInspectTemplate("basic", PreventionInspectTemplateArgs.builder()
            .parent("projects/my-project-name")
            .description("My description")
            .displayName("display_name")
            .inspectConfig(PreventionInspectTemplateInspectConfigArgs.builder()
                .infoTypes(                
                    PreventionInspectTemplateInspectConfigInfoTypeArgs.builder()
                        .name("EMAIL_ADDRESS")
                        .build(),
                    PreventionInspectTemplateInspectConfigInfoTypeArgs.builder()
                        .name("PERSON_NAME")
                        .build(),
                    PreventionInspectTemplateInspectConfigInfoTypeArgs.builder()
                        .name("LAST_NAME")
                        .build(),
                    PreventionInspectTemplateInspectConfigInfoTypeArgs.builder()
                        .name("DOMAIN_NAME")
                        .build(),
                    PreventionInspectTemplateInspectConfigInfoTypeArgs.builder()
                        .name("PHONE_NUMBER")
                        .build(),
                    PreventionInspectTemplateInspectConfigInfoTypeArgs.builder()
                        .name("FIRST_NAME")
                        .build())
                .minLikelihood("UNLIKELY")
                .ruleSets(                
                    PreventionInspectTemplateInspectConfigRuleSetArgs.builder()
                        .infoTypes(PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs.builder()
                            .name("EMAIL_ADDRESS")
                            .build())
                        .rules(PreventionInspectTemplateInspectConfigRuleSetRuleArgs.builder()
                            .exclusionRule(PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleArgs.builder()
                                .regex(PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleRegexArgs.builder()
                                    .pattern(".+@example.com")
                                    .build())
                                .matchingType("MATCHING_TYPE_FULL_MATCH")
                                .build())
                            .build())
                        .build(),
                    PreventionInspectTemplateInspectConfigRuleSetArgs.builder()
                        .infoTypes(                        
                            PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs.builder()
                                .name("EMAIL_ADDRESS")
                                .build(),
                            PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs.builder()
                                .name("DOMAIN_NAME")
                                .build(),
                            PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs.builder()
                                .name("PHONE_NUMBER")
                                .build(),
                            PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs.builder()
                                .name("PERSON_NAME")
                                .build(),
                            PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs.builder()
                                .name("FIRST_NAME")
                                .build())
                        .rules(PreventionInspectTemplateInspectConfigRuleSetRuleArgs.builder()
                            .exclusionRule(PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleArgs.builder()
                                .dictionary(PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleDictionaryArgs.builder()
                                    .wordList(PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleDictionaryWordListArgs.builder()
                                        .words("TEST")
                                        .build())
                                    .build())
                                .matchingType("MATCHING_TYPE_PARTIAL_MATCH")
                                .build())
                            .build())
                        .build(),
                    PreventionInspectTemplateInspectConfigRuleSetArgs.builder()
                        .infoTypes(PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs.builder()
                            .name("PERSON_NAME")
                            .build())
                        .rules(PreventionInspectTemplateInspectConfigRuleSetRuleArgs.builder()
                            .hotwordRule(PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleArgs.builder()
                                .hotwordRegex(PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs.builder()
                                    .pattern("patient")
                                    .build())
                                .proximity(PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleProximityArgs.builder()
                                    .windowBefore(50)
                                    .build())
                                .likelihoodAdjustment(PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs.builder()
                                    .fixedLikelihood("VERY_LIKELY")
                                    .build())
                                .build())
                            .build())
                        .build())
                .limits(PreventionInspectTemplateInspectConfigLimitsArgs.builder()
                    .maxFindingsPerItem(10)
                    .maxFindingsPerRequest(50)
                    .maxFindingsPerInfoTypes(                    
                        PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeArgs.builder()
                            .maxFindings("75")
                            .infoType(PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeArgs.builder()
                                .name("PERSON_NAME")
                                .build())
                            .build(),
                        PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeArgs.builder()
                            .maxFindings("80")
                            .infoType(PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeArgs.builder()
                                .name("LAST_NAME")
                                .build())
                            .build())
                    .build())
                .build())
            .build());
    }
}
resources:
  basic:
    type: gcp:dataloss:PreventionInspectTemplate
    properties:
      parent: projects/my-project-name
      description: My description
      displayName: display_name
      inspectConfig:
        infoTypes:
          - name: EMAIL_ADDRESS
          - name: PERSON_NAME
          - name: LAST_NAME
          - name: DOMAIN_NAME
          - name: PHONE_NUMBER
          - name: FIRST_NAME
        minLikelihood: UNLIKELY
        ruleSets:
          - infoTypes:
              - name: EMAIL_ADDRESS
            rules:
              - exclusionRule:
                  regex:
                    pattern: .+@example.com
                  matchingType: MATCHING_TYPE_FULL_MATCH
          - infoTypes:
              - name: EMAIL_ADDRESS
              - name: DOMAIN_NAME
              - name: PHONE_NUMBER
              - name: PERSON_NAME
              - name: FIRST_NAME
            rules:
              - exclusionRule:
                  dictionary:
                    wordList:
                      words:
                        - TEST
                  matchingType: MATCHING_TYPE_PARTIAL_MATCH
          - infoTypes:
              - name: PERSON_NAME
            rules:
              - hotwordRule:
                  hotwordRegex:
                    pattern: patient
                  proximity:
                    windowBefore: 50
                  likelihoodAdjustment:
                    fixedLikelihood: VERY_LIKELY
        limits:
          maxFindingsPerItem: 10
          maxFindingsPerRequest: 50
          maxFindingsPerInfoTypes:
            - maxFindings: '75'
              infoType:
                name: PERSON_NAME
            - maxFindings: '80'
              infoType:
                name: LAST_NAME
Dlp Inspect Template Custom Type
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const custom = new gcp.dataloss.PreventionInspectTemplate("custom", {
    parent: "projects/my-project-name",
    description: "My description",
    displayName: "display_name",
    inspectConfig: {
        customInfoTypes: [{
            infoType: {
                name: "MY_CUSTOM_TYPE",
            },
            likelihood: "UNLIKELY",
            regex: {
                pattern: "test*",
            },
        }],
        infoTypes: [{
            name: "EMAIL_ADDRESS",
        }],
        minLikelihood: "UNLIKELY",
        ruleSets: [
            {
                infoTypes: [{
                    name: "EMAIL_ADDRESS",
                }],
                rules: [{
                    exclusionRule: {
                        regex: {
                            pattern: ".+@example.com",
                        },
                        matchingType: "MATCHING_TYPE_FULL_MATCH",
                    },
                }],
            },
            {
                infoTypes: [{
                    name: "MY_CUSTOM_TYPE",
                }],
                rules: [{
                    hotwordRule: {
                        hotwordRegex: {
                            pattern: "example*",
                        },
                        proximity: {
                            windowBefore: 50,
                        },
                        likelihoodAdjustment: {
                            fixedLikelihood: "VERY_LIKELY",
                        },
                    },
                }],
            },
        ],
        limits: {
            maxFindingsPerItem: 10,
            maxFindingsPerRequest: 50,
        },
    },
});
import pulumi
import pulumi_gcp as gcp
custom = gcp.dataloss.PreventionInspectTemplate("custom",
    parent="projects/my-project-name",
    description="My description",
    display_name="display_name",
    inspect_config={
        "custom_info_types": [{
            "info_type": {
                "name": "MY_CUSTOM_TYPE",
            },
            "likelihood": "UNLIKELY",
            "regex": {
                "pattern": "test*",
            },
        }],
        "info_types": [{
            "name": "EMAIL_ADDRESS",
        }],
        "min_likelihood": "UNLIKELY",
        "rule_sets": [
            {
                "info_types": [{
                    "name": "EMAIL_ADDRESS",
                }],
                "rules": [{
                    "exclusion_rule": {
                        "regex": {
                            "pattern": ".+@example.com",
                        },
                        "matching_type": "MATCHING_TYPE_FULL_MATCH",
                    },
                }],
            },
            {
                "info_types": [{
                    "name": "MY_CUSTOM_TYPE",
                }],
                "rules": [{
                    "hotword_rule": {
                        "hotword_regex": {
                            "pattern": "example*",
                        },
                        "proximity": {
                            "window_before": 50,
                        },
                        "likelihood_adjustment": {
                            "fixed_likelihood": "VERY_LIKELY",
                        },
                    },
                }],
            },
        ],
        "limits": {
            "max_findings_per_item": 10,
            "max_findings_per_request": 50,
        },
    })
package main
import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/dataloss"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dataloss.NewPreventionInspectTemplate(ctx, "custom", &dataloss.PreventionInspectTemplateArgs{
			Parent:      pulumi.String("projects/my-project-name"),
			Description: pulumi.String("My description"),
			DisplayName: pulumi.String("display_name"),
			InspectConfig: &dataloss.PreventionInspectTemplateInspectConfigArgs{
				CustomInfoTypes: dataloss.PreventionInspectTemplateInspectConfigCustomInfoTypeArray{
					&dataloss.PreventionInspectTemplateInspectConfigCustomInfoTypeArgs{
						InfoType: &dataloss.PreventionInspectTemplateInspectConfigCustomInfoTypeInfoTypeArgs{
							Name: pulumi.String("MY_CUSTOM_TYPE"),
						},
						Likelihood: pulumi.String("UNLIKELY"),
						Regex: &dataloss.PreventionInspectTemplateInspectConfigCustomInfoTypeRegexArgs{
							Pattern: pulumi.String("test*"),
						},
					},
				},
				InfoTypes: dataloss.PreventionInspectTemplateInspectConfigInfoTypeArray{
					&dataloss.PreventionInspectTemplateInspectConfigInfoTypeArgs{
						Name: pulumi.String("EMAIL_ADDRESS"),
					},
				},
				MinLikelihood: pulumi.String("UNLIKELY"),
				RuleSets: dataloss.PreventionInspectTemplateInspectConfigRuleSetArray{
					&dataloss.PreventionInspectTemplateInspectConfigRuleSetArgs{
						InfoTypes: dataloss.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArray{
							&dataloss.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs{
								Name: pulumi.String("EMAIL_ADDRESS"),
							},
						},
						Rules: dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleArray{
							&dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleArgs{
								ExclusionRule: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleArgs{
									Regex: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleRegexArgs{
										Pattern: pulumi.String(".+@example.com"),
									},
									MatchingType: pulumi.String("MATCHING_TYPE_FULL_MATCH"),
								},
							},
						},
					},
					&dataloss.PreventionInspectTemplateInspectConfigRuleSetArgs{
						InfoTypes: dataloss.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArray{
							&dataloss.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs{
								Name: pulumi.String("MY_CUSTOM_TYPE"),
							},
						},
						Rules: dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleArray{
							&dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleArgs{
								HotwordRule: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleArgs{
									HotwordRegex: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs{
										Pattern: pulumi.String("example*"),
									},
									Proximity: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleProximityArgs{
										WindowBefore: pulumi.Int(50),
									},
									LikelihoodAdjustment: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs{
										FixedLikelihood: pulumi.String("VERY_LIKELY"),
									},
								},
							},
						},
					},
				},
				Limits: &dataloss.PreventionInspectTemplateInspectConfigLimitsArgs{
					MaxFindingsPerItem:    pulumi.Int(10),
					MaxFindingsPerRequest: pulumi.Int(50),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() => 
{
    var custom = new Gcp.DataLoss.PreventionInspectTemplate("custom", new()
    {
        Parent = "projects/my-project-name",
        Description = "My description",
        DisplayName = "display_name",
        InspectConfig = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigArgs
        {
            CustomInfoTypes = new[]
            {
                new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigCustomInfoTypeArgs
                {
                    InfoType = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigCustomInfoTypeInfoTypeArgs
                    {
                        Name = "MY_CUSTOM_TYPE",
                    },
                    Likelihood = "UNLIKELY",
                    Regex = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigCustomInfoTypeRegexArgs
                    {
                        Pattern = "test*",
                    },
                },
            },
            InfoTypes = new[]
            {
                new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigInfoTypeArgs
                {
                    Name = "EMAIL_ADDRESS",
                },
            },
            MinLikelihood = "UNLIKELY",
            RuleSets = new[]
            {
                new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetArgs
                {
                    InfoTypes = new[]
                    {
                        new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs
                        {
                            Name = "EMAIL_ADDRESS",
                        },
                    },
                    Rules = new[]
                    {
                        new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleArgs
                        {
                            ExclusionRule = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleArgs
                            {
                                Regex = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleRegexArgs
                                {
                                    Pattern = ".+@example.com",
                                },
                                MatchingType = "MATCHING_TYPE_FULL_MATCH",
                            },
                        },
                    },
                },
                new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetArgs
                {
                    InfoTypes = new[]
                    {
                        new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs
                        {
                            Name = "MY_CUSTOM_TYPE",
                        },
                    },
                    Rules = new[]
                    {
                        new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleArgs
                        {
                            HotwordRule = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleArgs
                            {
                                HotwordRegex = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs
                                {
                                    Pattern = "example*",
                                },
                                Proximity = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleProximityArgs
                                {
                                    WindowBefore = 50,
                                },
                                LikelihoodAdjustment = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs
                                {
                                    FixedLikelihood = "VERY_LIKELY",
                                },
                            },
                        },
                    },
                },
            },
            Limits = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigLimitsArgs
            {
                MaxFindingsPerItem = 10,
                MaxFindingsPerRequest = 50,
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.dataloss.PreventionInspectTemplate;
import com.pulumi.gcp.dataloss.PreventionInspectTemplateArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionInspectTemplateInspectConfigArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionInspectTemplateInspectConfigLimitsArgs;
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 custom = new PreventionInspectTemplate("custom", PreventionInspectTemplateArgs.builder()
            .parent("projects/my-project-name")
            .description("My description")
            .displayName("display_name")
            .inspectConfig(PreventionInspectTemplateInspectConfigArgs.builder()
                .customInfoTypes(PreventionInspectTemplateInspectConfigCustomInfoTypeArgs.builder()
                    .infoType(PreventionInspectTemplateInspectConfigCustomInfoTypeInfoTypeArgs.builder()
                        .name("MY_CUSTOM_TYPE")
                        .build())
                    .likelihood("UNLIKELY")
                    .regex(PreventionInspectTemplateInspectConfigCustomInfoTypeRegexArgs.builder()
                        .pattern("test*")
                        .build())
                    .build())
                .infoTypes(PreventionInspectTemplateInspectConfigInfoTypeArgs.builder()
                    .name("EMAIL_ADDRESS")
                    .build())
                .minLikelihood("UNLIKELY")
                .ruleSets(                
                    PreventionInspectTemplateInspectConfigRuleSetArgs.builder()
                        .infoTypes(PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs.builder()
                            .name("EMAIL_ADDRESS")
                            .build())
                        .rules(PreventionInspectTemplateInspectConfigRuleSetRuleArgs.builder()
                            .exclusionRule(PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleArgs.builder()
                                .regex(PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleRegexArgs.builder()
                                    .pattern(".+@example.com")
                                    .build())
                                .matchingType("MATCHING_TYPE_FULL_MATCH")
                                .build())
                            .build())
                        .build(),
                    PreventionInspectTemplateInspectConfigRuleSetArgs.builder()
                        .infoTypes(PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs.builder()
                            .name("MY_CUSTOM_TYPE")
                            .build())
                        .rules(PreventionInspectTemplateInspectConfigRuleSetRuleArgs.builder()
                            .hotwordRule(PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleArgs.builder()
                                .hotwordRegex(PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs.builder()
                                    .pattern("example*")
                                    .build())
                                .proximity(PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleProximityArgs.builder()
                                    .windowBefore(50)
                                    .build())
                                .likelihoodAdjustment(PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs.builder()
                                    .fixedLikelihood("VERY_LIKELY")
                                    .build())
                                .build())
                            .build())
                        .build())
                .limits(PreventionInspectTemplateInspectConfigLimitsArgs.builder()
                    .maxFindingsPerItem(10)
                    .maxFindingsPerRequest(50)
                    .build())
                .build())
            .build());
    }
}
resources:
  custom:
    type: gcp:dataloss:PreventionInspectTemplate
    properties:
      parent: projects/my-project-name
      description: My description
      displayName: display_name
      inspectConfig:
        customInfoTypes:
          - infoType:
              name: MY_CUSTOM_TYPE
            likelihood: UNLIKELY
            regex:
              pattern: test*
        infoTypes:
          - name: EMAIL_ADDRESS
        minLikelihood: UNLIKELY
        ruleSets:
          - infoTypes:
              - name: EMAIL_ADDRESS
            rules:
              - exclusionRule:
                  regex:
                    pattern: .+@example.com
                  matchingType: MATCHING_TYPE_FULL_MATCH
          - infoTypes:
              - name: MY_CUSTOM_TYPE
            rules:
              - hotwordRule:
                  hotwordRegex:
                    pattern: example*
                  proximity:
                    windowBefore: 50
                  likelihoodAdjustment:
                    fixedLikelihood: VERY_LIKELY
        limits:
          maxFindingsPerItem: 10
          maxFindingsPerRequest: 50
Dlp Inspect Template Custom Type Surrogate
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const customTypeSurrogate = new gcp.dataloss.PreventionInspectTemplate("custom_type_surrogate", {
    parent: "projects/my-project-name",
    description: "My description",
    displayName: "display_name",
    inspectConfig: {
        customInfoTypes: [{
            infoType: {
                name: "MY_CUSTOM_TYPE",
            },
            likelihood: "UNLIKELY",
            surrogateType: {},
        }],
        infoTypes: [{
            name: "EMAIL_ADDRESS",
        }],
        minLikelihood: "UNLIKELY",
        ruleSets: [
            {
                infoTypes: [{
                    name: "EMAIL_ADDRESS",
                }],
                rules: [{
                    exclusionRule: {
                        regex: {
                            pattern: ".+@example.com",
                        },
                        matchingType: "MATCHING_TYPE_FULL_MATCH",
                    },
                }],
            },
            {
                infoTypes: [{
                    name: "MY_CUSTOM_TYPE",
                }],
                rules: [{
                    hotwordRule: {
                        hotwordRegex: {
                            pattern: "example*",
                        },
                        proximity: {
                            windowBefore: 50,
                        },
                        likelihoodAdjustment: {
                            fixedLikelihood: "VERY_LIKELY",
                        },
                    },
                }],
            },
        ],
        limits: {
            maxFindingsPerItem: 10,
            maxFindingsPerRequest: 50,
        },
    },
});
import pulumi
import pulumi_gcp as gcp
custom_type_surrogate = gcp.dataloss.PreventionInspectTemplate("custom_type_surrogate",
    parent="projects/my-project-name",
    description="My description",
    display_name="display_name",
    inspect_config={
        "custom_info_types": [{
            "info_type": {
                "name": "MY_CUSTOM_TYPE",
            },
            "likelihood": "UNLIKELY",
            "surrogate_type": {},
        }],
        "info_types": [{
            "name": "EMAIL_ADDRESS",
        }],
        "min_likelihood": "UNLIKELY",
        "rule_sets": [
            {
                "info_types": [{
                    "name": "EMAIL_ADDRESS",
                }],
                "rules": [{
                    "exclusion_rule": {
                        "regex": {
                            "pattern": ".+@example.com",
                        },
                        "matching_type": "MATCHING_TYPE_FULL_MATCH",
                    },
                }],
            },
            {
                "info_types": [{
                    "name": "MY_CUSTOM_TYPE",
                }],
                "rules": [{
                    "hotword_rule": {
                        "hotword_regex": {
                            "pattern": "example*",
                        },
                        "proximity": {
                            "window_before": 50,
                        },
                        "likelihood_adjustment": {
                            "fixed_likelihood": "VERY_LIKELY",
                        },
                    },
                }],
            },
        ],
        "limits": {
            "max_findings_per_item": 10,
            "max_findings_per_request": 50,
        },
    })
package main
import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/dataloss"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dataloss.NewPreventionInspectTemplate(ctx, "custom_type_surrogate", &dataloss.PreventionInspectTemplateArgs{
			Parent:      pulumi.String("projects/my-project-name"),
			Description: pulumi.String("My description"),
			DisplayName: pulumi.String("display_name"),
			InspectConfig: &dataloss.PreventionInspectTemplateInspectConfigArgs{
				CustomInfoTypes: dataloss.PreventionInspectTemplateInspectConfigCustomInfoTypeArray{
					&dataloss.PreventionInspectTemplateInspectConfigCustomInfoTypeArgs{
						InfoType: &dataloss.PreventionInspectTemplateInspectConfigCustomInfoTypeInfoTypeArgs{
							Name: pulumi.String("MY_CUSTOM_TYPE"),
						},
						Likelihood:    pulumi.String("UNLIKELY"),
						SurrogateType: &dataloss.PreventionInspectTemplateInspectConfigCustomInfoTypeSurrogateTypeArgs{},
					},
				},
				InfoTypes: dataloss.PreventionInspectTemplateInspectConfigInfoTypeArray{
					&dataloss.PreventionInspectTemplateInspectConfigInfoTypeArgs{
						Name: pulumi.String("EMAIL_ADDRESS"),
					},
				},
				MinLikelihood: pulumi.String("UNLIKELY"),
				RuleSets: dataloss.PreventionInspectTemplateInspectConfigRuleSetArray{
					&dataloss.PreventionInspectTemplateInspectConfigRuleSetArgs{
						InfoTypes: dataloss.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArray{
							&dataloss.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs{
								Name: pulumi.String("EMAIL_ADDRESS"),
							},
						},
						Rules: dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleArray{
							&dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleArgs{
								ExclusionRule: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleArgs{
									Regex: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleRegexArgs{
										Pattern: pulumi.String(".+@example.com"),
									},
									MatchingType: pulumi.String("MATCHING_TYPE_FULL_MATCH"),
								},
							},
						},
					},
					&dataloss.PreventionInspectTemplateInspectConfigRuleSetArgs{
						InfoTypes: dataloss.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArray{
							&dataloss.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs{
								Name: pulumi.String("MY_CUSTOM_TYPE"),
							},
						},
						Rules: dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleArray{
							&dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleArgs{
								HotwordRule: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleArgs{
									HotwordRegex: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs{
										Pattern: pulumi.String("example*"),
									},
									Proximity: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleProximityArgs{
										WindowBefore: pulumi.Int(50),
									},
									LikelihoodAdjustment: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs{
										FixedLikelihood: pulumi.String("VERY_LIKELY"),
									},
								},
							},
						},
					},
				},
				Limits: &dataloss.PreventionInspectTemplateInspectConfigLimitsArgs{
					MaxFindingsPerItem:    pulumi.Int(10),
					MaxFindingsPerRequest: pulumi.Int(50),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() => 
{
    var customTypeSurrogate = new Gcp.DataLoss.PreventionInspectTemplate("custom_type_surrogate", new()
    {
        Parent = "projects/my-project-name",
        Description = "My description",
        DisplayName = "display_name",
        InspectConfig = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigArgs
        {
            CustomInfoTypes = new[]
            {
                new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigCustomInfoTypeArgs
                {
                    InfoType = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigCustomInfoTypeInfoTypeArgs
                    {
                        Name = "MY_CUSTOM_TYPE",
                    },
                    Likelihood = "UNLIKELY",
                    SurrogateType = null,
                },
            },
            InfoTypes = new[]
            {
                new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigInfoTypeArgs
                {
                    Name = "EMAIL_ADDRESS",
                },
            },
            MinLikelihood = "UNLIKELY",
            RuleSets = new[]
            {
                new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetArgs
                {
                    InfoTypes = new[]
                    {
                        new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs
                        {
                            Name = "EMAIL_ADDRESS",
                        },
                    },
                    Rules = new[]
                    {
                        new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleArgs
                        {
                            ExclusionRule = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleArgs
                            {
                                Regex = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleRegexArgs
                                {
                                    Pattern = ".+@example.com",
                                },
                                MatchingType = "MATCHING_TYPE_FULL_MATCH",
                            },
                        },
                    },
                },
                new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetArgs
                {
                    InfoTypes = new[]
                    {
                        new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs
                        {
                            Name = "MY_CUSTOM_TYPE",
                        },
                    },
                    Rules = new[]
                    {
                        new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleArgs
                        {
                            HotwordRule = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleArgs
                            {
                                HotwordRegex = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs
                                {
                                    Pattern = "example*",
                                },
                                Proximity = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleProximityArgs
                                {
                                    WindowBefore = 50,
                                },
                                LikelihoodAdjustment = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs
                                {
                                    FixedLikelihood = "VERY_LIKELY",
                                },
                            },
                        },
                    },
                },
            },
            Limits = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigLimitsArgs
            {
                MaxFindingsPerItem = 10,
                MaxFindingsPerRequest = 50,
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.dataloss.PreventionInspectTemplate;
import com.pulumi.gcp.dataloss.PreventionInspectTemplateArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionInspectTemplateInspectConfigArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionInspectTemplateInspectConfigLimitsArgs;
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 customTypeSurrogate = new PreventionInspectTemplate("customTypeSurrogate", PreventionInspectTemplateArgs.builder()
            .parent("projects/my-project-name")
            .description("My description")
            .displayName("display_name")
            .inspectConfig(PreventionInspectTemplateInspectConfigArgs.builder()
                .customInfoTypes(PreventionInspectTemplateInspectConfigCustomInfoTypeArgs.builder()
                    .infoType(PreventionInspectTemplateInspectConfigCustomInfoTypeInfoTypeArgs.builder()
                        .name("MY_CUSTOM_TYPE")
                        .build())
                    .likelihood("UNLIKELY")
                    .surrogateType()
                    .build())
                .infoTypes(PreventionInspectTemplateInspectConfigInfoTypeArgs.builder()
                    .name("EMAIL_ADDRESS")
                    .build())
                .minLikelihood("UNLIKELY")
                .ruleSets(                
                    PreventionInspectTemplateInspectConfigRuleSetArgs.builder()
                        .infoTypes(PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs.builder()
                            .name("EMAIL_ADDRESS")
                            .build())
                        .rules(PreventionInspectTemplateInspectConfigRuleSetRuleArgs.builder()
                            .exclusionRule(PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleArgs.builder()
                                .regex(PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleRegexArgs.builder()
                                    .pattern(".+@example.com")
                                    .build())
                                .matchingType("MATCHING_TYPE_FULL_MATCH")
                                .build())
                            .build())
                        .build(),
                    PreventionInspectTemplateInspectConfigRuleSetArgs.builder()
                        .infoTypes(PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs.builder()
                            .name("MY_CUSTOM_TYPE")
                            .build())
                        .rules(PreventionInspectTemplateInspectConfigRuleSetRuleArgs.builder()
                            .hotwordRule(PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleArgs.builder()
                                .hotwordRegex(PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs.builder()
                                    .pattern("example*")
                                    .build())
                                .proximity(PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleProximityArgs.builder()
                                    .windowBefore(50)
                                    .build())
                                .likelihoodAdjustment(PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs.builder()
                                    .fixedLikelihood("VERY_LIKELY")
                                    .build())
                                .build())
                            .build())
                        .build())
                .limits(PreventionInspectTemplateInspectConfigLimitsArgs.builder()
                    .maxFindingsPerItem(10)
                    .maxFindingsPerRequest(50)
                    .build())
                .build())
            .build());
    }
}
resources:
  customTypeSurrogate:
    type: gcp:dataloss:PreventionInspectTemplate
    name: custom_type_surrogate
    properties:
      parent: projects/my-project-name
      description: My description
      displayName: display_name
      inspectConfig:
        customInfoTypes:
          - infoType:
              name: MY_CUSTOM_TYPE
            likelihood: UNLIKELY
            surrogateType: {}
        infoTypes:
          - name: EMAIL_ADDRESS
        minLikelihood: UNLIKELY
        ruleSets:
          - infoTypes:
              - name: EMAIL_ADDRESS
            rules:
              - exclusionRule:
                  regex:
                    pattern: .+@example.com
                  matchingType: MATCHING_TYPE_FULL_MATCH
          - infoTypes:
              - name: MY_CUSTOM_TYPE
            rules:
              - hotwordRule:
                  hotwordRegex:
                    pattern: example*
                  proximity:
                    windowBefore: 50
                  likelihoodAdjustment:
                    fixedLikelihood: VERY_LIKELY
        limits:
          maxFindingsPerItem: 10
          maxFindingsPerRequest: 50
Dlp Inspect Template Max Infotype Per Finding Default
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const maxInfotypePerFindingDefault = new gcp.dataloss.PreventionInspectTemplate("max_infotype_per_finding_default", {
    parent: "projects/my-project-name",
    inspectConfig: {
        infoTypes: [
            {
                name: "EMAIL_ADDRESS",
            },
            {
                name: "PERSON_NAME",
            },
        ],
        minLikelihood: "UNLIKELY",
        limits: {
            maxFindingsPerRequest: 333,
            maxFindingsPerItem: 222,
            maxFindingsPerInfoTypes: [{
                maxFindings: 111,
            }],
        },
    },
});
import pulumi
import pulumi_gcp as gcp
max_infotype_per_finding_default = gcp.dataloss.PreventionInspectTemplate("max_infotype_per_finding_default",
    parent="projects/my-project-name",
    inspect_config={
        "info_types": [
            {
                "name": "EMAIL_ADDRESS",
            },
            {
                "name": "PERSON_NAME",
            },
        ],
        "min_likelihood": "UNLIKELY",
        "limits": {
            "max_findings_per_request": 333,
            "max_findings_per_item": 222,
            "max_findings_per_info_types": [{
                "max_findings": 111,
            }],
        },
    })
package main
import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/dataloss"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dataloss.NewPreventionInspectTemplate(ctx, "max_infotype_per_finding_default", &dataloss.PreventionInspectTemplateArgs{
			Parent: pulumi.String("projects/my-project-name"),
			InspectConfig: &dataloss.PreventionInspectTemplateInspectConfigArgs{
				InfoTypes: dataloss.PreventionInspectTemplateInspectConfigInfoTypeArray{
					&dataloss.PreventionInspectTemplateInspectConfigInfoTypeArgs{
						Name: pulumi.String("EMAIL_ADDRESS"),
					},
					&dataloss.PreventionInspectTemplateInspectConfigInfoTypeArgs{
						Name: pulumi.String("PERSON_NAME"),
					},
				},
				MinLikelihood: pulumi.String("UNLIKELY"),
				Limits: &dataloss.PreventionInspectTemplateInspectConfigLimitsArgs{
					MaxFindingsPerRequest: pulumi.Int(333),
					MaxFindingsPerItem:    pulumi.Int(222),
					MaxFindingsPerInfoTypes: dataloss.PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeArray{
						&dataloss.PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeArgs{
							MaxFindings: pulumi.Int(111),
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() => 
{
    var maxInfotypePerFindingDefault = new Gcp.DataLoss.PreventionInspectTemplate("max_infotype_per_finding_default", new()
    {
        Parent = "projects/my-project-name",
        InspectConfig = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigArgs
        {
            InfoTypes = new[]
            {
                new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigInfoTypeArgs
                {
                    Name = "EMAIL_ADDRESS",
                },
                new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigInfoTypeArgs
                {
                    Name = "PERSON_NAME",
                },
            },
            MinLikelihood = "UNLIKELY",
            Limits = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigLimitsArgs
            {
                MaxFindingsPerRequest = 333,
                MaxFindingsPerItem = 222,
                MaxFindingsPerInfoTypes = new[]
                {
                    new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeArgs
                    {
                        MaxFindings = 111,
                    },
                },
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.dataloss.PreventionInspectTemplate;
import com.pulumi.gcp.dataloss.PreventionInspectTemplateArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionInspectTemplateInspectConfigArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionInspectTemplateInspectConfigLimitsArgs;
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 maxInfotypePerFindingDefault = new PreventionInspectTemplate("maxInfotypePerFindingDefault", PreventionInspectTemplateArgs.builder()
            .parent("projects/my-project-name")
            .inspectConfig(PreventionInspectTemplateInspectConfigArgs.builder()
                .infoTypes(                
                    PreventionInspectTemplateInspectConfigInfoTypeArgs.builder()
                        .name("EMAIL_ADDRESS")
                        .build(),
                    PreventionInspectTemplateInspectConfigInfoTypeArgs.builder()
                        .name("PERSON_NAME")
                        .build())
                .minLikelihood("UNLIKELY")
                .limits(PreventionInspectTemplateInspectConfigLimitsArgs.builder()
                    .maxFindingsPerRequest(333)
                    .maxFindingsPerItem(222)
                    .maxFindingsPerInfoTypes(PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeArgs.builder()
                        .maxFindings(111)
                        .build())
                    .build())
                .build())
            .build());
    }
}
resources:
  maxInfotypePerFindingDefault:
    type: gcp:dataloss:PreventionInspectTemplate
    name: max_infotype_per_finding_default
    properties:
      parent: projects/my-project-name
      inspectConfig:
        infoTypes:
          - name: EMAIL_ADDRESS
          - name: PERSON_NAME
        minLikelihood: UNLIKELY
        limits:
          maxFindingsPerRequest: 333
          maxFindingsPerItem: 222
          maxFindingsPerInfoTypes:
            - maxFindings: 111
Create PreventionInspectTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PreventionInspectTemplate(name: string, args: PreventionInspectTemplateArgs, opts?: CustomResourceOptions);@overload
def PreventionInspectTemplate(resource_name: str,
                              args: PreventionInspectTemplateArgs,
                              opts: Optional[ResourceOptions] = None)
@overload
def PreventionInspectTemplate(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              parent: Optional[str] = None,
                              description: Optional[str] = None,
                              display_name: Optional[str] = None,
                              inspect_config: Optional[PreventionInspectTemplateInspectConfigArgs] = None,
                              template_id: Optional[str] = None)func NewPreventionInspectTemplate(ctx *Context, name string, args PreventionInspectTemplateArgs, opts ...ResourceOption) (*PreventionInspectTemplate, error)public PreventionInspectTemplate(string name, PreventionInspectTemplateArgs args, CustomResourceOptions? opts = null)
public PreventionInspectTemplate(String name, PreventionInspectTemplateArgs args)
public PreventionInspectTemplate(String name, PreventionInspectTemplateArgs args, CustomResourceOptions options)
type: gcp:dataloss:PreventionInspectTemplate
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 PreventionInspectTemplateArgs
- 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 PreventionInspectTemplateArgs
- 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 PreventionInspectTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PreventionInspectTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PreventionInspectTemplateArgs
- 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 preventionInspectTemplateResource = new Gcp.DataLoss.PreventionInspectTemplate("preventionInspectTemplateResource", new()
{
    Parent = "string",
    Description = "string",
    DisplayName = "string",
    InspectConfig = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigArgs
    {
        ContentOptions = new[]
        {
            "string",
        },
        CustomInfoTypes = new[]
        {
            new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigCustomInfoTypeArgs
            {
                InfoType = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigCustomInfoTypeInfoTypeArgs
                {
                    Name = "string",
                    SensitivityScore = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigCustomInfoTypeInfoTypeSensitivityScoreArgs
                    {
                        Score = "string",
                    },
                    Version = "string",
                },
                Dictionary = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigCustomInfoTypeDictionaryArgs
                {
                    CloudStoragePath = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigCustomInfoTypeDictionaryCloudStoragePathArgs
                    {
                        Path = "string",
                    },
                    WordList = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigCustomInfoTypeDictionaryWordListArgs
                    {
                        Words = new[]
                        {
                            "string",
                        },
                    },
                },
                ExclusionType = "string",
                Likelihood = "string",
                Regex = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigCustomInfoTypeRegexArgs
                {
                    Pattern = "string",
                    GroupIndexes = new[]
                    {
                        0,
                    },
                },
                SensitivityScore = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigCustomInfoTypeSensitivityScoreArgs
                {
                    Score = "string",
                },
                StoredType = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigCustomInfoTypeStoredTypeArgs
                {
                    Name = "string",
                },
                SurrogateType = null,
            },
        },
        ExcludeInfoTypes = false,
        IncludeQuote = false,
        InfoTypes = new[]
        {
            new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigInfoTypeArgs
            {
                Name = "string",
                SensitivityScore = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigInfoTypeSensitivityScoreArgs
                {
                    Score = "string",
                },
                Version = "string",
            },
        },
        Limits = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigLimitsArgs
        {
            MaxFindingsPerItem = 0,
            MaxFindingsPerRequest = 0,
            MaxFindingsPerInfoTypes = new[]
            {
                new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeArgs
                {
                    MaxFindings = 0,
                    InfoType = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeArgs
                    {
                        Name = "string",
                        SensitivityScore = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeSensitivityScoreArgs
                        {
                            Score = "string",
                        },
                        Version = "string",
                    },
                },
            },
        },
        MinLikelihood = "string",
        RuleSets = new[]
        {
            new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetArgs
            {
                InfoTypes = new[]
                {
                    new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs
                    {
                        Name = "string",
                        SensitivityScore = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetInfoTypeSensitivityScoreArgs
                        {
                            Score = "string",
                        },
                        Version = "string",
                    },
                },
                Rules = new[]
                {
                    new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleArgs
                    {
                        ExclusionRule = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleArgs
                        {
                            MatchingType = "string",
                            Dictionary = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleDictionaryArgs
                            {
                                CloudStoragePath = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleDictionaryCloudStoragePathArgs
                                {
                                    Path = "string",
                                },
                                WordList = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleDictionaryWordListArgs
                                {
                                    Words = new[]
                                    {
                                        "string",
                                    },
                                },
                            },
                            ExcludeByHotword = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordArgs
                            {
                                HotwordRegex = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordHotwordRegexArgs
                                {
                                    Pattern = "string",
                                    GroupIndexes = new[]
                                    {
                                        0,
                                    },
                                },
                                Proximity = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordProximityArgs
                                {
                                    WindowAfter = 0,
                                    WindowBefore = 0,
                                },
                            },
                            ExcludeInfoTypes = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesArgs
                            {
                                InfoTypes = new[]
                                {
                                    new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeArgs
                                    {
                                        Name = "string",
                                        SensitivityScore = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeSensitivityScoreArgs
                                        {
                                            Score = "string",
                                        },
                                        Version = "string",
                                    },
                                },
                            },
                            Regex = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleRegexArgs
                            {
                                Pattern = "string",
                                GroupIndexes = new[]
                                {
                                    0,
                                },
                            },
                        },
                        HotwordRule = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleArgs
                        {
                            HotwordRegex = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs
                            {
                                Pattern = "string",
                                GroupIndexes = new[]
                                {
                                    0,
                                },
                            },
                            LikelihoodAdjustment = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs
                            {
                                FixedLikelihood = "string",
                                RelativeLikelihood = 0,
                            },
                            Proximity = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleProximityArgs
                            {
                                WindowAfter = 0,
                                WindowBefore = 0,
                            },
                        },
                    },
                },
            },
        },
    },
    TemplateId = "string",
});
example, err := dataloss.NewPreventionInspectTemplate(ctx, "preventionInspectTemplateResource", &dataloss.PreventionInspectTemplateArgs{
	Parent:      pulumi.String("string"),
	Description: pulumi.String("string"),
	DisplayName: pulumi.String("string"),
	InspectConfig: &dataloss.PreventionInspectTemplateInspectConfigArgs{
		ContentOptions: pulumi.StringArray{
			pulumi.String("string"),
		},
		CustomInfoTypes: dataloss.PreventionInspectTemplateInspectConfigCustomInfoTypeArray{
			&dataloss.PreventionInspectTemplateInspectConfigCustomInfoTypeArgs{
				InfoType: &dataloss.PreventionInspectTemplateInspectConfigCustomInfoTypeInfoTypeArgs{
					Name: pulumi.String("string"),
					SensitivityScore: &dataloss.PreventionInspectTemplateInspectConfigCustomInfoTypeInfoTypeSensitivityScoreArgs{
						Score: pulumi.String("string"),
					},
					Version: pulumi.String("string"),
				},
				Dictionary: &dataloss.PreventionInspectTemplateInspectConfigCustomInfoTypeDictionaryArgs{
					CloudStoragePath: &dataloss.PreventionInspectTemplateInspectConfigCustomInfoTypeDictionaryCloudStoragePathArgs{
						Path: pulumi.String("string"),
					},
					WordList: &dataloss.PreventionInspectTemplateInspectConfigCustomInfoTypeDictionaryWordListArgs{
						Words: pulumi.StringArray{
							pulumi.String("string"),
						},
					},
				},
				ExclusionType: pulumi.String("string"),
				Likelihood:    pulumi.String("string"),
				Regex: &dataloss.PreventionInspectTemplateInspectConfigCustomInfoTypeRegexArgs{
					Pattern: pulumi.String("string"),
					GroupIndexes: pulumi.IntArray{
						pulumi.Int(0),
					},
				},
				SensitivityScore: &dataloss.PreventionInspectTemplateInspectConfigCustomInfoTypeSensitivityScoreArgs{
					Score: pulumi.String("string"),
				},
				StoredType: &dataloss.PreventionInspectTemplateInspectConfigCustomInfoTypeStoredTypeArgs{
					Name: pulumi.String("string"),
				},
				SurrogateType: &dataloss.PreventionInspectTemplateInspectConfigCustomInfoTypeSurrogateTypeArgs{},
			},
		},
		ExcludeInfoTypes: pulumi.Bool(false),
		IncludeQuote:     pulumi.Bool(false),
		InfoTypes: dataloss.PreventionInspectTemplateInspectConfigInfoTypeArray{
			&dataloss.PreventionInspectTemplateInspectConfigInfoTypeArgs{
				Name: pulumi.String("string"),
				SensitivityScore: &dataloss.PreventionInspectTemplateInspectConfigInfoTypeSensitivityScoreArgs{
					Score: pulumi.String("string"),
				},
				Version: pulumi.String("string"),
			},
		},
		Limits: &dataloss.PreventionInspectTemplateInspectConfigLimitsArgs{
			MaxFindingsPerItem:    pulumi.Int(0),
			MaxFindingsPerRequest: pulumi.Int(0),
			MaxFindingsPerInfoTypes: dataloss.PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeArray{
				&dataloss.PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeArgs{
					MaxFindings: pulumi.Int(0),
					InfoType: &dataloss.PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeArgs{
						Name: pulumi.String("string"),
						SensitivityScore: &dataloss.PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeSensitivityScoreArgs{
							Score: pulumi.String("string"),
						},
						Version: pulumi.String("string"),
					},
				},
			},
		},
		MinLikelihood: pulumi.String("string"),
		RuleSets: dataloss.PreventionInspectTemplateInspectConfigRuleSetArray{
			&dataloss.PreventionInspectTemplateInspectConfigRuleSetArgs{
				InfoTypes: dataloss.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArray{
					&dataloss.PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs{
						Name: pulumi.String("string"),
						SensitivityScore: &dataloss.PreventionInspectTemplateInspectConfigRuleSetInfoTypeSensitivityScoreArgs{
							Score: pulumi.String("string"),
						},
						Version: pulumi.String("string"),
					},
				},
				Rules: dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleArray{
					&dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleArgs{
						ExclusionRule: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleArgs{
							MatchingType: pulumi.String("string"),
							Dictionary: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleDictionaryArgs{
								CloudStoragePath: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleDictionaryCloudStoragePathArgs{
									Path: pulumi.String("string"),
								},
								WordList: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleDictionaryWordListArgs{
									Words: pulumi.StringArray{
										pulumi.String("string"),
									},
								},
							},
							ExcludeByHotword: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordArgs{
								HotwordRegex: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordHotwordRegexArgs{
									Pattern: pulumi.String("string"),
									GroupIndexes: pulumi.IntArray{
										pulumi.Int(0),
									},
								},
								Proximity: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordProximityArgs{
									WindowAfter:  pulumi.Int(0),
									WindowBefore: pulumi.Int(0),
								},
							},
							ExcludeInfoTypes: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesArgs{
								InfoTypes: dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeArray{
									&dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeArgs{
										Name: pulumi.String("string"),
										SensitivityScore: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeSensitivityScoreArgs{
											Score: pulumi.String("string"),
										},
										Version: pulumi.String("string"),
									},
								},
							},
							Regex: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleRegexArgs{
								Pattern: pulumi.String("string"),
								GroupIndexes: pulumi.IntArray{
									pulumi.Int(0),
								},
							},
						},
						HotwordRule: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleArgs{
							HotwordRegex: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs{
								Pattern: pulumi.String("string"),
								GroupIndexes: pulumi.IntArray{
									pulumi.Int(0),
								},
							},
							LikelihoodAdjustment: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs{
								FixedLikelihood:    pulumi.String("string"),
								RelativeLikelihood: pulumi.Int(0),
							},
							Proximity: &dataloss.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleProximityArgs{
								WindowAfter:  pulumi.Int(0),
								WindowBefore: pulumi.Int(0),
							},
						},
					},
				},
			},
		},
	},
	TemplateId: pulumi.String("string"),
})
var preventionInspectTemplateResource = new PreventionInspectTemplate("preventionInspectTemplateResource", PreventionInspectTemplateArgs.builder()
    .parent("string")
    .description("string")
    .displayName("string")
    .inspectConfig(PreventionInspectTemplateInspectConfigArgs.builder()
        .contentOptions("string")
        .customInfoTypes(PreventionInspectTemplateInspectConfigCustomInfoTypeArgs.builder()
            .infoType(PreventionInspectTemplateInspectConfigCustomInfoTypeInfoTypeArgs.builder()
                .name("string")
                .sensitivityScore(PreventionInspectTemplateInspectConfigCustomInfoTypeInfoTypeSensitivityScoreArgs.builder()
                    .score("string")
                    .build())
                .version("string")
                .build())
            .dictionary(PreventionInspectTemplateInspectConfigCustomInfoTypeDictionaryArgs.builder()
                .cloudStoragePath(PreventionInspectTemplateInspectConfigCustomInfoTypeDictionaryCloudStoragePathArgs.builder()
                    .path("string")
                    .build())
                .wordList(PreventionInspectTemplateInspectConfigCustomInfoTypeDictionaryWordListArgs.builder()
                    .words("string")
                    .build())
                .build())
            .exclusionType("string")
            .likelihood("string")
            .regex(PreventionInspectTemplateInspectConfigCustomInfoTypeRegexArgs.builder()
                .pattern("string")
                .groupIndexes(0)
                .build())
            .sensitivityScore(PreventionInspectTemplateInspectConfigCustomInfoTypeSensitivityScoreArgs.builder()
                .score("string")
                .build())
            .storedType(PreventionInspectTemplateInspectConfigCustomInfoTypeStoredTypeArgs.builder()
                .name("string")
                .build())
            .surrogateType()
            .build())
        .excludeInfoTypes(false)
        .includeQuote(false)
        .infoTypes(PreventionInspectTemplateInspectConfigInfoTypeArgs.builder()
            .name("string")
            .sensitivityScore(PreventionInspectTemplateInspectConfigInfoTypeSensitivityScoreArgs.builder()
                .score("string")
                .build())
            .version("string")
            .build())
        .limits(PreventionInspectTemplateInspectConfigLimitsArgs.builder()
            .maxFindingsPerItem(0)
            .maxFindingsPerRequest(0)
            .maxFindingsPerInfoTypes(PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeArgs.builder()
                .maxFindings(0)
                .infoType(PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeArgs.builder()
                    .name("string")
                    .sensitivityScore(PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeSensitivityScoreArgs.builder()
                        .score("string")
                        .build())
                    .version("string")
                    .build())
                .build())
            .build())
        .minLikelihood("string")
        .ruleSets(PreventionInspectTemplateInspectConfigRuleSetArgs.builder()
            .infoTypes(PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs.builder()
                .name("string")
                .sensitivityScore(PreventionInspectTemplateInspectConfigRuleSetInfoTypeSensitivityScoreArgs.builder()
                    .score("string")
                    .build())
                .version("string")
                .build())
            .rules(PreventionInspectTemplateInspectConfigRuleSetRuleArgs.builder()
                .exclusionRule(PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleArgs.builder()
                    .matchingType("string")
                    .dictionary(PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleDictionaryArgs.builder()
                        .cloudStoragePath(PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleDictionaryCloudStoragePathArgs.builder()
                            .path("string")
                            .build())
                        .wordList(PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleDictionaryWordListArgs.builder()
                            .words("string")
                            .build())
                        .build())
                    .excludeByHotword(PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordArgs.builder()
                        .hotwordRegex(PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordHotwordRegexArgs.builder()
                            .pattern("string")
                            .groupIndexes(0)
                            .build())
                        .proximity(PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordProximityArgs.builder()
                            .windowAfter(0)
                            .windowBefore(0)
                            .build())
                        .build())
                    .excludeInfoTypes(PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesArgs.builder()
                        .infoTypes(PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeArgs.builder()
                            .name("string")
                            .sensitivityScore(PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeSensitivityScoreArgs.builder()
                                .score("string")
                                .build())
                            .version("string")
                            .build())
                        .build())
                    .regex(PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleRegexArgs.builder()
                        .pattern("string")
                        .groupIndexes(0)
                        .build())
                    .build())
                .hotwordRule(PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleArgs.builder()
                    .hotwordRegex(PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs.builder()
                        .pattern("string")
                        .groupIndexes(0)
                        .build())
                    .likelihoodAdjustment(PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs.builder()
                        .fixedLikelihood("string")
                        .relativeLikelihood(0)
                        .build())
                    .proximity(PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleProximityArgs.builder()
                        .windowAfter(0)
                        .windowBefore(0)
                        .build())
                    .build())
                .build())
            .build())
        .build())
    .templateId("string")
    .build());
prevention_inspect_template_resource = gcp.dataloss.PreventionInspectTemplate("preventionInspectTemplateResource",
    parent="string",
    description="string",
    display_name="string",
    inspect_config={
        "content_options": ["string"],
        "custom_info_types": [{
            "info_type": {
                "name": "string",
                "sensitivity_score": {
                    "score": "string",
                },
                "version": "string",
            },
            "dictionary": {
                "cloud_storage_path": {
                    "path": "string",
                },
                "word_list": {
                    "words": ["string"],
                },
            },
            "exclusion_type": "string",
            "likelihood": "string",
            "regex": {
                "pattern": "string",
                "group_indexes": [0],
            },
            "sensitivity_score": {
                "score": "string",
            },
            "stored_type": {
                "name": "string",
            },
            "surrogate_type": {},
        }],
        "exclude_info_types": False,
        "include_quote": False,
        "info_types": [{
            "name": "string",
            "sensitivity_score": {
                "score": "string",
            },
            "version": "string",
        }],
        "limits": {
            "max_findings_per_item": 0,
            "max_findings_per_request": 0,
            "max_findings_per_info_types": [{
                "max_findings": 0,
                "info_type": {
                    "name": "string",
                    "sensitivity_score": {
                        "score": "string",
                    },
                    "version": "string",
                },
            }],
        },
        "min_likelihood": "string",
        "rule_sets": [{
            "info_types": [{
                "name": "string",
                "sensitivity_score": {
                    "score": "string",
                },
                "version": "string",
            }],
            "rules": [{
                "exclusion_rule": {
                    "matching_type": "string",
                    "dictionary": {
                        "cloud_storage_path": {
                            "path": "string",
                        },
                        "word_list": {
                            "words": ["string"],
                        },
                    },
                    "exclude_by_hotword": {
                        "hotword_regex": {
                            "pattern": "string",
                            "group_indexes": [0],
                        },
                        "proximity": {
                            "window_after": 0,
                            "window_before": 0,
                        },
                    },
                    "exclude_info_types": {
                        "info_types": [{
                            "name": "string",
                            "sensitivity_score": {
                                "score": "string",
                            },
                            "version": "string",
                        }],
                    },
                    "regex": {
                        "pattern": "string",
                        "group_indexes": [0],
                    },
                },
                "hotword_rule": {
                    "hotword_regex": {
                        "pattern": "string",
                        "group_indexes": [0],
                    },
                    "likelihood_adjustment": {
                        "fixed_likelihood": "string",
                        "relative_likelihood": 0,
                    },
                    "proximity": {
                        "window_after": 0,
                        "window_before": 0,
                    },
                },
            }],
        }],
    },
    template_id="string")
const preventionInspectTemplateResource = new gcp.dataloss.PreventionInspectTemplate("preventionInspectTemplateResource", {
    parent: "string",
    description: "string",
    displayName: "string",
    inspectConfig: {
        contentOptions: ["string"],
        customInfoTypes: [{
            infoType: {
                name: "string",
                sensitivityScore: {
                    score: "string",
                },
                version: "string",
            },
            dictionary: {
                cloudStoragePath: {
                    path: "string",
                },
                wordList: {
                    words: ["string"],
                },
            },
            exclusionType: "string",
            likelihood: "string",
            regex: {
                pattern: "string",
                groupIndexes: [0],
            },
            sensitivityScore: {
                score: "string",
            },
            storedType: {
                name: "string",
            },
            surrogateType: {},
        }],
        excludeInfoTypes: false,
        includeQuote: false,
        infoTypes: [{
            name: "string",
            sensitivityScore: {
                score: "string",
            },
            version: "string",
        }],
        limits: {
            maxFindingsPerItem: 0,
            maxFindingsPerRequest: 0,
            maxFindingsPerInfoTypes: [{
                maxFindings: 0,
                infoType: {
                    name: "string",
                    sensitivityScore: {
                        score: "string",
                    },
                    version: "string",
                },
            }],
        },
        minLikelihood: "string",
        ruleSets: [{
            infoTypes: [{
                name: "string",
                sensitivityScore: {
                    score: "string",
                },
                version: "string",
            }],
            rules: [{
                exclusionRule: {
                    matchingType: "string",
                    dictionary: {
                        cloudStoragePath: {
                            path: "string",
                        },
                        wordList: {
                            words: ["string"],
                        },
                    },
                    excludeByHotword: {
                        hotwordRegex: {
                            pattern: "string",
                            groupIndexes: [0],
                        },
                        proximity: {
                            windowAfter: 0,
                            windowBefore: 0,
                        },
                    },
                    excludeInfoTypes: {
                        infoTypes: [{
                            name: "string",
                            sensitivityScore: {
                                score: "string",
                            },
                            version: "string",
                        }],
                    },
                    regex: {
                        pattern: "string",
                        groupIndexes: [0],
                    },
                },
                hotwordRule: {
                    hotwordRegex: {
                        pattern: "string",
                        groupIndexes: [0],
                    },
                    likelihoodAdjustment: {
                        fixedLikelihood: "string",
                        relativeLikelihood: 0,
                    },
                    proximity: {
                        windowAfter: 0,
                        windowBefore: 0,
                    },
                },
            }],
        }],
    },
    templateId: "string",
});
type: gcp:dataloss:PreventionInspectTemplate
properties:
    description: string
    displayName: string
    inspectConfig:
        contentOptions:
            - string
        customInfoTypes:
            - dictionary:
                cloudStoragePath:
                    path: string
                wordList:
                    words:
                        - string
              exclusionType: string
              infoType:
                name: string
                sensitivityScore:
                    score: string
                version: string
              likelihood: string
              regex:
                groupIndexes:
                    - 0
                pattern: string
              sensitivityScore:
                score: string
              storedType:
                name: string
              surrogateType: {}
        excludeInfoTypes: false
        includeQuote: false
        infoTypes:
            - name: string
              sensitivityScore:
                score: string
              version: string
        limits:
            maxFindingsPerInfoTypes:
                - infoType:
                    name: string
                    sensitivityScore:
                        score: string
                    version: string
                  maxFindings: 0
            maxFindingsPerItem: 0
            maxFindingsPerRequest: 0
        minLikelihood: string
        ruleSets:
            - infoTypes:
                - name: string
                  sensitivityScore:
                    score: string
                  version: string
              rules:
                - exclusionRule:
                    dictionary:
                        cloudStoragePath:
                            path: string
                        wordList:
                            words:
                                - string
                    excludeByHotword:
                        hotwordRegex:
                            groupIndexes:
                                - 0
                            pattern: string
                        proximity:
                            windowAfter: 0
                            windowBefore: 0
                    excludeInfoTypes:
                        infoTypes:
                            - name: string
                              sensitivityScore:
                                score: string
                              version: string
                    matchingType: string
                    regex:
                        groupIndexes:
                            - 0
                        pattern: string
                  hotwordRule:
                    hotwordRegex:
                        groupIndexes:
                            - 0
                        pattern: string
                    likelihoodAdjustment:
                        fixedLikelihood: string
                        relativeLikelihood: 0
                    proximity:
                        windowAfter: 0
                        windowBefore: 0
    parent: string
    templateId: string
PreventionInspectTemplate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PreventionInspectTemplate resource accepts the following input properties:
- Parent string
- The parent of the inspect template in any of the following formats:- projects/{{project}}
- projects/{{project}}/locations/{{location}}
- organizations/{{organization_id}}
- organizations/{{organization_id}}/locations/{{location}}
 
- Description string
- A description of the inspect template.
- DisplayName string
- User set display name of the inspect template.
- InspectConfig PreventionInspect Template Inspect Config 
- The core content of the template. Structure is documented below.
- TemplateId string
- The template id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- Parent string
- The parent of the inspect template in any of the following formats:- projects/{{project}}
- projects/{{project}}/locations/{{location}}
- organizations/{{organization_id}}
- organizations/{{organization_id}}/locations/{{location}}
 
- Description string
- A description of the inspect template.
- DisplayName string
- User set display name of the inspect template.
- InspectConfig PreventionInspect Template Inspect Config Args 
- The core content of the template. Structure is documented below.
- TemplateId string
- The template id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- parent String
- The parent of the inspect template in any of the following formats:- projects/{{project}}
- projects/{{project}}/locations/{{location}}
- organizations/{{organization_id}}
- organizations/{{organization_id}}/locations/{{location}}
 
- description String
- A description of the inspect template.
- displayName String
- User set display name of the inspect template.
- inspectConfig PreventionInspect Template Inspect Config 
- The core content of the template. Structure is documented below.
- templateId String
- The template id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- parent string
- The parent of the inspect template in any of the following formats:- projects/{{project}}
- projects/{{project}}/locations/{{location}}
- organizations/{{organization_id}}
- organizations/{{organization_id}}/locations/{{location}}
 
- description string
- A description of the inspect template.
- displayName string
- User set display name of the inspect template.
- inspectConfig PreventionInspect Template Inspect Config 
- The core content of the template. Structure is documented below.
- templateId string
- The template id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- parent str
- The parent of the inspect template in any of the following formats:- projects/{{project}}
- projects/{{project}}/locations/{{location}}
- organizations/{{organization_id}}
- organizations/{{organization_id}}/locations/{{location}}
 
- description str
- A description of the inspect template.
- display_name str
- User set display name of the inspect template.
- inspect_config PreventionInspect Template Inspect Config Args 
- The core content of the template. Structure is documented below.
- template_id str
- The template id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- parent String
- The parent of the inspect template in any of the following formats:- projects/{{project}}
- projects/{{project}}/locations/{{location}}
- organizations/{{organization_id}}
- organizations/{{organization_id}}/locations/{{location}}
 
- description String
- A description of the inspect template.
- displayName String
- User set display name of the inspect template.
- inspectConfig Property Map
- The core content of the template. Structure is documented below.
- templateId String
- The template id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
Outputs
All input properties are implicitly available as output properties. Additionally, the PreventionInspectTemplate resource produces the following output properties:
Look up Existing PreventionInspectTemplate Resource
Get an existing PreventionInspectTemplate 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?: PreventionInspectTemplateState, opts?: CustomResourceOptions): PreventionInspectTemplate@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        display_name: Optional[str] = None,
        inspect_config: Optional[PreventionInspectTemplateInspectConfigArgs] = None,
        name: Optional[str] = None,
        parent: Optional[str] = None,
        template_id: Optional[str] = None) -> PreventionInspectTemplatefunc GetPreventionInspectTemplate(ctx *Context, name string, id IDInput, state *PreventionInspectTemplateState, opts ...ResourceOption) (*PreventionInspectTemplate, error)public static PreventionInspectTemplate Get(string name, Input<string> id, PreventionInspectTemplateState? state, CustomResourceOptions? opts = null)public static PreventionInspectTemplate get(String name, Output<String> id, PreventionInspectTemplateState state, CustomResourceOptions options)resources:  _:    type: gcp:dataloss:PreventionInspectTemplate    get:      id: ${id}- 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.
- Description string
- A description of the inspect template.
- DisplayName string
- User set display name of the inspect template.
- InspectConfig PreventionInspect Template Inspect Config 
- The core content of the template. Structure is documented below.
- Name string
- The resource name of the inspect template. Set by the server.
- Parent string
- The parent of the inspect template in any of the following formats:- projects/{{project}}
- projects/{{project}}/locations/{{location}}
- organizations/{{organization_id}}
- organizations/{{organization_id}}/locations/{{location}}
 
- TemplateId string
- The template id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- Description string
- A description of the inspect template.
- DisplayName string
- User set display name of the inspect template.
- InspectConfig PreventionInspect Template Inspect Config Args 
- The core content of the template. Structure is documented below.
- Name string
- The resource name of the inspect template. Set by the server.
- Parent string
- The parent of the inspect template in any of the following formats:- projects/{{project}}
- projects/{{project}}/locations/{{location}}
- organizations/{{organization_id}}
- organizations/{{organization_id}}/locations/{{location}}
 
- TemplateId string
- The template id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- description String
- A description of the inspect template.
- displayName String
- User set display name of the inspect template.
- inspectConfig PreventionInspect Template Inspect Config 
- The core content of the template. Structure is documented below.
- name String
- The resource name of the inspect template. Set by the server.
- parent String
- The parent of the inspect template in any of the following formats:- projects/{{project}}
- projects/{{project}}/locations/{{location}}
- organizations/{{organization_id}}
- organizations/{{organization_id}}/locations/{{location}}
 
- templateId String
- The template id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- description string
- A description of the inspect template.
- displayName string
- User set display name of the inspect template.
- inspectConfig PreventionInspect Template Inspect Config 
- The core content of the template. Structure is documented below.
- name string
- The resource name of the inspect template. Set by the server.
- parent string
- The parent of the inspect template in any of the following formats:- projects/{{project}}
- projects/{{project}}/locations/{{location}}
- organizations/{{organization_id}}
- organizations/{{organization_id}}/locations/{{location}}
 
- templateId string
- The template id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- description str
- A description of the inspect template.
- display_name str
- User set display name of the inspect template.
- inspect_config PreventionInspect Template Inspect Config Args 
- The core content of the template. Structure is documented below.
- name str
- The resource name of the inspect template. Set by the server.
- parent str
- The parent of the inspect template in any of the following formats:- projects/{{project}}
- projects/{{project}}/locations/{{location}}
- organizations/{{organization_id}}
- organizations/{{organization_id}}/locations/{{location}}
 
- template_id str
- The template id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- description String
- A description of the inspect template.
- displayName String
- User set display name of the inspect template.
- inspectConfig Property Map
- The core content of the template. Structure is documented below.
- name String
- The resource name of the inspect template. Set by the server.
- parent String
- The parent of the inspect template in any of the following formats:- projects/{{project}}
- projects/{{project}}/locations/{{location}}
- organizations/{{organization_id}}
- organizations/{{organization_id}}/locations/{{location}}
 
- templateId String
- The template id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
Supporting Types
PreventionInspectTemplateInspectConfig, PreventionInspectTemplateInspectConfigArgs          
- ContentOptions List<string>
- List of options defining data content to scan. If empty, text, images, and other content will be included.
Each value may be one of: CONTENT_TEXT,CONTENT_IMAGE.
- CustomInfo List<PreventionTypes Inspect Template Inspect Config Custom Info Type> 
- Custom info types to be used. See https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more. Structure is documented below.
- ExcludeInfo boolTypes 
- When true, excludes type information of the findings.
- IncludeQuote bool
- When true, a contextual quote from the data that triggered a finding is included in the response.
- InfoTypes List<PreventionInspect Template Inspect Config Info Type> 
- Restricts what infoTypes to look for. The values must correspond to InfoType values returned by infoTypes.list or listed at https://cloud.google.com/dlp/docs/infotypes-reference. When no InfoTypes or CustomInfoTypes are specified in a request, the system may automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. Structure is documented below.
- Limits
PreventionInspect Template Inspect Config Limits 
- Configuration to control the number of findings returned. Structure is documented below.
- MinLikelihood string
- Only returns findings equal or above this threshold. See https://cloud.google.com/dlp/docs/likelihood for more info
Default value is POSSIBLE. Possible values are:VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- RuleSets List<PreventionInspect Template Inspect Config Rule Set> 
- Set of rules to apply to the findings for this InspectConfig. Exclusion rules, contained in the set are executed in the end, other rules are executed in the order they are specified for each info type. Structure is documented below.
- ContentOptions []string
- List of options defining data content to scan. If empty, text, images, and other content will be included.
Each value may be one of: CONTENT_TEXT,CONTENT_IMAGE.
- CustomInfo []PreventionTypes Inspect Template Inspect Config Custom Info Type 
- Custom info types to be used. See https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more. Structure is documented below.
- ExcludeInfo boolTypes 
- When true, excludes type information of the findings.
- IncludeQuote bool
- When true, a contextual quote from the data that triggered a finding is included in the response.
- InfoTypes []PreventionInspect Template Inspect Config Info Type 
- Restricts what infoTypes to look for. The values must correspond to InfoType values returned by infoTypes.list or listed at https://cloud.google.com/dlp/docs/infotypes-reference. When no InfoTypes or CustomInfoTypes are specified in a request, the system may automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. Structure is documented below.
- Limits
PreventionInspect Template Inspect Config Limits 
- Configuration to control the number of findings returned. Structure is documented below.
- MinLikelihood string
- Only returns findings equal or above this threshold. See https://cloud.google.com/dlp/docs/likelihood for more info
Default value is POSSIBLE. Possible values are:VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- RuleSets []PreventionInspect Template Inspect Config Rule Set 
- Set of rules to apply to the findings for this InspectConfig. Exclusion rules, contained in the set are executed in the end, other rules are executed in the order they are specified for each info type. Structure is documented below.
- contentOptions List<String>
- List of options defining data content to scan. If empty, text, images, and other content will be included.
Each value may be one of: CONTENT_TEXT,CONTENT_IMAGE.
- customInfo List<PreventionTypes Inspect Template Inspect Config Custom Info Type> 
- Custom info types to be used. See https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more. Structure is documented below.
- excludeInfo BooleanTypes 
- When true, excludes type information of the findings.
- includeQuote Boolean
- When true, a contextual quote from the data that triggered a finding is included in the response.
- infoTypes List<PreventionInspect Template Inspect Config Info Type> 
- Restricts what infoTypes to look for. The values must correspond to InfoType values returned by infoTypes.list or listed at https://cloud.google.com/dlp/docs/infotypes-reference. When no InfoTypes or CustomInfoTypes are specified in a request, the system may automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. Structure is documented below.
- limits
PreventionInspect Template Inspect Config Limits 
- Configuration to control the number of findings returned. Structure is documented below.
- minLikelihood String
- Only returns findings equal or above this threshold. See https://cloud.google.com/dlp/docs/likelihood for more info
Default value is POSSIBLE. Possible values are:VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- ruleSets List<PreventionInspect Template Inspect Config Rule Set> 
- Set of rules to apply to the findings for this InspectConfig. Exclusion rules, contained in the set are executed in the end, other rules are executed in the order they are specified for each info type. Structure is documented below.
- contentOptions string[]
- List of options defining data content to scan. If empty, text, images, and other content will be included.
Each value may be one of: CONTENT_TEXT,CONTENT_IMAGE.
- customInfo PreventionTypes Inspect Template Inspect Config Custom Info Type[] 
- Custom info types to be used. See https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more. Structure is documented below.
- excludeInfo booleanTypes 
- When true, excludes type information of the findings.
- includeQuote boolean
- When true, a contextual quote from the data that triggered a finding is included in the response.
- infoTypes PreventionInspect Template Inspect Config Info Type[] 
- Restricts what infoTypes to look for. The values must correspond to InfoType values returned by infoTypes.list or listed at https://cloud.google.com/dlp/docs/infotypes-reference. When no InfoTypes or CustomInfoTypes are specified in a request, the system may automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. Structure is documented below.
- limits
PreventionInspect Template Inspect Config Limits 
- Configuration to control the number of findings returned. Structure is documented below.
- minLikelihood string
- Only returns findings equal or above this threshold. See https://cloud.google.com/dlp/docs/likelihood for more info
Default value is POSSIBLE. Possible values are:VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- ruleSets PreventionInspect Template Inspect Config Rule Set[] 
- Set of rules to apply to the findings for this InspectConfig. Exclusion rules, contained in the set are executed in the end, other rules are executed in the order they are specified for each info type. Structure is documented below.
- content_options Sequence[str]
- List of options defining data content to scan. If empty, text, images, and other content will be included.
Each value may be one of: CONTENT_TEXT,CONTENT_IMAGE.
- custom_info_ Sequence[Preventiontypes Inspect Template Inspect Config Custom Info Type] 
- Custom info types to be used. See https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more. Structure is documented below.
- exclude_info_ booltypes 
- When true, excludes type information of the findings.
- include_quote bool
- When true, a contextual quote from the data that triggered a finding is included in the response.
- info_types Sequence[PreventionInspect Template Inspect Config Info Type] 
- Restricts what infoTypes to look for. The values must correspond to InfoType values returned by infoTypes.list or listed at https://cloud.google.com/dlp/docs/infotypes-reference. When no InfoTypes or CustomInfoTypes are specified in a request, the system may automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. Structure is documented below.
- limits
PreventionInspect Template Inspect Config Limits 
- Configuration to control the number of findings returned. Structure is documented below.
- min_likelihood str
- Only returns findings equal or above this threshold. See https://cloud.google.com/dlp/docs/likelihood for more info
Default value is POSSIBLE. Possible values are:VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- rule_sets Sequence[PreventionInspect Template Inspect Config Rule Set] 
- Set of rules to apply to the findings for this InspectConfig. Exclusion rules, contained in the set are executed in the end, other rules are executed in the order they are specified for each info type. Structure is documented below.
- contentOptions List<String>
- List of options defining data content to scan. If empty, text, images, and other content will be included.
Each value may be one of: CONTENT_TEXT,CONTENT_IMAGE.
- customInfo List<Property Map>Types 
- Custom info types to be used. See https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more. Structure is documented below.
- excludeInfo BooleanTypes 
- When true, excludes type information of the findings.
- includeQuote Boolean
- When true, a contextual quote from the data that triggered a finding is included in the response.
- infoTypes List<Property Map>
- Restricts what infoTypes to look for. The values must correspond to InfoType values returned by infoTypes.list or listed at https://cloud.google.com/dlp/docs/infotypes-reference. When no InfoTypes or CustomInfoTypes are specified in a request, the system may automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. Structure is documented below.
- limits Property Map
- Configuration to control the number of findings returned. Structure is documented below.
- minLikelihood String
- Only returns findings equal or above this threshold. See https://cloud.google.com/dlp/docs/likelihood for more info
Default value is POSSIBLE. Possible values are:VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- ruleSets List<Property Map>
- Set of rules to apply to the findings for this InspectConfig. Exclusion rules, contained in the set are executed in the end, other rules are executed in the order they are specified for each info type. Structure is documented below.
PreventionInspectTemplateInspectConfigCustomInfoType, PreventionInspectTemplateInspectConfigCustomInfoTypeArgs                
- InfoType PreventionInspect Template Inspect Config Custom Info Type Info Type 
- CustomInfoType can either be a new infoType, or an extension of built-in infoType, when the name matches one of existing
infoTypes and that infoType is specified in info_typesfield. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified ininfo_typeslist then the name is treated as a custom info type. Structure is documented below.
- Dictionary
PreventionInspect Template Inspect Config Custom Info Type Dictionary 
- Dictionary which defines the rule. Structure is documented below.
- ExclusionType string
- If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned. It still can be used for rules matching.
Possible values are: EXCLUSION_TYPE_EXCLUDE.
- Likelihood string
- Likelihood to return for this CustomInfoType. This base value can be altered by a detection rule if the finding meets the criteria
specified by the rule.
Default value is VERY_LIKELY. Possible values are:VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- Regex
PreventionInspect Template Inspect Config Custom Info Type Regex 
- Regular expression which defines the rule. Structure is documented below.
- SensitivityScore PreventionInspect Template Inspect Config Custom Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- StoredType PreventionInspect Template Inspect Config Custom Info Type Stored Type 
- A reference to a StoredInfoType to use with scanning. Structure is documented below.
- SurrogateType PreventionInspect Template Inspect Config Custom Info Type Surrogate Type 
- Message for detecting output from deidentification transformations that support reversing.
- InfoType PreventionInspect Template Inspect Config Custom Info Type Info Type 
- CustomInfoType can either be a new infoType, or an extension of built-in infoType, when the name matches one of existing
infoTypes and that infoType is specified in info_typesfield. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified ininfo_typeslist then the name is treated as a custom info type. Structure is documented below.
- Dictionary
PreventionInspect Template Inspect Config Custom Info Type Dictionary 
- Dictionary which defines the rule. Structure is documented below.
- ExclusionType string
- If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned. It still can be used for rules matching.
Possible values are: EXCLUSION_TYPE_EXCLUDE.
- Likelihood string
- Likelihood to return for this CustomInfoType. This base value can be altered by a detection rule if the finding meets the criteria
specified by the rule.
Default value is VERY_LIKELY. Possible values are:VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- Regex
PreventionInspect Template Inspect Config Custom Info Type Regex 
- Regular expression which defines the rule. Structure is documented below.
- SensitivityScore PreventionInspect Template Inspect Config Custom Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- StoredType PreventionInspect Template Inspect Config Custom Info Type Stored Type 
- A reference to a StoredInfoType to use with scanning. Structure is documented below.
- SurrogateType PreventionInspect Template Inspect Config Custom Info Type Surrogate Type 
- Message for detecting output from deidentification transformations that support reversing.
- infoType PreventionInspect Template Inspect Config Custom Info Type Info Type 
- CustomInfoType can either be a new infoType, or an extension of built-in infoType, when the name matches one of existing
infoTypes and that infoType is specified in info_typesfield. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified ininfo_typeslist then the name is treated as a custom info type. Structure is documented below.
- dictionary
PreventionInspect Template Inspect Config Custom Info Type Dictionary 
- Dictionary which defines the rule. Structure is documented below.
- exclusionType String
- If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned. It still can be used for rules matching.
Possible values are: EXCLUSION_TYPE_EXCLUDE.
- likelihood String
- Likelihood to return for this CustomInfoType. This base value can be altered by a detection rule if the finding meets the criteria
specified by the rule.
Default value is VERY_LIKELY. Possible values are:VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- regex
PreventionInspect Template Inspect Config Custom Info Type Regex 
- Regular expression which defines the rule. Structure is documented below.
- sensitivityScore PreventionInspect Template Inspect Config Custom Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- storedType PreventionInspect Template Inspect Config Custom Info Type Stored Type 
- A reference to a StoredInfoType to use with scanning. Structure is documented below.
- surrogateType PreventionInspect Template Inspect Config Custom Info Type Surrogate Type 
- Message for detecting output from deidentification transformations that support reversing.
- infoType PreventionInspect Template Inspect Config Custom Info Type Info Type 
- CustomInfoType can either be a new infoType, or an extension of built-in infoType, when the name matches one of existing
infoTypes and that infoType is specified in info_typesfield. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified ininfo_typeslist then the name is treated as a custom info type. Structure is documented below.
- dictionary
PreventionInspect Template Inspect Config Custom Info Type Dictionary 
- Dictionary which defines the rule. Structure is documented below.
- exclusionType string
- If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned. It still can be used for rules matching.
Possible values are: EXCLUSION_TYPE_EXCLUDE.
- likelihood string
- Likelihood to return for this CustomInfoType. This base value can be altered by a detection rule if the finding meets the criteria
specified by the rule.
Default value is VERY_LIKELY. Possible values are:VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- regex
PreventionInspect Template Inspect Config Custom Info Type Regex 
- Regular expression which defines the rule. Structure is documented below.
- sensitivityScore PreventionInspect Template Inspect Config Custom Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- storedType PreventionInspect Template Inspect Config Custom Info Type Stored Type 
- A reference to a StoredInfoType to use with scanning. Structure is documented below.
- surrogateType PreventionInspect Template Inspect Config Custom Info Type Surrogate Type 
- Message for detecting output from deidentification transformations that support reversing.
- info_type PreventionInspect Template Inspect Config Custom Info Type Info Type 
- CustomInfoType can either be a new infoType, or an extension of built-in infoType, when the name matches one of existing
infoTypes and that infoType is specified in info_typesfield. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified ininfo_typeslist then the name is treated as a custom info type. Structure is documented below.
- dictionary
PreventionInspect Template Inspect Config Custom Info Type Dictionary 
- Dictionary which defines the rule. Structure is documented below.
- exclusion_type str
- If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned. It still can be used for rules matching.
Possible values are: EXCLUSION_TYPE_EXCLUDE.
- likelihood str
- Likelihood to return for this CustomInfoType. This base value can be altered by a detection rule if the finding meets the criteria
specified by the rule.
Default value is VERY_LIKELY. Possible values are:VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- regex
PreventionInspect Template Inspect Config Custom Info Type Regex 
- Regular expression which defines the rule. Structure is documented below.
- sensitivity_score PreventionInspect Template Inspect Config Custom Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- stored_type PreventionInspect Template Inspect Config Custom Info Type Stored Type 
- A reference to a StoredInfoType to use with scanning. Structure is documented below.
- surrogate_type PreventionInspect Template Inspect Config Custom Info Type Surrogate Type 
- Message for detecting output from deidentification transformations that support reversing.
- infoType Property Map
- CustomInfoType can either be a new infoType, or an extension of built-in infoType, when the name matches one of existing
infoTypes and that infoType is specified in info_typesfield. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified ininfo_typeslist then the name is treated as a custom info type. Structure is documented below.
- dictionary Property Map
- Dictionary which defines the rule. Structure is documented below.
- exclusionType String
- If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned. It still can be used for rules matching.
Possible values are: EXCLUSION_TYPE_EXCLUDE.
- likelihood String
- Likelihood to return for this CustomInfoType. This base value can be altered by a detection rule if the finding meets the criteria
specified by the rule.
Default value is VERY_LIKELY. Possible values are:VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- regex Property Map
- Regular expression which defines the rule. Structure is documented below.
- sensitivityScore Property Map
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- storedType Property Map
- A reference to a StoredInfoType to use with scanning. Structure is documented below.
- surrogateType Property Map
- Message for detecting output from deidentification transformations that support reversing.
PreventionInspectTemplateInspectConfigCustomInfoTypeDictionary, PreventionInspectTemplateInspectConfigCustomInfoTypeDictionaryArgs                  
- CloudStorage PreventionPath Inspect Template Inspect Config Custom Info Type Dictionary Cloud Storage Path 
- Newline-delimited file of words in Cloud Storage. Only a single file is accepted. Structure is documented below.
- WordList PreventionInspect Template Inspect Config Custom Info Type Dictionary Word List 
- List of words or phrases to search for. Structure is documented below.
- CloudStorage PreventionPath Inspect Template Inspect Config Custom Info Type Dictionary Cloud Storage Path 
- Newline-delimited file of words in Cloud Storage. Only a single file is accepted. Structure is documented below.
- WordList PreventionInspect Template Inspect Config Custom Info Type Dictionary Word List 
- List of words or phrases to search for. Structure is documented below.
- cloudStorage PreventionPath Inspect Template Inspect Config Custom Info Type Dictionary Cloud Storage Path 
- Newline-delimited file of words in Cloud Storage. Only a single file is accepted. Structure is documented below.
- wordList PreventionInspect Template Inspect Config Custom Info Type Dictionary Word List 
- List of words or phrases to search for. Structure is documented below.
- cloudStorage PreventionPath Inspect Template Inspect Config Custom Info Type Dictionary Cloud Storage Path 
- Newline-delimited file of words in Cloud Storage. Only a single file is accepted. Structure is documented below.
- wordList PreventionInspect Template Inspect Config Custom Info Type Dictionary Word List 
- List of words or phrases to search for. Structure is documented below.
- cloud_storage_ Preventionpath Inspect Template Inspect Config Custom Info Type Dictionary Cloud Storage Path 
- Newline-delimited file of words in Cloud Storage. Only a single file is accepted. Structure is documented below.
- word_list PreventionInspect Template Inspect Config Custom Info Type Dictionary Word List 
- List of words or phrases to search for. Structure is documented below.
- cloudStorage Property MapPath 
- Newline-delimited file of words in Cloud Storage. Only a single file is accepted. Structure is documented below.
- wordList Property Map
- List of words or phrases to search for. Structure is documented below.
PreventionInspectTemplateInspectConfigCustomInfoTypeDictionaryCloudStoragePath, PreventionInspectTemplateInspectConfigCustomInfoTypeDictionaryCloudStoragePathArgs                        
- Path string
- A url representing a file or path (no wildcards) in Cloud Storage. Example: gs://[BUCKET_NAME]/dictionary.txt
- Path string
- A url representing a file or path (no wildcards) in Cloud Storage. Example: gs://[BUCKET_NAME]/dictionary.txt
- path String
- A url representing a file or path (no wildcards) in Cloud Storage. Example: gs://[BUCKET_NAME]/dictionary.txt
- path string
- A url representing a file or path (no wildcards) in Cloud Storage. Example: gs://[BUCKET_NAME]/dictionary.txt
- path str
- A url representing a file or path (no wildcards) in Cloud Storage. Example: gs://[BUCKET_NAME]/dictionary.txt
- path String
- A url representing a file or path (no wildcards) in Cloud Storage. Example: gs://[BUCKET_NAME]/dictionary.txt
PreventionInspectTemplateInspectConfigCustomInfoTypeDictionaryWordList, PreventionInspectTemplateInspectConfigCustomInfoTypeDictionaryWordListArgs                      
- Words List<string>
- Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits.
- Words []string
- Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits.
- words List<String>
- Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits.
- words string[]
- Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits.
- words Sequence[str]
- Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits.
- words List<String>
- Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits.
PreventionInspectTemplateInspectConfigCustomInfoTypeInfoType, PreventionInspectTemplateInspectConfigCustomInfoTypeInfoTypeArgs                    
- Name string
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- SensitivityScore PreventionInspect Template Inspect Config Custom Info Type Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- Version string
- Version name for this InfoType.
- Name string
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- SensitivityScore PreventionInspect Template Inspect Config Custom Info Type Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- Version string
- Version name for this InfoType.
- name String
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- sensitivityScore PreventionInspect Template Inspect Config Custom Info Type Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version String
- Version name for this InfoType.
- name string
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- sensitivityScore PreventionInspect Template Inspect Config Custom Info Type Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version string
- Version name for this InfoType.
- name str
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- sensitivity_score PreventionInspect Template Inspect Config Custom Info Type Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version str
- Version name for this InfoType.
- name String
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- sensitivityScore Property Map
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version String
- Version name for this InfoType.
PreventionInspectTemplateInspectConfigCustomInfoTypeInfoTypeSensitivityScore, PreventionInspectTemplateInspectConfigCustomInfoTypeInfoTypeSensitivityScoreArgs                        
- Score string
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- Score string
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- score String
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- score string
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- score str
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- score String
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
PreventionInspectTemplateInspectConfigCustomInfoTypeRegex, PreventionInspectTemplateInspectConfigCustomInfoTypeRegexArgs                  
- Pattern string
- Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
- GroupIndexes List<int>
- The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
- Pattern string
- Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
- GroupIndexes []int
- The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
- pattern String
- Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
- groupIndexes List<Integer>
- The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
- pattern string
- Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
- groupIndexes number[]
- The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
- pattern str
- Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
- group_indexes Sequence[int]
- The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
- pattern String
- Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
- groupIndexes List<Number>
- The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
PreventionInspectTemplateInspectConfigCustomInfoTypeSensitivityScore, PreventionInspectTemplateInspectConfigCustomInfoTypeSensitivityScoreArgs                    
- Score string
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- Score string
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- score String
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- score string
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- score str
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- score String
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
PreventionInspectTemplateInspectConfigCustomInfoTypeStoredType, PreventionInspectTemplateInspectConfigCustomInfoTypeStoredTypeArgs                    
- Name string
- Resource name of the requested StoredInfoType, for example organizations/433245324/storedInfoTypes/432452342orprojects/project-id/storedInfoTypes/432452342.
- Name string
- Resource name of the requested StoredInfoType, for example organizations/433245324/storedInfoTypes/432452342orprojects/project-id/storedInfoTypes/432452342.
- name String
- Resource name of the requested StoredInfoType, for example organizations/433245324/storedInfoTypes/432452342orprojects/project-id/storedInfoTypes/432452342.
- name string
- Resource name of the requested StoredInfoType, for example organizations/433245324/storedInfoTypes/432452342orprojects/project-id/storedInfoTypes/432452342.
- name str
- Resource name of the requested StoredInfoType, for example organizations/433245324/storedInfoTypes/432452342orprojects/project-id/storedInfoTypes/432452342.
- name String
- Resource name of the requested StoredInfoType, for example organizations/433245324/storedInfoTypes/432452342orprojects/project-id/storedInfoTypes/432452342.
PreventionInspectTemplateInspectConfigInfoType, PreventionInspectTemplateInspectConfigInfoTypeArgs              
- Name string
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- SensitivityScore PreventionInspect Template Inspect Config Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- Version string
- Version name for this InfoType.
- Name string
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- SensitivityScore PreventionInspect Template Inspect Config Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- Version string
- Version name for this InfoType.
- name String
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- sensitivityScore PreventionInspect Template Inspect Config Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version String
- Version name for this InfoType.
- name string
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- sensitivityScore PreventionInspect Template Inspect Config Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version string
- Version name for this InfoType.
- name str
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- sensitivity_score PreventionInspect Template Inspect Config Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version str
- Version name for this InfoType.
- name String
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- sensitivityScore Property Map
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version String
- Version name for this InfoType.
PreventionInspectTemplateInspectConfigInfoTypeSensitivityScore, PreventionInspectTemplateInspectConfigInfoTypeSensitivityScoreArgs                  
- Score string
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- Score string
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- score String
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- score string
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- score str
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- score String
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
PreventionInspectTemplateInspectConfigLimits, PreventionInspectTemplateInspectConfigLimitsArgs            
- MaxFindings intPer Item 
- Max number of findings that will be returned for each item scanned. The maximum returned is 2000.
- MaxFindings intPer Request 
- Max number of findings that will be returned per request/job. The maximum returned is 2000.
- MaxFindings List<PreventionPer Info Types Inspect Template Inspect Config Limits Max Findings Per Info Type> 
- Configuration of findings limit given for specified infoTypes. Structure is documented below.
- MaxFindings intPer Item 
- Max number of findings that will be returned for each item scanned. The maximum returned is 2000.
- MaxFindings intPer Request 
- Max number of findings that will be returned per request/job. The maximum returned is 2000.
- MaxFindings []PreventionPer Info Types Inspect Template Inspect Config Limits Max Findings Per Info Type 
- Configuration of findings limit given for specified infoTypes. Structure is documented below.
- maxFindings IntegerPer Item 
- Max number of findings that will be returned for each item scanned. The maximum returned is 2000.
- maxFindings IntegerPer Request 
- Max number of findings that will be returned per request/job. The maximum returned is 2000.
- maxFindings List<PreventionPer Info Types Inspect Template Inspect Config Limits Max Findings Per Info Type> 
- Configuration of findings limit given for specified infoTypes. Structure is documented below.
- maxFindings numberPer Item 
- Max number of findings that will be returned for each item scanned. The maximum returned is 2000.
- maxFindings numberPer Request 
- Max number of findings that will be returned per request/job. The maximum returned is 2000.
- maxFindings PreventionPer Info Types Inspect Template Inspect Config Limits Max Findings Per Info Type[] 
- Configuration of findings limit given for specified infoTypes. Structure is documented below.
- max_findings_ intper_ item 
- Max number of findings that will be returned for each item scanned. The maximum returned is 2000.
- max_findings_ intper_ request 
- Max number of findings that will be returned per request/job. The maximum returned is 2000.
- max_findings_ Sequence[Preventionper_ info_ types Inspect Template Inspect Config Limits Max Findings Per Info Type] 
- Configuration of findings limit given for specified infoTypes. Structure is documented below.
- maxFindings NumberPer Item 
- Max number of findings that will be returned for each item scanned. The maximum returned is 2000.
- maxFindings NumberPer Request 
- Max number of findings that will be returned per request/job. The maximum returned is 2000.
- maxFindings List<Property Map>Per Info Types 
- Configuration of findings limit given for specified infoTypes. Structure is documented below.
PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoType, PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeArgs                      
- MaxFindings int
- Max findings limit for the given infoType.
- InfoType PreventionInspect Template Inspect Config Limits Max Findings Per Info Type Info Type 
- Type of information the findings limit applies to. Only one limit per infoType should be provided. If InfoTypeLimit does not have an infoType, the DLP API applies the limit against all infoTypes that are found but not specified in another InfoTypeLimit. Structure is documented below.
- MaxFindings int
- Max findings limit for the given infoType.
- InfoType PreventionInspect Template Inspect Config Limits Max Findings Per Info Type Info Type 
- Type of information the findings limit applies to. Only one limit per infoType should be provided. If InfoTypeLimit does not have an infoType, the DLP API applies the limit against all infoTypes that are found but not specified in another InfoTypeLimit. Structure is documented below.
- maxFindings Integer
- Max findings limit for the given infoType.
- infoType PreventionInspect Template Inspect Config Limits Max Findings Per Info Type Info Type 
- Type of information the findings limit applies to. Only one limit per infoType should be provided. If InfoTypeLimit does not have an infoType, the DLP API applies the limit against all infoTypes that are found but not specified in another InfoTypeLimit. Structure is documented below.
- maxFindings number
- Max findings limit for the given infoType.
- infoType PreventionInspect Template Inspect Config Limits Max Findings Per Info Type Info Type 
- Type of information the findings limit applies to. Only one limit per infoType should be provided. If InfoTypeLimit does not have an infoType, the DLP API applies the limit against all infoTypes that are found but not specified in another InfoTypeLimit. Structure is documented below.
- max_findings int
- Max findings limit for the given infoType.
- info_type PreventionInspect Template Inspect Config Limits Max Findings Per Info Type Info Type 
- Type of information the findings limit applies to. Only one limit per infoType should be provided. If InfoTypeLimit does not have an infoType, the DLP API applies the limit against all infoTypes that are found but not specified in another InfoTypeLimit. Structure is documented below.
- maxFindings Number
- Max findings limit for the given infoType.
- infoType Property Map
- Type of information the findings limit applies to. Only one limit per infoType should be provided. If InfoTypeLimit does not have an infoType, the DLP API applies the limit against all infoTypes that are found but not specified in another InfoTypeLimit. Structure is documented below.
PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeInfoType, PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeArgs                          
- Name string
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- SensitivityScore PreventionInspect Template Inspect Config Limits Max Findings Per Info Type Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- Version string
- Version name for this InfoType.
- Name string
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- SensitivityScore PreventionInspect Template Inspect Config Limits Max Findings Per Info Type Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- Version string
- Version name for this InfoType.
- name String
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- sensitivityScore PreventionInspect Template Inspect Config Limits Max Findings Per Info Type Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version String
- Version name for this InfoType.
- name string
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- sensitivityScore PreventionInspect Template Inspect Config Limits Max Findings Per Info Type Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version string
- Version name for this InfoType.
- name str
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- sensitivity_score PreventionInspect Template Inspect Config Limits Max Findings Per Info Type Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version str
- Version name for this InfoType.
- name String
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- sensitivityScore Property Map
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version String
- Version name for this InfoType.
PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeSensitivityScore, PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeSensitivityScoreArgs                              
- Score string
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- Score string
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- score String
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- score string
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- score str
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- score String
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
PreventionInspectTemplateInspectConfigRuleSet, PreventionInspectTemplateInspectConfigRuleSetArgs              
- InfoTypes List<PreventionInspect Template Inspect Config Rule Set Info Type> 
- List of infoTypes this rule set is applied to. Structure is documented below.
- Rules
List<PreventionInspect Template Inspect Config Rule Set Rule> 
- Set of rules to be applied to infoTypes. The rules are applied in order. Structure is documented below.
- InfoTypes []PreventionInspect Template Inspect Config Rule Set Info Type 
- List of infoTypes this rule set is applied to. Structure is documented below.
- Rules
[]PreventionInspect Template Inspect Config Rule Set Rule 
- Set of rules to be applied to infoTypes. The rules are applied in order. Structure is documented below.
- infoTypes List<PreventionInspect Template Inspect Config Rule Set Info Type> 
- List of infoTypes this rule set is applied to. Structure is documented below.
- rules
List<PreventionInspect Template Inspect Config Rule Set Rule> 
- Set of rules to be applied to infoTypes. The rules are applied in order. Structure is documented below.
- infoTypes PreventionInspect Template Inspect Config Rule Set Info Type[] 
- List of infoTypes this rule set is applied to. Structure is documented below.
- rules
PreventionInspect Template Inspect Config Rule Set Rule[] 
- Set of rules to be applied to infoTypes. The rules are applied in order. Structure is documented below.
- info_types Sequence[PreventionInspect Template Inspect Config Rule Set Info Type] 
- List of infoTypes this rule set is applied to. Structure is documented below.
- rules
Sequence[PreventionInspect Template Inspect Config Rule Set Rule] 
- Set of rules to be applied to infoTypes. The rules are applied in order. Structure is documented below.
- infoTypes List<Property Map>
- List of infoTypes this rule set is applied to. Structure is documented below.
- rules List<Property Map>
- Set of rules to be applied to infoTypes. The rules are applied in order. Structure is documented below.
PreventionInspectTemplateInspectConfigRuleSetInfoType, PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs                  
- Name string
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- SensitivityScore PreventionInspect Template Inspect Config Rule Set Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- Version string
- Version name for this InfoType.
- Name string
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- SensitivityScore PreventionInspect Template Inspect Config Rule Set Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- Version string
- Version name for this InfoType.
- name String
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- sensitivityScore PreventionInspect Template Inspect Config Rule Set Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version String
- Version name for this InfoType.
- name string
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- sensitivityScore PreventionInspect Template Inspect Config Rule Set Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version string
- Version name for this InfoType.
- name str
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- sensitivity_score PreventionInspect Template Inspect Config Rule Set Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version str
- Version name for this InfoType.
- name String
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- sensitivityScore Property Map
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version String
- Version name for this InfoType.
PreventionInspectTemplateInspectConfigRuleSetInfoTypeSensitivityScore, PreventionInspectTemplateInspectConfigRuleSetInfoTypeSensitivityScoreArgs                      
- Score string
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- Score string
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- score String
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- score string
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- score str
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- score String
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
PreventionInspectTemplateInspectConfigRuleSetRule, PreventionInspectTemplateInspectConfigRuleSetRuleArgs                
- ExclusionRule PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule 
- The rule that specifies conditions when findings of infoTypes specified in InspectionRuleSet are removed from results. Structure is documented below.
- HotwordRule PreventionInspect Template Inspect Config Rule Set Rule Hotword Rule 
- Hotword-based detection rule. Structure is documented below.
- ExclusionRule PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule 
- The rule that specifies conditions when findings of infoTypes specified in InspectionRuleSet are removed from results. Structure is documented below.
- HotwordRule PreventionInspect Template Inspect Config Rule Set Rule Hotword Rule 
- Hotword-based detection rule. Structure is documented below.
- exclusionRule PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule 
- The rule that specifies conditions when findings of infoTypes specified in InspectionRuleSet are removed from results. Structure is documented below.
- hotwordRule PreventionInspect Template Inspect Config Rule Set Rule Hotword Rule 
- Hotword-based detection rule. Structure is documented below.
- exclusionRule PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule 
- The rule that specifies conditions when findings of infoTypes specified in InspectionRuleSet are removed from results. Structure is documented below.
- hotwordRule PreventionInspect Template Inspect Config Rule Set Rule Hotword Rule 
- Hotword-based detection rule. Structure is documented below.
- exclusion_rule PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule 
- The rule that specifies conditions when findings of infoTypes specified in InspectionRuleSet are removed from results. Structure is documented below.
- hotword_rule PreventionInspect Template Inspect Config Rule Set Rule Hotword Rule 
- Hotword-based detection rule. Structure is documented below.
- exclusionRule Property Map
- The rule that specifies conditions when findings of infoTypes specified in InspectionRuleSet are removed from results. Structure is documented below.
- hotwordRule Property Map
- Hotword-based detection rule. Structure is documented below.
PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRule, PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleArgs                    
- MatchingType string
- How the rule is applied. See the documentation for more information: https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#MatchingType
Possible values are: MATCHING_TYPE_FULL_MATCH,MATCHING_TYPE_PARTIAL_MATCH,MATCHING_TYPE_INVERSE_MATCH.
- Dictionary
PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Dictionary 
- Dictionary which defines the rule. Structure is documented below.
- ExcludeBy PreventionHotword Inspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude By Hotword 
- Drop if the hotword rule is contained in the proximate context. For tabular data, the context includes the column name. Structure is documented below.
- ExcludeInfo PreventionTypes Inspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude Info Types 
- Set of infoTypes for which findings would affect this rule. Structure is documented below.
- Regex
PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Regex 
- Regular expression which defines the rule. Structure is documented below.
- MatchingType string
- How the rule is applied. See the documentation for more information: https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#MatchingType
Possible values are: MATCHING_TYPE_FULL_MATCH,MATCHING_TYPE_PARTIAL_MATCH,MATCHING_TYPE_INVERSE_MATCH.
- Dictionary
PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Dictionary 
- Dictionary which defines the rule. Structure is documented below.
- ExcludeBy PreventionHotword Inspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude By Hotword 
- Drop if the hotword rule is contained in the proximate context. For tabular data, the context includes the column name. Structure is documented below.
- ExcludeInfo PreventionTypes Inspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude Info Types 
- Set of infoTypes for which findings would affect this rule. Structure is documented below.
- Regex
PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Regex 
- Regular expression which defines the rule. Structure is documented below.
- matchingType String
- How the rule is applied. See the documentation for more information: https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#MatchingType
Possible values are: MATCHING_TYPE_FULL_MATCH,MATCHING_TYPE_PARTIAL_MATCH,MATCHING_TYPE_INVERSE_MATCH.
- dictionary
PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Dictionary 
- Dictionary which defines the rule. Structure is documented below.
- excludeBy PreventionHotword Inspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude By Hotword 
- Drop if the hotword rule is contained in the proximate context. For tabular data, the context includes the column name. Structure is documented below.
- excludeInfo PreventionTypes Inspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude Info Types 
- Set of infoTypes for which findings would affect this rule. Structure is documented below.
- regex
PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Regex 
- Regular expression which defines the rule. Structure is documented below.
- matchingType string
- How the rule is applied. See the documentation for more information: https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#MatchingType
Possible values are: MATCHING_TYPE_FULL_MATCH,MATCHING_TYPE_PARTIAL_MATCH,MATCHING_TYPE_INVERSE_MATCH.
- dictionary
PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Dictionary 
- Dictionary which defines the rule. Structure is documented below.
- excludeBy PreventionHotword Inspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude By Hotword 
- Drop if the hotword rule is contained in the proximate context. For tabular data, the context includes the column name. Structure is documented below.
- excludeInfo PreventionTypes Inspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude Info Types 
- Set of infoTypes for which findings would affect this rule. Structure is documented below.
- regex
PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Regex 
- Regular expression which defines the rule. Structure is documented below.
- matching_type str
- How the rule is applied. See the documentation for more information: https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#MatchingType
Possible values are: MATCHING_TYPE_FULL_MATCH,MATCHING_TYPE_PARTIAL_MATCH,MATCHING_TYPE_INVERSE_MATCH.
- dictionary
PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Dictionary 
- Dictionary which defines the rule. Structure is documented below.
- exclude_by_ Preventionhotword Inspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude By Hotword 
- Drop if the hotword rule is contained in the proximate context. For tabular data, the context includes the column name. Structure is documented below.
- exclude_info_ Preventiontypes Inspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude Info Types 
- Set of infoTypes for which findings would affect this rule. Structure is documented below.
- regex
PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Regex 
- Regular expression which defines the rule. Structure is documented below.
- matchingType String
- How the rule is applied. See the documentation for more information: https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#MatchingType
Possible values are: MATCHING_TYPE_FULL_MATCH,MATCHING_TYPE_PARTIAL_MATCH,MATCHING_TYPE_INVERSE_MATCH.
- dictionary Property Map
- Dictionary which defines the rule. Structure is documented below.
- excludeBy Property MapHotword 
- Drop if the hotword rule is contained in the proximate context. For tabular data, the context includes the column name. Structure is documented below.
- excludeInfo Property MapTypes 
- Set of infoTypes for which findings would affect this rule. Structure is documented below.
- regex Property Map
- Regular expression which defines the rule. Structure is documented below.
PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleDictionary, PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleDictionaryArgs                      
- CloudStorage PreventionPath Inspect Template Inspect Config Rule Set Rule Exclusion Rule Dictionary Cloud Storage Path 
- Newline-delimited file of words in Cloud Storage. Only a single file is accepted. Structure is documented below.
- WordList PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Dictionary Word List 
- List of words or phrases to search for. Structure is documented below.
- CloudStorage PreventionPath Inspect Template Inspect Config Rule Set Rule Exclusion Rule Dictionary Cloud Storage Path 
- Newline-delimited file of words in Cloud Storage. Only a single file is accepted. Structure is documented below.
- WordList PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Dictionary Word List 
- List of words or phrases to search for. Structure is documented below.
- cloudStorage PreventionPath Inspect Template Inspect Config Rule Set Rule Exclusion Rule Dictionary Cloud Storage Path 
- Newline-delimited file of words in Cloud Storage. Only a single file is accepted. Structure is documented below.
- wordList PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Dictionary Word List 
- List of words or phrases to search for. Structure is documented below.
- cloudStorage PreventionPath Inspect Template Inspect Config Rule Set Rule Exclusion Rule Dictionary Cloud Storage Path 
- Newline-delimited file of words in Cloud Storage. Only a single file is accepted. Structure is documented below.
- wordList PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Dictionary Word List 
- List of words or phrases to search for. Structure is documented below.
- cloud_storage_ Preventionpath Inspect Template Inspect Config Rule Set Rule Exclusion Rule Dictionary Cloud Storage Path 
- Newline-delimited file of words in Cloud Storage. Only a single file is accepted. Structure is documented below.
- word_list PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Dictionary Word List 
- List of words or phrases to search for. Structure is documented below.
- cloudStorage Property MapPath 
- Newline-delimited file of words in Cloud Storage. Only a single file is accepted. Structure is documented below.
- wordList Property Map
- List of words or phrases to search for. Structure is documented below.
PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleDictionaryCloudStoragePath, PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleDictionaryCloudStoragePathArgs                            
- Path string
- A url representing a file or path (no wildcards) in Cloud Storage. Example: gs://[BUCKET_NAME]/dictionary.txt
- Path string
- A url representing a file or path (no wildcards) in Cloud Storage. Example: gs://[BUCKET_NAME]/dictionary.txt
- path String
- A url representing a file or path (no wildcards) in Cloud Storage. Example: gs://[BUCKET_NAME]/dictionary.txt
- path string
- A url representing a file or path (no wildcards) in Cloud Storage. Example: gs://[BUCKET_NAME]/dictionary.txt
- path str
- A url representing a file or path (no wildcards) in Cloud Storage. Example: gs://[BUCKET_NAME]/dictionary.txt
- path String
- A url representing a file or path (no wildcards) in Cloud Storage. Example: gs://[BUCKET_NAME]/dictionary.txt
PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleDictionaryWordList, PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleDictionaryWordListArgs                          
- Words List<string>
- Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits.
- Words []string
- Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits.
- words List<String>
- Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits.
- words string[]
- Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits.
- words Sequence[str]
- Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits.
- words List<String>
- Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits.
PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeByHotword, PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordArgs                          
- HotwordRegex PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude By Hotword Hotword Regex 
- Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- Proximity
PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude By Hotword Proximity 
- Proximity of the finding within which the entire hotword must reside. The total length of the window cannot
exceed 1000 characters. Note that the finding itself will be included in the window, so that hotwords may be
used to match substrings of the finding itself. For example, the certainty of a phone number regex
(\d{3}) \d{3}-\d{4}could be adjusted upwards if the area code is known to be the local area code of a company office using the hotword regex(xxx), wherexxxis the area code in question. Structure is documented below.
- HotwordRegex PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude By Hotword Hotword Regex 
- Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- Proximity
PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude By Hotword Proximity 
- Proximity of the finding within which the entire hotword must reside. The total length of the window cannot
exceed 1000 characters. Note that the finding itself will be included in the window, so that hotwords may be
used to match substrings of the finding itself. For example, the certainty of a phone number regex
(\d{3}) \d{3}-\d{4}could be adjusted upwards if the area code is known to be the local area code of a company office using the hotword regex(xxx), wherexxxis the area code in question. Structure is documented below.
- hotwordRegex PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude By Hotword Hotword Regex 
- Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- proximity
PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude By Hotword Proximity 
- Proximity of the finding within which the entire hotword must reside. The total length of the window cannot
exceed 1000 characters. Note that the finding itself will be included in the window, so that hotwords may be
used to match substrings of the finding itself. For example, the certainty of a phone number regex
(\d{3}) \d{3}-\d{4}could be adjusted upwards if the area code is known to be the local area code of a company office using the hotword regex(xxx), wherexxxis the area code in question. Structure is documented below.
- hotwordRegex PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude By Hotword Hotword Regex 
- Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- proximity
PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude By Hotword Proximity 
- Proximity of the finding within which the entire hotword must reside. The total length of the window cannot
exceed 1000 characters. Note that the finding itself will be included in the window, so that hotwords may be
used to match substrings of the finding itself. For example, the certainty of a phone number regex
(\d{3}) \d{3}-\d{4}could be adjusted upwards if the area code is known to be the local area code of a company office using the hotword regex(xxx), wherexxxis the area code in question. Structure is documented below.
- hotword_regex PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude By Hotword Hotword Regex 
- Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- proximity
PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude By Hotword Proximity 
- Proximity of the finding within which the entire hotword must reside. The total length of the window cannot
exceed 1000 characters. Note that the finding itself will be included in the window, so that hotwords may be
used to match substrings of the finding itself. For example, the certainty of a phone number regex
(\d{3}) \d{3}-\d{4}could be adjusted upwards if the area code is known to be the local area code of a company office using the hotword regex(xxx), wherexxxis the area code in question. Structure is documented below.
- hotwordRegex Property Map
- Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- proximity Property Map
- Proximity of the finding within which the entire hotword must reside. The total length of the window cannot
exceed 1000 characters. Note that the finding itself will be included in the window, so that hotwords may be
used to match substrings of the finding itself. For example, the certainty of a phone number regex
(\d{3}) \d{3}-\d{4}could be adjusted upwards if the area code is known to be the local area code of a company office using the hotword regex(xxx), wherexxxis the area code in question. Structure is documented below.
PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordHotwordRegex, PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordHotwordRegexArgs                              
- Pattern string
- Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
- GroupIndexes List<int>
- The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
- Pattern string
- Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
- GroupIndexes []int
- The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
- pattern String
- Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
- groupIndexes List<Integer>
- The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
- pattern string
- Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
- groupIndexes number[]
- The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
- pattern str
- Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
- group_indexes Sequence[int]
- The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
- pattern String
- Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
- groupIndexes List<Number>
- The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordProximity, PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordProximityArgs                            
- WindowAfter int
- Number of characters after the finding to consider.
- WindowBefore int
- Number of characters before the finding to consider.
- WindowAfter int
- Number of characters after the finding to consider.
- WindowBefore int
- Number of characters before the finding to consider.
- windowAfter Integer
- Number of characters after the finding to consider.
- windowBefore Integer
- Number of characters before the finding to consider.
- windowAfter number
- Number of characters after the finding to consider.
- windowBefore number
- Number of characters before the finding to consider.
- window_after int
- Number of characters after the finding to consider.
- window_before int
- Number of characters before the finding to consider.
- windowAfter Number
- Number of characters after the finding to consider.
- windowBefore Number
- Number of characters before the finding to consider.
PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypes, PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesArgs                          
- InfoTypes List<PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude Info Types Info Type> 
- If a finding is matched by any of the infoType detectors listed here, the finding will be excluded from the scan results. Structure is documented below.
- InfoTypes []PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude Info Types Info Type 
- If a finding is matched by any of the infoType detectors listed here, the finding will be excluded from the scan results. Structure is documented below.
- infoTypes List<PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude Info Types Info Type> 
- If a finding is matched by any of the infoType detectors listed here, the finding will be excluded from the scan results. Structure is documented below.
- infoTypes PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude Info Types Info Type[] 
- If a finding is matched by any of the infoType detectors listed here, the finding will be excluded from the scan results. Structure is documented below.
- info_types Sequence[PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude Info Types Info Type] 
- If a finding is matched by any of the infoType detectors listed here, the finding will be excluded from the scan results. Structure is documented below.
- infoTypes List<Property Map>
- If a finding is matched by any of the infoType detectors listed here, the finding will be excluded from the scan results. Structure is documented below.
PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoType, PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeArgs                              
- Name string
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- SensitivityScore PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude Info Types Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- Version string
- Version name for this InfoType.
- Name string
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- SensitivityScore PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude Info Types Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- Version string
- Version name for this InfoType.
- name String
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- sensitivityScore PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude Info Types Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version String
- Version name for this InfoType.
- name string
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- sensitivityScore PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude Info Types Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version string
- Version name for this InfoType.
- name str
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- sensitivity_score PreventionInspect Template Inspect Config Rule Set Rule Exclusion Rule Exclude Info Types Info Type Sensitivity Score 
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version str
- Version name for this InfoType.
- name String
- Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
- sensitivityScore Property Map
- Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version String
- Version name for this InfoType.
PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeSensitivityScore, PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeSensitivityScoreArgs                                  
- Score string
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- Score string
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- score String
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- score string
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- score str
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
- score String
- The sensitivity score applied to the resource.
Possible values are: SENSITIVITY_LOW,SENSITIVITY_MODERATE,SENSITIVITY_HIGH.
PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleRegex, PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleRegexArgs                      
- Pattern string
- Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
- GroupIndexes List<int>
- The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
- Pattern string
- Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
- GroupIndexes []int
- The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
- pattern String
- Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
- groupIndexes List<Integer>
- The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
- pattern string
- Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
- groupIndexes number[]
- The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
- pattern str
- Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
- group_indexes Sequence[int]
- The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
- pattern String
- Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
- groupIndexes List<Number>
- The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRule, PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleArgs                    
- HotwordRegex PreventionInspect Template Inspect Config Rule Set Rule Hotword Rule Hotword Regex 
- Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- LikelihoodAdjustment PreventionInspect Template Inspect Config Rule Set Rule Hotword Rule Likelihood Adjustment 
- Likelihood adjustment to apply to all matching findings. Structure is documented below.
- Proximity
PreventionInspect Template Inspect Config Rule Set Rule Hotword Rule Proximity 
- Proximity of the finding within which the entire hotword must reside. The total length of the window cannot
exceed 1000 characters. Note that the finding itself will be included in the window, so that hotwords may be
used to match substrings of the finding itself. For example, the certainty of a phone number regex
(\d{3}) \d{3}-\d{4}could be adjusted upwards if the area code is known to be the local area code of a company office using the hotword regex(xxx), wherexxxis the area code in question. Structure is documented below.
- HotwordRegex PreventionInspect Template Inspect Config Rule Set Rule Hotword Rule Hotword Regex 
- Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- LikelihoodAdjustment PreventionInspect Template Inspect Config Rule Set Rule Hotword Rule Likelihood Adjustment 
- Likelihood adjustment to apply to all matching findings. Structure is documented below.
- Proximity
PreventionInspect Template Inspect Config Rule Set Rule Hotword Rule Proximity 
- Proximity of the finding within which the entire hotword must reside. The total length of the window cannot
exceed 1000 characters. Note that the finding itself will be included in the window, so that hotwords may be
used to match substrings of the finding itself. For example, the certainty of a phone number regex
(\d{3}) \d{3}-\d{4}could be adjusted upwards if the area code is known to be the local area code of a company office using the hotword regex(xxx), wherexxxis the area code in question. Structure is documented below.
- hotwordRegex PreventionInspect Template Inspect Config Rule Set Rule Hotword Rule Hotword Regex 
- Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- likelihoodAdjustment PreventionInspect Template Inspect Config Rule Set Rule Hotword Rule Likelihood Adjustment 
- Likelihood adjustment to apply to all matching findings. Structure is documented below.
- proximity
PreventionInspect Template Inspect Config Rule Set Rule Hotword Rule Proximity 
- Proximity of the finding within which the entire hotword must reside. The total length of the window cannot
exceed 1000 characters. Note that the finding itself will be included in the window, so that hotwords may be
used to match substrings of the finding itself. For example, the certainty of a phone number regex
(\d{3}) \d{3}-\d{4}could be adjusted upwards if the area code is known to be the local area code of a company office using the hotword regex(xxx), wherexxxis the area code in question. Structure is documented below.
- hotwordRegex PreventionInspect Template Inspect Config Rule Set Rule Hotword Rule Hotword Regex 
- Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- likelihoodAdjustment PreventionInspect Template Inspect Config Rule Set Rule Hotword Rule Likelihood Adjustment 
- Likelihood adjustment to apply to all matching findings. Structure is documented below.
- proximity
PreventionInspect Template Inspect Config Rule Set Rule Hotword Rule Proximity 
- Proximity of the finding within which the entire hotword must reside. The total length of the window cannot
exceed 1000 characters. Note that the finding itself will be included in the window, so that hotwords may be
used to match substrings of the finding itself. For example, the certainty of a phone number regex
(\d{3}) \d{3}-\d{4}could be adjusted upwards if the area code is known to be the local area code of a company office using the hotword regex(xxx), wherexxxis the area code in question. Structure is documented below.
- hotword_regex PreventionInspect Template Inspect Config Rule Set Rule Hotword Rule Hotword Regex 
- Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- likelihood_adjustment PreventionInspect Template Inspect Config Rule Set Rule Hotword Rule Likelihood Adjustment 
- Likelihood adjustment to apply to all matching findings. Structure is documented below.
- proximity
PreventionInspect Template Inspect Config Rule Set Rule Hotword Rule Proximity 
- Proximity of the finding within which the entire hotword must reside. The total length of the window cannot
exceed 1000 characters. Note that the finding itself will be included in the window, so that hotwords may be
used to match substrings of the finding itself. For example, the certainty of a phone number regex
(\d{3}) \d{3}-\d{4}could be adjusted upwards if the area code is known to be the local area code of a company office using the hotword regex(xxx), wherexxxis the area code in question. Structure is documented below.
- hotwordRegex Property Map
- Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- likelihoodAdjustment Property Map
- Likelihood adjustment to apply to all matching findings. Structure is documented below.
- proximity Property Map
- Proximity of the finding within which the entire hotword must reside. The total length of the window cannot
exceed 1000 characters. Note that the finding itself will be included in the window, so that hotwords may be
used to match substrings of the finding itself. For example, the certainty of a phone number regex
(\d{3}) \d{3}-\d{4}could be adjusted upwards if the area code is known to be the local area code of a company office using the hotword regex(xxx), wherexxxis the area code in question. Structure is documented below.
PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleHotwordRegex, PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs                        
- Pattern string
- Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
- GroupIndexes List<int>
- The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
- Pattern string
- Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
- GroupIndexes []int
- The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
- pattern String
- Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
- groupIndexes List<Integer>
- The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
- pattern string
- Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
- groupIndexes number[]
- The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
- pattern str
- Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
- group_indexes Sequence[int]
- The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
- pattern String
- Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
- groupIndexes List<Number>
- The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustment, PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs                        
- FixedLikelihood string
- Set the likelihood of a finding to a fixed value. Either this or relative_likelihood can be set.
Possible values are: VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- RelativeLikelihood int
- Increase or decrease the likelihood by the specified number of levels. For example, if a finding would be POSSIBLE without the detection rule and relativeLikelihood is 1, then it is upgraded to LIKELY, while a value of -1 would downgrade it to UNLIKELY. Likelihood may never drop below VERY_UNLIKELY or exceed VERY_LIKELY, so applying an adjustment of 1 followed by an adjustment of -1 when base likelihood is VERY_LIKELY will result in a final likelihood of LIKELY. Either this or fixed_likelihood can be set.
- FixedLikelihood string
- Set the likelihood of a finding to a fixed value. Either this or relative_likelihood can be set.
Possible values are: VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- RelativeLikelihood int
- Increase or decrease the likelihood by the specified number of levels. For example, if a finding would be POSSIBLE without the detection rule and relativeLikelihood is 1, then it is upgraded to LIKELY, while a value of -1 would downgrade it to UNLIKELY. Likelihood may never drop below VERY_UNLIKELY or exceed VERY_LIKELY, so applying an adjustment of 1 followed by an adjustment of -1 when base likelihood is VERY_LIKELY will result in a final likelihood of LIKELY. Either this or fixed_likelihood can be set.
- fixedLikelihood String
- Set the likelihood of a finding to a fixed value. Either this or relative_likelihood can be set.
Possible values are: VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- relativeLikelihood Integer
- Increase or decrease the likelihood by the specified number of levels. For example, if a finding would be POSSIBLE without the detection rule and relativeLikelihood is 1, then it is upgraded to LIKELY, while a value of -1 would downgrade it to UNLIKELY. Likelihood may never drop below VERY_UNLIKELY or exceed VERY_LIKELY, so applying an adjustment of 1 followed by an adjustment of -1 when base likelihood is VERY_LIKELY will result in a final likelihood of LIKELY. Either this or fixed_likelihood can be set.
- fixedLikelihood string
- Set the likelihood of a finding to a fixed value. Either this or relative_likelihood can be set.
Possible values are: VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- relativeLikelihood number
- Increase or decrease the likelihood by the specified number of levels. For example, if a finding would be POSSIBLE without the detection rule and relativeLikelihood is 1, then it is upgraded to LIKELY, while a value of -1 would downgrade it to UNLIKELY. Likelihood may never drop below VERY_UNLIKELY or exceed VERY_LIKELY, so applying an adjustment of 1 followed by an adjustment of -1 when base likelihood is VERY_LIKELY will result in a final likelihood of LIKELY. Either this or fixed_likelihood can be set.
- fixed_likelihood str
- Set the likelihood of a finding to a fixed value. Either this or relative_likelihood can be set.
Possible values are: VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- relative_likelihood int
- Increase or decrease the likelihood by the specified number of levels. For example, if a finding would be POSSIBLE without the detection rule and relativeLikelihood is 1, then it is upgraded to LIKELY, while a value of -1 would downgrade it to UNLIKELY. Likelihood may never drop below VERY_UNLIKELY or exceed VERY_LIKELY, so applying an adjustment of 1 followed by an adjustment of -1 when base likelihood is VERY_LIKELY will result in a final likelihood of LIKELY. Either this or fixed_likelihood can be set.
- fixedLikelihood String
- Set the likelihood of a finding to a fixed value. Either this or relative_likelihood can be set.
Possible values are: VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- relativeLikelihood Number
- Increase or decrease the likelihood by the specified number of levels. For example, if a finding would be POSSIBLE without the detection rule and relativeLikelihood is 1, then it is upgraded to LIKELY, while a value of -1 would downgrade it to UNLIKELY. Likelihood may never drop below VERY_UNLIKELY or exceed VERY_LIKELY, so applying an adjustment of 1 followed by an adjustment of -1 when base likelihood is VERY_LIKELY will result in a final likelihood of LIKELY. Either this or fixed_likelihood can be set.
PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleProximity, PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleProximityArgs                      
- WindowAfter int
- Number of characters after the finding to consider.
- WindowBefore int
- Number of characters before the finding to consider.
- WindowAfter int
- Number of characters after the finding to consider.
- WindowBefore int
- Number of characters before the finding to consider.
- windowAfter Integer
- Number of characters after the finding to consider.
- windowBefore Integer
- Number of characters before the finding to consider.
- windowAfter number
- Number of characters after the finding to consider.
- windowBefore number
- Number of characters before the finding to consider.
- window_after int
- Number of characters after the finding to consider.
- window_before int
- Number of characters before the finding to consider.
- windowAfter Number
- Number of characters after the finding to consider.
- windowBefore Number
- Number of characters before the finding to consider.
Import
InspectTemplate can be imported using any of these accepted formats:
- {{parent}}/inspectTemplates/{{name}}
- {{parent}}/{{name}}
When using the pulumi import command, InspectTemplate can be imported using one of the formats above. For example:
$ pulumi import gcp:dataloss/preventionInspectTemplate:PreventionInspectTemplate default {{parent}}/inspectTemplates/{{name}}
$ pulumi import gcp:dataloss/preventionInspectTemplate:PreventionInspectTemplate default {{parent}}/{{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the google-betaTerraform Provider.