published on Wednesday, Nov 18, 2026 by Pulumi
published on Wednesday, Nov 18, 2026 by Pulumi
A policy to apply to content based on its inspection findings.
To get more information about ContentPolicy, see:
- API documentation
- How-to Guides
Example Usage
Dlp Content Policy Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const basic = new gcp.dataloss.PreventionContentPolicy("basic", {
parent: "projects/my-project-name/locations/us-west1",
displayName: "tf-test-dlp-content-policy-basic",
inspectConfig: {
infoTypes: [{
name: "EMAIL_ADDRESS",
}],
minLikelihood: "POSSIBLE",
},
rules: [{
conditions: [{
infoTypeCondition: {
infoTypes: {
infoTypeNames: ["EMAIL_ADDRESS"],
},
minCount: 1,
},
}],
action: {
returnVerdict: "BLOCK",
},
}],
defaultAction: {
returnVerdict: "ALLOW",
},
});
import pulumi
import pulumi_gcp as gcp
basic = gcp.dataloss.PreventionContentPolicy("basic",
parent="projects/my-project-name/locations/us-west1",
display_name="tf-test-dlp-content-policy-basic",
inspect_config={
"info_types": [{
"name": "EMAIL_ADDRESS",
}],
"min_likelihood": "POSSIBLE",
},
rules=[{
"conditions": [{
"info_type_condition": {
"info_types": {
"info_type_names": ["EMAIL_ADDRESS"],
},
"min_count": 1,
},
}],
"action": {
"return_verdict": "BLOCK",
},
}],
default_action={
"return_verdict": "ALLOW",
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v10/go/gcp/dataloss"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dataloss.NewPreventionContentPolicy(ctx, "basic", &dataloss.PreventionContentPolicyArgs{
Parent: pulumi.String("projects/my-project-name/locations/us-west1"),
DisplayName: pulumi.String("tf-test-dlp-content-policy-basic"),
InspectConfig: &dataloss.PreventionContentPolicyInspectConfigArgs{
InfoTypes: dataloss.PreventionContentPolicyInspectConfigInfoTypeArray{
&dataloss.PreventionContentPolicyInspectConfigInfoTypeArgs{
Name: pulumi.String("EMAIL_ADDRESS"),
},
},
MinLikelihood: pulumi.String("POSSIBLE"),
},
Rules: dataloss.PreventionContentPolicyRuleArray{
&dataloss.PreventionContentPolicyRuleArgs{
Conditions: dataloss.PreventionContentPolicyRuleConditionArray{
&dataloss.PreventionContentPolicyRuleConditionArgs{
InfoTypeCondition: &dataloss.PreventionContentPolicyRuleConditionInfoTypeConditionArgs{
InfoTypes: &dataloss.PreventionContentPolicyRuleConditionInfoTypeConditionInfoTypesArgs{
InfoTypeNames: pulumi.StringArray{
pulumi.String("EMAIL_ADDRESS"),
},
},
MinCount: pulumi.Int(1),
},
},
},
Action: &dataloss.PreventionContentPolicyRuleActionArgs{
ReturnVerdict: pulumi.String("BLOCK"),
},
},
},
DefaultAction: &dataloss.PreventionContentPolicyDefaultActionArgs{
ReturnVerdict: pulumi.String("ALLOW"),
},
})
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.PreventionContentPolicy("basic", new()
{
Parent = "projects/my-project-name/locations/us-west1",
DisplayName = "tf-test-dlp-content-policy-basic",
InspectConfig = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigArgs
{
InfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigInfoTypeArgs
{
Name = "EMAIL_ADDRESS",
},
},
MinLikelihood = "POSSIBLE",
},
Rules = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyRuleArgs
{
Conditions = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyRuleConditionArgs
{
InfoTypeCondition = new Gcp.DataLoss.Inputs.PreventionContentPolicyRuleConditionInfoTypeConditionArgs
{
InfoTypes = new Gcp.DataLoss.Inputs.PreventionContentPolicyRuleConditionInfoTypeConditionInfoTypesArgs
{
InfoTypeNames = new[]
{
"EMAIL_ADDRESS",
},
},
MinCount = 1,
},
},
},
Action = new Gcp.DataLoss.Inputs.PreventionContentPolicyRuleActionArgs
{
ReturnVerdict = "BLOCK",
},
},
},
DefaultAction = new Gcp.DataLoss.Inputs.PreventionContentPolicyDefaultActionArgs
{
ReturnVerdict = "ALLOW",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.dataloss.PreventionContentPolicy;
import com.pulumi.gcp.dataloss.PreventionContentPolicyArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigInfoTypeArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyRuleArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyRuleConditionArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyRuleConditionInfoTypeConditionArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyRuleConditionInfoTypeConditionInfoTypesArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyRuleActionArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyDefaultActionArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 PreventionContentPolicy("basic", PreventionContentPolicyArgs.builder()
.parent("projects/my-project-name/locations/us-west1")
.displayName("tf-test-dlp-content-policy-basic")
.inspectConfig(PreventionContentPolicyInspectConfigArgs.builder()
.infoTypes(PreventionContentPolicyInspectConfigInfoTypeArgs.builder()
.name("EMAIL_ADDRESS")
.build())
.minLikelihood("POSSIBLE")
.build())
.rules(PreventionContentPolicyRuleArgs.builder()
.conditions(PreventionContentPolicyRuleConditionArgs.builder()
.infoTypeCondition(PreventionContentPolicyRuleConditionInfoTypeConditionArgs.builder()
.infoTypes(PreventionContentPolicyRuleConditionInfoTypeConditionInfoTypesArgs.builder()
.infoTypeNames("EMAIL_ADDRESS")
.build())
.minCount(1)
.build())
.build())
.action(PreventionContentPolicyRuleActionArgs.builder()
.returnVerdict("BLOCK")
.build())
.build())
.defaultAction(PreventionContentPolicyDefaultActionArgs.builder()
.returnVerdict("ALLOW")
.build())
.build());
}
}
resources:
basic:
type: gcp:dataloss:PreventionContentPolicy
properties:
parent: projects/my-project-name/locations/us-west1
displayName: tf-test-dlp-content-policy-basic
inspectConfig:
infoTypes:
- name: EMAIL_ADDRESS
minLikelihood: POSSIBLE
rules:
- conditions:
- infoTypeCondition:
infoTypes:
infoTypeNames:
- EMAIL_ADDRESS
minCount: 1
action:
returnVerdict: BLOCK
defaultAction:
returnVerdict: ALLOW
terraform {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
resource "gcp_dataloss_prevention_content_policy" "basic" {
lifecycle {
create_before_destroy = true
}
parent = "projects/my-project-name/locations/us-west1"
display_name = "tf-test-dlp-content-policy-basic"
inspect_config = {
info_types = [{
name = "EMAIL_ADDRESS"
}]
min_likelihood = "POSSIBLE"
}
rules {
conditions {
info_type_condition = {
info_types = {
info_type_names = ["EMAIL_ADDRESS"]
}
min_count = 1
}
}
action = {
return_verdict = "BLOCK"
}
}
default_action = {
return_verdict = "ALLOW"
}
}
Dlp Content Policy Full
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const basic = new gcp.dataloss.PreventionStoredInfoType("basic", {
parent: "projects/my-project-name/locations/us-west1",
description: "Description for stored info type",
displayName: "tf-test-stored-info-type",
regex: {
pattern: ".*",
groupIndexes: [0],
},
});
const bucket = new gcp.storage.Bucket("bucket", {
name: "dlp_bkt",
location: "US",
uniformBucketLevelAccess: true,
forceDestroy: true,
});
const object = new gcp.storage.BucketObject("object", {
name: "tf-test-wordlist",
bucket: bucket.name,
content: `word1
word2
`,
});
const _default = new gcp.bigquery.Dataset("default", {
datasetId: "dlp_ds",
friendlyName: "tf-test-dataset",
description: "Description for the dataset created by terraform",
location: "US",
defaultTableExpirationMs: 3600000,
deleteContentsOnDestroy: true,
});
const defaultTable = new gcp.bigquery.Table("default", {
datasetId: _default.datasetId,
tableId: "dlp_tbl",
deletionProtection: false,
schema: `[
{
\\"name\\": \\"quantity\\",
\\"type\\": \\"NUMERIC\\",
\\"mode\\": \\"NULLABLE\\",
\\"description\\": \\"The quantity\\"
}
]
`,
});
const full = new gcp.dataloss.PreventionContentPolicy("full", {
parent: "projects/my-project-name/locations/us-west1",
displayName: "tf-test-dlp-content-policy-full",
inspectConfig: {
contentOptions: [
"CONTENT_TEXT",
"CONTENT_IMAGE",
],
includeQuote: true,
excludeInfoTypes: false,
minLikelihood: "LIKELY",
infoTypes: [
{
name: "PHONE_NUMBER",
sensitivityScore: {
score: "SENSITIVITY_LOW",
},
},
{
name: "EMAIL_ADDRESS",
},
{
name: "PERSON_NAME",
version: "latest",
},
{
name: "FIRST_NAME",
},
{
name: "LAST_NAME",
},
{
name: "OBJECT_TYPE/PERSON",
},
{
name: "OBJECT_TYPE/PERSON/PASSPORT",
},
],
minLikelihoodPerInfoTypes: [{
infoType: {
name: "PERSON_NAME",
version: "latest",
sensitivityScore: {
score: "SENSITIVITY_LOW",
},
},
minLikelihood: "LIKELY",
}],
customInfoTypes: [
{
infoType: {
name: "MY_CUSTOM_TYPE",
version: "0.1",
sensitivityScore: {
score: "SENSITIVITY_LOW",
},
},
sensitivityScore: {
score: "SENSITIVITY_MODERATE",
},
likelihood: "UNLIKELY",
exclusionType: "EXCLUSION_TYPE_EXCLUDE",
regex: {
pattern: "test.*",
groupIndexes: [0],
},
detectionRules: [{
hotwordRule: {
hotwordRegex: {
pattern: "password",
groupIndexes: [0],
},
proximity: {
windowBefore: 10,
windowAfter: 10,
},
likelihoodAdjustment: {
fixedLikelihood: "VERY_LIKELY",
},
},
}],
},
{
infoType: {
name: "MY_GDRIVE_LABEL_TYPE",
},
likelihood: "POSSIBLE",
fileLabelInfoType: {
googleDriveLabel: {
labelId: "testLabelId",
labelFieldsToMatches: [{
id: "field1",
value: "val1",
}],
},
},
},
{
infoType: {
name: "MY_SENSITIVITY_LABEL_TYPE",
},
likelihood: "POSSIBLE",
fileLabelInfoType: {
sensitivityLabel: {
guid: "11111111-2222-3333-4444-555555555555",
},
},
},
{
infoType: {
name: "MY_METADATA_KV_TYPE",
},
likelihood: "POSSIBLE",
metadataKeyValueExpression: {
keyRegex: "key.*",
valueRegex: "val.*",
},
},
{
infoType: {
name: "MY_WORD_LIST_TYPE",
},
likelihood: "POSSIBLE",
dictionary: {
wordList: {
words: [
"badword1",
"badword2",
],
},
},
},
{
infoType: {
name: "MY_STORAGE_TYPE",
},
likelihood: "POSSIBLE",
dictionary: {
cloudStoragePath: {
path: pulumi.interpolate`gs://${bucket.name}/${object.name}`,
},
},
},
{
infoType: {
name: "MY_STORED_TYPE",
},
likelihood: "POSSIBLE",
storedType: {
name: basic.id,
},
},
],
limits: {
maxFindingsPerItem: 10,
maxFindingsPerRequest: 50,
maxFindingsPerInfoTypes: [{
maxFindings: 10,
infoType: {
name: "PERSON_NAME",
version: "latest",
sensitivityScore: {
score: "SENSITIVITY_HIGH",
},
},
}],
},
ruleSets: [
{
infoTypes: [{
name: "PHONE_NUMBER",
sensitivityScore: {
score: "SENSITIVITY_LOW",
},
}],
rules: [{
exclusionRule: {
matchingType: "MATCHING_TYPE_FULL_MATCH",
excludeInfoTypes: {
infoTypes: [{
name: "PERSON_NAME",
version: "latest",
sensitivityScore: {
score: "SENSITIVITY_LOW",
},
}],
},
},
}],
},
{
infoTypes: [{
name: "EMAIL_ADDRESS",
}],
rules: [
{
exclusionRule: {
matchingType: "MATCHING_TYPE_PARTIAL_MATCH",
regex: {
pattern: ".*@example\\.com",
groupIndexes: [0],
},
},
},
{
adjustmentRule: {
adjustByMatchingInfoTypes: {
infoTypes: [{
name: "PERSON_NAME",
version: "latest",
sensitivityScore: {
score: "SENSITIVITY_LOW",
},
}],
minLikelihood: "LIKELY",
matchingType: "MATCHING_TYPE_PARTIAL_MATCH",
},
likelihoodAdjustment: {
fixedLikelihood: "VERY_LIKELY",
},
},
},
],
},
{
infoTypes: [{
name: "OBJECT_TYPE/PERSON",
}],
rules: [
{
adjustmentRule: {
adjustByImageFindings: {
infoTypes: [{
name: "OBJECT_TYPE/PERSON/PASSPORT",
version: "latest",
sensitivityScore: {
score: "SENSITIVITY_LOW",
},
}],
minLikelihood: "LIKELY",
imageContainmentType: {
encloses: {},
},
},
likelihoodAdjustment: {
fixedLikelihood: "VERY_LIKELY",
},
},
},
{
exclusionRule: {
matchingType: "MATCHING_TYPE_RULE_SPECIFIC",
excludeByImageFindings: {
infoTypes: [{
name: "OBJECT_TYPE/PERSON/PASSPORT",
version: "latest",
sensitivityScore: {
score: "SENSITIVITY_LOW",
},
}],
imageContainmentType: {
fullyInside: {},
},
},
},
},
],
},
{
infoTypes: [{
name: "PERSON_NAME",
version: "latest",
}],
rules: [
{
exclusionRule: {
matchingType: "MATCHING_TYPE_PARTIAL_MATCH",
dictionary: {
wordList: {
words: ["test"],
},
},
},
},
{
exclusionRule: {
matchingType: "MATCHING_TYPE_PARTIAL_MATCH",
dictionary: {
cloudStoragePath: {
path: pulumi.interpolate`gs://${bucket.name}/${object.name}`,
},
},
},
},
],
},
{
infoTypes: [{
name: "FIRST_NAME",
}],
rules: [{
exclusionRule: {
matchingType: "MATCHING_TYPE_FULL_MATCH",
excludeByHotword: {
hotwordRegex: {
pattern: "zone.*",
groupIndexes: [0],
},
proximity: {
windowBefore: 1,
windowAfter: 2,
},
},
},
}],
},
{
infoTypes: [{
name: "LAST_NAME",
}],
rules: [{
hotwordRule: {
hotwordRegex: {
pattern: "patient.*",
groupIndexes: [0],
},
proximity: {
windowBefore: 1,
windowAfter: 2,
},
likelihoodAdjustment: {
fixedLikelihood: "VERY_LIKELY",
},
},
}],
},
],
},
rules: [{
conditions: [{
infoTypeCondition: {
anyInfoType: {},
minCount: 2,
},
}],
action: {
returnVerdict: "BLOCK",
},
}],
unsupportedFileType: {
returnVerdict: "ALLOW",
},
inputTooLarge: {
returnVerdict: "ALLOW",
},
failedToScanSupportedFileType: {
returnVerdict: "BLOCK",
},
defaultAction: {
returnVerdict: "ALLOW",
},
loggingConfigs: [{
logToBigQuery: {
projectId: defaultTable.project,
datasetId: _default.datasetId,
tableId: defaultTable.tableId,
},
}],
});
import pulumi
import pulumi_gcp as gcp
basic = gcp.dataloss.PreventionStoredInfoType("basic",
parent="projects/my-project-name/locations/us-west1",
description="Description for stored info type",
display_name="tf-test-stored-info-type",
regex={
"pattern": ".*",
"group_indexes": [0],
})
bucket = gcp.storage.Bucket("bucket",
name="dlp_bkt",
location="US",
uniform_bucket_level_access=True,
force_destroy=True)
object = gcp.storage.BucketObject("object",
name="tf-test-wordlist",
bucket=bucket.name,
content="""word1
word2
""")
default = gcp.bigquery.Dataset("default",
dataset_id="dlp_ds",
friendly_name="tf-test-dataset",
description="Description for the dataset created by terraform",
location="US",
default_table_expiration_ms=3600000,
delete_contents_on_destroy=True)
default_table = gcp.bigquery.Table("default",
dataset_id=default.dataset_id,
table_id="dlp_tbl",
deletion_protection=False,
schema="""[
{
\"name\": \"quantity\",
\"type\": \"NUMERIC\",
\"mode\": \"NULLABLE\",
\"description\": \"The quantity\"
}
]
""")
full = gcp.dataloss.PreventionContentPolicy("full",
parent="projects/my-project-name/locations/us-west1",
display_name="tf-test-dlp-content-policy-full",
inspect_config={
"content_options": [
"CONTENT_TEXT",
"CONTENT_IMAGE",
],
"include_quote": True,
"exclude_info_types": False,
"min_likelihood": "LIKELY",
"info_types": [
{
"name": "PHONE_NUMBER",
"sensitivity_score": {
"score": "SENSITIVITY_LOW",
},
},
{
"name": "EMAIL_ADDRESS",
},
{
"name": "PERSON_NAME",
"version": "latest",
},
{
"name": "FIRST_NAME",
},
{
"name": "LAST_NAME",
},
{
"name": "OBJECT_TYPE/PERSON",
},
{
"name": "OBJECT_TYPE/PERSON/PASSPORT",
},
],
"min_likelihood_per_info_types": [{
"info_type": {
"name": "PERSON_NAME",
"version": "latest",
"sensitivity_score": {
"score": "SENSITIVITY_LOW",
},
},
"min_likelihood": "LIKELY",
}],
"custom_info_types": [
{
"info_type": {
"name": "MY_CUSTOM_TYPE",
"version": "0.1",
"sensitivity_score": {
"score": "SENSITIVITY_LOW",
},
},
"sensitivity_score": {
"score": "SENSITIVITY_MODERATE",
},
"likelihood": "UNLIKELY",
"exclusion_type": "EXCLUSION_TYPE_EXCLUDE",
"regex": {
"pattern": "test.*",
"group_indexes": [0],
},
"detection_rules": [{
"hotword_rule": {
"hotword_regex": {
"pattern": "password",
"group_indexes": [0],
},
"proximity": {
"window_before": 10,
"window_after": 10,
},
"likelihood_adjustment": {
"fixed_likelihood": "VERY_LIKELY",
},
},
}],
},
{
"info_type": {
"name": "MY_GDRIVE_LABEL_TYPE",
},
"likelihood": "POSSIBLE",
"file_label_info_type": {
"google_drive_label": {
"label_id": "testLabelId",
"label_fields_to_matches": [{
"id": "field1",
"value": "val1",
}],
},
},
},
{
"info_type": {
"name": "MY_SENSITIVITY_LABEL_TYPE",
},
"likelihood": "POSSIBLE",
"file_label_info_type": {
"sensitivity_label": {
"guid": "11111111-2222-3333-4444-555555555555",
},
},
},
{
"info_type": {
"name": "MY_METADATA_KV_TYPE",
},
"likelihood": "POSSIBLE",
"metadata_key_value_expression": {
"key_regex": "key.*",
"value_regex": "val.*",
},
},
{
"info_type": {
"name": "MY_WORD_LIST_TYPE",
},
"likelihood": "POSSIBLE",
"dictionary": {
"word_list": {
"words": [
"badword1",
"badword2",
],
},
},
},
{
"info_type": {
"name": "MY_STORAGE_TYPE",
},
"likelihood": "POSSIBLE",
"dictionary": {
"cloud_storage_path": {
"path": pulumi.Output.all(
bucketName=bucket.name,
objectName=object.name
).apply(lambda resolved_outputs: f"gs://{resolved_outputs['bucketName']}/{resolved_outputs['objectName']}")
,
},
},
},
{
"info_type": {
"name": "MY_STORED_TYPE",
},
"likelihood": "POSSIBLE",
"stored_type": {
"name": basic.id,
},
},
],
"limits": {
"max_findings_per_item": 10,
"max_findings_per_request": 50,
"max_findings_per_info_types": [{
"max_findings": 10,
"info_type": {
"name": "PERSON_NAME",
"version": "latest",
"sensitivity_score": {
"score": "SENSITIVITY_HIGH",
},
},
}],
},
"rule_sets": [
{
"info_types": [{
"name": "PHONE_NUMBER",
"sensitivity_score": {
"score": "SENSITIVITY_LOW",
},
}],
"rules": [{
"exclusion_rule": {
"matching_type": "MATCHING_TYPE_FULL_MATCH",
"exclude_info_types": {
"info_types": [{
"name": "PERSON_NAME",
"version": "latest",
"sensitivity_score": {
"score": "SENSITIVITY_LOW",
},
}],
},
},
}],
},
{
"info_types": [{
"name": "EMAIL_ADDRESS",
}],
"rules": [
{
"exclusion_rule": {
"matching_type": "MATCHING_TYPE_PARTIAL_MATCH",
"regex": {
"pattern": ".*@example\\.com",
"group_indexes": [0],
},
},
},
{
"adjustment_rule": {
"adjust_by_matching_info_types": {
"info_types": [{
"name": "PERSON_NAME",
"version": "latest",
"sensitivity_score": {
"score": "SENSITIVITY_LOW",
},
}],
"min_likelihood": "LIKELY",
"matching_type": "MATCHING_TYPE_PARTIAL_MATCH",
},
"likelihood_adjustment": {
"fixed_likelihood": "VERY_LIKELY",
},
},
},
],
},
{
"info_types": [{
"name": "OBJECT_TYPE/PERSON",
}],
"rules": [
{
"adjustment_rule": {
"adjust_by_image_findings": {
"info_types": [{
"name": "OBJECT_TYPE/PERSON/PASSPORT",
"version": "latest",
"sensitivity_score": {
"score": "SENSITIVITY_LOW",
},
}],
"min_likelihood": "LIKELY",
"image_containment_type": {
"encloses": {},
},
},
"likelihood_adjustment": {
"fixed_likelihood": "VERY_LIKELY",
},
},
},
{
"exclusion_rule": {
"matching_type": "MATCHING_TYPE_RULE_SPECIFIC",
"exclude_by_image_findings": {
"info_types": [{
"name": "OBJECT_TYPE/PERSON/PASSPORT",
"version": "latest",
"sensitivity_score": {
"score": "SENSITIVITY_LOW",
},
}],
"image_containment_type": {
"fully_inside": {},
},
},
},
},
],
},
{
"info_types": [{
"name": "PERSON_NAME",
"version": "latest",
}],
"rules": [
{
"exclusion_rule": {
"matching_type": "MATCHING_TYPE_PARTIAL_MATCH",
"dictionary": {
"word_list": {
"words": ["test"],
},
},
},
},
{
"exclusion_rule": {
"matching_type": "MATCHING_TYPE_PARTIAL_MATCH",
"dictionary": {
"cloud_storage_path": {
"path": pulumi.Output.all(
bucketName=bucket.name,
objectName=object.name
).apply(lambda resolved_outputs: f"gs://{resolved_outputs['bucketName']}/{resolved_outputs['objectName']}")
,
},
},
},
},
],
},
{
"info_types": [{
"name": "FIRST_NAME",
}],
"rules": [{
"exclusion_rule": {
"matching_type": "MATCHING_TYPE_FULL_MATCH",
"exclude_by_hotword": {
"hotword_regex": {
"pattern": "zone.*",
"group_indexes": [0],
},
"proximity": {
"window_before": 1,
"window_after": 2,
},
},
},
}],
},
{
"info_types": [{
"name": "LAST_NAME",
}],
"rules": [{
"hotword_rule": {
"hotword_regex": {
"pattern": "patient.*",
"group_indexes": [0],
},
"proximity": {
"window_before": 1,
"window_after": 2,
},
"likelihood_adjustment": {
"fixed_likelihood": "VERY_LIKELY",
},
},
}],
},
],
},
rules=[{
"conditions": [{
"info_type_condition": {
"any_info_type": {},
"min_count": 2,
},
}],
"action": {
"return_verdict": "BLOCK",
},
}],
unsupported_file_type={
"return_verdict": "ALLOW",
},
input_too_large={
"return_verdict": "ALLOW",
},
failed_to_scan_supported_file_type={
"return_verdict": "BLOCK",
},
default_action={
"return_verdict": "ALLOW",
},
logging_configs=[{
"log_to_big_query": {
"project_id": default_table.project,
"dataset_id": default.dataset_id,
"table_id": default_table.table_id,
},
}])
package main
import (
"fmt"
"github.com/pulumi/pulumi-gcp/sdk/v10/go/gcp/bigquery"
"github.com/pulumi/pulumi-gcp/sdk/v10/go/gcp/dataloss"
"github.com/pulumi/pulumi-gcp/sdk/v10/go/gcp/storage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
basic, err := dataloss.NewPreventionStoredInfoType(ctx, "basic", &dataloss.PreventionStoredInfoTypeArgs{
Parent: pulumi.String("projects/my-project-name/locations/us-west1"),
Description: pulumi.String("Description for stored info type"),
DisplayName: pulumi.String("tf-test-stored-info-type"),
Regex: &dataloss.PreventionStoredInfoTypeRegexArgs{
Pattern: pulumi.String(".*"),
GroupIndexes: pulumi.IntArray{
pulumi.Int(0),
},
},
})
if err != nil {
return err
}
bucket, err := storage.NewBucket(ctx, "bucket", &storage.BucketArgs{
Name: pulumi.String("dlp_bkt"),
Location: pulumi.String("US"),
UniformBucketLevelAccess: pulumi.Bool(true),
ForceDestroy: pulumi.Bool(true),
})
if err != nil {
return err
}
object, err := storage.NewBucketObject(ctx, "object", &storage.BucketObjectArgs{
Name: pulumi.String("tf-test-wordlist"),
Bucket: bucket.Name,
Content: pulumi.String("word1\nword2\n"),
})
if err != nil {
return err
}
_default, err := bigquery.NewDataset(ctx, "default", &bigquery.DatasetArgs{
DatasetId: pulumi.String("dlp_ds"),
FriendlyName: pulumi.String("tf-test-dataset"),
Description: pulumi.String("Description for the dataset created by terraform"),
Location: pulumi.String("US"),
DefaultTableExpirationMs: pulumi.Int(3600000),
DeleteContentsOnDestroy: pulumi.Bool(true),
})
if err != nil {
return err
}
defaultTable, err := bigquery.NewTable(ctx, "default", &bigquery.TableArgs{
DatasetId: _default.DatasetId,
TableId: pulumi.String("dlp_tbl"),
DeletionProtection: pulumi.Bool(false),
Schema: pulumi.String(`[
{
\"name\": \"quantity\",
\"type\": \"NUMERIC\",
\"mode\": \"NULLABLE\",
\"description\": \"The quantity\"
}
]
`),
})
if err != nil {
return err
}
_, err = dataloss.NewPreventionContentPolicy(ctx, "full", &dataloss.PreventionContentPolicyArgs{
Parent: pulumi.String("projects/my-project-name/locations/us-west1"),
DisplayName: pulumi.String("tf-test-dlp-content-policy-full"),
InspectConfig: &dataloss.PreventionContentPolicyInspectConfigArgs{
ContentOptions: pulumi.StringArray{
pulumi.String("CONTENT_TEXT"),
pulumi.String("CONTENT_IMAGE"),
},
IncludeQuote: pulumi.Bool(true),
ExcludeInfoTypes: pulumi.Bool(false),
MinLikelihood: pulumi.String("LIKELY"),
InfoTypes: dataloss.PreventionContentPolicyInspectConfigInfoTypeArray{
&dataloss.PreventionContentPolicyInspectConfigInfoTypeArgs{
Name: pulumi.String("PHONE_NUMBER"),
SensitivityScore: &dataloss.PreventionContentPolicyInspectConfigInfoTypeSensitivityScoreArgs{
Score: pulumi.String("SENSITIVITY_LOW"),
},
},
&dataloss.PreventionContentPolicyInspectConfigInfoTypeArgs{
Name: pulumi.String("EMAIL_ADDRESS"),
},
&dataloss.PreventionContentPolicyInspectConfigInfoTypeArgs{
Name: pulumi.String("PERSON_NAME"),
Version: pulumi.String("latest"),
},
&dataloss.PreventionContentPolicyInspectConfigInfoTypeArgs{
Name: pulumi.String("FIRST_NAME"),
},
&dataloss.PreventionContentPolicyInspectConfigInfoTypeArgs{
Name: pulumi.String("LAST_NAME"),
},
&dataloss.PreventionContentPolicyInspectConfigInfoTypeArgs{
Name: pulumi.String("OBJECT_TYPE/PERSON"),
},
&dataloss.PreventionContentPolicyInspectConfigInfoTypeArgs{
Name: pulumi.String("OBJECT_TYPE/PERSON/PASSPORT"),
},
},
MinLikelihoodPerInfoTypes: dataloss.PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeArray{
&dataloss.PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeArgs{
InfoType: &dataloss.PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeInfoTypeArgs{
Name: pulumi.String("PERSON_NAME"),
Version: pulumi.String("latest"),
SensitivityScore: &dataloss.PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeInfoTypeSensitivityScoreArgs{
Score: pulumi.String("SENSITIVITY_LOW"),
},
},
MinLikelihood: pulumi.String("LIKELY"),
},
},
CustomInfoTypes: dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeArray{
&dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeArgs{
InfoType: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeArgs{
Name: pulumi.String("MY_CUSTOM_TYPE"),
Version: pulumi.String("0.1"),
SensitivityScore: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeSensitivityScoreArgs{
Score: pulumi.String("SENSITIVITY_LOW"),
},
},
SensitivityScore: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeSensitivityScoreArgs{
Score: pulumi.String("SENSITIVITY_MODERATE"),
},
Likelihood: pulumi.String("UNLIKELY"),
ExclusionType: pulumi.String("EXCLUSION_TYPE_EXCLUDE"),
Regex: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeRegexArgs{
Pattern: pulumi.String("test.*"),
GroupIndexes: pulumi.IntArray{
pulumi.Int(0),
},
},
DetectionRules: dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleArray{
&dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleArgs{
HotwordRule: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleArgs{
HotwordRegex: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleHotwordRegexArgs{
Pattern: pulumi.String("password"),
GroupIndexes: pulumi.IntArray{
pulumi.Int(0),
},
},
Proximity: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleProximityArgs{
WindowBefore: pulumi.Int(10),
WindowAfter: pulumi.Int(10),
},
LikelihoodAdjustment: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleLikelihoodAdjustmentArgs{
FixedLikelihood: pulumi.String("VERY_LIKELY"),
},
},
},
},
},
&dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeArgs{
InfoType: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeArgs{
Name: pulumi.String("MY_GDRIVE_LABEL_TYPE"),
},
Likelihood: pulumi.String("POSSIBLE"),
FileLabelInfoType: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeArgs{
GoogleDriveLabel: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeGoogleDriveLabelArgs{
LabelId: pulumi.String("testLabelId"),
LabelFieldsToMatches: dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeGoogleDriveLabelLabelFieldsToMatchArray{
&dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeGoogleDriveLabelLabelFieldsToMatchArgs{
Id: pulumi.String("field1"),
Value: pulumi.String("val1"),
},
},
},
},
},
&dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeArgs{
InfoType: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeArgs{
Name: pulumi.String("MY_SENSITIVITY_LABEL_TYPE"),
},
Likelihood: pulumi.String("POSSIBLE"),
FileLabelInfoType: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeArgs{
SensitivityLabel: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeSensitivityLabelArgs{
Guid: pulumi.String("11111111-2222-3333-4444-555555555555"),
},
},
},
&dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeArgs{
InfoType: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeArgs{
Name: pulumi.String("MY_METADATA_KV_TYPE"),
},
Likelihood: pulumi.String("POSSIBLE"),
MetadataKeyValueExpression: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeMetadataKeyValueExpressionArgs{
KeyRegex: pulumi.String("key.*"),
ValueRegex: pulumi.String("val.*"),
},
},
&dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeArgs{
InfoType: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeArgs{
Name: pulumi.String("MY_WORD_LIST_TYPE"),
},
Likelihood: pulumi.String("POSSIBLE"),
Dictionary: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryArgs{
WordList: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryWordListArgs{
Words: pulumi.StringArray{
pulumi.String("badword1"),
pulumi.String("badword2"),
},
},
},
},
&dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeArgs{
InfoType: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeArgs{
Name: pulumi.String("MY_STORAGE_TYPE"),
},
Likelihood: pulumi.String("POSSIBLE"),
Dictionary: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryArgs{
CloudStoragePath: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryCloudStoragePathArgs{
Path: pulumi.All(bucket.Name, object.Name).ApplyT(func(_args []interface{}) (string, error) {
bucketName := _args[0].(string)
objectName := _args[1].(string)
return fmt.Sprintf("gs://%v/%v", bucketName, objectName), nil
}).(pulumi.StringOutput),
},
},
},
&dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeArgs{
InfoType: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeArgs{
Name: pulumi.String("MY_STORED_TYPE"),
},
Likelihood: pulumi.String("POSSIBLE"),
StoredType: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeStoredTypeArgs{
Name: basic.ID(),
},
},
},
Limits: &dataloss.PreventionContentPolicyInspectConfigLimitsArgs{
MaxFindingsPerItem: pulumi.Int(10),
MaxFindingsPerRequest: pulumi.Int(50),
MaxFindingsPerInfoTypes: dataloss.PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeArray{
&dataloss.PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeArgs{
MaxFindings: pulumi.Int(10),
InfoType: &dataloss.PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeArgs{
Name: pulumi.String("PERSON_NAME"),
Version: pulumi.String("latest"),
SensitivityScore: &dataloss.PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeSensitivityScoreArgs{
Score: pulumi.String("SENSITIVITY_HIGH"),
},
},
},
},
},
RuleSets: dataloss.PreventionContentPolicyInspectConfigRuleSetArray{
&dataloss.PreventionContentPolicyInspectConfigRuleSetArgs{
InfoTypes: dataloss.PreventionContentPolicyInspectConfigRuleSetInfoTypeArray{
&dataloss.PreventionContentPolicyInspectConfigRuleSetInfoTypeArgs{
Name: pulumi.String("PHONE_NUMBER"),
SensitivityScore: &dataloss.PreventionContentPolicyInspectConfigRuleSetInfoTypeSensitivityScoreArgs{
Score: pulumi.String("SENSITIVITY_LOW"),
},
},
},
Rules: dataloss.PreventionContentPolicyInspectConfigRuleSetRuleArray{
&dataloss.PreventionContentPolicyInspectConfigRuleSetRuleArgs{
ExclusionRule: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleArgs{
MatchingType: pulumi.String("MATCHING_TYPE_FULL_MATCH"),
ExcludeInfoTypes: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesArgs{
InfoTypes: dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeArray{
&dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeArgs{
Name: pulumi.String("PERSON_NAME"),
Version: pulumi.String("latest"),
SensitivityScore: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeSensitivityScoreArgs{
Score: pulumi.String("SENSITIVITY_LOW"),
},
},
},
},
},
},
},
},
&dataloss.PreventionContentPolicyInspectConfigRuleSetArgs{
InfoTypes: dataloss.PreventionContentPolicyInspectConfigRuleSetInfoTypeArray{
&dataloss.PreventionContentPolicyInspectConfigRuleSetInfoTypeArgs{
Name: pulumi.String("EMAIL_ADDRESS"),
},
},
Rules: dataloss.PreventionContentPolicyInspectConfigRuleSetRuleArray{
&dataloss.PreventionContentPolicyInspectConfigRuleSetRuleArgs{
ExclusionRule: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleArgs{
MatchingType: pulumi.String("MATCHING_TYPE_PARTIAL_MATCH"),
Regex: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleRegexArgs{
Pattern: pulumi.String(".*@example\\.com"),
GroupIndexes: pulumi.IntArray{
pulumi.Int(0),
},
},
},
},
&dataloss.PreventionContentPolicyInspectConfigRuleSetRuleArgs{
AdjustmentRule: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleArgs{
AdjustByMatchingInfoTypes: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesArgs{
InfoTypes: dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesInfoTypeArray{
&dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesInfoTypeArgs{
Name: pulumi.String("PERSON_NAME"),
Version: pulumi.String("latest"),
SensitivityScore: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesInfoTypeSensitivityScoreArgs{
Score: pulumi.String("SENSITIVITY_LOW"),
},
},
},
MinLikelihood: pulumi.String("LIKELY"),
MatchingType: pulumi.String("MATCHING_TYPE_PARTIAL_MATCH"),
},
LikelihoodAdjustment: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleLikelihoodAdjustmentArgs{
FixedLikelihood: pulumi.String("VERY_LIKELY"),
},
},
},
},
},
&dataloss.PreventionContentPolicyInspectConfigRuleSetArgs{
InfoTypes: dataloss.PreventionContentPolicyInspectConfigRuleSetInfoTypeArray{
&dataloss.PreventionContentPolicyInspectConfigRuleSetInfoTypeArgs{
Name: pulumi.String("OBJECT_TYPE/PERSON"),
},
},
Rules: dataloss.PreventionContentPolicyInspectConfigRuleSetRuleArray{
&dataloss.PreventionContentPolicyInspectConfigRuleSetRuleArgs{
AdjustmentRule: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleArgs{
AdjustByImageFindings: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsArgs{
InfoTypes: dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsInfoTypeArray{
&dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsInfoTypeArgs{
Name: pulumi.String("OBJECT_TYPE/PERSON/PASSPORT"),
Version: pulumi.String("latest"),
SensitivityScore: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsInfoTypeSensitivityScoreArgs{
Score: pulumi.String("SENSITIVITY_LOW"),
},
},
},
MinLikelihood: pulumi.String("LIKELY"),
ImageContainmentType: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsImageContainmentTypeArgs{
Encloses: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsImageContainmentTypeEnclosesArgs{},
},
},
LikelihoodAdjustment: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleLikelihoodAdjustmentArgs{
FixedLikelihood: pulumi.String("VERY_LIKELY"),
},
},
},
&dataloss.PreventionContentPolicyInspectConfigRuleSetRuleArgs{
ExclusionRule: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleArgs{
MatchingType: pulumi.String("MATCHING_TYPE_RULE_SPECIFIC"),
ExcludeByImageFindings: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsArgs{
InfoTypes: dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsInfoTypeArray{
&dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsInfoTypeArgs{
Name: pulumi.String("OBJECT_TYPE/PERSON/PASSPORT"),
Version: pulumi.String("latest"),
SensitivityScore: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsInfoTypeSensitivityScoreArgs{
Score: pulumi.String("SENSITIVITY_LOW"),
},
},
},
ImageContainmentType: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsImageContainmentTypeArgs{
FullyInside: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsImageContainmentTypeFullyInsideArgs{},
},
},
},
},
},
},
&dataloss.PreventionContentPolicyInspectConfigRuleSetArgs{
InfoTypes: dataloss.PreventionContentPolicyInspectConfigRuleSetInfoTypeArray{
&dataloss.PreventionContentPolicyInspectConfigRuleSetInfoTypeArgs{
Name: pulumi.String("PERSON_NAME"),
Version: pulumi.String("latest"),
},
},
Rules: dataloss.PreventionContentPolicyInspectConfigRuleSetRuleArray{
&dataloss.PreventionContentPolicyInspectConfigRuleSetRuleArgs{
ExclusionRule: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleArgs{
MatchingType: pulumi.String("MATCHING_TYPE_PARTIAL_MATCH"),
Dictionary: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryArgs{
WordList: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryWordListArgs{
Words: pulumi.StringArray{
pulumi.String("test"),
},
},
},
},
},
&dataloss.PreventionContentPolicyInspectConfigRuleSetRuleArgs{
ExclusionRule: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleArgs{
MatchingType: pulumi.String("MATCHING_TYPE_PARTIAL_MATCH"),
Dictionary: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryArgs{
CloudStoragePath: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryCloudStoragePathArgs{
Path: pulumi.All(bucket.Name, object.Name).ApplyT(func(_args []interface{}) (string, error) {
bucketName := _args[0].(string)
objectName := _args[1].(string)
return fmt.Sprintf("gs://%v/%v", bucketName, objectName), nil
}).(pulumi.StringOutput),
},
},
},
},
},
},
&dataloss.PreventionContentPolicyInspectConfigRuleSetArgs{
InfoTypes: dataloss.PreventionContentPolicyInspectConfigRuleSetInfoTypeArray{
&dataloss.PreventionContentPolicyInspectConfigRuleSetInfoTypeArgs{
Name: pulumi.String("FIRST_NAME"),
},
},
Rules: dataloss.PreventionContentPolicyInspectConfigRuleSetRuleArray{
&dataloss.PreventionContentPolicyInspectConfigRuleSetRuleArgs{
ExclusionRule: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleArgs{
MatchingType: pulumi.String("MATCHING_TYPE_FULL_MATCH"),
ExcludeByHotword: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordArgs{
HotwordRegex: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordHotwordRegexArgs{
Pattern: pulumi.String("zone.*"),
GroupIndexes: pulumi.IntArray{
pulumi.Int(0),
},
},
Proximity: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordProximityArgs{
WindowBefore: pulumi.Int(1),
WindowAfter: pulumi.Int(2),
},
},
},
},
},
},
&dataloss.PreventionContentPolicyInspectConfigRuleSetArgs{
InfoTypes: dataloss.PreventionContentPolicyInspectConfigRuleSetInfoTypeArray{
&dataloss.PreventionContentPolicyInspectConfigRuleSetInfoTypeArgs{
Name: pulumi.String("LAST_NAME"),
},
},
Rules: dataloss.PreventionContentPolicyInspectConfigRuleSetRuleArray{
&dataloss.PreventionContentPolicyInspectConfigRuleSetRuleArgs{
HotwordRule: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleArgs{
HotwordRegex: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs{
Pattern: pulumi.String("patient.*"),
GroupIndexes: pulumi.IntArray{
pulumi.Int(0),
},
},
Proximity: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleProximityArgs{
WindowBefore: pulumi.Int(1),
WindowAfter: pulumi.Int(2),
},
LikelihoodAdjustment: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs{
FixedLikelihood: pulumi.String("VERY_LIKELY"),
},
},
},
},
},
},
},
Rules: dataloss.PreventionContentPolicyRuleArray{
&dataloss.PreventionContentPolicyRuleArgs{
Conditions: dataloss.PreventionContentPolicyRuleConditionArray{
&dataloss.PreventionContentPolicyRuleConditionArgs{
InfoTypeCondition: &dataloss.PreventionContentPolicyRuleConditionInfoTypeConditionArgs{
AnyInfoType: &dataloss.PreventionContentPolicyRuleConditionInfoTypeConditionAnyInfoTypeArgs{},
MinCount: pulumi.Int(2),
},
},
},
Action: &dataloss.PreventionContentPolicyRuleActionArgs{
ReturnVerdict: pulumi.String("BLOCK"),
},
},
},
UnsupportedFileType: &dataloss.PreventionContentPolicyUnsupportedFileTypeArgs{
ReturnVerdict: pulumi.String("ALLOW"),
},
InputTooLarge: &dataloss.PreventionContentPolicyInputTooLargeArgs{
ReturnVerdict: pulumi.String("ALLOW"),
},
FailedToScanSupportedFileType: &dataloss.PreventionContentPolicyFailedToScanSupportedFileTypeArgs{
ReturnVerdict: pulumi.String("BLOCK"),
},
DefaultAction: &dataloss.PreventionContentPolicyDefaultActionArgs{
ReturnVerdict: pulumi.String("ALLOW"),
},
LoggingConfigs: dataloss.PreventionContentPolicyLoggingConfigArray{
&dataloss.PreventionContentPolicyLoggingConfigArgs{
LogToBigQuery: &dataloss.PreventionContentPolicyLoggingConfigLogToBigQueryArgs{
ProjectId: defaultTable.Project,
DatasetId: _default.DatasetId,
TableId: defaultTable.TableId,
},
},
},
})
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.PreventionStoredInfoType("basic", new()
{
Parent = "projects/my-project-name/locations/us-west1",
Description = "Description for stored info type",
DisplayName = "tf-test-stored-info-type",
Regex = new Gcp.DataLoss.Inputs.PreventionStoredInfoTypeRegexArgs
{
Pattern = ".*",
GroupIndexes = new[]
{
0,
},
},
});
var bucket = new Gcp.Storage.Bucket("bucket", new()
{
Name = "dlp_bkt",
Location = "US",
UniformBucketLevelAccess = true,
ForceDestroy = true,
});
var @object = new Gcp.Storage.BucketObject("object", new()
{
Name = "tf-test-wordlist",
Bucket = bucket.Name,
Content = @"word1
word2
",
});
var @default = new Gcp.BigQuery.Dataset("default", new()
{
DatasetId = "dlp_ds",
FriendlyName = "tf-test-dataset",
Description = "Description for the dataset created by terraform",
Location = "US",
DefaultTableExpirationMs = 3600000,
DeleteContentsOnDestroy = true,
});
var defaultTable = new Gcp.BigQuery.Table("default", new()
{
DatasetId = @default.DatasetId,
TableId = "dlp_tbl",
DeletionProtection = false,
Schema = @"[
{
\""name\"": \""quantity\"",
\""type\"": \""NUMERIC\"",
\""mode\"": \""NULLABLE\"",
\""description\"": \""The quantity\""
}
]
",
});
var full = new Gcp.DataLoss.PreventionContentPolicy("full", new()
{
Parent = "projects/my-project-name/locations/us-west1",
DisplayName = "tf-test-dlp-content-policy-full",
InspectConfig = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigArgs
{
ContentOptions = new[]
{
"CONTENT_TEXT",
"CONTENT_IMAGE",
},
IncludeQuote = true,
ExcludeInfoTypes = false,
MinLikelihood = "LIKELY",
InfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigInfoTypeArgs
{
Name = "PHONE_NUMBER",
SensitivityScore = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigInfoTypeSensitivityScoreArgs
{
Score = "SENSITIVITY_LOW",
},
},
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigInfoTypeArgs
{
Name = "EMAIL_ADDRESS",
},
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigInfoTypeArgs
{
Name = "PERSON_NAME",
Version = "latest",
},
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigInfoTypeArgs
{
Name = "FIRST_NAME",
},
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigInfoTypeArgs
{
Name = "LAST_NAME",
},
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigInfoTypeArgs
{
Name = "OBJECT_TYPE/PERSON",
},
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigInfoTypeArgs
{
Name = "OBJECT_TYPE/PERSON/PASSPORT",
},
},
MinLikelihoodPerInfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeArgs
{
InfoType = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeInfoTypeArgs
{
Name = "PERSON_NAME",
Version = "latest",
SensitivityScore = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeInfoTypeSensitivityScoreArgs
{
Score = "SENSITIVITY_LOW",
},
},
MinLikelihood = "LIKELY",
},
},
CustomInfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeArgs
{
InfoType = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeArgs
{
Name = "MY_CUSTOM_TYPE",
Version = "0.1",
SensitivityScore = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeSensitivityScoreArgs
{
Score = "SENSITIVITY_LOW",
},
},
SensitivityScore = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeSensitivityScoreArgs
{
Score = "SENSITIVITY_MODERATE",
},
Likelihood = "UNLIKELY",
ExclusionType = "EXCLUSION_TYPE_EXCLUDE",
Regex = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeRegexArgs
{
Pattern = "test.*",
GroupIndexes = new[]
{
0,
},
},
DetectionRules = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleArgs
{
HotwordRule = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleArgs
{
HotwordRegex = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleHotwordRegexArgs
{
Pattern = "password",
GroupIndexes = new[]
{
0,
},
},
Proximity = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleProximityArgs
{
WindowBefore = 10,
WindowAfter = 10,
},
LikelihoodAdjustment = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleLikelihoodAdjustmentArgs
{
FixedLikelihood = "VERY_LIKELY",
},
},
},
},
},
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeArgs
{
InfoType = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeArgs
{
Name = "MY_GDRIVE_LABEL_TYPE",
},
Likelihood = "POSSIBLE",
FileLabelInfoType = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeArgs
{
GoogleDriveLabel = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeGoogleDriveLabelArgs
{
LabelId = "testLabelId",
LabelFieldsToMatches = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeGoogleDriveLabelLabelFieldsToMatchArgs
{
Id = "field1",
Value = "val1",
},
},
},
},
},
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeArgs
{
InfoType = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeArgs
{
Name = "MY_SENSITIVITY_LABEL_TYPE",
},
Likelihood = "POSSIBLE",
FileLabelInfoType = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeArgs
{
SensitivityLabel = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeSensitivityLabelArgs
{
Guid = "11111111-2222-3333-4444-555555555555",
},
},
},
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeArgs
{
InfoType = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeArgs
{
Name = "MY_METADATA_KV_TYPE",
},
Likelihood = "POSSIBLE",
MetadataKeyValueExpression = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeMetadataKeyValueExpressionArgs
{
KeyRegex = "key.*",
ValueRegex = "val.*",
},
},
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeArgs
{
InfoType = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeArgs
{
Name = "MY_WORD_LIST_TYPE",
},
Likelihood = "POSSIBLE",
Dictionary = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryArgs
{
WordList = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryWordListArgs
{
Words = new[]
{
"badword1",
"badword2",
},
},
},
},
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeArgs
{
InfoType = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeArgs
{
Name = "MY_STORAGE_TYPE",
},
Likelihood = "POSSIBLE",
Dictionary = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryArgs
{
CloudStoragePath = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryCloudStoragePathArgs
{
Path = Output.Tuple(bucket.Name, @object.Name).Apply(values =>
{
var bucketName = values.Item1;
var objectName = values.Item2;
return $"gs://{bucketName}/{objectName}";
}),
},
},
},
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeArgs
{
InfoType = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeArgs
{
Name = "MY_STORED_TYPE",
},
Likelihood = "POSSIBLE",
StoredType = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeStoredTypeArgs
{
Name = basic.Id,
},
},
},
Limits = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigLimitsArgs
{
MaxFindingsPerItem = 10,
MaxFindingsPerRequest = 50,
MaxFindingsPerInfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeArgs
{
MaxFindings = 10,
InfoType = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeArgs
{
Name = "PERSON_NAME",
Version = "latest",
SensitivityScore = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeSensitivityScoreArgs
{
Score = "SENSITIVITY_HIGH",
},
},
},
},
},
RuleSets = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetArgs
{
InfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetInfoTypeArgs
{
Name = "PHONE_NUMBER",
SensitivityScore = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetInfoTypeSensitivityScoreArgs
{
Score = "SENSITIVITY_LOW",
},
},
},
Rules = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleArgs
{
ExclusionRule = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleArgs
{
MatchingType = "MATCHING_TYPE_FULL_MATCH",
ExcludeInfoTypes = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesArgs
{
InfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeArgs
{
Name = "PERSON_NAME",
Version = "latest",
SensitivityScore = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeSensitivityScoreArgs
{
Score = "SENSITIVITY_LOW",
},
},
},
},
},
},
},
},
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetArgs
{
InfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetInfoTypeArgs
{
Name = "EMAIL_ADDRESS",
},
},
Rules = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleArgs
{
ExclusionRule = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleArgs
{
MatchingType = "MATCHING_TYPE_PARTIAL_MATCH",
Regex = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleRegexArgs
{
Pattern = ".*@example\\.com",
GroupIndexes = new[]
{
0,
},
},
},
},
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleArgs
{
AdjustmentRule = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleArgs
{
AdjustByMatchingInfoTypes = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesArgs
{
InfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesInfoTypeArgs
{
Name = "PERSON_NAME",
Version = "latest",
SensitivityScore = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesInfoTypeSensitivityScoreArgs
{
Score = "SENSITIVITY_LOW",
},
},
},
MinLikelihood = "LIKELY",
MatchingType = "MATCHING_TYPE_PARTIAL_MATCH",
},
LikelihoodAdjustment = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleLikelihoodAdjustmentArgs
{
FixedLikelihood = "VERY_LIKELY",
},
},
},
},
},
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetArgs
{
InfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetInfoTypeArgs
{
Name = "OBJECT_TYPE/PERSON",
},
},
Rules = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleArgs
{
AdjustmentRule = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleArgs
{
AdjustByImageFindings = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsArgs
{
InfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsInfoTypeArgs
{
Name = "OBJECT_TYPE/PERSON/PASSPORT",
Version = "latest",
SensitivityScore = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsInfoTypeSensitivityScoreArgs
{
Score = "SENSITIVITY_LOW",
},
},
},
MinLikelihood = "LIKELY",
ImageContainmentType = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsImageContainmentTypeArgs
{
Encloses = null,
},
},
LikelihoodAdjustment = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleLikelihoodAdjustmentArgs
{
FixedLikelihood = "VERY_LIKELY",
},
},
},
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleArgs
{
ExclusionRule = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleArgs
{
MatchingType = "MATCHING_TYPE_RULE_SPECIFIC",
ExcludeByImageFindings = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsArgs
{
InfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsInfoTypeArgs
{
Name = "OBJECT_TYPE/PERSON/PASSPORT",
Version = "latest",
SensitivityScore = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsInfoTypeSensitivityScoreArgs
{
Score = "SENSITIVITY_LOW",
},
},
},
ImageContainmentType = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsImageContainmentTypeArgs
{
FullyInside = null,
},
},
},
},
},
},
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetArgs
{
InfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetInfoTypeArgs
{
Name = "PERSON_NAME",
Version = "latest",
},
},
Rules = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleArgs
{
ExclusionRule = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleArgs
{
MatchingType = "MATCHING_TYPE_PARTIAL_MATCH",
Dictionary = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryArgs
{
WordList = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryWordListArgs
{
Words = new[]
{
"test",
},
},
},
},
},
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleArgs
{
ExclusionRule = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleArgs
{
MatchingType = "MATCHING_TYPE_PARTIAL_MATCH",
Dictionary = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryArgs
{
CloudStoragePath = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryCloudStoragePathArgs
{
Path = Output.Tuple(bucket.Name, @object.Name).Apply(values =>
{
var bucketName = values.Item1;
var objectName = values.Item2;
return $"gs://{bucketName}/{objectName}";
}),
},
},
},
},
},
},
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetArgs
{
InfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetInfoTypeArgs
{
Name = "FIRST_NAME",
},
},
Rules = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleArgs
{
ExclusionRule = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleArgs
{
MatchingType = "MATCHING_TYPE_FULL_MATCH",
ExcludeByHotword = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordArgs
{
HotwordRegex = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordHotwordRegexArgs
{
Pattern = "zone.*",
GroupIndexes = new[]
{
0,
},
},
Proximity = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordProximityArgs
{
WindowBefore = 1,
WindowAfter = 2,
},
},
},
},
},
},
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetArgs
{
InfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetInfoTypeArgs
{
Name = "LAST_NAME",
},
},
Rules = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleArgs
{
HotwordRule = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleArgs
{
HotwordRegex = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs
{
Pattern = "patient.*",
GroupIndexes = new[]
{
0,
},
},
Proximity = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleProximityArgs
{
WindowBefore = 1,
WindowAfter = 2,
},
LikelihoodAdjustment = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs
{
FixedLikelihood = "VERY_LIKELY",
},
},
},
},
},
},
},
Rules = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyRuleArgs
{
Conditions = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyRuleConditionArgs
{
InfoTypeCondition = new Gcp.DataLoss.Inputs.PreventionContentPolicyRuleConditionInfoTypeConditionArgs
{
AnyInfoType = null,
MinCount = 2,
},
},
},
Action = new Gcp.DataLoss.Inputs.PreventionContentPolicyRuleActionArgs
{
ReturnVerdict = "BLOCK",
},
},
},
UnsupportedFileType = new Gcp.DataLoss.Inputs.PreventionContentPolicyUnsupportedFileTypeArgs
{
ReturnVerdict = "ALLOW",
},
InputTooLarge = new Gcp.DataLoss.Inputs.PreventionContentPolicyInputTooLargeArgs
{
ReturnVerdict = "ALLOW",
},
FailedToScanSupportedFileType = new Gcp.DataLoss.Inputs.PreventionContentPolicyFailedToScanSupportedFileTypeArgs
{
ReturnVerdict = "BLOCK",
},
DefaultAction = new Gcp.DataLoss.Inputs.PreventionContentPolicyDefaultActionArgs
{
ReturnVerdict = "ALLOW",
},
LoggingConfigs = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyLoggingConfigArgs
{
LogToBigQuery = new Gcp.DataLoss.Inputs.PreventionContentPolicyLoggingConfigLogToBigQueryArgs
{
ProjectId = defaultTable.Project,
DatasetId = @default.DatasetId,
TableId = defaultTable.TableId,
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.dataloss.PreventionStoredInfoType;
import com.pulumi.gcp.dataloss.PreventionStoredInfoTypeArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionStoredInfoTypeRegexArgs;
import com.pulumi.gcp.storage.Bucket;
import com.pulumi.gcp.storage.BucketArgs;
import com.pulumi.gcp.storage.BucketObject;
import com.pulumi.gcp.storage.BucketObjectArgs;
import com.pulumi.gcp.bigquery.Dataset;
import com.pulumi.gcp.bigquery.DatasetArgs;
import com.pulumi.gcp.bigquery.Table;
import com.pulumi.gcp.bigquery.TableArgs;
import com.pulumi.gcp.dataloss.PreventionContentPolicy;
import com.pulumi.gcp.dataloss.PreventionContentPolicyArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigInfoTypeArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigInfoTypeSensitivityScoreArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeInfoTypeArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeInfoTypeSensitivityScoreArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigCustomInfoTypeArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeSensitivityScoreArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigCustomInfoTypeSensitivityScoreArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigCustomInfoTypeRegexArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleHotwordRegexArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleProximityArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleLikelihoodAdjustmentArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeGoogleDriveLabelArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeGoogleDriveLabelLabelFieldsToMatchArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeSensitivityLabelArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigCustomInfoTypeMetadataKeyValueExpressionArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryWordListArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryCloudStoragePathArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigCustomInfoTypeStoredTypeArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigLimitsArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeSensitivityScoreArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetInfoTypeArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetInfoTypeSensitivityScoreArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeSensitivityScoreArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleRegexArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesInfoTypeArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesInfoTypeSensitivityScoreArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleLikelihoodAdjustmentArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsInfoTypeArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsInfoTypeSensitivityScoreArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsImageContainmentTypeArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsImageContainmentTypeEnclosesArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsInfoTypeArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsInfoTypeSensitivityScoreArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsImageContainmentTypeArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsImageContainmentTypeFullyInsideArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryWordListArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryCloudStoragePathArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordHotwordRegexArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordProximityArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleProximityArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyRuleArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyRuleConditionArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyRuleConditionInfoTypeConditionArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyRuleConditionInfoTypeConditionAnyInfoTypeArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyRuleActionArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyUnsupportedFileTypeArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyInputTooLargeArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyFailedToScanSupportedFileTypeArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyDefaultActionArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyLoggingConfigArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionContentPolicyLoggingConfigLogToBigQueryArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 PreventionStoredInfoType("basic", PreventionStoredInfoTypeArgs.builder()
.parent("projects/my-project-name/locations/us-west1")
.description("Description for stored info type")
.displayName("tf-test-stored-info-type")
.regex(PreventionStoredInfoTypeRegexArgs.builder()
.pattern(".*")
.groupIndexes(0)
.build())
.build());
var bucket = new Bucket("bucket", BucketArgs.builder()
.name("dlp_bkt")
.location("US")
.uniformBucketLevelAccess(true)
.forceDestroy(true)
.build());
var object = new BucketObject("object", BucketObjectArgs.builder()
.name("tf-test-wordlist")
.bucket(bucket.name())
.content("""
word1
word2
""")
.build());
var default_ = new Dataset("default", DatasetArgs.builder()
.datasetId("dlp_ds")
.friendlyName("tf-test-dataset")
.description("Description for the dataset created by terraform")
.location("US")
.defaultTableExpirationMs(3600000)
.deleteContentsOnDestroy(true)
.build());
var defaultTable = new Table("defaultTable", TableArgs.builder()
.datasetId(default_.datasetId())
.tableId("dlp_tbl")
.deletionProtection(false)
.schema("""
[
{
\"name\": \"quantity\",
\"type\": \"NUMERIC\",
\"mode\": \"NULLABLE\",
\"description\": \"The quantity\"
}
]
""")
.build());
var full = new PreventionContentPolicy("full", PreventionContentPolicyArgs.builder()
.parent("projects/my-project-name/locations/us-west1")
.displayName("tf-test-dlp-content-policy-full")
.inspectConfig(PreventionContentPolicyInspectConfigArgs.builder()
.contentOptions(
"CONTENT_TEXT",
"CONTENT_IMAGE")
.includeQuote(true)
.excludeInfoTypes(false)
.minLikelihood("LIKELY")
.infoTypes(
PreventionContentPolicyInspectConfigInfoTypeArgs.builder()
.name("PHONE_NUMBER")
.sensitivityScore(PreventionContentPolicyInspectConfigInfoTypeSensitivityScoreArgs.builder()
.score("SENSITIVITY_LOW")
.build())
.build(),
PreventionContentPolicyInspectConfigInfoTypeArgs.builder()
.name("EMAIL_ADDRESS")
.build(),
PreventionContentPolicyInspectConfigInfoTypeArgs.builder()
.name("PERSON_NAME")
.version("latest")
.build(),
PreventionContentPolicyInspectConfigInfoTypeArgs.builder()
.name("FIRST_NAME")
.build(),
PreventionContentPolicyInspectConfigInfoTypeArgs.builder()
.name("LAST_NAME")
.build(),
PreventionContentPolicyInspectConfigInfoTypeArgs.builder()
.name("OBJECT_TYPE/PERSON")
.build(),
PreventionContentPolicyInspectConfigInfoTypeArgs.builder()
.name("OBJECT_TYPE/PERSON/PASSPORT")
.build())
.minLikelihoodPerInfoTypes(PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeArgs.builder()
.infoType(PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeInfoTypeArgs.builder()
.name("PERSON_NAME")
.version("latest")
.sensitivityScore(PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeInfoTypeSensitivityScoreArgs.builder()
.score("SENSITIVITY_LOW")
.build())
.build())
.minLikelihood("LIKELY")
.build())
.customInfoTypes(
PreventionContentPolicyInspectConfigCustomInfoTypeArgs.builder()
.infoType(PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeArgs.builder()
.name("MY_CUSTOM_TYPE")
.version("0.1")
.sensitivityScore(PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeSensitivityScoreArgs.builder()
.score("SENSITIVITY_LOW")
.build())
.build())
.sensitivityScore(PreventionContentPolicyInspectConfigCustomInfoTypeSensitivityScoreArgs.builder()
.score("SENSITIVITY_MODERATE")
.build())
.likelihood("UNLIKELY")
.exclusionType("EXCLUSION_TYPE_EXCLUDE")
.regex(PreventionContentPolicyInspectConfigCustomInfoTypeRegexArgs.builder()
.pattern("test.*")
.groupIndexes(0)
.build())
.detectionRules(PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleArgs.builder()
.hotwordRule(PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleArgs.builder()
.hotwordRegex(PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleHotwordRegexArgs.builder()
.pattern("password")
.groupIndexes(0)
.build())
.proximity(PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleProximityArgs.builder()
.windowBefore(10)
.windowAfter(10)
.build())
.likelihoodAdjustment(PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleLikelihoodAdjustmentArgs.builder()
.fixedLikelihood("VERY_LIKELY")
.build())
.build())
.build())
.build(),
PreventionContentPolicyInspectConfigCustomInfoTypeArgs.builder()
.infoType(PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeArgs.builder()
.name("MY_GDRIVE_LABEL_TYPE")
.build())
.likelihood("POSSIBLE")
.fileLabelInfoType(PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeArgs.builder()
.googleDriveLabel(PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeGoogleDriveLabelArgs.builder()
.labelId("testLabelId")
.labelFieldsToMatches(PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeGoogleDriveLabelLabelFieldsToMatchArgs.builder()
.id("field1")
.value("val1")
.build())
.build())
.build())
.build(),
PreventionContentPolicyInspectConfigCustomInfoTypeArgs.builder()
.infoType(PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeArgs.builder()
.name("MY_SENSITIVITY_LABEL_TYPE")
.build())
.likelihood("POSSIBLE")
.fileLabelInfoType(PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeArgs.builder()
.sensitivityLabel(PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeSensitivityLabelArgs.builder()
.guid("11111111-2222-3333-4444-555555555555")
.build())
.build())
.build(),
PreventionContentPolicyInspectConfigCustomInfoTypeArgs.builder()
.infoType(PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeArgs.builder()
.name("MY_METADATA_KV_TYPE")
.build())
.likelihood("POSSIBLE")
.metadataKeyValueExpression(PreventionContentPolicyInspectConfigCustomInfoTypeMetadataKeyValueExpressionArgs.builder()
.keyRegex("key.*")
.valueRegex("val.*")
.build())
.build(),
PreventionContentPolicyInspectConfigCustomInfoTypeArgs.builder()
.infoType(PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeArgs.builder()
.name("MY_WORD_LIST_TYPE")
.build())
.likelihood("POSSIBLE")
.dictionary(PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryArgs.builder()
.wordList(PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryWordListArgs.builder()
.words(
"badword1",
"badword2")
.build())
.build())
.build(),
PreventionContentPolicyInspectConfigCustomInfoTypeArgs.builder()
.infoType(PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeArgs.builder()
.name("MY_STORAGE_TYPE")
.build())
.likelihood("POSSIBLE")
.dictionary(PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryArgs.builder()
.cloudStoragePath(PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryCloudStoragePathArgs.builder()
.path(Output.tuple(bucket.name(), object.name()).applyValue(values -> {
var bucketName = values.t1;
var objectName = values.t2;
return String.format("gs://%s/%s", bucketName,objectName);
}))
.build())
.build())
.build(),
PreventionContentPolicyInspectConfigCustomInfoTypeArgs.builder()
.infoType(PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeArgs.builder()
.name("MY_STORED_TYPE")
.build())
.likelihood("POSSIBLE")
.storedType(PreventionContentPolicyInspectConfigCustomInfoTypeStoredTypeArgs.builder()
.name(basic.id())
.build())
.build())
.limits(PreventionContentPolicyInspectConfigLimitsArgs.builder()
.maxFindingsPerItem(10)
.maxFindingsPerRequest(50)
.maxFindingsPerInfoTypes(PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeArgs.builder()
.maxFindings(10)
.infoType(PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeArgs.builder()
.name("PERSON_NAME")
.version("latest")
.sensitivityScore(PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeSensitivityScoreArgs.builder()
.score("SENSITIVITY_HIGH")
.build())
.build())
.build())
.build())
.ruleSets(
PreventionContentPolicyInspectConfigRuleSetArgs.builder()
.infoTypes(PreventionContentPolicyInspectConfigRuleSetInfoTypeArgs.builder()
.name("PHONE_NUMBER")
.sensitivityScore(PreventionContentPolicyInspectConfigRuleSetInfoTypeSensitivityScoreArgs.builder()
.score("SENSITIVITY_LOW")
.build())
.build())
.rules(PreventionContentPolicyInspectConfigRuleSetRuleArgs.builder()
.exclusionRule(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleArgs.builder()
.matchingType("MATCHING_TYPE_FULL_MATCH")
.excludeInfoTypes(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesArgs.builder()
.infoTypes(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeArgs.builder()
.name("PERSON_NAME")
.version("latest")
.sensitivityScore(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeSensitivityScoreArgs.builder()
.score("SENSITIVITY_LOW")
.build())
.build())
.build())
.build())
.build())
.build(),
PreventionContentPolicyInspectConfigRuleSetArgs.builder()
.infoTypes(PreventionContentPolicyInspectConfigRuleSetInfoTypeArgs.builder()
.name("EMAIL_ADDRESS")
.build())
.rules(
PreventionContentPolicyInspectConfigRuleSetRuleArgs.builder()
.exclusionRule(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleArgs.builder()
.matchingType("MATCHING_TYPE_PARTIAL_MATCH")
.regex(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleRegexArgs.builder()
.pattern(".*@example\\.com")
.groupIndexes(0)
.build())
.build())
.build(),
PreventionContentPolicyInspectConfigRuleSetRuleArgs.builder()
.adjustmentRule(PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleArgs.builder()
.adjustByMatchingInfoTypes(PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesArgs.builder()
.infoTypes(PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesInfoTypeArgs.builder()
.name("PERSON_NAME")
.version("latest")
.sensitivityScore(PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesInfoTypeSensitivityScoreArgs.builder()
.score("SENSITIVITY_LOW")
.build())
.build())
.minLikelihood("LIKELY")
.matchingType("MATCHING_TYPE_PARTIAL_MATCH")
.build())
.likelihoodAdjustment(PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleLikelihoodAdjustmentArgs.builder()
.fixedLikelihood("VERY_LIKELY")
.build())
.build())
.build())
.build(),
PreventionContentPolicyInspectConfigRuleSetArgs.builder()
.infoTypes(PreventionContentPolicyInspectConfigRuleSetInfoTypeArgs.builder()
.name("OBJECT_TYPE/PERSON")
.build())
.rules(
PreventionContentPolicyInspectConfigRuleSetRuleArgs.builder()
.adjustmentRule(PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleArgs.builder()
.adjustByImageFindings(PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsArgs.builder()
.infoTypes(PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsInfoTypeArgs.builder()
.name("OBJECT_TYPE/PERSON/PASSPORT")
.version("latest")
.sensitivityScore(PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsInfoTypeSensitivityScoreArgs.builder()
.score("SENSITIVITY_LOW")
.build())
.build())
.minLikelihood("LIKELY")
.imageContainmentType(PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsImageContainmentTypeArgs.builder()
.encloses(PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsImageContainmentTypeEnclosesArgs.builder()
.build())
.build())
.build())
.likelihoodAdjustment(PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleLikelihoodAdjustmentArgs.builder()
.fixedLikelihood("VERY_LIKELY")
.build())
.build())
.build(),
PreventionContentPolicyInspectConfigRuleSetRuleArgs.builder()
.exclusionRule(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleArgs.builder()
.matchingType("MATCHING_TYPE_RULE_SPECIFIC")
.excludeByImageFindings(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsArgs.builder()
.infoTypes(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsInfoTypeArgs.builder()
.name("OBJECT_TYPE/PERSON/PASSPORT")
.version("latest")
.sensitivityScore(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsInfoTypeSensitivityScoreArgs.builder()
.score("SENSITIVITY_LOW")
.build())
.build())
.imageContainmentType(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsImageContainmentTypeArgs.builder()
.fullyInside(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsImageContainmentTypeFullyInsideArgs.builder()
.build())
.build())
.build())
.build())
.build())
.build(),
PreventionContentPolicyInspectConfigRuleSetArgs.builder()
.infoTypes(PreventionContentPolicyInspectConfigRuleSetInfoTypeArgs.builder()
.name("PERSON_NAME")
.version("latest")
.build())
.rules(
PreventionContentPolicyInspectConfigRuleSetRuleArgs.builder()
.exclusionRule(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleArgs.builder()
.matchingType("MATCHING_TYPE_PARTIAL_MATCH")
.dictionary(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryArgs.builder()
.wordList(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryWordListArgs.builder()
.words("test")
.build())
.build())
.build())
.build(),
PreventionContentPolicyInspectConfigRuleSetRuleArgs.builder()
.exclusionRule(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleArgs.builder()
.matchingType("MATCHING_TYPE_PARTIAL_MATCH")
.dictionary(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryArgs.builder()
.cloudStoragePath(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryCloudStoragePathArgs.builder()
.path(Output.tuple(bucket.name(), object.name()).applyValue(values -> {
var bucketName = values.t1;
var objectName = values.t2;
return String.format("gs://%s/%s", bucketName,objectName);
}))
.build())
.build())
.build())
.build())
.build(),
PreventionContentPolicyInspectConfigRuleSetArgs.builder()
.infoTypes(PreventionContentPolicyInspectConfigRuleSetInfoTypeArgs.builder()
.name("FIRST_NAME")
.build())
.rules(PreventionContentPolicyInspectConfigRuleSetRuleArgs.builder()
.exclusionRule(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleArgs.builder()
.matchingType("MATCHING_TYPE_FULL_MATCH")
.excludeByHotword(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordArgs.builder()
.hotwordRegex(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordHotwordRegexArgs.builder()
.pattern("zone.*")
.groupIndexes(0)
.build())
.proximity(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordProximityArgs.builder()
.windowBefore(1)
.windowAfter(2)
.build())
.build())
.build())
.build())
.build(),
PreventionContentPolicyInspectConfigRuleSetArgs.builder()
.infoTypes(PreventionContentPolicyInspectConfigRuleSetInfoTypeArgs.builder()
.name("LAST_NAME")
.build())
.rules(PreventionContentPolicyInspectConfigRuleSetRuleArgs.builder()
.hotwordRule(PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleArgs.builder()
.hotwordRegex(PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs.builder()
.pattern("patient.*")
.groupIndexes(0)
.build())
.proximity(PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleProximityArgs.builder()
.windowBefore(1)
.windowAfter(2)
.build())
.likelihoodAdjustment(PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs.builder()
.fixedLikelihood("VERY_LIKELY")
.build())
.build())
.build())
.build())
.build())
.rules(PreventionContentPolicyRuleArgs.builder()
.conditions(PreventionContentPolicyRuleConditionArgs.builder()
.infoTypeCondition(PreventionContentPolicyRuleConditionInfoTypeConditionArgs.builder()
.anyInfoType(PreventionContentPolicyRuleConditionInfoTypeConditionAnyInfoTypeArgs.builder()
.build())
.minCount(2)
.build())
.build())
.action(PreventionContentPolicyRuleActionArgs.builder()
.returnVerdict("BLOCK")
.build())
.build())
.unsupportedFileType(PreventionContentPolicyUnsupportedFileTypeArgs.builder()
.returnVerdict("ALLOW")
.build())
.inputTooLarge(PreventionContentPolicyInputTooLargeArgs.builder()
.returnVerdict("ALLOW")
.build())
.failedToScanSupportedFileType(PreventionContentPolicyFailedToScanSupportedFileTypeArgs.builder()
.returnVerdict("BLOCK")
.build())
.defaultAction(PreventionContentPolicyDefaultActionArgs.builder()
.returnVerdict("ALLOW")
.build())
.loggingConfigs(PreventionContentPolicyLoggingConfigArgs.builder()
.logToBigQuery(PreventionContentPolicyLoggingConfigLogToBigQueryArgs.builder()
.projectId(defaultTable.project())
.datasetId(default_.datasetId())
.tableId(defaultTable.tableId())
.build())
.build())
.build());
}
}
resources:
full:
type: gcp:dataloss:PreventionContentPolicy
properties:
parent: projects/my-project-name/locations/us-west1
displayName: tf-test-dlp-content-policy-full
inspectConfig:
contentOptions:
- CONTENT_TEXT
- CONTENT_IMAGE
includeQuote: true
excludeInfoTypes: false
minLikelihood: LIKELY
infoTypes:
- name: PHONE_NUMBER
sensitivityScore:
score: SENSITIVITY_LOW
- name: EMAIL_ADDRESS
- name: PERSON_NAME
version: latest
- name: FIRST_NAME
- name: LAST_NAME
- name: OBJECT_TYPE/PERSON
- name: OBJECT_TYPE/PERSON/PASSPORT
minLikelihoodPerInfoTypes:
- infoType:
name: PERSON_NAME
version: latest
sensitivityScore:
score: SENSITIVITY_LOW
minLikelihood: LIKELY
customInfoTypes:
- infoType:
name: MY_CUSTOM_TYPE
version: '0.1'
sensitivityScore:
score: SENSITIVITY_LOW
sensitivityScore:
score: SENSITIVITY_MODERATE
likelihood: UNLIKELY
exclusionType: EXCLUSION_TYPE_EXCLUDE
regex:
pattern: test.*
groupIndexes:
- 0
detectionRules:
- hotwordRule:
hotwordRegex:
pattern: password
groupIndexes:
- 0
proximity:
windowBefore: 10
windowAfter: 10
likelihoodAdjustment:
fixedLikelihood: VERY_LIKELY
- infoType:
name: MY_GDRIVE_LABEL_TYPE
likelihood: POSSIBLE
fileLabelInfoType:
googleDriveLabel:
labelId: testLabelId
labelFieldsToMatches:
- id: field1
value: val1
- infoType:
name: MY_SENSITIVITY_LABEL_TYPE
likelihood: POSSIBLE
fileLabelInfoType:
sensitivityLabel:
guid: 11111111-2222-3333-4444-555555555555
- infoType:
name: MY_METADATA_KV_TYPE
likelihood: POSSIBLE
metadataKeyValueExpression:
keyRegex: key.*
valueRegex: val.*
- infoType:
name: MY_WORD_LIST_TYPE
likelihood: POSSIBLE
dictionary:
wordList:
words:
- badword1
- badword2
- infoType:
name: MY_STORAGE_TYPE
likelihood: POSSIBLE
dictionary:
cloudStoragePath:
path: gs://${bucket.name}/${object.name}
- infoType:
name: MY_STORED_TYPE
likelihood: POSSIBLE
storedType:
name: ${basic.id}
limits:
maxFindingsPerItem: 10
maxFindingsPerRequest: 50
maxFindingsPerInfoTypes:
- maxFindings: 10
infoType:
name: PERSON_NAME
version: latest
sensitivityScore:
score: SENSITIVITY_HIGH
ruleSets:
- infoTypes:
- name: PHONE_NUMBER
sensitivityScore:
score: SENSITIVITY_LOW
rules:
- exclusionRule:
matchingType: MATCHING_TYPE_FULL_MATCH
excludeInfoTypes:
infoTypes:
- name: PERSON_NAME
version: latest
sensitivityScore:
score: SENSITIVITY_LOW
- infoTypes:
- name: EMAIL_ADDRESS
rules:
- exclusionRule:
matchingType: MATCHING_TYPE_PARTIAL_MATCH
regex:
pattern: .*@example\.com
groupIndexes:
- 0
- adjustmentRule:
adjustByMatchingInfoTypes:
infoTypes:
- name: PERSON_NAME
version: latest
sensitivityScore:
score: SENSITIVITY_LOW
minLikelihood: LIKELY
matchingType: MATCHING_TYPE_PARTIAL_MATCH
likelihoodAdjustment:
fixedLikelihood: VERY_LIKELY
- infoTypes:
- name: OBJECT_TYPE/PERSON
rules:
- adjustmentRule:
adjustByImageFindings:
infoTypes:
- name: OBJECT_TYPE/PERSON/PASSPORT
version: latest
sensitivityScore:
score: SENSITIVITY_LOW
minLikelihood: LIKELY
imageContainmentType:
encloses: {}
likelihoodAdjustment:
fixedLikelihood: VERY_LIKELY
- exclusionRule:
matchingType: MATCHING_TYPE_RULE_SPECIFIC
excludeByImageFindings:
infoTypes:
- name: OBJECT_TYPE/PERSON/PASSPORT
version: latest
sensitivityScore:
score: SENSITIVITY_LOW
imageContainmentType:
fullyInside: {}
- infoTypes:
- name: PERSON_NAME
version: latest
rules:
- exclusionRule:
matchingType: MATCHING_TYPE_PARTIAL_MATCH
dictionary:
wordList:
words:
- test
- exclusionRule:
matchingType: MATCHING_TYPE_PARTIAL_MATCH
dictionary:
cloudStoragePath:
path: gs://${bucket.name}/${object.name}
- infoTypes:
- name: FIRST_NAME
rules:
- exclusionRule:
matchingType: MATCHING_TYPE_FULL_MATCH
excludeByHotword:
hotwordRegex:
pattern: zone.*
groupIndexes:
- 0
proximity:
windowBefore: 1
windowAfter: 2
- infoTypes:
- name: LAST_NAME
rules:
- hotwordRule:
hotwordRegex:
pattern: patient.*
groupIndexes:
- 0
proximity:
windowBefore: 1
windowAfter: 2
likelihoodAdjustment:
fixedLikelihood: VERY_LIKELY
rules:
- conditions:
- infoTypeCondition:
anyInfoType: {}
minCount: 2
action:
returnVerdict: BLOCK
unsupportedFileType:
returnVerdict: ALLOW
inputTooLarge:
returnVerdict: ALLOW
failedToScanSupportedFileType:
returnVerdict: BLOCK
defaultAction:
returnVerdict: ALLOW
loggingConfigs:
- logToBigQuery:
projectId: ${defaultTable.project}
datasetId: ${default.datasetId}
tableId: ${defaultTable.tableId}
basic:
type: gcp:dataloss:PreventionStoredInfoType
properties:
parent: projects/my-project-name/locations/us-west1
description: Description for stored info type
displayName: tf-test-stored-info-type
regex:
pattern: .*
groupIndexes:
- 0
bucket:
type: gcp:storage:Bucket
properties:
name: dlp_bkt
location: US
uniformBucketLevelAccess: true
forceDestroy: true
object:
type: gcp:storage:BucketObject
properties:
name: tf-test-wordlist
bucket: ${bucket.name}
content: |
word1
word2
default:
type: gcp:bigquery:Dataset
properties:
datasetId: dlp_ds
friendlyName: tf-test-dataset
description: Description for the dataset created by terraform
location: US
defaultTableExpirationMs: 3.6e+06
deleteContentsOnDestroy: true
defaultTable:
type: gcp:bigquery:Table
name: default
properties:
datasetId: ${default.datasetId}
tableId: dlp_tbl
deletionProtection: false
schema: |
[
{
\"name\": \"quantity\",
\"type\": \"NUMERIC\",
\"mode\": \"NULLABLE\",
\"description\": \"The quantity\"
}
]
terraform {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
resource "gcp_dataloss_prevention_content_policy" "full" {
lifecycle {
create_before_destroy = true
}
parent = "projects/my-project-name/locations/us-west1"
display_name = "tf-test-dlp-content-policy-full"
inspect_config = {
content_options = ["CONTENT_TEXT", "CONTENT_IMAGE"]
include_quote = true
exclude_info_types = false
min_likelihood = "LIKELY"
info_types = [{
name = "PHONE_NUMBER"
sensitivity_score = {
score = "SENSITIVITY_LOW"
}
}, {
name = "EMAIL_ADDRESS"
}, {
name = "PERSON_NAME"
version = "latest"
}, {
name = "FIRST_NAME"
}, {
name = "LAST_NAME"
}, {
name = "OBJECT_TYPE/PERSON"
}, {
name = "OBJECT_TYPE/PERSON/PASSPORT"
}]
min_likelihood_per_info_types = [{
info_type = {
name = "PERSON_NAME"
version = "latest"
sensitivity_score = {
score = "SENSITIVITY_LOW"
}
}
min_likelihood = "LIKELY"
}]
custom_info_types = [{
info_type = {
name = "MY_CUSTOM_TYPE"
version = "0.1"
sensitivity_score = {
score = "SENSITIVITY_LOW"
}
}
sensitivity_score = {
score = "SENSITIVITY_MODERATE"
}
likelihood = "UNLIKELY"
exclusion_type = "EXCLUSION_TYPE_EXCLUDE"
regex = {
pattern = "test.*"
group_indexes = [0]
}
detection_rules = [{
hotword_rule = {
hotword_regex = {
pattern = "password"
group_indexes = [0]
}
proximity = {
window_before = 10
window_after = 10
}
likelihood_adjustment = {
fixed_likelihood = "VERY_LIKELY"
}
}
}]
}, {
info_type = {
name = "MY_GDRIVE_LABEL_TYPE"
}
likelihood = "POSSIBLE"
file_label_info_type = {
google_drive_label = {
label_id = "testLabelId"
label_fields_to_matches = [{
id = "field1"
value = "val1"
}]
}
}
}, {
info_type = {
name = "MY_SENSITIVITY_LABEL_TYPE"
}
likelihood = "POSSIBLE"
file_label_info_type = {
sensitivity_label = {
guid = "11111111-2222-3333-4444-555555555555"
}
}
}, {
info_type = {
name = "MY_METADATA_KV_TYPE"
}
likelihood = "POSSIBLE"
metadata_key_value_expression = {
key_regex = "key.*"
value_regex = "val.*"
}
}, {
info_type = {
name = "MY_WORD_LIST_TYPE"
}
likelihood = "POSSIBLE"
dictionary = {
word_list = {
words = ["badword1", "badword2"]
}
}
}, {
info_type = {
name = "MY_STORAGE_TYPE"
}
likelihood = "POSSIBLE"
dictionary = {
cloud_storage_path = {
path ="gs://${gcp_storage_bucket.bucket.name}/${gcp_storage_bucket_object.object.name}"
}
}
}, {
info_type = {
name = "MY_STORED_TYPE"
}
likelihood = "POSSIBLE"
stored_type = {
name = gcp_dataloss_prevention_stored_info_type.basic.id
}
}]
limits = {
max_findings_per_item = 10
max_findings_per_request = 50
max_findings_per_info_types = [{
max_findings = 10
info_type = {
name = "PERSON_NAME"
version = "latest"
sensitivity_score = {
score = "SENSITIVITY_HIGH"
}
}
}]
}
rule_sets = [{
info_types = [{
name = "PHONE_NUMBER"
sensitivity_score = {
score = "SENSITIVITY_LOW"
}
}]
rules = [{
exclusion_rule = {
matching_type = "MATCHING_TYPE_FULL_MATCH"
exclude_info_types = {
info_types = [{
name = "PERSON_NAME"
version = "latest"
sensitivity_score = {
score = "SENSITIVITY_LOW"
}
}]
}
}
}]
}, {
info_types = [{
name = "EMAIL_ADDRESS"
}]
rules = [{
exclusion_rule = {
matching_type = "MATCHING_TYPE_PARTIAL_MATCH"
regex = {
pattern = ".*@example\\.com"
group_indexes = [0]
}
}
}, {
adjustment_rule = {
adjust_by_matching_info_types = {
info_types = [{
name = "PERSON_NAME"
version = "latest"
sensitivity_score = {
score = "SENSITIVITY_LOW"
}
}]
min_likelihood = "LIKELY"
matching_type = "MATCHING_TYPE_PARTIAL_MATCH"
}
likelihood_adjustment = {
fixed_likelihood = "VERY_LIKELY"
}
}
}]
}, {
info_types = [{
name = "OBJECT_TYPE/PERSON"
}]
rules = [{
adjustment_rule = {
adjust_by_image_findings = {
info_types = [{
name = "OBJECT_TYPE/PERSON/PASSPORT"
version = "latest"
sensitivity_score = {
score = "SENSITIVITY_LOW"
}
}]
min_likelihood = "LIKELY"
image_containment_type = {
encloses = {}
}
}
likelihood_adjustment = {
fixed_likelihood = "VERY_LIKELY"
}
}
}, {
exclusion_rule = {
matching_type = "MATCHING_TYPE_RULE_SPECIFIC"
exclude_by_image_findings = {
info_types = [{
name = "OBJECT_TYPE/PERSON/PASSPORT"
version = "latest"
sensitivity_score = {
score = "SENSITIVITY_LOW"
}
}]
image_containment_type = {
fully_inside = {}
}
}
}
}]
}, {
info_types = [{
name = "PERSON_NAME"
version = "latest"
}]
rules = [{
exclusion_rule = {
matching_type = "MATCHING_TYPE_PARTIAL_MATCH"
dictionary = {
word_list = {
words = ["test"]
}
}
}
}, {
exclusion_rule = {
matching_type = "MATCHING_TYPE_PARTIAL_MATCH"
dictionary = {
cloud_storage_path = {
path ="gs://${gcp_storage_bucket.bucket.name}/${gcp_storage_bucket_object.object.name}"
}
}
}
}]
}, {
info_types = [{
name = "FIRST_NAME"
}]
rules = [{
exclusion_rule = {
matching_type = "MATCHING_TYPE_FULL_MATCH"
exclude_by_hotword = {
hotword_regex = {
pattern = "zone.*"
group_indexes = [0]
}
proximity = {
window_before = 1
window_after = 2
}
}
}
}]
}, {
info_types = [{
name = "LAST_NAME"
}]
rules = [{
hotword_rule = {
hotword_regex = {
pattern = "patient.*"
group_indexes = [0]
}
proximity = {
window_before = 1
window_after = 2
}
likelihood_adjustment = {
fixed_likelihood = "VERY_LIKELY"
}
}
}]
}]
}
rules {
conditions {
info_type_condition = {
any_info_type = {}
min_count = 2
}
}
action = {
return_verdict = "BLOCK"
}
}
unsupported_file_type = {
return_verdict = "ALLOW"
}
input_too_large = {
return_verdict = "ALLOW"
}
failed_to_scan_supported_file_type = {
return_verdict = "BLOCK"
}
default_action = {
return_verdict = "ALLOW"
}
logging_configs {
log_to_big_query = {
project_id = gcp_bigquery_table.default.project
dataset_id = gcp_bigquery_dataset.default.dataset_id
table_id = gcp_bigquery_table.default.table_id
}
}
}
resource "gcp_dataloss_prevention_stored_info_type" "basic" {
lifecycle {
create_before_destroy = true
}
parent = "projects/my-project-name/locations/us-west1"
description = "Description for stored info type"
display_name = "tf-test-stored-info-type"
regex = {
pattern = ".*"
group_indexes = [0]
}
}
resource "gcp_storage_bucket" "bucket" {
lifecycle {
create_before_destroy = true
}
name = "dlp_bkt"
location = "US"
uniform_bucket_level_access = true
force_destroy = true
}
resource "gcp_storage_bucket_object" "object" {
lifecycle {
create_before_destroy = true
}
name = "tf-test-wordlist"
bucket = gcp_storage_bucket.bucket.name
content = "word1\nword2\n"
}
resource "gcp_bigquery_dataset" "default" {
lifecycle {
create_before_destroy = true
}
dataset_id = "dlp_ds"
friendly_name = "tf-test-dataset"
description = "Description for the dataset created by terraform"
location = "US"
default_table_expiration_ms = 3600000
delete_contents_on_destroy = true
}
resource "gcp_bigquery_table" "default" {
lifecycle {
create_before_destroy = true
}
dataset_id = gcp_bigquery_dataset.default.dataset_id
table_id = "dlp_tbl"
deletion_protection = false
schema = <<EOF
[
{
\"name\": \"quantity\",
\"type\": \"NUMERIC\",
\"mode\": \"NULLABLE\",
\"description\": \"The quantity\"
}
]
EOF
}
Create PreventionContentPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PreventionContentPolicy(name: string, args: PreventionContentPolicyArgs, opts?: CustomResourceOptions);@overload
def PreventionContentPolicy(resource_name: str,
args: PreventionContentPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PreventionContentPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
parent: Optional[str] = None,
rules: Optional[Sequence[PreventionContentPolicyRuleArgs]] = None,
default_action: Optional[PreventionContentPolicyDefaultActionArgs] = None,
deletion_policy: Optional[str] = None,
display_name: Optional[str] = None,
failed_to_scan_supported_file_type: Optional[PreventionContentPolicyFailedToScanSupportedFileTypeArgs] = None,
input_too_large: Optional[PreventionContentPolicyInputTooLargeArgs] = None,
inspect_config: Optional[PreventionContentPolicyInspectConfigArgs] = None,
logging_configs: Optional[Sequence[PreventionContentPolicyLoggingConfigArgs]] = None,
unsupported_file_type: Optional[PreventionContentPolicyUnsupportedFileTypeArgs] = None)func NewPreventionContentPolicy(ctx *Context, name string, args PreventionContentPolicyArgs, opts ...ResourceOption) (*PreventionContentPolicy, error)public PreventionContentPolicy(string name, PreventionContentPolicyArgs args, CustomResourceOptions? opts = null)
public PreventionContentPolicy(String name, PreventionContentPolicyArgs args)
public PreventionContentPolicy(String name, PreventionContentPolicyArgs args, CustomResourceOptions options)
type: gcp:dataloss:PreventionContentPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "gcp_dataloss_prevention_content_policy" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args PreventionContentPolicyArgs
- 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 PreventionContentPolicyArgs
- 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 PreventionContentPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PreventionContentPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PreventionContentPolicyArgs
- 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 preventionContentPolicyResource = new Gcp.DataLoss.PreventionContentPolicy("preventionContentPolicyResource", new()
{
Parent = "string",
Rules = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyRuleArgs
{
Action = new Gcp.DataLoss.Inputs.PreventionContentPolicyRuleActionArgs
{
ReturnVerdict = "string",
},
Conditions = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyRuleConditionArgs
{
InfoTypeCondition = new Gcp.DataLoss.Inputs.PreventionContentPolicyRuleConditionInfoTypeConditionArgs
{
AnyInfoType = null,
InfoTypes = new Gcp.DataLoss.Inputs.PreventionContentPolicyRuleConditionInfoTypeConditionInfoTypesArgs
{
InfoTypeNames = new[]
{
"string",
},
},
MinCount = 0,
},
},
},
},
},
DefaultAction = new Gcp.DataLoss.Inputs.PreventionContentPolicyDefaultActionArgs
{
ReturnVerdict = "string",
},
DeletionPolicy = "string",
DisplayName = "string",
FailedToScanSupportedFileType = new Gcp.DataLoss.Inputs.PreventionContentPolicyFailedToScanSupportedFileTypeArgs
{
ReturnVerdict = "string",
},
InputTooLarge = new Gcp.DataLoss.Inputs.PreventionContentPolicyInputTooLargeArgs
{
ReturnVerdict = "string",
},
InspectConfig = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigArgs
{
ContentOptions = new[]
{
"string",
},
CustomInfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeArgs
{
InfoType = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeArgs
{
Name = "string",
SensitivityScore = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeSensitivityScoreArgs
{
Score = "string",
},
Version = "string",
},
DetectionRules = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleArgs
{
HotwordRule = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleArgs
{
HotwordRegex = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleHotwordRegexArgs
{
Pattern = "string",
GroupIndexes = new[]
{
0,
},
},
LikelihoodAdjustment = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleLikelihoodAdjustmentArgs
{
FixedLikelihood = "string",
RelativeLikelihood = 0,
},
Proximity = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleProximityArgs
{
WindowAfter = 0,
WindowBefore = 0,
},
},
},
},
Dictionary = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryArgs
{
CloudStoragePath = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryCloudStoragePathArgs
{
Path = "string",
},
WordList = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryWordListArgs
{
Words = new[]
{
"string",
},
},
},
ExclusionType = "string",
FileLabelInfoType = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeArgs
{
GoogleDriveLabel = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeGoogleDriveLabelArgs
{
LabelId = "string",
LabelFieldsToMatches = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeGoogleDriveLabelLabelFieldsToMatchArgs
{
Id = "string",
Value = "string",
},
},
},
SensitivityLabel = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeSensitivityLabelArgs
{
Guid = "string",
},
},
Likelihood = "string",
MetadataKeyValueExpression = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeMetadataKeyValueExpressionArgs
{
KeyRegex = "string",
ValueRegex = "string",
},
Regex = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeRegexArgs
{
Pattern = "string",
GroupIndexes = new[]
{
0,
},
},
SensitivityScore = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeSensitivityScoreArgs
{
Score = "string",
},
StoredType = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigCustomInfoTypeStoredTypeArgs
{
Name = "string",
CreateTime = "string",
},
SurrogateType = null,
},
},
ExcludeInfoTypes = false,
IncludeQuote = false,
InfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigInfoTypeArgs
{
Name = "string",
SensitivityScore = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigInfoTypeSensitivityScoreArgs
{
Score = "string",
},
Version = "string",
},
},
Limits = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigLimitsArgs
{
MaxFindingsPerItem = 0,
MaxFindingsPerRequest = 0,
MaxFindingsPerInfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeArgs
{
MaxFindings = 0,
InfoType = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeArgs
{
Name = "string",
SensitivityScore = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeSensitivityScoreArgs
{
Score = "string",
},
Version = "string",
},
},
},
},
MinLikelihood = "string",
MinLikelihoodPerInfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeArgs
{
MinLikelihood = "string",
InfoType = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeInfoTypeArgs
{
Name = "string",
SensitivityScore = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeInfoTypeSensitivityScoreArgs
{
Score = "string",
},
Version = "string",
},
},
},
RuleSets = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetArgs
{
InfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetInfoTypeArgs
{
Name = "string",
SensitivityScore = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetInfoTypeSensitivityScoreArgs
{
Score = "string",
},
Version = "string",
},
},
Rules = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleArgs
{
AdjustmentRule = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleArgs
{
LikelihoodAdjustment = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleLikelihoodAdjustmentArgs
{
FixedLikelihood = "string",
},
AdjustByImageFindings = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsArgs
{
InfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsInfoTypeArgs
{
Name = "string",
SensitivityScore = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsInfoTypeSensitivityScoreArgs
{
Score = "string",
},
Version = "string",
},
},
MinLikelihood = "string",
ImageContainmentType = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsImageContainmentTypeArgs
{
Encloses = null,
FullyInside = null,
Overlaps = null,
},
},
AdjustByMatchingInfoTypes = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesArgs
{
InfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesInfoTypeArgs
{
Name = "string",
SensitivityScore = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesInfoTypeSensitivityScoreArgs
{
Score = "string",
},
Version = "string",
},
},
MatchingType = "string",
MinLikelihood = "string",
},
},
ExclusionRule = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleArgs
{
MatchingType = "string",
Dictionary = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryArgs
{
CloudStoragePath = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryCloudStoragePathArgs
{
Path = "string",
},
WordList = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryWordListArgs
{
Words = new[]
{
"string",
},
},
},
ExcludeByHotword = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordArgs
{
HotwordRegex = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordHotwordRegexArgs
{
Pattern = "string",
GroupIndexes = new[]
{
0,
},
},
Proximity = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordProximityArgs
{
WindowAfter = 0,
WindowBefore = 0,
},
},
ExcludeByImageFindings = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsArgs
{
InfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsInfoTypeArgs
{
Name = "string",
SensitivityScore = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsInfoTypeSensitivityScoreArgs
{
Score = "string",
},
Version = "string",
},
},
ImageContainmentType = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsImageContainmentTypeArgs
{
Encloses = null,
FullyInside = null,
Overlaps = null,
},
},
ExcludeInfoTypes = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesArgs
{
InfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeArgs
{
Name = "string",
SensitivityScore = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeSensitivityScoreArgs
{
Score = "string",
},
Version = "string",
},
},
},
Regex = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleRegexArgs
{
Pattern = "string",
GroupIndexes = new[]
{
0,
},
},
},
HotwordRule = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleArgs
{
HotwordRegex = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs
{
Pattern = "string",
GroupIndexes = new[]
{
0,
},
},
LikelihoodAdjustment = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs
{
FixedLikelihood = "string",
RelativeLikelihood = 0,
},
Proximity = new Gcp.DataLoss.Inputs.PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleProximityArgs
{
WindowAfter = 0,
WindowBefore = 0,
},
},
},
},
},
},
},
LoggingConfigs = new[]
{
new Gcp.DataLoss.Inputs.PreventionContentPolicyLoggingConfigArgs
{
LogToBigQuery = new Gcp.DataLoss.Inputs.PreventionContentPolicyLoggingConfigLogToBigQueryArgs
{
DatasetId = "string",
ProjectId = "string",
TableId = "string",
},
},
},
UnsupportedFileType = new Gcp.DataLoss.Inputs.PreventionContentPolicyUnsupportedFileTypeArgs
{
ReturnVerdict = "string",
},
});
example, err := dataloss.NewPreventionContentPolicy(ctx, "preventionContentPolicyResource", &dataloss.PreventionContentPolicyArgs{
Parent: pulumi.String("string"),
Rules: dataloss.PreventionContentPolicyRuleArray{
&dataloss.PreventionContentPolicyRuleArgs{
Action: &dataloss.PreventionContentPolicyRuleActionArgs{
ReturnVerdict: pulumi.String("string"),
},
Conditions: dataloss.PreventionContentPolicyRuleConditionArray{
&dataloss.PreventionContentPolicyRuleConditionArgs{
InfoTypeCondition: &dataloss.PreventionContentPolicyRuleConditionInfoTypeConditionArgs{
AnyInfoType: &dataloss.PreventionContentPolicyRuleConditionInfoTypeConditionAnyInfoTypeArgs{},
InfoTypes: &dataloss.PreventionContentPolicyRuleConditionInfoTypeConditionInfoTypesArgs{
InfoTypeNames: pulumi.StringArray{
pulumi.String("string"),
},
},
MinCount: pulumi.Int(0),
},
},
},
},
},
DefaultAction: &dataloss.PreventionContentPolicyDefaultActionArgs{
ReturnVerdict: pulumi.String("string"),
},
DeletionPolicy: pulumi.String("string"),
DisplayName: pulumi.String("string"),
FailedToScanSupportedFileType: &dataloss.PreventionContentPolicyFailedToScanSupportedFileTypeArgs{
ReturnVerdict: pulumi.String("string"),
},
InputTooLarge: &dataloss.PreventionContentPolicyInputTooLargeArgs{
ReturnVerdict: pulumi.String("string"),
},
InspectConfig: &dataloss.PreventionContentPolicyInspectConfigArgs{
ContentOptions: pulumi.StringArray{
pulumi.String("string"),
},
CustomInfoTypes: dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeArray{
&dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeArgs{
InfoType: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeArgs{
Name: pulumi.String("string"),
SensitivityScore: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeSensitivityScoreArgs{
Score: pulumi.String("string"),
},
Version: pulumi.String("string"),
},
DetectionRules: dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleArray{
&dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleArgs{
HotwordRule: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleArgs{
HotwordRegex: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleHotwordRegexArgs{
Pattern: pulumi.String("string"),
GroupIndexes: pulumi.IntArray{
pulumi.Int(0),
},
},
LikelihoodAdjustment: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleLikelihoodAdjustmentArgs{
FixedLikelihood: pulumi.String("string"),
RelativeLikelihood: pulumi.Int(0),
},
Proximity: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleProximityArgs{
WindowAfter: pulumi.Int(0),
WindowBefore: pulumi.Int(0),
},
},
},
},
Dictionary: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryArgs{
CloudStoragePath: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryCloudStoragePathArgs{
Path: pulumi.String("string"),
},
WordList: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryWordListArgs{
Words: pulumi.StringArray{
pulumi.String("string"),
},
},
},
ExclusionType: pulumi.String("string"),
FileLabelInfoType: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeArgs{
GoogleDriveLabel: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeGoogleDriveLabelArgs{
LabelId: pulumi.String("string"),
LabelFieldsToMatches: dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeGoogleDriveLabelLabelFieldsToMatchArray{
&dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeGoogleDriveLabelLabelFieldsToMatchArgs{
Id: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
SensitivityLabel: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeSensitivityLabelArgs{
Guid: pulumi.String("string"),
},
},
Likelihood: pulumi.String("string"),
MetadataKeyValueExpression: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeMetadataKeyValueExpressionArgs{
KeyRegex: pulumi.String("string"),
ValueRegex: pulumi.String("string"),
},
Regex: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeRegexArgs{
Pattern: pulumi.String("string"),
GroupIndexes: pulumi.IntArray{
pulumi.Int(0),
},
},
SensitivityScore: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeSensitivityScoreArgs{
Score: pulumi.String("string"),
},
StoredType: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeStoredTypeArgs{
Name: pulumi.String("string"),
CreateTime: pulumi.String("string"),
},
SurrogateType: &dataloss.PreventionContentPolicyInspectConfigCustomInfoTypeSurrogateTypeArgs{},
},
},
ExcludeInfoTypes: pulumi.Bool(false),
IncludeQuote: pulumi.Bool(false),
InfoTypes: dataloss.PreventionContentPolicyInspectConfigInfoTypeArray{
&dataloss.PreventionContentPolicyInspectConfigInfoTypeArgs{
Name: pulumi.String("string"),
SensitivityScore: &dataloss.PreventionContentPolicyInspectConfigInfoTypeSensitivityScoreArgs{
Score: pulumi.String("string"),
},
Version: pulumi.String("string"),
},
},
Limits: &dataloss.PreventionContentPolicyInspectConfigLimitsArgs{
MaxFindingsPerItem: pulumi.Int(0),
MaxFindingsPerRequest: pulumi.Int(0),
MaxFindingsPerInfoTypes: dataloss.PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeArray{
&dataloss.PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeArgs{
MaxFindings: pulumi.Int(0),
InfoType: &dataloss.PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeArgs{
Name: pulumi.String("string"),
SensitivityScore: &dataloss.PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeSensitivityScoreArgs{
Score: pulumi.String("string"),
},
Version: pulumi.String("string"),
},
},
},
},
MinLikelihood: pulumi.String("string"),
MinLikelihoodPerInfoTypes: dataloss.PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeArray{
&dataloss.PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeArgs{
MinLikelihood: pulumi.String("string"),
InfoType: &dataloss.PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeInfoTypeArgs{
Name: pulumi.String("string"),
SensitivityScore: &dataloss.PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeInfoTypeSensitivityScoreArgs{
Score: pulumi.String("string"),
},
Version: pulumi.String("string"),
},
},
},
RuleSets: dataloss.PreventionContentPolicyInspectConfigRuleSetArray{
&dataloss.PreventionContentPolicyInspectConfigRuleSetArgs{
InfoTypes: dataloss.PreventionContentPolicyInspectConfigRuleSetInfoTypeArray{
&dataloss.PreventionContentPolicyInspectConfigRuleSetInfoTypeArgs{
Name: pulumi.String("string"),
SensitivityScore: &dataloss.PreventionContentPolicyInspectConfigRuleSetInfoTypeSensitivityScoreArgs{
Score: pulumi.String("string"),
},
Version: pulumi.String("string"),
},
},
Rules: dataloss.PreventionContentPolicyInspectConfigRuleSetRuleArray{
&dataloss.PreventionContentPolicyInspectConfigRuleSetRuleArgs{
AdjustmentRule: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleArgs{
LikelihoodAdjustment: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleLikelihoodAdjustmentArgs{
FixedLikelihood: pulumi.String("string"),
},
AdjustByImageFindings: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsArgs{
InfoTypes: dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsInfoTypeArray{
&dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsInfoTypeArgs{
Name: pulumi.String("string"),
SensitivityScore: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsInfoTypeSensitivityScoreArgs{
Score: pulumi.String("string"),
},
Version: pulumi.String("string"),
},
},
MinLikelihood: pulumi.String("string"),
ImageContainmentType: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsImageContainmentTypeArgs{
Encloses: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsImageContainmentTypeEnclosesArgs{},
FullyInside: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsImageContainmentTypeFullyInsideArgs{},
Overlaps: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsImageContainmentTypeOverlapsArgs{},
},
},
AdjustByMatchingInfoTypes: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesArgs{
InfoTypes: dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesInfoTypeArray{
&dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesInfoTypeArgs{
Name: pulumi.String("string"),
SensitivityScore: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesInfoTypeSensitivityScoreArgs{
Score: pulumi.String("string"),
},
Version: pulumi.String("string"),
},
},
MatchingType: pulumi.String("string"),
MinLikelihood: pulumi.String("string"),
},
},
ExclusionRule: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleArgs{
MatchingType: pulumi.String("string"),
Dictionary: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryArgs{
CloudStoragePath: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryCloudStoragePathArgs{
Path: pulumi.String("string"),
},
WordList: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryWordListArgs{
Words: pulumi.StringArray{
pulumi.String("string"),
},
},
},
ExcludeByHotword: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordArgs{
HotwordRegex: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordHotwordRegexArgs{
Pattern: pulumi.String("string"),
GroupIndexes: pulumi.IntArray{
pulumi.Int(0),
},
},
Proximity: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordProximityArgs{
WindowAfter: pulumi.Int(0),
WindowBefore: pulumi.Int(0),
},
},
ExcludeByImageFindings: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsArgs{
InfoTypes: dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsInfoTypeArray{
&dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsInfoTypeArgs{
Name: pulumi.String("string"),
SensitivityScore: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsInfoTypeSensitivityScoreArgs{
Score: pulumi.String("string"),
},
Version: pulumi.String("string"),
},
},
ImageContainmentType: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsImageContainmentTypeArgs{
Encloses: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsImageContainmentTypeEnclosesArgs{},
FullyInside: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsImageContainmentTypeFullyInsideArgs{},
Overlaps: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsImageContainmentTypeOverlapsArgs{},
},
},
ExcludeInfoTypes: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesArgs{
InfoTypes: dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeArray{
&dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeArgs{
Name: pulumi.String("string"),
SensitivityScore: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeSensitivityScoreArgs{
Score: pulumi.String("string"),
},
Version: pulumi.String("string"),
},
},
},
Regex: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleRegexArgs{
Pattern: pulumi.String("string"),
GroupIndexes: pulumi.IntArray{
pulumi.Int(0),
},
},
},
HotwordRule: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleArgs{
HotwordRegex: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs{
Pattern: pulumi.String("string"),
GroupIndexes: pulumi.IntArray{
pulumi.Int(0),
},
},
LikelihoodAdjustment: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs{
FixedLikelihood: pulumi.String("string"),
RelativeLikelihood: pulumi.Int(0),
},
Proximity: &dataloss.PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleProximityArgs{
WindowAfter: pulumi.Int(0),
WindowBefore: pulumi.Int(0),
},
},
},
},
},
},
},
LoggingConfigs: dataloss.PreventionContentPolicyLoggingConfigArray{
&dataloss.PreventionContentPolicyLoggingConfigArgs{
LogToBigQuery: &dataloss.PreventionContentPolicyLoggingConfigLogToBigQueryArgs{
DatasetId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
TableId: pulumi.String("string"),
},
},
},
UnsupportedFileType: &dataloss.PreventionContentPolicyUnsupportedFileTypeArgs{
ReturnVerdict: pulumi.String("string"),
},
})
resource "gcp_dataloss_prevention_content_policy" "preventionContentPolicyResource" {
lifecycle {
create_before_destroy = true
}
parent = "string"
rules {
action = {
return_verdict = "string"
}
conditions {
info_type_condition = {
any_info_type = {}
info_types = {
info_type_names = ["string"]
}
min_count = 0
}
}
}
default_action = {
return_verdict = "string"
}
deletion_policy = "string"
display_name = "string"
failed_to_scan_supported_file_type = {
return_verdict = "string"
}
input_too_large = {
return_verdict = "string"
}
inspect_config = {
content_options = ["string"]
custom_info_types = [{
info_type = {
name = "string"
sensitivity_score = {
score = "string"
}
version = "string"
}
detection_rules = [{
hotword_rule = {
hotword_regex = {
pattern = "string"
group_indexes = [0]
}
likelihood_adjustment = {
fixed_likelihood = "string"
relative_likelihood = 0
}
proximity = {
window_after = 0
window_before = 0
}
}
}]
dictionary = {
cloud_storage_path = {
path = "string"
}
word_list = {
words = ["string"]
}
}
exclusion_type = "string"
file_label_info_type = {
google_drive_label = {
label_id = "string"
label_fields_to_matches = [{
id = "string"
value = "string"
}]
}
sensitivity_label = {
guid = "string"
}
}
likelihood = "string"
metadata_key_value_expression = {
key_regex = "string"
value_regex = "string"
}
regex = {
pattern = "string"
group_indexes = [0]
}
sensitivity_score = {
score = "string"
}
stored_type = {
name = "string"
create_time = "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"
min_likelihood_per_info_types = [{
min_likelihood = "string"
info_type = {
name = "string"
sensitivity_score = {
score = "string"
}
version = "string"
}
}]
rule_sets = [{
info_types = [{
name = "string"
sensitivity_score = {
score = "string"
}
version = "string"
}]
rules = [{
adjustment_rule = {
likelihood_adjustment = {
fixed_likelihood = "string"
}
adjust_by_image_findings = {
info_types = [{
name = "string"
sensitivity_score = {
score = "string"
}
version = "string"
}]
min_likelihood = "string"
image_containment_type = {
encloses = {}
fully_inside = {}
overlaps = {}
}
}
adjust_by_matching_info_types = {
info_types = [{
name = "string"
sensitivity_score = {
score = "string"
}
version = "string"
}]
matching_type = "string"
min_likelihood = "string"
}
}
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_by_image_findings = {
info_types = [{
name = "string"
sensitivity_score = {
score = "string"
}
version = "string"
}]
image_containment_type = {
encloses = {}
fully_inside = {}
overlaps = {}
}
}
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
}
}
}]
}]
}
logging_configs {
log_to_big_query = {
dataset_id = "string"
project_id = "string"
table_id = "string"
}
}
unsupported_file_type = {
return_verdict = "string"
}
}
var preventionContentPolicyResource = new PreventionContentPolicy("preventionContentPolicyResource", PreventionContentPolicyArgs.builder()
.parent("string")
.rules(PreventionContentPolicyRuleArgs.builder()
.action(PreventionContentPolicyRuleActionArgs.builder()
.returnVerdict("string")
.build())
.conditions(PreventionContentPolicyRuleConditionArgs.builder()
.infoTypeCondition(PreventionContentPolicyRuleConditionInfoTypeConditionArgs.builder()
.anyInfoType(PreventionContentPolicyRuleConditionInfoTypeConditionAnyInfoTypeArgs.builder()
.build())
.infoTypes(PreventionContentPolicyRuleConditionInfoTypeConditionInfoTypesArgs.builder()
.infoTypeNames("string")
.build())
.minCount(0)
.build())
.build())
.build())
.defaultAction(PreventionContentPolicyDefaultActionArgs.builder()
.returnVerdict("string")
.build())
.deletionPolicy("string")
.displayName("string")
.failedToScanSupportedFileType(PreventionContentPolicyFailedToScanSupportedFileTypeArgs.builder()
.returnVerdict("string")
.build())
.inputTooLarge(PreventionContentPolicyInputTooLargeArgs.builder()
.returnVerdict("string")
.build())
.inspectConfig(PreventionContentPolicyInspectConfigArgs.builder()
.contentOptions("string")
.customInfoTypes(PreventionContentPolicyInspectConfigCustomInfoTypeArgs.builder()
.infoType(PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeArgs.builder()
.name("string")
.sensitivityScore(PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeSensitivityScoreArgs.builder()
.score("string")
.build())
.version("string")
.build())
.detectionRules(PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleArgs.builder()
.hotwordRule(PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleArgs.builder()
.hotwordRegex(PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleHotwordRegexArgs.builder()
.pattern("string")
.groupIndexes(0)
.build())
.likelihoodAdjustment(PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleLikelihoodAdjustmentArgs.builder()
.fixedLikelihood("string")
.relativeLikelihood(0)
.build())
.proximity(PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleProximityArgs.builder()
.windowAfter(0)
.windowBefore(0)
.build())
.build())
.build())
.dictionary(PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryArgs.builder()
.cloudStoragePath(PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryCloudStoragePathArgs.builder()
.path("string")
.build())
.wordList(PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryWordListArgs.builder()
.words("string")
.build())
.build())
.exclusionType("string")
.fileLabelInfoType(PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeArgs.builder()
.googleDriveLabel(PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeGoogleDriveLabelArgs.builder()
.labelId("string")
.labelFieldsToMatches(PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeGoogleDriveLabelLabelFieldsToMatchArgs.builder()
.id("string")
.value("string")
.build())
.build())
.sensitivityLabel(PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeSensitivityLabelArgs.builder()
.guid("string")
.build())
.build())
.likelihood("string")
.metadataKeyValueExpression(PreventionContentPolicyInspectConfigCustomInfoTypeMetadataKeyValueExpressionArgs.builder()
.keyRegex("string")
.valueRegex("string")
.build())
.regex(PreventionContentPolicyInspectConfigCustomInfoTypeRegexArgs.builder()
.pattern("string")
.groupIndexes(0)
.build())
.sensitivityScore(PreventionContentPolicyInspectConfigCustomInfoTypeSensitivityScoreArgs.builder()
.score("string")
.build())
.storedType(PreventionContentPolicyInspectConfigCustomInfoTypeStoredTypeArgs.builder()
.name("string")
.createTime("string")
.build())
.surrogateType(PreventionContentPolicyInspectConfigCustomInfoTypeSurrogateTypeArgs.builder()
.build())
.build())
.excludeInfoTypes(false)
.includeQuote(false)
.infoTypes(PreventionContentPolicyInspectConfigInfoTypeArgs.builder()
.name("string")
.sensitivityScore(PreventionContentPolicyInspectConfigInfoTypeSensitivityScoreArgs.builder()
.score("string")
.build())
.version("string")
.build())
.limits(PreventionContentPolicyInspectConfigLimitsArgs.builder()
.maxFindingsPerItem(0)
.maxFindingsPerRequest(0)
.maxFindingsPerInfoTypes(PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeArgs.builder()
.maxFindings(0)
.infoType(PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeArgs.builder()
.name("string")
.sensitivityScore(PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeSensitivityScoreArgs.builder()
.score("string")
.build())
.version("string")
.build())
.build())
.build())
.minLikelihood("string")
.minLikelihoodPerInfoTypes(PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeArgs.builder()
.minLikelihood("string")
.infoType(PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeInfoTypeArgs.builder()
.name("string")
.sensitivityScore(PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeInfoTypeSensitivityScoreArgs.builder()
.score("string")
.build())
.version("string")
.build())
.build())
.ruleSets(PreventionContentPolicyInspectConfigRuleSetArgs.builder()
.infoTypes(PreventionContentPolicyInspectConfigRuleSetInfoTypeArgs.builder()
.name("string")
.sensitivityScore(PreventionContentPolicyInspectConfigRuleSetInfoTypeSensitivityScoreArgs.builder()
.score("string")
.build())
.version("string")
.build())
.rules(PreventionContentPolicyInspectConfigRuleSetRuleArgs.builder()
.adjustmentRule(PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleArgs.builder()
.likelihoodAdjustment(PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleLikelihoodAdjustmentArgs.builder()
.fixedLikelihood("string")
.build())
.adjustByImageFindings(PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsArgs.builder()
.infoTypes(PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsInfoTypeArgs.builder()
.name("string")
.sensitivityScore(PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsInfoTypeSensitivityScoreArgs.builder()
.score("string")
.build())
.version("string")
.build())
.minLikelihood("string")
.imageContainmentType(PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsImageContainmentTypeArgs.builder()
.encloses(PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsImageContainmentTypeEnclosesArgs.builder()
.build())
.fullyInside(PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsImageContainmentTypeFullyInsideArgs.builder()
.build())
.overlaps(PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsImageContainmentTypeOverlapsArgs.builder()
.build())
.build())
.build())
.adjustByMatchingInfoTypes(PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesArgs.builder()
.infoTypes(PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesInfoTypeArgs.builder()
.name("string")
.sensitivityScore(PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesInfoTypeSensitivityScoreArgs.builder()
.score("string")
.build())
.version("string")
.build())
.matchingType("string")
.minLikelihood("string")
.build())
.build())
.exclusionRule(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleArgs.builder()
.matchingType("string")
.dictionary(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryArgs.builder()
.cloudStoragePath(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryCloudStoragePathArgs.builder()
.path("string")
.build())
.wordList(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryWordListArgs.builder()
.words("string")
.build())
.build())
.excludeByHotword(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordArgs.builder()
.hotwordRegex(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordHotwordRegexArgs.builder()
.pattern("string")
.groupIndexes(0)
.build())
.proximity(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordProximityArgs.builder()
.windowAfter(0)
.windowBefore(0)
.build())
.build())
.excludeByImageFindings(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsArgs.builder()
.infoTypes(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsInfoTypeArgs.builder()
.name("string")
.sensitivityScore(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsInfoTypeSensitivityScoreArgs.builder()
.score("string")
.build())
.version("string")
.build())
.imageContainmentType(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsImageContainmentTypeArgs.builder()
.encloses(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsImageContainmentTypeEnclosesArgs.builder()
.build())
.fullyInside(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsImageContainmentTypeFullyInsideArgs.builder()
.build())
.overlaps(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsImageContainmentTypeOverlapsArgs.builder()
.build())
.build())
.build())
.excludeInfoTypes(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesArgs.builder()
.infoTypes(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeArgs.builder()
.name("string")
.sensitivityScore(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeSensitivityScoreArgs.builder()
.score("string")
.build())
.version("string")
.build())
.build())
.regex(PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleRegexArgs.builder()
.pattern("string")
.groupIndexes(0)
.build())
.build())
.hotwordRule(PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleArgs.builder()
.hotwordRegex(PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs.builder()
.pattern("string")
.groupIndexes(0)
.build())
.likelihoodAdjustment(PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs.builder()
.fixedLikelihood("string")
.relativeLikelihood(0)
.build())
.proximity(PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleProximityArgs.builder()
.windowAfter(0)
.windowBefore(0)
.build())
.build())
.build())
.build())
.build())
.loggingConfigs(PreventionContentPolicyLoggingConfigArgs.builder()
.logToBigQuery(PreventionContentPolicyLoggingConfigLogToBigQueryArgs.builder()
.datasetId("string")
.projectId("string")
.tableId("string")
.build())
.build())
.unsupportedFileType(PreventionContentPolicyUnsupportedFileTypeArgs.builder()
.returnVerdict("string")
.build())
.build());
prevention_content_policy_resource = gcp.dataloss.PreventionContentPolicy("preventionContentPolicyResource",
parent="string",
rules=[{
"action": {
"return_verdict": "string",
},
"conditions": [{
"info_type_condition": {
"any_info_type": {},
"info_types": {
"info_type_names": ["string"],
},
"min_count": 0,
},
}],
}],
default_action={
"return_verdict": "string",
},
deletion_policy="string",
display_name="string",
failed_to_scan_supported_file_type={
"return_verdict": "string",
},
input_too_large={
"return_verdict": "string",
},
inspect_config={
"content_options": ["string"],
"custom_info_types": [{
"info_type": {
"name": "string",
"sensitivity_score": {
"score": "string",
},
"version": "string",
},
"detection_rules": [{
"hotword_rule": {
"hotword_regex": {
"pattern": "string",
"group_indexes": [0],
},
"likelihood_adjustment": {
"fixed_likelihood": "string",
"relative_likelihood": 0,
},
"proximity": {
"window_after": 0,
"window_before": 0,
},
},
}],
"dictionary": {
"cloud_storage_path": {
"path": "string",
},
"word_list": {
"words": ["string"],
},
},
"exclusion_type": "string",
"file_label_info_type": {
"google_drive_label": {
"label_id": "string",
"label_fields_to_matches": [{
"id": "string",
"value": "string",
}],
},
"sensitivity_label": {
"guid": "string",
},
},
"likelihood": "string",
"metadata_key_value_expression": {
"key_regex": "string",
"value_regex": "string",
},
"regex": {
"pattern": "string",
"group_indexes": [0],
},
"sensitivity_score": {
"score": "string",
},
"stored_type": {
"name": "string",
"create_time": "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",
"min_likelihood_per_info_types": [{
"min_likelihood": "string",
"info_type": {
"name": "string",
"sensitivity_score": {
"score": "string",
},
"version": "string",
},
}],
"rule_sets": [{
"info_types": [{
"name": "string",
"sensitivity_score": {
"score": "string",
},
"version": "string",
}],
"rules": [{
"adjustment_rule": {
"likelihood_adjustment": {
"fixed_likelihood": "string",
},
"adjust_by_image_findings": {
"info_types": [{
"name": "string",
"sensitivity_score": {
"score": "string",
},
"version": "string",
}],
"min_likelihood": "string",
"image_containment_type": {
"encloses": {},
"fully_inside": {},
"overlaps": {},
},
},
"adjust_by_matching_info_types": {
"info_types": [{
"name": "string",
"sensitivity_score": {
"score": "string",
},
"version": "string",
}],
"matching_type": "string",
"min_likelihood": "string",
},
},
"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_by_image_findings": {
"info_types": [{
"name": "string",
"sensitivity_score": {
"score": "string",
},
"version": "string",
}],
"image_containment_type": {
"encloses": {},
"fully_inside": {},
"overlaps": {},
},
},
"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,
},
},
}],
}],
},
logging_configs=[{
"log_to_big_query": {
"dataset_id": "string",
"project_id": "string",
"table_id": "string",
},
}],
unsupported_file_type={
"return_verdict": "string",
})
const preventionContentPolicyResource = new gcp.dataloss.PreventionContentPolicy("preventionContentPolicyResource", {
parent: "string",
rules: [{
action: {
returnVerdict: "string",
},
conditions: [{
infoTypeCondition: {
anyInfoType: {},
infoTypes: {
infoTypeNames: ["string"],
},
minCount: 0,
},
}],
}],
defaultAction: {
returnVerdict: "string",
},
deletionPolicy: "string",
displayName: "string",
failedToScanSupportedFileType: {
returnVerdict: "string",
},
inputTooLarge: {
returnVerdict: "string",
},
inspectConfig: {
contentOptions: ["string"],
customInfoTypes: [{
infoType: {
name: "string",
sensitivityScore: {
score: "string",
},
version: "string",
},
detectionRules: [{
hotwordRule: {
hotwordRegex: {
pattern: "string",
groupIndexes: [0],
},
likelihoodAdjustment: {
fixedLikelihood: "string",
relativeLikelihood: 0,
},
proximity: {
windowAfter: 0,
windowBefore: 0,
},
},
}],
dictionary: {
cloudStoragePath: {
path: "string",
},
wordList: {
words: ["string"],
},
},
exclusionType: "string",
fileLabelInfoType: {
googleDriveLabel: {
labelId: "string",
labelFieldsToMatches: [{
id: "string",
value: "string",
}],
},
sensitivityLabel: {
guid: "string",
},
},
likelihood: "string",
metadataKeyValueExpression: {
keyRegex: "string",
valueRegex: "string",
},
regex: {
pattern: "string",
groupIndexes: [0],
},
sensitivityScore: {
score: "string",
},
storedType: {
name: "string",
createTime: "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",
minLikelihoodPerInfoTypes: [{
minLikelihood: "string",
infoType: {
name: "string",
sensitivityScore: {
score: "string",
},
version: "string",
},
}],
ruleSets: [{
infoTypes: [{
name: "string",
sensitivityScore: {
score: "string",
},
version: "string",
}],
rules: [{
adjustmentRule: {
likelihoodAdjustment: {
fixedLikelihood: "string",
},
adjustByImageFindings: {
infoTypes: [{
name: "string",
sensitivityScore: {
score: "string",
},
version: "string",
}],
minLikelihood: "string",
imageContainmentType: {
encloses: {},
fullyInside: {},
overlaps: {},
},
},
adjustByMatchingInfoTypes: {
infoTypes: [{
name: "string",
sensitivityScore: {
score: "string",
},
version: "string",
}],
matchingType: "string",
minLikelihood: "string",
},
},
exclusionRule: {
matchingType: "string",
dictionary: {
cloudStoragePath: {
path: "string",
},
wordList: {
words: ["string"],
},
},
excludeByHotword: {
hotwordRegex: {
pattern: "string",
groupIndexes: [0],
},
proximity: {
windowAfter: 0,
windowBefore: 0,
},
},
excludeByImageFindings: {
infoTypes: [{
name: "string",
sensitivityScore: {
score: "string",
},
version: "string",
}],
imageContainmentType: {
encloses: {},
fullyInside: {},
overlaps: {},
},
},
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,
},
},
}],
}],
},
loggingConfigs: [{
logToBigQuery: {
datasetId: "string",
projectId: "string",
tableId: "string",
},
}],
unsupportedFileType: {
returnVerdict: "string",
},
});
type: gcp:dataloss:PreventionContentPolicy
properties:
defaultAction:
returnVerdict: string
deletionPolicy: string
displayName: string
failedToScanSupportedFileType:
returnVerdict: string
inputTooLarge:
returnVerdict: string
inspectConfig:
contentOptions:
- string
customInfoTypes:
- detectionRules:
- hotwordRule:
hotwordRegex:
groupIndexes:
- 0
pattern: string
likelihoodAdjustment:
fixedLikelihood: string
relativeLikelihood: 0
proximity:
windowAfter: 0
windowBefore: 0
dictionary:
cloudStoragePath:
path: string
wordList:
words:
- string
exclusionType: string
fileLabelInfoType:
googleDriveLabel:
labelFieldsToMatches:
- id: string
value: string
labelId: string
sensitivityLabel:
guid: string
infoType:
name: string
sensitivityScore:
score: string
version: string
likelihood: string
metadataKeyValueExpression:
keyRegex: string
valueRegex: string
regex:
groupIndexes:
- 0
pattern: string
sensitivityScore:
score: string
storedType:
createTime: string
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
minLikelihoodPerInfoTypes:
- infoType:
name: string
sensitivityScore:
score: string
version: string
minLikelihood: string
ruleSets:
- infoTypes:
- name: string
sensitivityScore:
score: string
version: string
rules:
- adjustmentRule:
adjustByImageFindings:
imageContainmentType:
encloses: {}
fullyInside: {}
overlaps: {}
infoTypes:
- name: string
sensitivityScore:
score: string
version: string
minLikelihood: string
adjustByMatchingInfoTypes:
infoTypes:
- name: string
sensitivityScore:
score: string
version: string
matchingType: string
minLikelihood: string
likelihoodAdjustment:
fixedLikelihood: string
exclusionRule:
dictionary:
cloudStoragePath:
path: string
wordList:
words:
- string
excludeByHotword:
hotwordRegex:
groupIndexes:
- 0
pattern: string
proximity:
windowAfter: 0
windowBefore: 0
excludeByImageFindings:
imageContainmentType:
encloses: {}
fullyInside: {}
overlaps: {}
infoTypes:
- name: string
sensitivityScore:
score: string
version: string
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
loggingConfigs:
- logToBigQuery:
datasetId: string
projectId: string
tableId: string
parent: string
rules:
- action:
returnVerdict: string
conditions:
- infoTypeCondition:
anyInfoType: {}
infoTypes:
infoTypeNames:
- string
minCount: 0
unsupportedFileType:
returnVerdict: string
PreventionContentPolicy 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 PreventionContentPolicy resource accepts the following input properties:
- Parent string
- The parent of the content policy in any of the following formats:
projects/{{project}}/locations/{{location}}
- Rules
List<Prevention
Content Policy Rule> - Policies to apply, based on the findings returned by inspection. The first rule to match applies. Structure is documented below.
- Default
Action PreventionContent Policy Default Action - Action to take if the content is scanned and no rules match. Defaults to returning an ALLOW verdict if not set. Structure is documented below.
- Deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- Display
Name string - Display name (max 63 chars).
- Failed
To PreventionScan Supported File Type Content Policy Failed To Scan Supported File Type - Action to take if the content is a supported file type and size but fails to be scanned, for example because the file is encrypted or corrupted. Structure is documented below.
- Input
Too PreventionLarge Content Policy Input Too Large - Action to take if the content is a supported file type but is too large to be scanned. Structure is documented below.
- Inspect
Config PreventionContent Policy Inspect Config - InspectConfig to use to produce findings. Structure is documented below.
- Logging
Configs List<PreventionContent Policy Logging Config> - Log the actions taken by the content policy to external systems. Structure is documented below.
- Unsupported
File PreventionType Content Policy Unsupported File Type - Action to take if the content is an unsupported file type. Structure is documented below.
- Parent string
- The parent of the content policy in any of the following formats:
projects/{{project}}/locations/{{location}}
- Rules
[]Prevention
Content Policy Rule Args - Policies to apply, based on the findings returned by inspection. The first rule to match applies. Structure is documented below.
- Default
Action PreventionContent Policy Default Action Args - Action to take if the content is scanned and no rules match. Defaults to returning an ALLOW verdict if not set. Structure is documented below.
- Deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- Display
Name string - Display name (max 63 chars).
- Failed
To PreventionScan Supported File Type Content Policy Failed To Scan Supported File Type Args - Action to take if the content is a supported file type and size but fails to be scanned, for example because the file is encrypted or corrupted. Structure is documented below.
- Input
Too PreventionLarge Content Policy Input Too Large Args - Action to take if the content is a supported file type but is too large to be scanned. Structure is documented below.
- Inspect
Config PreventionContent Policy Inspect Config Args - InspectConfig to use to produce findings. Structure is documented below.
- Logging
Configs []PreventionContent Policy Logging Config Args - Log the actions taken by the content policy to external systems. Structure is documented below.
- Unsupported
File PreventionType Content Policy Unsupported File Type Args - Action to take if the content is an unsupported file type. Structure is documented below.
- parent string
- The parent of the content policy in any of the following formats:
projects/{{project}}/locations/{{location}}
- rules list(object)
- Policies to apply, based on the findings returned by inspection. The first rule to match applies. Structure is documented below.
- default_
action object - Action to take if the content is scanned and no rules match. Defaults to returning an ALLOW verdict if not set. Structure is documented below.
- deletion_
policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- display_
name string - Display name (max 63 chars).
- failed_
to_ objectscan_ supported_ file_ type - Action to take if the content is a supported file type and size but fails to be scanned, for example because the file is encrypted or corrupted. Structure is documented below.
- input_
too_ objectlarge - Action to take if the content is a supported file type but is too large to be scanned. Structure is documented below.
- inspect_
config object - InspectConfig to use to produce findings. Structure is documented below.
- logging_
configs list(object) - Log the actions taken by the content policy to external systems. Structure is documented below.
- unsupported_
file_ objecttype - Action to take if the content is an unsupported file type. Structure is documented below.
- parent String
- The parent of the content policy in any of the following formats:
projects/{{project}}/locations/{{location}}
- rules
List<Prevention
Content Policy Rule> - Policies to apply, based on the findings returned by inspection. The first rule to match applies. Structure is documented below.
- default
Action PreventionContent Policy Default Action - Action to take if the content is scanned and no rules match. Defaults to returning an ALLOW verdict if not set. Structure is documented below.
- deletion
Policy String - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- display
Name String - Display name (max 63 chars).
- failed
To PreventionScan Supported File Type Content Policy Failed To Scan Supported File Type - Action to take if the content is a supported file type and size but fails to be scanned, for example because the file is encrypted or corrupted. Structure is documented below.
- input
Too PreventionLarge Content Policy Input Too Large - Action to take if the content is a supported file type but is too large to be scanned. Structure is documented below.
- inspect
Config PreventionContent Policy Inspect Config - InspectConfig to use to produce findings. Structure is documented below.
- logging
Configs List<PreventionContent Policy Logging Config> - Log the actions taken by the content policy to external systems. Structure is documented below.
- unsupported
File PreventionType Content Policy Unsupported File Type - Action to take if the content is an unsupported file type. Structure is documented below.
- parent string
- The parent of the content policy in any of the following formats:
projects/{{project}}/locations/{{location}}
- rules
Prevention
Content Policy Rule[] - Policies to apply, based on the findings returned by inspection. The first rule to match applies. Structure is documented below.
- default
Action PreventionContent Policy Default Action - Action to take if the content is scanned and no rules match. Defaults to returning an ALLOW verdict if not set. Structure is documented below.
- deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- display
Name string - Display name (max 63 chars).
- failed
To PreventionScan Supported File Type Content Policy Failed To Scan Supported File Type - Action to take if the content is a supported file type and size but fails to be scanned, for example because the file is encrypted or corrupted. Structure is documented below.
- input
Too PreventionLarge Content Policy Input Too Large - Action to take if the content is a supported file type but is too large to be scanned. Structure is documented below.
- inspect
Config PreventionContent Policy Inspect Config - InspectConfig to use to produce findings. Structure is documented below.
- logging
Configs PreventionContent Policy Logging Config[] - Log the actions taken by the content policy to external systems. Structure is documented below.
- unsupported
File PreventionType Content Policy Unsupported File Type - Action to take if the content is an unsupported file type. Structure is documented below.
- parent str
- The parent of the content policy in any of the following formats:
projects/{{project}}/locations/{{location}}
- rules
Sequence[Prevention
Content Policy Rule Args] - Policies to apply, based on the findings returned by inspection. The first rule to match applies. Structure is documented below.
- default_
action PreventionContent Policy Default Action Args - Action to take if the content is scanned and no rules match. Defaults to returning an ALLOW verdict if not set. Structure is documented below.
- deletion_
policy str - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- display_
name str - Display name (max 63 chars).
- failed_
to_ Preventionscan_ supported_ file_ type Content Policy Failed To Scan Supported File Type Args - Action to take if the content is a supported file type and size but fails to be scanned, for example because the file is encrypted or corrupted. Structure is documented below.
- input_
too_ Preventionlarge Content Policy Input Too Large Args - Action to take if the content is a supported file type but is too large to be scanned. Structure is documented below.
- inspect_
config PreventionContent Policy Inspect Config Args - InspectConfig to use to produce findings. Structure is documented below.
- logging_
configs Sequence[PreventionContent Policy Logging Config Args] - Log the actions taken by the content policy to external systems. Structure is documented below.
- unsupported_
file_ Preventiontype Content Policy Unsupported File Type Args - Action to take if the content is an unsupported file type. Structure is documented below.
- parent String
- The parent of the content policy in any of the following formats:
projects/{{project}}/locations/{{location}}
- rules List<Property Map>
- Policies to apply, based on the findings returned by inspection. The first rule to match applies. Structure is documented below.
- default
Action Property Map - Action to take if the content is scanned and no rules match. Defaults to returning an ALLOW verdict if not set. Structure is documented below.
- deletion
Policy String - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- display
Name String - Display name (max 63 chars).
- failed
To Property MapScan Supported File Type - Action to take if the content is a supported file type and size but fails to be scanned, for example because the file is encrypted or corrupted. Structure is documented below.
- input
Too Property MapLarge - Action to take if the content is a supported file type but is too large to be scanned. Structure is documented below.
- inspect
Config Property Map - InspectConfig to use to produce findings. Structure is documented below.
- logging
Configs List<Property Map> - Log the actions taken by the content policy to external systems. Structure is documented below.
- unsupported
File Property MapType - Action to take if the content is an unsupported file type. Structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the PreventionContentPolicy resource produces the following output properties:
- Create
Time string - Output only. The creation timestamp of a ContentPolicy.
- Errors
List<Prevention
Content Policy Error> - Output only. A stream of errors encountered when the policy was applied. Output only field. Will return the last 100 errors. Structure is documented below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource name of the content policy. Set by the server.
- Update
Time string - Output only. The last update timestamp of a ContentPolicy.
- Create
Time string - Output only. The creation timestamp of a ContentPolicy.
- Errors
[]Prevention
Content Policy Error - Output only. A stream of errors encountered when the policy was applied. Output only field. Will return the last 100 errors. Structure is documented below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource name of the content policy. Set by the server.
- Update
Time string - Output only. The last update timestamp of a ContentPolicy.
- create_
time string - Output only. The creation timestamp of a ContentPolicy.
- errors list(object)
- Output only. A stream of errors encountered when the policy was applied. Output only field. Will return the last 100 errors. Structure is documented below.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The resource name of the content policy. Set by the server.
- update_
time string - Output only. The last update timestamp of a ContentPolicy.
- create
Time String - Output only. The creation timestamp of a ContentPolicy.
- errors
List<Prevention
Content Policy Error> - Output only. A stream of errors encountered when the policy was applied. Output only field. Will return the last 100 errors. Structure is documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource name of the content policy. Set by the server.
- update
Time String - Output only. The last update timestamp of a ContentPolicy.
- create
Time string - Output only. The creation timestamp of a ContentPolicy.
- errors
Prevention
Content Policy Error[] - Output only. A stream of errors encountered when the policy was applied. Output only field. Will return the last 100 errors. Structure is documented below.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The resource name of the content policy. Set by the server.
- update
Time string - Output only. The last update timestamp of a ContentPolicy.
- create_
time str - Output only. The creation timestamp of a ContentPolicy.
- errors
Sequence[Prevention
Content Policy Error] - Output only. A stream of errors encountered when the policy was applied. Output only field. Will return the last 100 errors. Structure is documented below.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The resource name of the content policy. Set by the server.
- update_
time str - Output only. The last update timestamp of a ContentPolicy.
- create
Time String - Output only. The creation timestamp of a ContentPolicy.
- errors List<Property Map>
- Output only. A stream of errors encountered when the policy was applied. Output only field. Will return the last 100 errors. Structure is documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource name of the content policy. Set by the server.
- update
Time String - Output only. The last update timestamp of a ContentPolicy.
Look up Existing PreventionContentPolicy Resource
Get an existing PreventionContentPolicy 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?: PreventionContentPolicyState, opts?: CustomResourceOptions): PreventionContentPolicy@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
default_action: Optional[PreventionContentPolicyDefaultActionArgs] = None,
deletion_policy: Optional[str] = None,
display_name: Optional[str] = None,
errors: Optional[Sequence[PreventionContentPolicyErrorArgs]] = None,
failed_to_scan_supported_file_type: Optional[PreventionContentPolicyFailedToScanSupportedFileTypeArgs] = None,
input_too_large: Optional[PreventionContentPolicyInputTooLargeArgs] = None,
inspect_config: Optional[PreventionContentPolicyInspectConfigArgs] = None,
logging_configs: Optional[Sequence[PreventionContentPolicyLoggingConfigArgs]] = None,
name: Optional[str] = None,
parent: Optional[str] = None,
rules: Optional[Sequence[PreventionContentPolicyRuleArgs]] = None,
unsupported_file_type: Optional[PreventionContentPolicyUnsupportedFileTypeArgs] = None,
update_time: Optional[str] = None) -> PreventionContentPolicyfunc GetPreventionContentPolicy(ctx *Context, name string, id IDInput, state *PreventionContentPolicyState, opts ...ResourceOption) (*PreventionContentPolicy, error)public static PreventionContentPolicy Get(string name, Input<string> id, PreventionContentPolicyState? state, CustomResourceOptions? opts = null)public static PreventionContentPolicy get(String name, Output<String> id, PreventionContentPolicyState state, CustomResourceOptions options)resources: existingPreventionContentPolicy: type: gcp:dataloss:PreventionContentPolicy get: id: ${id}import {
to = gcp_dataloss_prevention_content_policy.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state PreventionContentPolicyState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state PreventionContentPolicyState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state PreventionContentPolicyState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state PreventionContentPolicyState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Create
Time string - Output only. The creation timestamp of a ContentPolicy.
- Default
Action PreventionContent Policy Default Action - Action to take if the content is scanned and no rules match. Defaults to returning an ALLOW verdict if not set. Structure is documented below.
- Deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- Display
Name string - Display name (max 63 chars).
- Errors
List<Prevention
Content Policy Error> - Output only. A stream of errors encountered when the policy was applied. Output only field. Will return the last 100 errors. Structure is documented below.
- Failed
To PreventionScan Supported File Type Content Policy Failed To Scan Supported File Type - Action to take if the content is a supported file type and size but fails to be scanned, for example because the file is encrypted or corrupted. Structure is documented below.
- Input
Too PreventionLarge Content Policy Input Too Large - Action to take if the content is a supported file type but is too large to be scanned. Structure is documented below.
- Inspect
Config PreventionContent Policy Inspect Config - InspectConfig to use to produce findings. Structure is documented below.
- Logging
Configs List<PreventionContent Policy Logging Config> - Log the actions taken by the content policy to external systems. Structure is documented below.
- Name string
- The resource name of the content policy. Set by the server.
- Parent string
- The parent of the content policy in any of the following formats:
projects/{{project}}/locations/{{location}}
- Rules
List<Prevention
Content Policy Rule> - Policies to apply, based on the findings returned by inspection. The first rule to match applies. Structure is documented below.
- Unsupported
File PreventionType Content Policy Unsupported File Type - Action to take if the content is an unsupported file type. Structure is documented below.
- Update
Time string - Output only. The last update timestamp of a ContentPolicy.
- Create
Time string - Output only. The creation timestamp of a ContentPolicy.
- Default
Action PreventionContent Policy Default Action Args - Action to take if the content is scanned and no rules match. Defaults to returning an ALLOW verdict if not set. Structure is documented below.
- Deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- Display
Name string - Display name (max 63 chars).
- Errors
[]Prevention
Content Policy Error Args - Output only. A stream of errors encountered when the policy was applied. Output only field. Will return the last 100 errors. Structure is documented below.
- Failed
To PreventionScan Supported File Type Content Policy Failed To Scan Supported File Type Args - Action to take if the content is a supported file type and size but fails to be scanned, for example because the file is encrypted or corrupted. Structure is documented below.
- Input
Too PreventionLarge Content Policy Input Too Large Args - Action to take if the content is a supported file type but is too large to be scanned. Structure is documented below.
- Inspect
Config PreventionContent Policy Inspect Config Args - InspectConfig to use to produce findings. Structure is documented below.
- Logging
Configs []PreventionContent Policy Logging Config Args - Log the actions taken by the content policy to external systems. Structure is documented below.
- Name string
- The resource name of the content policy. Set by the server.
- Parent string
- The parent of the content policy in any of the following formats:
projects/{{project}}/locations/{{location}}
- Rules
[]Prevention
Content Policy Rule Args - Policies to apply, based on the findings returned by inspection. The first rule to match applies. Structure is documented below.
- Unsupported
File PreventionType Content Policy Unsupported File Type Args - Action to take if the content is an unsupported file type. Structure is documented below.
- Update
Time string - Output only. The last update timestamp of a ContentPolicy.
- create_
time string - Output only. The creation timestamp of a ContentPolicy.
- default_
action object - Action to take if the content is scanned and no rules match. Defaults to returning an ALLOW verdict if not set. Structure is documented below.
- deletion_
policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- display_
name string - Display name (max 63 chars).
- errors list(object)
- Output only. A stream of errors encountered when the policy was applied. Output only field. Will return the last 100 errors. Structure is documented below.
- failed_
to_ objectscan_ supported_ file_ type - Action to take if the content is a supported file type and size but fails to be scanned, for example because the file is encrypted or corrupted. Structure is documented below.
- input_
too_ objectlarge - Action to take if the content is a supported file type but is too large to be scanned. Structure is documented below.
- inspect_
config object - InspectConfig to use to produce findings. Structure is documented below.
- logging_
configs list(object) - Log the actions taken by the content policy to external systems. Structure is documented below.
- name string
- The resource name of the content policy. Set by the server.
- parent string
- The parent of the content policy in any of the following formats:
projects/{{project}}/locations/{{location}}
- rules list(object)
- Policies to apply, based on the findings returned by inspection. The first rule to match applies. Structure is documented below.
- unsupported_
file_ objecttype - Action to take if the content is an unsupported file type. Structure is documented below.
- update_
time string - Output only. The last update timestamp of a ContentPolicy.
- create
Time String - Output only. The creation timestamp of a ContentPolicy.
- default
Action PreventionContent Policy Default Action - Action to take if the content is scanned and no rules match. Defaults to returning an ALLOW verdict if not set. Structure is documented below.
- deletion
Policy String - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- display
Name String - Display name (max 63 chars).
- errors
List<Prevention
Content Policy Error> - Output only. A stream of errors encountered when the policy was applied. Output only field. Will return the last 100 errors. Structure is documented below.
- failed
To PreventionScan Supported File Type Content Policy Failed To Scan Supported File Type - Action to take if the content is a supported file type and size but fails to be scanned, for example because the file is encrypted or corrupted. Structure is documented below.
- input
Too PreventionLarge Content Policy Input Too Large - Action to take if the content is a supported file type but is too large to be scanned. Structure is documented below.
- inspect
Config PreventionContent Policy Inspect Config - InspectConfig to use to produce findings. Structure is documented below.
- logging
Configs List<PreventionContent Policy Logging Config> - Log the actions taken by the content policy to external systems. Structure is documented below.
- name String
- The resource name of the content policy. Set by the server.
- parent String
- The parent of the content policy in any of the following formats:
projects/{{project}}/locations/{{location}}
- rules
List<Prevention
Content Policy Rule> - Policies to apply, based on the findings returned by inspection. The first rule to match applies. Structure is documented below.
- unsupported
File PreventionType Content Policy Unsupported File Type - Action to take if the content is an unsupported file type. Structure is documented below.
- update
Time String - Output only. The last update timestamp of a ContentPolicy.
- create
Time string - Output only. The creation timestamp of a ContentPolicy.
- default
Action PreventionContent Policy Default Action - Action to take if the content is scanned and no rules match. Defaults to returning an ALLOW verdict if not set. Structure is documented below.
- deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- display
Name string - Display name (max 63 chars).
- errors
Prevention
Content Policy Error[] - Output only. A stream of errors encountered when the policy was applied. Output only field. Will return the last 100 errors. Structure is documented below.
- failed
To PreventionScan Supported File Type Content Policy Failed To Scan Supported File Type - Action to take if the content is a supported file type and size but fails to be scanned, for example because the file is encrypted or corrupted. Structure is documented below.
- input
Too PreventionLarge Content Policy Input Too Large - Action to take if the content is a supported file type but is too large to be scanned. Structure is documented below.
- inspect
Config PreventionContent Policy Inspect Config - InspectConfig to use to produce findings. Structure is documented below.
- logging
Configs PreventionContent Policy Logging Config[] - Log the actions taken by the content policy to external systems. Structure is documented below.
- name string
- The resource name of the content policy. Set by the server.
- parent string
- The parent of the content policy in any of the following formats:
projects/{{project}}/locations/{{location}}
- rules
Prevention
Content Policy Rule[] - Policies to apply, based on the findings returned by inspection. The first rule to match applies. Structure is documented below.
- unsupported
File PreventionType Content Policy Unsupported File Type - Action to take if the content is an unsupported file type. Structure is documented below.
- update
Time string - Output only. The last update timestamp of a ContentPolicy.
- create_
time str - Output only. The creation timestamp of a ContentPolicy.
- default_
action PreventionContent Policy Default Action Args - Action to take if the content is scanned and no rules match. Defaults to returning an ALLOW verdict if not set. Structure is documented below.
- deletion_
policy str - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- display_
name str - Display name (max 63 chars).
- errors
Sequence[Prevention
Content Policy Error Args] - Output only. A stream of errors encountered when the policy was applied. Output only field. Will return the last 100 errors. Structure is documented below.
- failed_
to_ Preventionscan_ supported_ file_ type Content Policy Failed To Scan Supported File Type Args - Action to take if the content is a supported file type and size but fails to be scanned, for example because the file is encrypted or corrupted. Structure is documented below.
- input_
too_ Preventionlarge Content Policy Input Too Large Args - Action to take if the content is a supported file type but is too large to be scanned. Structure is documented below.
- inspect_
config PreventionContent Policy Inspect Config Args - InspectConfig to use to produce findings. Structure is documented below.
- logging_
configs Sequence[PreventionContent Policy Logging Config Args] - Log the actions taken by the content policy to external systems. Structure is documented below.
- name str
- The resource name of the content policy. Set by the server.
- parent str
- The parent of the content policy in any of the following formats:
projects/{{project}}/locations/{{location}}
- rules
Sequence[Prevention
Content Policy Rule Args] - Policies to apply, based on the findings returned by inspection. The first rule to match applies. Structure is documented below.
- unsupported_
file_ Preventiontype Content Policy Unsupported File Type Args - Action to take if the content is an unsupported file type. Structure is documented below.
- update_
time str - Output only. The last update timestamp of a ContentPolicy.
- create
Time String - Output only. The creation timestamp of a ContentPolicy.
- default
Action Property Map - Action to take if the content is scanned and no rules match. Defaults to returning an ALLOW verdict if not set. Structure is documented below.
- deletion
Policy String - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- display
Name String - Display name (max 63 chars).
- errors List<Property Map>
- Output only. A stream of errors encountered when the policy was applied. Output only field. Will return the last 100 errors. Structure is documented below.
- failed
To Property MapScan Supported File Type - Action to take if the content is a supported file type and size but fails to be scanned, for example because the file is encrypted or corrupted. Structure is documented below.
- input
Too Property MapLarge - Action to take if the content is a supported file type but is too large to be scanned. Structure is documented below.
- inspect
Config Property Map - InspectConfig to use to produce findings. Structure is documented below.
- logging
Configs List<Property Map> - Log the actions taken by the content policy to external systems. Structure is documented below.
- name String
- The resource name of the content policy. Set by the server.
- parent String
- The parent of the content policy in any of the following formats:
projects/{{project}}/locations/{{location}}
- rules List<Property Map>
- Policies to apply, based on the findings returned by inspection. The first rule to match applies. Structure is documented below.
- unsupported
File Property MapType - Action to take if the content is an unsupported file type. Structure is documented below.
- update
Time String - Output only. The last update timestamp of a ContentPolicy.
Supporting Types
PreventionContentPolicyDefaultAction, PreventionContentPolicyDefaultActionArgs
- Return
Verdict string - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- Return
Verdict string - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- return_
verdict string - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- return
Verdict String - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- return
Verdict string - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- return_
verdict str - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- return
Verdict String - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
PreventionContentPolicyError, PreventionContentPolicyErrorArgs
- Details
List<Prevention
Content Policy Error Detail> - (Output) A list of messages that carry the error details.
- Extra
Info string - (Output) Additional information about the error.
- Timestamps List<string>
- (Output) The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
- Details
[]Prevention
Content Policy Error Detail - (Output) A list of messages that carry the error details.
- Extra
Info string - (Output) Additional information about the error.
- Timestamps []string
- (Output) The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
- details list(object)
- (Output) A list of messages that carry the error details.
- extra_
info string - (Output) Additional information about the error.
- timestamps list(string)
- (Output) The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
- details
List<Prevention
Content Policy Error Detail> - (Output) A list of messages that carry the error details.
- extra
Info String - (Output) Additional information about the error.
- timestamps List<String>
- (Output) The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
- details
Prevention
Content Policy Error Detail[] - (Output) A list of messages that carry the error details.
- extra
Info string - (Output) Additional information about the error.
- timestamps string[]
- (Output) The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
- details
Sequence[Prevention
Content Policy Error Detail] - (Output) A list of messages that carry the error details.
- extra_
info str - (Output) Additional information about the error.
- timestamps Sequence[str]
- (Output) The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
- details List<Property Map>
- (Output) A list of messages that carry the error details.
- extra
Info String - (Output) Additional information about the error.
- timestamps List<String>
- (Output) The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
PreventionContentPolicyErrorDetail, PreventionContentPolicyErrorDetailArgs
PreventionContentPolicyFailedToScanSupportedFileType, PreventionContentPolicyFailedToScanSupportedFileTypeArgs
- Return
Verdict string - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- Return
Verdict string - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- return_
verdict string - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- return
Verdict String - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- return
Verdict string - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- return_
verdict str - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- return
Verdict String - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
PreventionContentPolicyInputTooLarge, PreventionContentPolicyInputTooLargeArgs
- Return
Verdict string - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- Return
Verdict string - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- return_
verdict string - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- return
Verdict String - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- return
Verdict string - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- return_
verdict str - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- return
Verdict String - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
PreventionContentPolicyInspectConfig, PreventionContentPolicyInspectConfigArgs
- Content
Options 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. - Custom
Info List<PreventionTypes Content Policy 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 List<PreventionContent Policy 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
Prevention
Content Policy Inspect Config Limits - Configuration to control the number of findings returned. Structure is documented below.
- Min
Likelihood 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. - Min
Likelihood List<PreventionPer Info Types Content Policy Inspect Config Min Likelihood Per Info Type> - Minimum likelihood per infotype. For each infotype, a user can specify a minimum likelihood. The system only returns a finding if its likelihood is above this threshold. If this field is not set, the system uses the InspectConfig min_likelihood. Structure is documented below.
- Rule
Sets List<PreventionContent Policy 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 []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. - Custom
Info []PreventionTypes Content Policy 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 []PreventionContent Policy 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
Prevention
Content Policy Inspect Config Limits - Configuration to control the number of findings returned. Structure is documented below.
- Min
Likelihood 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. - Min
Likelihood []PreventionPer Info Types Content Policy Inspect Config Min Likelihood Per Info Type - Minimum likelihood per infotype. For each infotype, a user can specify a minimum likelihood. The system only returns a finding if its likelihood is above this threshold. If this field is not set, the system uses the InspectConfig min_likelihood. Structure is documented below.
- Rule
Sets []PreventionContent Policy 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 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. - custom_
info_ list(object)types - 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 list(object) - 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 object
- Configuration to control the number of findings returned. Structure is documented below.
- min_
likelihood 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. - min_
likelihood_ list(object)per_ info_ types - Minimum likelihood per infotype. For each infotype, a user can specify a minimum likelihood. The system only returns a finding if its likelihood is above this threshold. If this field is not set, the system uses the InspectConfig min_likelihood. Structure is documented below.
- rule_
sets list(object) - 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 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. - custom
Info List<PreventionTypes Content Policy 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 BooleanTypes - When true, excludes type information of the findings.
- include
Quote Boolean - When true, a contextual quote from the data that triggered a finding is included in the response.
- info
Types List<PreventionContent Policy 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
Prevention
Content Policy Inspect Config Limits - Configuration to control the number of findings returned. Structure is documented below.
- min
Likelihood 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. - min
Likelihood List<PreventionPer Info Types Content Policy Inspect Config Min Likelihood Per Info Type> - Minimum likelihood per infotype. For each infotype, a user can specify a minimum likelihood. The system only returns a finding if its likelihood is above this threshold. If this field is not set, the system uses the InspectConfig min_likelihood. Structure is documented below.
- rule
Sets List<PreventionContent Policy 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 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. - custom
Info PreventionTypes Content Policy 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 booleanTypes - When true, excludes type information of the findings.
- include
Quote boolean - When true, a contextual quote from the data that triggered a finding is included in the response.
- info
Types PreventionContent Policy 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
Prevention
Content Policy Inspect Config Limits - Configuration to control the number of findings returned. Structure is documented below.
- min
Likelihood 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. - min
Likelihood PreventionPer Info Types Content Policy Inspect Config Min Likelihood Per Info Type[] - Minimum likelihood per infotype. For each infotype, a user can specify a minimum likelihood. The system only returns a finding if its likelihood is above this threshold. If this field is not set, the system uses the InspectConfig min_likelihood. Structure is documented below.
- rule
Sets PreventionContent Policy 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 Content Policy 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[PreventionContent Policy 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
Prevention
Content Policy 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. - min_
likelihood_ Sequence[Preventionper_ info_ types Content Policy Inspect Config Min Likelihood Per Info Type] - Minimum likelihood per infotype. For each infotype, a user can specify a minimum likelihood. The system only returns a finding if its likelihood is above this threshold. If this field is not set, the system uses the InspectConfig min_likelihood. Structure is documented below.
- rule_
sets Sequence[PreventionContent Policy 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 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. - custom
Info 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.
- exclude
Info BooleanTypes - When true, excludes type information of the findings.
- include
Quote Boolean - When true, a contextual quote from the data that triggered a finding is included in the response.
- info
Types 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.
- min
Likelihood 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. - min
Likelihood List<Property Map>Per Info Types - Minimum likelihood per infotype. For each infotype, a user can specify a minimum likelihood. The system only returns a finding if its likelihood is above this threshold. If this field is not set, the system uses the InspectConfig min_likelihood. Structure is documented below.
- rule
Sets 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.
PreventionContentPolicyInspectConfigCustomInfoType, PreventionContentPolicyInspectConfigCustomInfoTypeArgs
- Info
Type PreventionContent Policy 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
infoTypesfield. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified ininfoTypeslist then the name is treated as a custom info type. Structure is documented below. - Detection
Rules List<PreventionContent Policy Inspect Config Custom Info Type Detection Rule> - Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Only supported for the dictionary, regex, and storedType CustomInfoTypes. Structure is documented below.
- Dictionary
Prevention
Content Policy Inspect Config Custom Info Type Dictionary - Dictionary which defines the rule. Structure is documented below.
- Exclusion
Type 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. - File
Label PreventionInfo Type Content Policy Inspect Config Custom Info Type File Label Info Type - Configuration for a custom infoType that detects file labels. Structure is documented below.
- 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. - Metadata
Key PreventionValue Expression Content Policy Inspect Config Custom Info Type Metadata Key Value Expression - Configuration for a custom infoType that detects key-value pairs in the metadata matching the specified regular expressions. Structure is documented below.
- Regex
Prevention
Content Policy Inspect Config Custom Info Type Regex - Regular expression which defines the rule. Structure is documented below.
- Sensitivity
Score PreventionContent Policy 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 PreventionContent Policy Inspect Config Custom Info Type Stored Type - A reference to a StoredInfoType to use with scanning. Structure is documented below.
- Surrogate
Type PreventionContent Policy Inspect Config Custom Info Type Surrogate Type - Message for detecting output from deidentification transformations that support reversing.
- Info
Type PreventionContent Policy 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
infoTypesfield. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified ininfoTypeslist then the name is treated as a custom info type. Structure is documented below. - Detection
Rules []PreventionContent Policy Inspect Config Custom Info Type Detection Rule - Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Only supported for the dictionary, regex, and storedType CustomInfoTypes. Structure is documented below.
- Dictionary
Prevention
Content Policy Inspect Config Custom Info Type Dictionary - Dictionary which defines the rule. Structure is documented below.
- Exclusion
Type 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. - File
Label PreventionInfo Type Content Policy Inspect Config Custom Info Type File Label Info Type - Configuration for a custom infoType that detects file labels. Structure is documented below.
- 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. - Metadata
Key PreventionValue Expression Content Policy Inspect Config Custom Info Type Metadata Key Value Expression - Configuration for a custom infoType that detects key-value pairs in the metadata matching the specified regular expressions. Structure is documented below.
- Regex
Prevention
Content Policy Inspect Config Custom Info Type Regex - Regular expression which defines the rule. Structure is documented below.
- Sensitivity
Score PreventionContent Policy 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 PreventionContent Policy Inspect Config Custom Info Type Stored Type - A reference to a StoredInfoType to use with scanning. Structure is documented below.
- Surrogate
Type PreventionContent Policy Inspect Config Custom Info Type Surrogate Type - Message for detecting output from deidentification transformations that support reversing.
- info_
type object - 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
infoTypesfield. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified ininfoTypeslist then the name is treated as a custom info type. Structure is documented below. - detection_
rules list(object) - Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Only supported for the dictionary, regex, and storedType CustomInfoTypes. Structure is documented below.
- dictionary object
- Dictionary which defines the rule. Structure is documented below.
- exclusion_
type 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. - file_
label_ objectinfo_ type - Configuration for a custom infoType that detects file labels. Structure is documented below.
- 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. - metadata_
key_ objectvalue_ expression - Configuration for a custom infoType that detects key-value pairs in the metadata matching the specified regular expressions. Structure is documented below.
- regex object
- Regular expression which defines the rule. Structure is documented below.
- sensitivity_
score object - Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- stored_
type object - A reference to a StoredInfoType to use with scanning. Structure is documented below.
- surrogate_
type object - Message for detecting output from deidentification transformations that support reversing.
- info
Type PreventionContent Policy 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
infoTypesfield. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified ininfoTypeslist then the name is treated as a custom info type. Structure is documented below. - detection
Rules List<PreventionContent Policy Inspect Config Custom Info Type Detection Rule> - Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Only supported for the dictionary, regex, and storedType CustomInfoTypes. Structure is documented below.
- dictionary
Prevention
Content Policy Inspect Config Custom Info Type Dictionary - Dictionary which defines the rule. Structure is documented below.
- exclusion
Type 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. - file
Label PreventionInfo Type Content Policy Inspect Config Custom Info Type File Label Info Type - Configuration for a custom infoType that detects file labels. Structure is documented below.
- 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. - metadata
Key PreventionValue Expression Content Policy Inspect Config Custom Info Type Metadata Key Value Expression - Configuration for a custom infoType that detects key-value pairs in the metadata matching the specified regular expressions. Structure is documented below.
- regex
Prevention
Content Policy Inspect Config Custom Info Type Regex - Regular expression which defines the rule. Structure is documented below.
- sensitivity
Score PreventionContent Policy 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 PreventionContent Policy Inspect Config Custom Info Type Stored Type - A reference to a StoredInfoType to use with scanning. Structure is documented below.
- surrogate
Type PreventionContent Policy Inspect Config Custom Info Type Surrogate Type - Message for detecting output from deidentification transformations that support reversing.
- info
Type PreventionContent Policy 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
infoTypesfield. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified ininfoTypeslist then the name is treated as a custom info type. Structure is documented below. - detection
Rules PreventionContent Policy Inspect Config Custom Info Type Detection Rule[] - Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Only supported for the dictionary, regex, and storedType CustomInfoTypes. Structure is documented below.
- dictionary
Prevention
Content Policy Inspect Config Custom Info Type Dictionary - Dictionary which defines the rule. Structure is documented below.
- exclusion
Type 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. - file
Label PreventionInfo Type Content Policy Inspect Config Custom Info Type File Label Info Type - Configuration for a custom infoType that detects file labels. Structure is documented below.
- 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. - metadata
Key PreventionValue Expression Content Policy Inspect Config Custom Info Type Metadata Key Value Expression - Configuration for a custom infoType that detects key-value pairs in the metadata matching the specified regular expressions. Structure is documented below.
- regex
Prevention
Content Policy Inspect Config Custom Info Type Regex - Regular expression which defines the rule. Structure is documented below.
- sensitivity
Score PreventionContent Policy 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 PreventionContent Policy Inspect Config Custom Info Type Stored Type - A reference to a StoredInfoType to use with scanning. Structure is documented below.
- surrogate
Type PreventionContent Policy Inspect Config Custom Info Type Surrogate Type - Message for detecting output from deidentification transformations that support reversing.
- info_
type PreventionContent Policy 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
infoTypesfield. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified ininfoTypeslist then the name is treated as a custom info type. Structure is documented below. - detection_
rules Sequence[PreventionContent Policy Inspect Config Custom Info Type Detection Rule] - Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Only supported for the dictionary, regex, and storedType CustomInfoTypes. Structure is documented below.
- dictionary
Prevention
Content Policy 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. - file_
label_ Preventioninfo_ type Content Policy Inspect Config Custom Info Type File Label Info Type - Configuration for a custom infoType that detects file labels. Structure is documented below.
- 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. - metadata_
key_ Preventionvalue_ expression Content Policy Inspect Config Custom Info Type Metadata Key Value Expression - Configuration for a custom infoType that detects key-value pairs in the metadata matching the specified regular expressions. Structure is documented below.
- regex
Prevention
Content Policy Inspect Config Custom Info Type Regex - Regular expression which defines the rule. Structure is documented below.
- sensitivity_
score PreventionContent Policy 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 PreventionContent Policy Inspect Config Custom Info Type Stored Type - A reference to a StoredInfoType to use with scanning. Structure is documented below.
- surrogate_
type PreventionContent Policy Inspect Config Custom Info Type Surrogate Type - Message for detecting output from deidentification transformations that support reversing.
- info
Type 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
infoTypesfield. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified ininfoTypeslist then the name is treated as a custom info type. Structure is documented below. - detection
Rules List<Property Map> - Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Only supported for the dictionary, regex, and storedType CustomInfoTypes. Structure is documented below.
- dictionary Property Map
- Dictionary which defines the rule. Structure is documented below.
- exclusion
Type 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. - file
Label Property MapInfo Type - Configuration for a custom infoType that detects file labels. Structure is documented below.
- 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. - metadata
Key Property MapValue Expression - Configuration for a custom infoType that detects key-value pairs in the metadata matching the specified regular expressions. Structure is documented below.
- regex Property Map
- Regular expression which defines the rule. Structure is documented below.
- sensitivity
Score Property Map - Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- stored
Type Property Map - A reference to a StoredInfoType to use with scanning. Structure is documented below.
- surrogate
Type Property Map - Message for detecting output from deidentification transformations that support reversing.
PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRule, PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleArgs
- Hotword
Rule PreventionContent Policy Inspect Config Custom Info Type Detection Rule Hotword Rule - Hotword-based detection rule. Structure is documented below.
- Hotword
Rule PreventionContent Policy Inspect Config Custom Info Type Detection Rule Hotword Rule - Hotword-based detection rule. Structure is documented below.
- hotword_
rule object - Hotword-based detection rule. Structure is documented below.
- hotword
Rule PreventionContent Policy Inspect Config Custom Info Type Detection Rule Hotword Rule - Hotword-based detection rule. Structure is documented below.
- hotword
Rule PreventionContent Policy Inspect Config Custom Info Type Detection Rule Hotword Rule - Hotword-based detection rule. Structure is documented below.
- hotword_
rule PreventionContent Policy Inspect Config Custom Info Type Detection Rule Hotword Rule - Hotword-based detection rule. Structure is documented below.
- hotword
Rule Property Map - Hotword-based detection rule. Structure is documented below.
PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRule, PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleArgs
- Hotword
Regex PreventionContent Policy Inspect Config Custom Info Type Detection Rule Hotword Rule Hotword Regex - Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- Likelihood
Adjustment PreventionContent Policy Inspect Config Custom Info Type Detection Rule Hotword Rule Likelihood Adjustment - Likelihood adjustment to apply to all matching findings. Structure is documented below.
- Proximity
Prevention
Content Policy Inspect Config Custom Info Type Detection 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. Structure is documented below.
- Hotword
Regex PreventionContent Policy Inspect Config Custom Info Type Detection Rule Hotword Rule Hotword Regex - Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- Likelihood
Adjustment PreventionContent Policy Inspect Config Custom Info Type Detection Rule Hotword Rule Likelihood Adjustment - Likelihood adjustment to apply to all matching findings. Structure is documented below.
- Proximity
Prevention
Content Policy Inspect Config Custom Info Type Detection 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. Structure is documented below.
- hotword_
regex object - Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- likelihood_
adjustment object - Likelihood adjustment to apply to all matching findings. Structure is documented below.
- proximity object
- Proximity of the finding within which the entire hotword must reside. The total length of the window cannot exceed 1000 characters. Structure is documented below.
- hotword
Regex PreventionContent Policy Inspect Config Custom Info Type Detection Rule Hotword Rule Hotword Regex - Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- likelihood
Adjustment PreventionContent Policy Inspect Config Custom Info Type Detection Rule Hotword Rule Likelihood Adjustment - Likelihood adjustment to apply to all matching findings. Structure is documented below.
- proximity
Prevention
Content Policy Inspect Config Custom Info Type Detection 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. Structure is documented below.
- hotword
Regex PreventionContent Policy Inspect Config Custom Info Type Detection Rule Hotword Rule Hotword Regex - Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- likelihood
Adjustment PreventionContent Policy Inspect Config Custom Info Type Detection Rule Hotword Rule Likelihood Adjustment - Likelihood adjustment to apply to all matching findings. Structure is documented below.
- proximity
Prevention
Content Policy Inspect Config Custom Info Type Detection 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. Structure is documented below.
- hotword_
regex PreventionContent Policy Inspect Config Custom Info Type Detection Rule Hotword Rule Hotword Regex - Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- likelihood_
adjustment PreventionContent Policy Inspect Config Custom Info Type Detection Rule Hotword Rule Likelihood Adjustment - Likelihood adjustment to apply to all matching findings. Structure is documented below.
- proximity
Prevention
Content Policy Inspect Config Custom Info Type Detection 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. Structure is documented below.
- hotword
Regex Property Map - Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- likelihood
Adjustment 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. Structure is documented below.
PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleHotwordRegex, PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleHotwordRegexArgs
- 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.
- Group
Indexes 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.
- Group
Indexes []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.
- group_
indexes 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.
- 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.
- group
Indexes 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.
- group
Indexes 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.
- group
Indexes 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.
PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleLikelihoodAdjustment, PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleLikelihoodAdjustmentArgs
- Fixed
Likelihood string - Set the likelihood of a finding to a fixed value. Either this or relativeLikelihood 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.
- Fixed
Likelihood string - Set the likelihood of a finding to a fixed value. Either this or relativeLikelihood 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.
- fixed_
likelihood string - Set the likelihood of a finding to a fixed value. Either this or relativeLikelihood can be set.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY. - relative_
likelihood number - Increase or decrease the likelihood by the specified number of levels.
- fixed
Likelihood String - Set the likelihood of a finding to a fixed value. Either this or relativeLikelihood can be set.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY. - relative
Likelihood Integer - Increase or decrease the likelihood by the specified number of levels.
- fixed
Likelihood string - Set the likelihood of a finding to a fixed value. Either this or relativeLikelihood can be set.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY. - relative
Likelihood number - Increase or decrease the likelihood by the specified number of levels.
- fixed_
likelihood str - Set the likelihood of a finding to a fixed value. Either this or relativeLikelihood 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.
- fixed
Likelihood String - Set the likelihood of a finding to a fixed value. Either this or relativeLikelihood can be set.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY. - relative
Likelihood Number - Increase or decrease the likelihood by the specified number of levels.
PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleProximity, PreventionContentPolicyInspectConfigCustomInfoTypeDetectionRuleHotwordRuleProximityArgs
- Window
After int - Number of characters after the finding to consider.
- Window
Before int - 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.
- window_
after number - Number of characters after the finding to consider.
- window_
before number - Number of characters before the finding to consider.
- window
After Integer - Number of characters after the finding to consider.
- window
Before Integer - Number of characters before the finding to consider.
- window
After number - Number of characters after the finding to consider.
- window
Before 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.
- window
After Number - Number of characters after the finding to consider.
- window
Before Number - Number of characters before the finding to consider.
PreventionContentPolicyInspectConfigCustomInfoTypeDictionary, PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryArgs
- Cloud
Storage PreventionPath Content Policy 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 PreventionContent Policy Inspect Config Custom Info Type Dictionary Word List - List of words or phrases to search for. Structure is documented below.
- Cloud
Storage PreventionPath Content Policy 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 PreventionContent Policy Inspect Config Custom Info Type Dictionary Word List - List of words or phrases to search for. Structure is documented below.
- cloud_
storage_ objectpath - Newline-delimited file of words in Cloud Storage. Only a single file is accepted. Structure is documented below.
- word_
list object - List of words or phrases to search for. Structure is documented below.
- cloud
Storage PreventionPath Content Policy 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 PreventionContent Policy Inspect Config Custom Info Type Dictionary Word List - List of words or phrases to search for. Structure is documented below.
- cloud
Storage PreventionPath Content Policy 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 PreventionContent Policy Inspect Config Custom Info Type Dictionary Word List - List of words or phrases to search for. Structure is documented below.
- cloud_
storage_ Preventionpath Content Policy 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 PreventionContent Policy Inspect Config Custom Info Type Dictionary Word List - List of words or phrases to search for. Structure is documented below.
- cloud
Storage Property MapPath - Newline-delimited file of words in Cloud Storage. Only a single file is accepted. Structure is documented below.
- word
List Property Map - List of words or phrases to search for. Structure is documented below.
PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryCloudStoragePath, PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryCloudStoragePathArgs
- 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 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
PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryWordList, PreventionContentPolicyInspectConfigCustomInfoTypeDictionaryWordListArgs
- 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 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.
PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoType, PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeArgs
- Google
Drive PreventionLabel Content Policy Inspect Config Custom Info Type File Label Info Type Google Drive Label - Google Drive labels published by Google. Structure is documented below.
- Sensitivity
Label PreventionContent Policy Inspect Config Custom Info Type File Label Info Type Sensitivity Label - Sensitivity labels published by Microsoft. Structure is documented below.
- Google
Drive PreventionLabel Content Policy Inspect Config Custom Info Type File Label Info Type Google Drive Label - Google Drive labels published by Google. Structure is documented below.
- Sensitivity
Label PreventionContent Policy Inspect Config Custom Info Type File Label Info Type Sensitivity Label - Sensitivity labels published by Microsoft. Structure is documented below.
- google_
drive_ objectlabel - Google Drive labels published by Google. Structure is documented below.
- sensitivity_
label object - Sensitivity labels published by Microsoft. Structure is documented below.
- google
Drive PreventionLabel Content Policy Inspect Config Custom Info Type File Label Info Type Google Drive Label - Google Drive labels published by Google. Structure is documented below.
- sensitivity
Label PreventionContent Policy Inspect Config Custom Info Type File Label Info Type Sensitivity Label - Sensitivity labels published by Microsoft. Structure is documented below.
- google
Drive PreventionLabel Content Policy Inspect Config Custom Info Type File Label Info Type Google Drive Label - Google Drive labels published by Google. Structure is documented below.
- sensitivity
Label PreventionContent Policy Inspect Config Custom Info Type File Label Info Type Sensitivity Label - Sensitivity labels published by Microsoft. Structure is documented below.
- google_
drive_ Preventionlabel Content Policy Inspect Config Custom Info Type File Label Info Type Google Drive Label - Google Drive labels published by Google. Structure is documented below.
- sensitivity_
label PreventionContent Policy Inspect Config Custom Info Type File Label Info Type Sensitivity Label - Sensitivity labels published by Microsoft. Structure is documented below.
- google
Drive Property MapLabel - Google Drive labels published by Google. Structure is documented below.
- sensitivity
Label Property Map - Sensitivity labels published by Microsoft. Structure is documented below.
PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeGoogleDriveLabel, PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeGoogleDriveLabelArgs
- Label
Id string - The label ID of the Google Drive label.
- Label
Fields List<PreventionTo Matches Content Policy Inspect Config Custom Info Type File Label Info Type Google Drive Label Label Fields To Match> - The field values of the Google Drive label to match. Structure is documented below.
- Label
Id string - The label ID of the Google Drive label.
- Label
Fields []PreventionTo Matches Content Policy Inspect Config Custom Info Type File Label Info Type Google Drive Label Label Fields To Match - The field values of the Google Drive label to match. Structure is documented below.
- label_
id string - The label ID of the Google Drive label.
- label_
fields_ list(object)to_ matches - The field values of the Google Drive label to match. Structure is documented below.
- label
Id String - The label ID of the Google Drive label.
- label
Fields List<PreventionTo Matches Content Policy Inspect Config Custom Info Type File Label Info Type Google Drive Label Label Fields To Match> - The field values of the Google Drive label to match. Structure is documented below.
- label
Id string - The label ID of the Google Drive label.
- label
Fields PreventionTo Matches Content Policy Inspect Config Custom Info Type File Label Info Type Google Drive Label Label Fields To Match[] - The field values of the Google Drive label to match. Structure is documented below.
- label_
id str - The label ID of the Google Drive label.
- label_
fields_ Sequence[Preventionto_ matches Content Policy Inspect Config Custom Info Type File Label Info Type Google Drive Label Label Fields To Match] - The field values of the Google Drive label to match. Structure is documented below.
- label
Id String - The label ID of the Google Drive label.
- label
Fields List<Property Map>To Matches - The field values of the Google Drive label to match. Structure is documented below.
PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeGoogleDriveLabelLabelFieldsToMatch, PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeGoogleDriveLabelLabelFieldsToMatchArgs
PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeSensitivityLabel, PreventionContentPolicyInspectConfigCustomInfoTypeFileLabelInfoTypeSensitivityLabelArgs
- Guid string
- The GUID of the sensitivity label.
- Guid string
- The GUID of the sensitivity label.
- guid string
- The GUID of the sensitivity label.
- guid String
- The GUID of the sensitivity label.
- guid string
- The GUID of the sensitivity label.
- guid str
- The GUID of the sensitivity label.
- guid String
- The GUID of the sensitivity label.
PreventionContentPolicyInspectConfigCustomInfoTypeInfoType, PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeArgs
- 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.
- Sensitivity
Score PreventionContent Policy 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.
- Sensitivity
Score PreventionContent Policy 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.
- sensitivity_
score object - 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.
- sensitivity
Score PreventionContent Policy 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.
- sensitivity
Score PreventionContent Policy 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 PreventionContent Policy 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.
- sensitivity
Score 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.
PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeSensitivityScore, PreventionContentPolicyInspectConfigCustomInfoTypeInfoTypeSensitivityScoreArgs
- 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 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.
PreventionContentPolicyInspectConfigCustomInfoTypeMetadataKeyValueExpression, PreventionContentPolicyInspectConfigCustomInfoTypeMetadataKeyValueExpressionArgs
- Key
Regex string - The regular expression for the key.
- Value
Regex string - The regular expression for the value.
- Key
Regex string - The regular expression for the key.
- Value
Regex string - The regular expression for the value.
- key_
regex string - The regular expression for the key.
- value_
regex string - The regular expression for the value.
- key
Regex String - The regular expression for the key.
- value
Regex String - The regular expression for the value.
- key
Regex string - The regular expression for the key.
- value
Regex string - The regular expression for the value.
- key_
regex str - The regular expression for the key.
- value_
regex str - The regular expression for the value.
- key
Regex String - The regular expression for the key.
- value
Regex String - The regular expression for the value.
PreventionContentPolicyInspectConfigCustomInfoTypeRegex, PreventionContentPolicyInspectConfigCustomInfoTypeRegexArgs
- 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.
- Group
Indexes 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.
- Group
Indexes []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.
- group_
indexes 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.
- 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.
- group
Indexes 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.
- group
Indexes 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.
- group
Indexes 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.
PreventionContentPolicyInspectConfigCustomInfoTypeSensitivityScore, PreventionContentPolicyInspectConfigCustomInfoTypeSensitivityScoreArgs
- 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 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.
PreventionContentPolicyInspectConfigCustomInfoTypeStoredType, PreventionContentPolicyInspectConfigCustomInfoTypeStoredTypeArgs
- Name string
- Resource name of the requested StoredInfoType, for example
organizations/433245324/storedInfoTypes/432452342orprojects/project-id/storedInfoTypes/432452342. - Create
Time string - (Output) Output only. Timestamp indicating when the version of the StoredInfoType used for inspection was created.
- Name string
- Resource name of the requested StoredInfoType, for example
organizations/433245324/storedInfoTypes/432452342orprojects/project-id/storedInfoTypes/432452342. - Create
Time string - (Output) Output only. Timestamp indicating when the version of the StoredInfoType used for inspection was created.
- name string
- Resource name of the requested StoredInfoType, for example
organizations/433245324/storedInfoTypes/432452342orprojects/project-id/storedInfoTypes/432452342. - create_
time string - (Output) Output only. Timestamp indicating when the version of the StoredInfoType used for inspection was created.
- name String
- Resource name of the requested StoredInfoType, for example
organizations/433245324/storedInfoTypes/432452342orprojects/project-id/storedInfoTypes/432452342. - create
Time String - (Output) Output only. Timestamp indicating when the version of the StoredInfoType used for inspection was created.
- name string
- Resource name of the requested StoredInfoType, for example
organizations/433245324/storedInfoTypes/432452342orprojects/project-id/storedInfoTypes/432452342. - create
Time string - (Output) Output only. Timestamp indicating when the version of the StoredInfoType used for inspection was created.
- name str
- Resource name of the requested StoredInfoType, for example
organizations/433245324/storedInfoTypes/432452342orprojects/project-id/storedInfoTypes/432452342. - create_
time str - (Output) Output only. Timestamp indicating when the version of the StoredInfoType used for inspection was created.
- name String
- Resource name of the requested StoredInfoType, for example
organizations/433245324/storedInfoTypes/432452342orprojects/project-id/storedInfoTypes/432452342. - create
Time String - (Output) Output only. Timestamp indicating when the version of the StoredInfoType used for inspection was created.
PreventionContentPolicyInspectConfigInfoType, PreventionContentPolicyInspectConfigInfoTypeArgs
- Name string
- Name of the information type.
- Sensitivity
Score PreventionContent Policy Inspect Config Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- Version string
- Version name for this InfoType.
- Name string
- Name of the information type.
- Sensitivity
Score PreventionContent Policy Inspect Config Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- Version string
- Version name for this InfoType.
- name string
- Name of the information type.
- sensitivity_
score object - Optional custom sensitivity for this InfoType. Structure is documented below.
- version string
- Version name for this InfoType.
- name String
- Name of the information type.
- sensitivity
Score PreventionContent Policy Inspect Config Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- version String
- Version name for this InfoType.
- name string
- Name of the information type.
- sensitivity
Score PreventionContent Policy Inspect Config Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- version string
- Version name for this InfoType.
- name str
- Name of the information type.
- sensitivity_
score PreventionContent Policy Inspect Config Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- version str
- Version name for this InfoType.
- name String
- Name of the information type.
- sensitivity
Score Property Map - Optional custom sensitivity for this InfoType. Structure is documented below.
- version String
- Version name for this InfoType.
PreventionContentPolicyInspectConfigInfoTypeSensitivityScore, PreventionContentPolicyInspectConfigInfoTypeSensitivityScoreArgs
- 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 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.
PreventionContentPolicyInspectConfigLimits, PreventionContentPolicyInspectConfigLimitsArgs
- 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 List<PreventionPer Info Types Content Policy 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 []PreventionPer Info Types Content Policy Inspect Config Limits Max Findings Per Info Type - Configuration of findings limit given for specified infoTypes. Structure is documented below.
- max_
findings_ numberper_ item - Max number of findings that will be returned for each item scanned. The maximum returned is 2000.
- max_
findings_ numberper_ request - Max number of findings that will be returned per request/job. The maximum returned is 2000.
- max_
findings_ list(object)per_ info_ types - Configuration of findings limit given for specified infoTypes. Structure is documented below.
- max
Findings IntegerPer Item - Max number of findings that will be returned for each item scanned. The maximum returned is 2000.
- max
Findings IntegerPer Request - Max number of findings that will be returned per request/job. The maximum returned is 2000.
- max
Findings List<PreventionPer Info Types Content Policy Inspect Config Limits Max Findings Per Info Type> - Configuration of findings limit given for specified infoTypes. Structure is documented below.
- max
Findings numberPer Item - Max number of findings that will be returned for each item scanned. The maximum returned is 2000.
- max
Findings numberPer Request - Max number of findings that will be returned per request/job. The maximum returned is 2000.
- max
Findings PreventionPer Info Types Content Policy 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 Content Policy Inspect Config Limits Max Findings Per Info Type] - Configuration of findings limit given for specified infoTypes. Structure is documented below.
- max
Findings NumberPer Item - Max number of findings that will be returned for each item scanned. The maximum returned is 2000.
- max
Findings NumberPer Request - Max number of findings that will be returned per request/job. The maximum returned is 2000.
- max
Findings List<Property Map>Per Info Types - Configuration of findings limit given for specified infoTypes. Structure is documented below.
PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoType, PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeArgs
- Max
Findings int - Max findings limit for the given infoType.
- Info
Type PreventionContent Policy 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 PreventionContent Policy 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 number - Max findings limit for the given infoType.
- info_
type object - 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 Integer - Max findings limit for the given infoType.
- info
Type PreventionContent Policy 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 number - Max findings limit for the given infoType.
- info
Type PreventionContent Policy 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 PreventionContent Policy 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 Number - Max findings limit for the given infoType.
- info
Type 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.
PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeInfoType, PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeArgs
- 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.
- Sensitivity
Score PreventionContent Policy 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.
- Sensitivity
Score PreventionContent Policy 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.
- sensitivity_
score object - 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.
- sensitivity
Score PreventionContent Policy 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.
- sensitivity
Score PreventionContent Policy 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 PreventionContent Policy 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.
- sensitivity
Score 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.
PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeSensitivityScore, PreventionContentPolicyInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeSensitivityScoreArgs
- 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 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.
PreventionContentPolicyInspectConfigMinLikelihoodPerInfoType, PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeArgs
- Min
Likelihood string - Only returns findings equal or above this threshold. See https://cloud.google.com/dlp/docs/likelihood for more info.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY. - Info
Type PreventionContent Policy Inspect Config Min Likelihood Per Info Type Info Type - Type of information the likeliness threshold applies to. Only one likelihood per infoType should be provided. If InfoTypeLikelihood does not have an info_type, the configuration fails. Structure is documented below.
- Min
Likelihood string - Only returns findings equal or above this threshold. See https://cloud.google.com/dlp/docs/likelihood for more info.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY. - Info
Type PreventionContent Policy Inspect Config Min Likelihood Per Info Type Info Type - Type of information the likeliness threshold applies to. Only one likelihood per infoType should be provided. If InfoTypeLikelihood does not have an info_type, the configuration fails. Structure is documented below.
- min_
likelihood string - Only returns findings equal or above this threshold. See https://cloud.google.com/dlp/docs/likelihood for more info.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY. - info_
type object - Type of information the likeliness threshold applies to. Only one likelihood per infoType should be provided. If InfoTypeLikelihood does not have an info_type, the configuration fails. Structure is documented below.
- min
Likelihood String - Only returns findings equal or above this threshold. See https://cloud.google.com/dlp/docs/likelihood for more info.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY. - info
Type PreventionContent Policy Inspect Config Min Likelihood Per Info Type Info Type - Type of information the likeliness threshold applies to. Only one likelihood per infoType should be provided. If InfoTypeLikelihood does not have an info_type, the configuration fails. Structure is documented below.
- min
Likelihood string - Only returns findings equal or above this threshold. See https://cloud.google.com/dlp/docs/likelihood for more info.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY. - info
Type PreventionContent Policy Inspect Config Min Likelihood Per Info Type Info Type - Type of information the likeliness threshold applies to. Only one likelihood per infoType should be provided. If InfoTypeLikelihood does not have an info_type, the configuration fails. 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.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY. - info_
type PreventionContent Policy Inspect Config Min Likelihood Per Info Type Info Type - Type of information the likeliness threshold applies to. Only one likelihood per infoType should be provided. If InfoTypeLikelihood does not have an info_type, the configuration fails. Structure is documented below.
- min
Likelihood String - Only returns findings equal or above this threshold. See https://cloud.google.com/dlp/docs/likelihood for more info.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY. - info
Type Property Map - Type of information the likeliness threshold applies to. Only one likelihood per infoType should be provided. If InfoTypeLikelihood does not have an info_type, the configuration fails. Structure is documented below.
PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeInfoType, PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeInfoTypeArgs
- 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.
- Sensitivity
Score PreventionContent Policy Inspect Config Min Likelihood 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.
- Sensitivity
Score PreventionContent Policy Inspect Config Min Likelihood 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.
- sensitivity_
score object - 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.
- sensitivity
Score PreventionContent Policy Inspect Config Min Likelihood 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.
- sensitivity
Score PreventionContent Policy Inspect Config Min Likelihood 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 PreventionContent Policy Inspect Config Min Likelihood 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.
- sensitivity
Score 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.
PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeInfoTypeSensitivityScore, PreventionContentPolicyInspectConfigMinLikelihoodPerInfoTypeInfoTypeSensitivityScoreArgs
- 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 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.
PreventionContentPolicyInspectConfigRuleSet, PreventionContentPolicyInspectConfigRuleSetArgs
- Info
Types List<PreventionContent Policy Inspect Config Rule Set Info Type> - List of infoTypes this rule set is applied to. Structure is documented below.
- Rules
List<Prevention
Content Policy 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 []PreventionContent Policy Inspect Config Rule Set Info Type - List of infoTypes this rule set is applied to. Structure is documented below.
- Rules
[]Prevention
Content Policy 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 list(object) - List of infoTypes this rule set is applied to. Structure is documented below.
- rules list(object)
- Set of rules to be applied to infoTypes. The rules are applied in order. Structure is documented below.
- info
Types List<PreventionContent Policy Inspect Config Rule Set Info Type> - List of infoTypes this rule set is applied to. Structure is documented below.
- rules
List<Prevention
Content Policy 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 PreventionContent Policy Inspect Config Rule Set Info Type[] - List of infoTypes this rule set is applied to. Structure is documented below.
- rules
Prevention
Content Policy 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[PreventionContent Policy Inspect Config Rule Set Info Type] - List of infoTypes this rule set is applied to. Structure is documented below.
- rules
Sequence[Prevention
Content Policy 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 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.
PreventionContentPolicyInspectConfigRuleSetInfoType, PreventionContentPolicyInspectConfigRuleSetInfoTypeArgs
- Name string
- Name of the information type.
- Sensitivity
Score PreventionContent Policy Inspect Config Rule Set Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- Version string
- Version name for this InfoType.
- Name string
- Name of the information type.
- Sensitivity
Score PreventionContent Policy Inspect Config Rule Set Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- Version string
- Version name for this InfoType.
- name string
- Name of the information type.
- sensitivity_
score object - Optional custom sensitivity for this InfoType. Structure is documented below.
- version string
- Version name for this InfoType.
- name String
- Name of the information type.
- sensitivity
Score PreventionContent Policy Inspect Config Rule Set Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- version String
- Version name for this InfoType.
- name string
- Name of the information type.
- sensitivity
Score PreventionContent Policy Inspect Config Rule Set Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- version string
- Version name for this InfoType.
- name str
- Name of the information type.
- sensitivity_
score PreventionContent Policy Inspect Config Rule Set Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- version str
- Version name for this InfoType.
- name String
- Name of the information type.
- sensitivity
Score Property Map - Optional custom sensitivity for this InfoType. Structure is documented below.
- version String
- Version name for this InfoType.
PreventionContentPolicyInspectConfigRuleSetInfoTypeSensitivityScore, PreventionContentPolicyInspectConfigRuleSetInfoTypeSensitivityScoreArgs
- 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 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.
PreventionContentPolicyInspectConfigRuleSetRule, PreventionContentPolicyInspectConfigRuleSetRuleArgs
- Adjustment
Rule PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule - Rule that specifies conditions when a certain infoType's finding details should be adjusted. Structure is documented below.
- Exclusion
Rule PreventionContent Policy 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 PreventionContent Policy Inspect Config Rule Set Rule Hotword Rule - Hotword-based detection rule. Structure is documented below.
- Adjustment
Rule PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule - Rule that specifies conditions when a certain infoType's finding details should be adjusted. Structure is documented below.
- Exclusion
Rule PreventionContent Policy 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 PreventionContent Policy Inspect Config Rule Set Rule Hotword Rule - Hotword-based detection rule. Structure is documented below.
- adjustment_
rule object - Rule that specifies conditions when a certain infoType's finding details should be adjusted. Structure is documented below.
- exclusion_
rule object - The rule that specifies conditions when findings of infoTypes specified in InspectionRuleSet are removed from results. Structure is documented below.
- hotword_
rule object - Hotword-based detection rule. Structure is documented below.
- adjustment
Rule PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule - Rule that specifies conditions when a certain infoType's finding details should be adjusted. Structure is documented below.
- exclusion
Rule PreventionContent Policy 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 PreventionContent Policy Inspect Config Rule Set Rule Hotword Rule - Hotword-based detection rule. Structure is documented below.
- adjustment
Rule PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule - Rule that specifies conditions when a certain infoType's finding details should be adjusted. Structure is documented below.
- exclusion
Rule PreventionContent Policy 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 PreventionContent Policy Inspect Config Rule Set Rule Hotword Rule - Hotword-based detection rule. Structure is documented below.
- adjustment_
rule PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule - Rule that specifies conditions when a certain infoType's finding details should be adjusted. Structure is documented below.
- exclusion_
rule PreventionContent Policy 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 PreventionContent Policy Inspect Config Rule Set Rule Hotword Rule - Hotword-based detection rule. Structure is documented below.
- adjustment
Rule Property Map - Rule that specifies conditions when a certain infoType's finding details should be adjusted. Structure is documented below.
- exclusion
Rule Property Map - The rule that specifies conditions when findings of infoTypes specified in InspectionRuleSet are removed from results. Structure is documented below.
- hotword
Rule Property Map - Hotword-based detection rule. Structure is documented below.
PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRule, PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleArgs
- Likelihood
Adjustment PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Likelihood Adjustment - Likelihood adjustment to apply to all matching findings. Structure is documented below.
- Adjust
By PreventionImage Findings Content Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings - AdjustmentRule condition for image findings. Structure is documented below.
- Adjust
By PreventionMatching Info Types Content Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Matching Info Types - AdjustmentRule condition for matching infoTypes. Structure is documented below.
- Likelihood
Adjustment PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Likelihood Adjustment - Likelihood adjustment to apply to all matching findings. Structure is documented below.
- Adjust
By PreventionImage Findings Content Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings - AdjustmentRule condition for image findings. Structure is documented below.
- Adjust
By PreventionMatching Info Types Content Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Matching Info Types - AdjustmentRule condition for matching infoTypes. Structure is documented below.
- likelihood_
adjustment object - Likelihood adjustment to apply to all matching findings. Structure is documented below.
- adjust_
by_ objectimage_ findings - AdjustmentRule condition for image findings. Structure is documented below.
- adjust_
by_ objectmatching_ info_ types - AdjustmentRule condition for matching infoTypes. Structure is documented below.
- likelihood
Adjustment PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Likelihood Adjustment - Likelihood adjustment to apply to all matching findings. Structure is documented below.
- adjust
By PreventionImage Findings Content Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings - AdjustmentRule condition for image findings. Structure is documented below.
- adjust
By PreventionMatching Info Types Content Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Matching Info Types - AdjustmentRule condition for matching infoTypes. Structure is documented below.
- likelihood
Adjustment PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Likelihood Adjustment - Likelihood adjustment to apply to all matching findings. Structure is documented below.
- adjust
By PreventionImage Findings Content Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings - AdjustmentRule condition for image findings. Structure is documented below.
- adjust
By PreventionMatching Info Types Content Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Matching Info Types - AdjustmentRule condition for matching infoTypes. Structure is documented below.
- likelihood_
adjustment PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Likelihood Adjustment - Likelihood adjustment to apply to all matching findings. Structure is documented below.
- adjust_
by_ Preventionimage_ findings Content Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings - AdjustmentRule condition for image findings. Structure is documented below.
- adjust_
by_ Preventionmatching_ info_ types Content Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Matching Info Types - AdjustmentRule condition for matching infoTypes. Structure is documented below.
- likelihood
Adjustment Property Map - Likelihood adjustment to apply to all matching findings. Structure is documented below.
- adjust
By Property MapImage Findings - AdjustmentRule condition for image findings. Structure is documented below.
- adjust
By Property MapMatching Info Types - AdjustmentRule condition for matching infoTypes. Structure is documented below.
PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindings, PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsArgs
- Info
Types List<PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Info Type> - A list of image-supported infoTypes to be used as context for the adjustment rule. Structure is documented below.
- Min
Likelihood string - Minimum likelihood of the adjustByImageFindings infoTypes finding.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY. - Image
Containment PreventionType Content Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Image Containment Type - Specifies the required spatial relationship between the bounding boxes of the target finding and the context infoType findings. Structure is documented below.
- Info
Types []PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Info Type - A list of image-supported infoTypes to be used as context for the adjustment rule. Structure is documented below.
- Min
Likelihood string - Minimum likelihood of the adjustByImageFindings infoTypes finding.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY. - Image
Containment PreventionType Content Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Image Containment Type - Specifies the required spatial relationship between the bounding boxes of the target finding and the context infoType findings. Structure is documented below.
- info_
types list(object) - A list of image-supported infoTypes to be used as context for the adjustment rule. Structure is documented below.
- min_
likelihood string - Minimum likelihood of the adjustByImageFindings infoTypes finding.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY. - image_
containment_ objecttype - Specifies the required spatial relationship between the bounding boxes of the target finding and the context infoType findings. Structure is documented below.
- info
Types List<PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Info Type> - A list of image-supported infoTypes to be used as context for the adjustment rule. Structure is documented below.
- min
Likelihood String - Minimum likelihood of the adjustByImageFindings infoTypes finding.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY. - image
Containment PreventionType Content Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Image Containment Type - Specifies the required spatial relationship between the bounding boxes of the target finding and the context infoType findings. Structure is documented below.
- info
Types PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Info Type[] - A list of image-supported infoTypes to be used as context for the adjustment rule. Structure is documented below.
- min
Likelihood string - Minimum likelihood of the adjustByImageFindings infoTypes finding.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY. - image
Containment PreventionType Content Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Image Containment Type - Specifies the required spatial relationship between the bounding boxes of the target finding and the context infoType findings. Structure is documented below.
- info_
types Sequence[PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Info Type] - A list of image-supported infoTypes to be used as context for the adjustment rule. Structure is documented below.
- min_
likelihood str - Minimum likelihood of the adjustByImageFindings infoTypes finding.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY. - image_
containment_ Preventiontype Content Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Image Containment Type - Specifies the required spatial relationship between the bounding boxes of the target finding and the context infoType findings. Structure is documented below.
- info
Types List<Property Map> - A list of image-supported infoTypes to be used as context for the adjustment rule. Structure is documented below.
- min
Likelihood String - Minimum likelihood of the adjustByImageFindings infoTypes finding.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY. - image
Containment Property MapType - Specifies the required spatial relationship between the bounding boxes of the target finding and the context infoType findings. Structure is documented below.
PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsImageContainmentType, PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsImageContainmentTypeArgs
- Encloses
Prevention
Content Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Image Containment Type Encloses - Defines a condition where one bounding box encloses another.
- Fully
Inside PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Image Containment Type Fully Inside - Defines a condition where one bounding box is fully inside another.
- Overlaps
Prevention
Content Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Image Containment Type Overlaps - Defines a condition for overlapping bounding boxes.
- Encloses
Prevention
Content Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Image Containment Type Encloses - Defines a condition where one bounding box encloses another.
- Fully
Inside PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Image Containment Type Fully Inside - Defines a condition where one bounding box is fully inside another.
- Overlaps
Prevention
Content Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Image Containment Type Overlaps - Defines a condition for overlapping bounding boxes.
- encloses
Prevention
Content Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Image Containment Type Encloses - Defines a condition where one bounding box encloses another.
- fully
Inside PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Image Containment Type Fully Inside - Defines a condition where one bounding box is fully inside another.
- overlaps
Prevention
Content Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Image Containment Type Overlaps - Defines a condition for overlapping bounding boxes.
- encloses
Prevention
Content Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Image Containment Type Encloses - Defines a condition where one bounding box encloses another.
- fully
Inside PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Image Containment Type Fully Inside - Defines a condition where one bounding box is fully inside another.
- overlaps
Prevention
Content Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Image Containment Type Overlaps - Defines a condition for overlapping bounding boxes.
- encloses
Prevention
Content Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Image Containment Type Encloses - Defines a condition where one bounding box encloses another.
- fully_
inside PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Image Containment Type Fully Inside - Defines a condition where one bounding box is fully inside another.
- overlaps
Prevention
Content Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Image Containment Type Overlaps - Defines a condition for overlapping bounding boxes.
- encloses Property Map
- Defines a condition where one bounding box encloses another.
- fully
Inside Property Map - Defines a condition where one bounding box is fully inside another.
- overlaps Property Map
- Defines a condition for overlapping bounding boxes.
PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsInfoType, PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsInfoTypeArgs
- Name string
- Name of the information type.
- Sensitivity
Score PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- Version string
- Version name for this InfoType.
- Name string
- Name of the information type.
- Sensitivity
Score PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- Version string
- Version name for this InfoType.
- name string
- Name of the information type.
- sensitivity_
score object - Optional custom sensitivity for this InfoType. Structure is documented below.
- version string
- Version name for this InfoType.
- name String
- Name of the information type.
- sensitivity
Score PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- version String
- Version name for this InfoType.
- name string
- Name of the information type.
- sensitivity
Score PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- version string
- Version name for this InfoType.
- name str
- Name of the information type.
- sensitivity_
score PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Image Findings Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- version str
- Version name for this InfoType.
- name String
- Name of the information type.
- sensitivity
Score Property Map - Optional custom sensitivity for this InfoType. Structure is documented below.
- version String
- Version name for this InfoType.
PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsInfoTypeSensitivityScore, PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByImageFindingsInfoTypeSensitivityScoreArgs
- 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 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.
PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypes, PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesArgs
- Info
Types List<PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Matching Info Types Info Type> - Sensitive Data Protection adjusts the likelihood of a finding if that finding also matches one of these infoTypes. Structure is documented below.
- Matching
Type string - How the adjustment rule is applied.
Possible values are:
MATCHING_TYPE_FULL_MATCH,MATCHING_TYPE_PARTIAL_MATCH,MATCHING_TYPE_INVERSE_MATCH. - Min
Likelihood string - Minimum likelihood of the adjustByMatchingInfoTypes infoTypes finding.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- Info
Types []PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Matching Info Types Info Type - Sensitive Data Protection adjusts the likelihood of a finding if that finding also matches one of these infoTypes. Structure is documented below.
- Matching
Type string - How the adjustment rule is applied.
Possible values are:
MATCHING_TYPE_FULL_MATCH,MATCHING_TYPE_PARTIAL_MATCH,MATCHING_TYPE_INVERSE_MATCH. - Min
Likelihood string - Minimum likelihood of the adjustByMatchingInfoTypes infoTypes finding.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- info_
types list(object) - Sensitive Data Protection adjusts the likelihood of a finding if that finding also matches one of these infoTypes. Structure is documented below.
- matching_
type string - How the adjustment rule is applied.
Possible values are:
MATCHING_TYPE_FULL_MATCH,MATCHING_TYPE_PARTIAL_MATCH,MATCHING_TYPE_INVERSE_MATCH. - min_
likelihood string - Minimum likelihood of the adjustByMatchingInfoTypes infoTypes finding.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- info
Types List<PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Matching Info Types Info Type> - Sensitive Data Protection adjusts the likelihood of a finding if that finding also matches one of these infoTypes. Structure is documented below.
- matching
Type String - How the adjustment rule is applied.
Possible values are:
MATCHING_TYPE_FULL_MATCH,MATCHING_TYPE_PARTIAL_MATCH,MATCHING_TYPE_INVERSE_MATCH. - min
Likelihood String - Minimum likelihood of the adjustByMatchingInfoTypes infoTypes finding.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- info
Types PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Matching Info Types Info Type[] - Sensitive Data Protection adjusts the likelihood of a finding if that finding also matches one of these infoTypes. Structure is documented below.
- matching
Type string - How the adjustment rule is applied.
Possible values are:
MATCHING_TYPE_FULL_MATCH,MATCHING_TYPE_PARTIAL_MATCH,MATCHING_TYPE_INVERSE_MATCH. - min
Likelihood string - Minimum likelihood of the adjustByMatchingInfoTypes infoTypes finding.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- info_
types Sequence[PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Matching Info Types Info Type] - Sensitive Data Protection adjusts the likelihood of a finding if that finding also matches one of these infoTypes. Structure is documented below.
- matching_
type str - How the adjustment rule is applied.
Possible values are:
MATCHING_TYPE_FULL_MATCH,MATCHING_TYPE_PARTIAL_MATCH,MATCHING_TYPE_INVERSE_MATCH. - min_
likelihood str - Minimum likelihood of the adjustByMatchingInfoTypes infoTypes finding.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- info
Types List<Property Map> - Sensitive Data Protection adjusts the likelihood of a finding if that finding also matches one of these infoTypes. Structure is documented below.
- matching
Type String - How the adjustment rule is applied.
Possible values are:
MATCHING_TYPE_FULL_MATCH,MATCHING_TYPE_PARTIAL_MATCH,MATCHING_TYPE_INVERSE_MATCH. - min
Likelihood String - Minimum likelihood of the adjustByMatchingInfoTypes infoTypes finding.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesInfoType, PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesInfoTypeArgs
- Name string
- Name of the information type.
- Sensitivity
Score PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Matching Info Types Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- Version string
- Version name for this InfoType.
- Name string
- Name of the information type.
- Sensitivity
Score PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Matching Info Types Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- Version string
- Version name for this InfoType.
- name string
- Name of the information type.
- sensitivity_
score object - Optional custom sensitivity for this InfoType. Structure is documented below.
- version string
- Version name for this InfoType.
- name String
- Name of the information type.
- sensitivity
Score PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Matching Info Types Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- version String
- Version name for this InfoType.
- name string
- Name of the information type.
- sensitivity
Score PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Matching Info Types Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- version string
- Version name for this InfoType.
- name str
- Name of the information type.
- sensitivity_
score PreventionContent Policy Inspect Config Rule Set Rule Adjustment Rule Adjust By Matching Info Types Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- version str
- Version name for this InfoType.
- name String
- Name of the information type.
- sensitivity
Score Property Map - Optional custom sensitivity for this InfoType. Structure is documented below.
- version String
- Version name for this InfoType.
PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesInfoTypeSensitivityScore, PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleAdjustByMatchingInfoTypesInfoTypeSensitivityScoreArgs
- 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 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.
PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleLikelihoodAdjustment, PreventionContentPolicyInspectConfigRuleSetRuleAdjustmentRuleLikelihoodAdjustmentArgs
- Fixed
Likelihood string - Set the likelihood of a finding to a fixed value. Either this or relativeLikelihood can be set.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- Fixed
Likelihood string - Set the likelihood of a finding to a fixed value. Either this or relativeLikelihood can be set.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- fixed_
likelihood string - Set the likelihood of a finding to a fixed value. Either this or relativeLikelihood can be set.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- fixed
Likelihood String - Set the likelihood of a finding to a fixed value. Either this or relativeLikelihood can be set.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- fixed
Likelihood string - Set the likelihood of a finding to a fixed value. Either this or relativeLikelihood can be set.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- fixed_
likelihood str - Set the likelihood of a finding to a fixed value. Either this or relativeLikelihood can be set.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
- fixed
Likelihood String - Set the likelihood of a finding to a fixed value. Either this or relativeLikelihood can be set.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY.
PreventionContentPolicyInspectConfigRuleSetRuleExclusionRule, PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleArgs
- Matching
Type 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,MATCHING_TYPE_RULE_SPECIFIC. - Dictionary
Prevention
Content Policy Inspect Config Rule Set Rule Exclusion Rule Dictionary - Dictionary which defines the rule. Structure is documented below.
- Exclude
By PreventionHotword Content Policy 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
By PreventionImage Findings Content Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings - The rule to exclude image findings based on spatial relationships with other image findings. Structure is documented below.
- Exclude
Info PreventionTypes Content Policy 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
Prevention
Content Policy Inspect Config Rule Set Rule Exclusion Rule Regex - Regular expression which defines the rule. Structure is documented below.
- Matching
Type 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,MATCHING_TYPE_RULE_SPECIFIC. - Dictionary
Prevention
Content Policy Inspect Config Rule Set Rule Exclusion Rule Dictionary - Dictionary which defines the rule. Structure is documented below.
- Exclude
By PreventionHotword Content Policy 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
By PreventionImage Findings Content Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings - The rule to exclude image findings based on spatial relationships with other image findings. Structure is documented below.
- Exclude
Info PreventionTypes Content Policy 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
Prevention
Content Policy Inspect Config Rule Set Rule Exclusion Rule Regex - Regular expression which defines the rule. Structure is documented below.
- matching_
type 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,MATCHING_TYPE_RULE_SPECIFIC. - dictionary object
- Dictionary which defines the rule. Structure is documented below.
- exclude_
by_ objecthotword - 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_
by_ objectimage_ findings - The rule to exclude image findings based on spatial relationships with other image findings. Structure is documented below.
- exclude_
info_ objecttypes - Set of infoTypes for which findings would affect this rule. Structure is documented below.
- regex object
- Regular expression which defines the rule. Structure is documented below.
- matching
Type 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,MATCHING_TYPE_RULE_SPECIFIC. - dictionary
Prevention
Content Policy Inspect Config Rule Set Rule Exclusion Rule Dictionary - Dictionary which defines the rule. Structure is documented below.
- exclude
By PreventionHotword Content Policy 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
By PreventionImage Findings Content Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings - The rule to exclude image findings based on spatial relationships with other image findings. Structure is documented below.
- exclude
Info PreventionTypes Content Policy 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
Prevention
Content Policy Inspect Config Rule Set Rule Exclusion Rule Regex - Regular expression which defines the rule. Structure is documented below.
- matching
Type 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,MATCHING_TYPE_RULE_SPECIFIC. - dictionary
Prevention
Content Policy Inspect Config Rule Set Rule Exclusion Rule Dictionary - Dictionary which defines the rule. Structure is documented below.
- exclude
By PreventionHotword Content Policy 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
By PreventionImage Findings Content Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings - The rule to exclude image findings based on spatial relationships with other image findings. Structure is documented below.
- exclude
Info PreventionTypes Content Policy 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
Prevention
Content Policy 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,MATCHING_TYPE_RULE_SPECIFIC. - dictionary
Prevention
Content Policy Inspect Config Rule Set Rule Exclusion Rule Dictionary - Dictionary which defines the rule. Structure is documented below.
- exclude_
by_ Preventionhotword Content Policy 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_
by_ Preventionimage_ findings Content Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings - The rule to exclude image findings based on spatial relationships with other image findings. Structure is documented below.
- exclude_
info_ Preventiontypes Content Policy 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
Prevention
Content Policy Inspect Config Rule Set Rule Exclusion Rule Regex - Regular expression which defines the rule. Structure is documented below.
- matching
Type 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,MATCHING_TYPE_RULE_SPECIFIC. - dictionary Property Map
- Dictionary which defines the rule. Structure is documented below.
- exclude
By 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.
- exclude
By Property MapImage Findings - The rule to exclude image findings based on spatial relationships with other image findings. Structure is documented below.
- exclude
Info 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.
PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionary, PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryArgs
- Cloud
Storage PreventionPath Content Policy 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 PreventionContent Policy 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 Content Policy 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 PreventionContent Policy Inspect Config Rule Set Rule Exclusion Rule Dictionary Word List - List of words or phrases to search for. Structure is documented below.
- cloud_
storage_ objectpath - Newline-delimited file of words in Cloud Storage. Only a single file is accepted. Structure is documented below.
- word_
list object - List of words or phrases to search for. Structure is documented below.
- cloud
Storage PreventionPath Content Policy 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 PreventionContent Policy 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 Content Policy 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 PreventionContent Policy 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 Content Policy 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 PreventionContent Policy Inspect Config Rule Set Rule Exclusion Rule Dictionary Word List - List of words or phrases to search for. Structure is documented below.
- cloud
Storage Property MapPath - Newline-delimited file of words in Cloud Storage. Only a single file is accepted. Structure is documented below.
- word
List Property Map - List of words or phrases to search for. Structure is documented below.
PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryCloudStoragePath, PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryCloudStoragePathArgs
- 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 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
PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryWordList, PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleDictionaryWordListArgs
- 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 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.
PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByHotword, PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordArgs
- Hotword
Regex PreventionContent Policy 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
Prevention
Content Policy 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 PreventionContent Policy 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
Prevention
Content Policy 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 object - Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- proximity object
- 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 PreventionContent Policy 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
Prevention
Content Policy 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 PreventionContent Policy 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
Prevention
Content Policy 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 PreventionContent Policy 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
Prevention
Content Policy 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 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.
PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordHotwordRegex, PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordHotwordRegexArgs
- 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.
- Group
Indexes 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.
- Group
Indexes []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.
- group_
indexes 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.
- 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.
- group
Indexes 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.
- group
Indexes 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.
- group
Indexes 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.
PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordProximity, PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordProximityArgs
- Window
After int - Number of characters after the finding to consider.
- Window
Before int - 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.
- window_
after number - Number of characters after the finding to consider.
- window_
before number - Number of characters before the finding to consider.
- window
After Integer - Number of characters after the finding to consider.
- window
Before Integer - Number of characters before the finding to consider.
- window
After number - Number of characters after the finding to consider.
- window
Before 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.
- window
After Number - Number of characters after the finding to consider.
- window
Before Number - Number of characters before the finding to consider.
PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindings, PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsArgs
- Info
Types List<PreventionContent Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Info Type> - A list of image-supported infoTypes to be used as context for the exclusion rule. Structure is documented below.
- Image
Containment PreventionType Content Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Image Containment Type - Specifies the required spatial relationship between the bounding boxes of the target finding and the context infoType findings. Structure is documented below.
- Info
Types []PreventionContent Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Info Type - A list of image-supported infoTypes to be used as context for the exclusion rule. Structure is documented below.
- Image
Containment PreventionType Content Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Image Containment Type - Specifies the required spatial relationship between the bounding boxes of the target finding and the context infoType findings. Structure is documented below.
- info_
types list(object) - A list of image-supported infoTypes to be used as context for the exclusion rule. Structure is documented below.
- image_
containment_ objecttype - Specifies the required spatial relationship between the bounding boxes of the target finding and the context infoType findings. Structure is documented below.
- info
Types List<PreventionContent Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Info Type> - A list of image-supported infoTypes to be used as context for the exclusion rule. Structure is documented below.
- image
Containment PreventionType Content Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Image Containment Type - Specifies the required spatial relationship between the bounding boxes of the target finding and the context infoType findings. Structure is documented below.
- info
Types PreventionContent Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Info Type[] - A list of image-supported infoTypes to be used as context for the exclusion rule. Structure is documented below.
- image
Containment PreventionType Content Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Image Containment Type - Specifies the required spatial relationship between the bounding boxes of the target finding and the context infoType findings. Structure is documented below.
- info_
types Sequence[PreventionContent Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Info Type] - A list of image-supported infoTypes to be used as context for the exclusion rule. Structure is documented below.
- image_
containment_ Preventiontype Content Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Image Containment Type - Specifies the required spatial relationship between the bounding boxes of the target finding and the context infoType findings. Structure is documented below.
- info
Types List<Property Map> - A list of image-supported infoTypes to be used as context for the exclusion rule. Structure is documented below.
- image
Containment Property MapType - Specifies the required spatial relationship between the bounding boxes of the target finding and the context infoType findings. Structure is documented below.
PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsImageContainmentType, PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsImageContainmentTypeArgs
- Encloses
Prevention
Content Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Image Containment Type Encloses - Defines a condition where one bounding box encloses another.
- Fully
Inside PreventionContent Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Image Containment Type Fully Inside - Defines a condition where one bounding box is fully inside another.
- Overlaps
Prevention
Content Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Image Containment Type Overlaps - Defines a condition for overlapping bounding boxes.
- Encloses
Prevention
Content Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Image Containment Type Encloses - Defines a condition where one bounding box encloses another.
- Fully
Inside PreventionContent Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Image Containment Type Fully Inside - Defines a condition where one bounding box is fully inside another.
- Overlaps
Prevention
Content Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Image Containment Type Overlaps - Defines a condition for overlapping bounding boxes.
- encloses
Prevention
Content Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Image Containment Type Encloses - Defines a condition where one bounding box encloses another.
- fully
Inside PreventionContent Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Image Containment Type Fully Inside - Defines a condition where one bounding box is fully inside another.
- overlaps
Prevention
Content Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Image Containment Type Overlaps - Defines a condition for overlapping bounding boxes.
- encloses
Prevention
Content Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Image Containment Type Encloses - Defines a condition where one bounding box encloses another.
- fully
Inside PreventionContent Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Image Containment Type Fully Inside - Defines a condition where one bounding box is fully inside another.
- overlaps
Prevention
Content Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Image Containment Type Overlaps - Defines a condition for overlapping bounding boxes.
- encloses
Prevention
Content Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Image Containment Type Encloses - Defines a condition where one bounding box encloses another.
- fully_
inside PreventionContent Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Image Containment Type Fully Inside - Defines a condition where one bounding box is fully inside another.
- overlaps
Prevention
Content Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Image Containment Type Overlaps - Defines a condition for overlapping bounding boxes.
- encloses Property Map
- Defines a condition where one bounding box encloses another.
- fully
Inside Property Map - Defines a condition where one bounding box is fully inside another.
- overlaps Property Map
- Defines a condition for overlapping bounding boxes.
PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsInfoType, PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsInfoTypeArgs
- Name string
- Name of the information type.
- Sensitivity
Score PreventionContent Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- Version string
- Version name for this InfoType.
- Name string
- Name of the information type.
- Sensitivity
Score PreventionContent Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- Version string
- Version name for this InfoType.
- name string
- Name of the information type.
- sensitivity_
score object - Optional custom sensitivity for this InfoType. Structure is documented below.
- version string
- Version name for this InfoType.
- name String
- Name of the information type.
- sensitivity
Score PreventionContent Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- version String
- Version name for this InfoType.
- name string
- Name of the information type.
- sensitivity
Score PreventionContent Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- version string
- Version name for this InfoType.
- name str
- Name of the information type.
- sensitivity_
score PreventionContent Policy Inspect Config Rule Set Rule Exclusion Rule Exclude By Image Findings Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- version str
- Version name for this InfoType.
- name String
- Name of the information type.
- sensitivity
Score Property Map - Optional custom sensitivity for this InfoType. Structure is documented below.
- version String
- Version name for this InfoType.
PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsInfoTypeSensitivityScore, PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeByImageFindingsInfoTypeSensitivityScoreArgs
- 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 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.
PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypes, PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesArgs
- Info
Types List<PreventionContent Policy 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 []PreventionContent Policy 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 list(object) - 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 List<PreventionContent Policy 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 PreventionContent Policy 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[PreventionContent Policy 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 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.
PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoType, PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeArgs
- Name string
- Name of the information type.
- Sensitivity
Score PreventionContent Policy Inspect Config Rule Set Rule Exclusion Rule Exclude Info Types Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- Version string
- Version name for this InfoType.
- Name string
- Name of the information type.
- Sensitivity
Score PreventionContent Policy Inspect Config Rule Set Rule Exclusion Rule Exclude Info Types Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- Version string
- Version name for this InfoType.
- name string
- Name of the information type.
- sensitivity_
score object - Optional custom sensitivity for this InfoType. Structure is documented below.
- version string
- Version name for this InfoType.
- name String
- Name of the information type.
- sensitivity
Score PreventionContent Policy Inspect Config Rule Set Rule Exclusion Rule Exclude Info Types Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- version String
- Version name for this InfoType.
- name string
- Name of the information type.
- sensitivity
Score PreventionContent Policy Inspect Config Rule Set Rule Exclusion Rule Exclude Info Types Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- version string
- Version name for this InfoType.
- name str
- Name of the information type.
- sensitivity_
score PreventionContent Policy Inspect Config Rule Set Rule Exclusion Rule Exclude Info Types Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. Structure is documented below.
- version str
- Version name for this InfoType.
- name String
- Name of the information type.
- sensitivity
Score Property Map - Optional custom sensitivity for this InfoType. Structure is documented below.
- version String
- Version name for this InfoType.
PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeSensitivityScore, PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeSensitivityScoreArgs
- 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 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.
PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleRegex, PreventionContentPolicyInspectConfigRuleSetRuleExclusionRuleRegexArgs
- 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.
- Group
Indexes 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.
- Group
Indexes []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.
- group_
indexes 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.
- 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.
- group
Indexes 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.
- group
Indexes 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.
- group
Indexes 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.
PreventionContentPolicyInspectConfigRuleSetRuleHotwordRule, PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleArgs
- Hotword
Regex PreventionContent Policy Inspect Config Rule Set Rule Hotword Rule Hotword Regex - Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- Likelihood
Adjustment PreventionContent Policy Inspect Config Rule Set Rule Hotword Rule Likelihood Adjustment - Likelihood adjustment to apply to all matching findings. Structure is documented below.
- Proximity
Prevention
Content Policy 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. Structure is documented below.
- Hotword
Regex PreventionContent Policy Inspect Config Rule Set Rule Hotword Rule Hotword Regex - Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- Likelihood
Adjustment PreventionContent Policy Inspect Config Rule Set Rule Hotword Rule Likelihood Adjustment - Likelihood adjustment to apply to all matching findings. Structure is documented below.
- Proximity
Prevention
Content Policy 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. Structure is documented below.
- hotword_
regex object - Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- likelihood_
adjustment object - Likelihood adjustment to apply to all matching findings. Structure is documented below.
- proximity object
- Proximity of the finding within which the entire hotword must reside. The total length of the window cannot exceed 1000 characters. Structure is documented below.
- hotword
Regex PreventionContent Policy Inspect Config Rule Set Rule Hotword Rule Hotword Regex - Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- likelihood
Adjustment PreventionContent Policy Inspect Config Rule Set Rule Hotword Rule Likelihood Adjustment - Likelihood adjustment to apply to all matching findings. Structure is documented below.
- proximity
Prevention
Content Policy 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. Structure is documented below.
- hotword
Regex PreventionContent Policy Inspect Config Rule Set Rule Hotword Rule Hotword Regex - Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- likelihood
Adjustment PreventionContent Policy Inspect Config Rule Set Rule Hotword Rule Likelihood Adjustment - Likelihood adjustment to apply to all matching findings. Structure is documented below.
- proximity
Prevention
Content Policy 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. Structure is documented below.
- hotword_
regex PreventionContent Policy Inspect Config Rule Set Rule Hotword Rule Hotword Regex - Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- likelihood_
adjustment PreventionContent Policy Inspect Config Rule Set Rule Hotword Rule Likelihood Adjustment - Likelihood adjustment to apply to all matching findings. Structure is documented below.
- proximity
Prevention
Content Policy 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. Structure is documented below.
- hotword
Regex Property Map - Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- likelihood
Adjustment 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. Structure is documented below.
PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleHotwordRegex, PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs
- 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.
- Group
Indexes 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.
- Group
Indexes []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.
- group_
indexes 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.
- 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.
- group
Indexes 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.
- group
Indexes 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.
- group
Indexes 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.
PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustment, PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs
- Fixed
Likelihood string - Set the likelihood of a finding to a fixed value. Either this or relativeLikelihood 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.
- Fixed
Likelihood string - Set the likelihood of a finding to a fixed value. Either this or relativeLikelihood 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.
- fixed_
likelihood string - Set the likelihood of a finding to a fixed value. Either this or relativeLikelihood can be set.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY. - relative_
likelihood number - Increase or decrease the likelihood by the specified number of levels.
- fixed
Likelihood String - Set the likelihood of a finding to a fixed value. Either this or relativeLikelihood can be set.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY. - relative
Likelihood Integer - Increase or decrease the likelihood by the specified number of levels.
- fixed
Likelihood string - Set the likelihood of a finding to a fixed value. Either this or relativeLikelihood can be set.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY. - relative
Likelihood number - Increase or decrease the likelihood by the specified number of levels.
- fixed_
likelihood str - Set the likelihood of a finding to a fixed value. Either this or relativeLikelihood 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.
- fixed
Likelihood String - Set the likelihood of a finding to a fixed value. Either this or relativeLikelihood can be set.
Possible values are:
VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY. - relative
Likelihood Number - Increase or decrease the likelihood by the specified number of levels.
PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleProximity, PreventionContentPolicyInspectConfigRuleSetRuleHotwordRuleProximityArgs
- Window
After int - Number of characters after the finding to consider.
- Window
Before int - 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.
- window_
after number - Number of characters after the finding to consider.
- window_
before number - Number of characters before the finding to consider.
- window
After Integer - Number of characters after the finding to consider.
- window
Before Integer - Number of characters before the finding to consider.
- window
After number - Number of characters after the finding to consider.
- window
Before 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.
- window
After Number - Number of characters after the finding to consider.
- window
Before Number - Number of characters before the finding to consider.
PreventionContentPolicyLoggingConfig, PreventionContentPolicyLoggingConfigArgs
- Log
To PreventionBig Query Content Policy Logging Config Log To Big Query - Log actions to BigQuery. Structure is documented below.
- Log
To PreventionBig Query Content Policy Logging Config Log To Big Query - Log actions to BigQuery. Structure is documented below.
- log_
to_ objectbig_ query - Log actions to BigQuery. Structure is documented below.
- log
To PreventionBig Query Content Policy Logging Config Log To Big Query - Log actions to BigQuery. Structure is documented below.
- log
To PreventionBig Query Content Policy Logging Config Log To Big Query - Log actions to BigQuery. Structure is documented below.
- log_
to_ Preventionbig_ query Content Policy Logging Config Log To Big Query - Log actions to BigQuery. Structure is documented below.
- log
To Property MapBig Query - Log actions to BigQuery. Structure is documented below.
PreventionContentPolicyLoggingConfigLogToBigQuery, PreventionContentPolicyLoggingConfigLogToBigQueryArgs
- dataset_
id string - The dataset ID of the BigQuery table to log to.
- project_
id string - The project ID of the BigQuery table to log to.
- table_
id string - The table ID of the BigQuery table to log to.
- dataset_
id str - The dataset ID of the BigQuery table to log to.
- project_
id str - The project ID of the BigQuery table to log to.
- table_
id str - The table ID of the BigQuery table to log to.
PreventionContentPolicyRule, PreventionContentPolicyRuleArgs
- Action
Prevention
Content Policy Rule Action - The action to take if the rule matches. Structure is documented below.
- Conditions
List<Prevention
Content Policy Rule Condition> - List of conditions that must be met for this rule to apply. Structure is documented below.
- Action
Prevention
Content Policy Rule Action - The action to take if the rule matches. Structure is documented below.
- Conditions
[]Prevention
Content Policy Rule Condition - List of conditions that must be met for this rule to apply. Structure is documented below.
- action object
- The action to take if the rule matches. Structure is documented below.
- conditions list(object)
- List of conditions that must be met for this rule to apply. Structure is documented below.
- action
Prevention
Content Policy Rule Action - The action to take if the rule matches. Structure is documented below.
- conditions
List<Prevention
Content Policy Rule Condition> - List of conditions that must be met for this rule to apply. Structure is documented below.
- action
Prevention
Content Policy Rule Action - The action to take if the rule matches. Structure is documented below.
- conditions
Prevention
Content Policy Rule Condition[] - List of conditions that must be met for this rule to apply. Structure is documented below.
- action
Prevention
Content Policy Rule Action - The action to take if the rule matches. Structure is documented below.
- conditions
Sequence[Prevention
Content Policy Rule Condition] - List of conditions that must be met for this rule to apply. Structure is documented below.
- action Property Map
- The action to take if the rule matches. Structure is documented below.
- conditions List<Property Map>
- List of conditions that must be met for this rule to apply. Structure is documented below.
PreventionContentPolicyRuleAction, PreventionContentPolicyRuleActionArgs
- Return
Verdict string - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- Return
Verdict string - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- return_
verdict string - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- return
Verdict String - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- return
Verdict string - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- return_
verdict str - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- return
Verdict String - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
PreventionContentPolicyRuleCondition, PreventionContentPolicyRuleConditionArgs
- Info
Type PreventionCondition Content Policy Rule Condition Info Type Condition - A condition based on info types. Structure is documented below.
- Info
Type PreventionCondition Content Policy Rule Condition Info Type Condition - A condition based on info types. Structure is documented below.
- info_
type_ objectcondition - A condition based on info types. Structure is documented below.
- info
Type PreventionCondition Content Policy Rule Condition Info Type Condition - A condition based on info types. Structure is documented below.
- info
Type PreventionCondition Content Policy Rule Condition Info Type Condition - A condition based on info types. Structure is documented below.
- info_
type_ Preventioncondition Content Policy Rule Condition Info Type Condition - A condition based on info types. Structure is documented below.
- info
Type Property MapCondition - A condition based on info types. Structure is documented below.
PreventionContentPolicyRuleConditionInfoTypeCondition, PreventionContentPolicyRuleConditionInfoTypeConditionArgs
- Any
Info PreventionType Content Policy Rule Condition Info Type Condition Any Info Type - Match any info type.
- Info
Types PreventionContent Policy Rule Condition Info Type Condition Info Types - List of info types to match. Structure is documented below.
- Min
Count int - The minimum number of findings required for this condition to be met. Defaults to 1.
- Any
Info PreventionType Content Policy Rule Condition Info Type Condition Any Info Type - Match any info type.
- Info
Types PreventionContent Policy Rule Condition Info Type Condition Info Types - List of info types to match. Structure is documented below.
- Min
Count int - The minimum number of findings required for this condition to be met. Defaults to 1.
- any_
info_ objecttype - Match any info type.
- info_
types object - List of info types to match. Structure is documented below.
- min_
count number - The minimum number of findings required for this condition to be met. Defaults to 1.
- any
Info PreventionType Content Policy Rule Condition Info Type Condition Any Info Type - Match any info type.
- info
Types PreventionContent Policy Rule Condition Info Type Condition Info Types - List of info types to match. Structure is documented below.
- min
Count Integer - The minimum number of findings required for this condition to be met. Defaults to 1.
- any
Info PreventionType Content Policy Rule Condition Info Type Condition Any Info Type - Match any info type.
- info
Types PreventionContent Policy Rule Condition Info Type Condition Info Types - List of info types to match. Structure is documented below.
- min
Count number - The minimum number of findings required for this condition to be met. Defaults to 1.
- any_
info_ Preventiontype Content Policy Rule Condition Info Type Condition Any Info Type - Match any info type.
- info_
types PreventionContent Policy Rule Condition Info Type Condition Info Types - List of info types to match. Structure is documented below.
- min_
count int - The minimum number of findings required for this condition to be met. Defaults to 1.
- any
Info Property MapType - Match any info type.
- info
Types Property Map - List of info types to match. Structure is documented below.
- min
Count Number - The minimum number of findings required for this condition to be met. Defaults to 1.
PreventionContentPolicyRuleConditionInfoTypeConditionInfoTypes, PreventionContentPolicyRuleConditionInfoTypeConditionInfoTypesArgs
- Info
Type List<string>Names - List of info type names.
- Info
Type []stringNames - List of info type names.
- info_
type_ list(string)names - List of info type names.
- info
Type List<String>Names - List of info type names.
- info
Type string[]Names - List of info type names.
- info_
type_ Sequence[str]names - List of info type names.
- info
Type List<String>Names - List of info type names.
PreventionContentPolicyUnsupportedFileType, PreventionContentPolicyUnsupportedFileTypeArgs
- Return
Verdict string - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- Return
Verdict string - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- return_
verdict string - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- return
Verdict String - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- return
Verdict string - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- return_
verdict str - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
- return
Verdict String - If set, the verdict will be returned to the user.
Possible values: ["ALLOW", "BLOCK"]
Possible values are:
ALLOW,BLOCK.
Import
ContentPolicy can be imported using any of these accepted formats:
{{parent}}/contentPolicies/{{name}}{{parent}}/{{name}}
When using the pulumi import command, ContentPolicy can be imported using one of the formats above. For example:
$ pulumi import gcp:dataloss/preventionContentPolicy:PreventionContentPolicy default {{parent}}/contentPolicies/{{name}}
$ pulumi import gcp:dataloss/preventionContentPolicy:PreventionContentPolicy default {{parent}}/{{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.
published on Wednesday, Nov 18, 2026 by Pulumi