gcp.dataloss.PreventionJobTrigger
Explore with Pulumi AI
A job trigger configuration.
To get more information about JobTrigger, see:
- API documentation
- How-to Guides
Example Usage
Dlp Job Trigger Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const basic = new gcp.dataloss.PreventionJobTrigger("basic", {
parent: "projects/my-project-name",
description: "Description",
displayName: "Displayname",
triggers: [{
schedule: {
recurrencePeriodDuration: "86400s",
},
}],
inspectJob: {
inspectTemplateName: "fake",
actions: [{
saveFindings: {
outputConfig: {
table: {
projectId: "project",
datasetId: "dataset",
},
},
},
}],
storageConfig: {
cloudStorageOptions: {
fileSet: {
url: "gs://mybucket/directory/",
},
},
},
},
});
import pulumi
import pulumi_gcp as gcp
basic = gcp.dataloss.PreventionJobTrigger("basic",
parent="projects/my-project-name",
description="Description",
display_name="Displayname",
triggers=[{
"schedule": {
"recurrence_period_duration": "86400s",
},
}],
inspect_job={
"inspect_template_name": "fake",
"actions": [{
"save_findings": {
"output_config": {
"table": {
"project_id": "project",
"dataset_id": "dataset",
},
},
},
}],
"storage_config": {
"cloud_storage_options": {
"file_set": {
"url": "gs://mybucket/directory/",
},
},
},
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/dataloss"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dataloss.NewPreventionJobTrigger(ctx, "basic", &dataloss.PreventionJobTriggerArgs{
Parent: pulumi.String("projects/my-project-name"),
Description: pulumi.String("Description"),
DisplayName: pulumi.String("Displayname"),
Triggers: dataloss.PreventionJobTriggerTriggerArray{
&dataloss.PreventionJobTriggerTriggerArgs{
Schedule: &dataloss.PreventionJobTriggerTriggerScheduleArgs{
RecurrencePeriodDuration: pulumi.String("86400s"),
},
},
},
InspectJob: &dataloss.PreventionJobTriggerInspectJobArgs{
InspectTemplateName: pulumi.String("fake"),
Actions: dataloss.PreventionJobTriggerInspectJobActionArray{
&dataloss.PreventionJobTriggerInspectJobActionArgs{
SaveFindings: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsArgs{
OutputConfig: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs{
Table: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs{
ProjectId: pulumi.String("project"),
DatasetId: pulumi.String("dataset"),
},
},
},
},
},
StorageConfig: &dataloss.PreventionJobTriggerInspectJobStorageConfigArgs{
CloudStorageOptions: &dataloss.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs{
FileSet: &dataloss.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs{
Url: pulumi.String("gs://mybucket/directory/"),
},
},
},
},
})
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.PreventionJobTrigger("basic", new()
{
Parent = "projects/my-project-name",
Description = "Description",
DisplayName = "Displayname",
Triggers = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerTriggerArgs
{
Schedule = new Gcp.DataLoss.Inputs.PreventionJobTriggerTriggerScheduleArgs
{
RecurrencePeriodDuration = "86400s",
},
},
},
InspectJob = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobArgs
{
InspectTemplateName = "fake",
Actions = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionArgs
{
SaveFindings = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsArgs
{
OutputConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs
{
Table = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs
{
ProjectId = "project",
DatasetId = "dataset",
},
},
},
},
},
StorageConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigArgs
{
CloudStorageOptions = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs
{
FileSet = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs
{
Url = "gs://mybucket/directory/",
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.dataloss.PreventionJobTrigger;
import com.pulumi.gcp.dataloss.PreventionJobTriggerArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerTriggerArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerTriggerScheduleArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var basic = new PreventionJobTrigger("basic", PreventionJobTriggerArgs.builder()
.parent("projects/my-project-name")
.description("Description")
.displayName("Displayname")
.triggers(PreventionJobTriggerTriggerArgs.builder()
.schedule(PreventionJobTriggerTriggerScheduleArgs.builder()
.recurrencePeriodDuration("86400s")
.build())
.build())
.inspectJob(PreventionJobTriggerInspectJobArgs.builder()
.inspectTemplateName("fake")
.actions(PreventionJobTriggerInspectJobActionArgs.builder()
.saveFindings(PreventionJobTriggerInspectJobActionSaveFindingsArgs.builder()
.outputConfig(PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs.builder()
.table(PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs.builder()
.projectId("project")
.datasetId("dataset")
.build())
.build())
.build())
.build())
.storageConfig(PreventionJobTriggerInspectJobStorageConfigArgs.builder()
.cloudStorageOptions(PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs.builder()
.fileSet(PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs.builder()
.url("gs://mybucket/directory/")
.build())
.build())
.build())
.build())
.build());
}
}
resources:
basic:
type: gcp:dataloss:PreventionJobTrigger
properties:
parent: projects/my-project-name
description: Description
displayName: Displayname
triggers:
- schedule:
recurrencePeriodDuration: 86400s
inspectJob:
inspectTemplateName: fake
actions:
- saveFindings:
outputConfig:
table:
projectId: project
datasetId: dataset
storageConfig:
cloudStorageOptions:
fileSet:
url: gs://mybucket/directory/
Dlp Job Trigger Bigquery Row Limit
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const bigqueryRowLimit = new gcp.dataloss.PreventionJobTrigger("bigquery_row_limit", {
parent: "projects/my-project-name",
description: "Description",
displayName: "Displayname",
triggers: [{
schedule: {
recurrencePeriodDuration: "86400s",
},
}],
inspectJob: {
inspectTemplateName: "fake",
actions: [{
saveFindings: {
outputConfig: {
table: {
projectId: "project",
datasetId: "dataset",
},
},
},
}],
storageConfig: {
bigQueryOptions: {
tableReference: {
projectId: "project",
datasetId: "dataset",
tableId: "table_to_scan",
},
rowsLimit: 1000,
sampleMethod: "RANDOM_START",
},
},
},
});
import pulumi
import pulumi_gcp as gcp
bigquery_row_limit = gcp.dataloss.PreventionJobTrigger("bigquery_row_limit",
parent="projects/my-project-name",
description="Description",
display_name="Displayname",
triggers=[{
"schedule": {
"recurrence_period_duration": "86400s",
},
}],
inspect_job={
"inspect_template_name": "fake",
"actions": [{
"save_findings": {
"output_config": {
"table": {
"project_id": "project",
"dataset_id": "dataset",
},
},
},
}],
"storage_config": {
"big_query_options": {
"table_reference": {
"project_id": "project",
"dataset_id": "dataset",
"table_id": "table_to_scan",
},
"rows_limit": 1000,
"sample_method": "RANDOM_START",
},
},
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/dataloss"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dataloss.NewPreventionJobTrigger(ctx, "bigquery_row_limit", &dataloss.PreventionJobTriggerArgs{
Parent: pulumi.String("projects/my-project-name"),
Description: pulumi.String("Description"),
DisplayName: pulumi.String("Displayname"),
Triggers: dataloss.PreventionJobTriggerTriggerArray{
&dataloss.PreventionJobTriggerTriggerArgs{
Schedule: &dataloss.PreventionJobTriggerTriggerScheduleArgs{
RecurrencePeriodDuration: pulumi.String("86400s"),
},
},
},
InspectJob: &dataloss.PreventionJobTriggerInspectJobArgs{
InspectTemplateName: pulumi.String("fake"),
Actions: dataloss.PreventionJobTriggerInspectJobActionArray{
&dataloss.PreventionJobTriggerInspectJobActionArgs{
SaveFindings: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsArgs{
OutputConfig: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs{
Table: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs{
ProjectId: pulumi.String("project"),
DatasetId: pulumi.String("dataset"),
},
},
},
},
},
StorageConfig: &dataloss.PreventionJobTriggerInspectJobStorageConfigArgs{
BigQueryOptions: &dataloss.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsArgs{
TableReference: &dataloss.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsTableReferenceArgs{
ProjectId: pulumi.String("project"),
DatasetId: pulumi.String("dataset"),
TableId: pulumi.String("table_to_scan"),
},
RowsLimit: pulumi.Int(1000),
SampleMethod: pulumi.String("RANDOM_START"),
},
},
},
})
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 bigqueryRowLimit = new Gcp.DataLoss.PreventionJobTrigger("bigquery_row_limit", new()
{
Parent = "projects/my-project-name",
Description = "Description",
DisplayName = "Displayname",
Triggers = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerTriggerArgs
{
Schedule = new Gcp.DataLoss.Inputs.PreventionJobTriggerTriggerScheduleArgs
{
RecurrencePeriodDuration = "86400s",
},
},
},
InspectJob = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobArgs
{
InspectTemplateName = "fake",
Actions = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionArgs
{
SaveFindings = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsArgs
{
OutputConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs
{
Table = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs
{
ProjectId = "project",
DatasetId = "dataset",
},
},
},
},
},
StorageConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigArgs
{
BigQueryOptions = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsArgs
{
TableReference = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsTableReferenceArgs
{
ProjectId = "project",
DatasetId = "dataset",
TableId = "table_to_scan",
},
RowsLimit = 1000,
SampleMethod = "RANDOM_START",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.dataloss.PreventionJobTrigger;
import com.pulumi.gcp.dataloss.PreventionJobTriggerArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerTriggerArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerTriggerScheduleArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsTableReferenceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var bigqueryRowLimit = new PreventionJobTrigger("bigqueryRowLimit", PreventionJobTriggerArgs.builder()
.parent("projects/my-project-name")
.description("Description")
.displayName("Displayname")
.triggers(PreventionJobTriggerTriggerArgs.builder()
.schedule(PreventionJobTriggerTriggerScheduleArgs.builder()
.recurrencePeriodDuration("86400s")
.build())
.build())
.inspectJob(PreventionJobTriggerInspectJobArgs.builder()
.inspectTemplateName("fake")
.actions(PreventionJobTriggerInspectJobActionArgs.builder()
.saveFindings(PreventionJobTriggerInspectJobActionSaveFindingsArgs.builder()
.outputConfig(PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs.builder()
.table(PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs.builder()
.projectId("project")
.datasetId("dataset")
.build())
.build())
.build())
.build())
.storageConfig(PreventionJobTriggerInspectJobStorageConfigArgs.builder()
.bigQueryOptions(PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsArgs.builder()
.tableReference(PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsTableReferenceArgs.builder()
.projectId("project")
.datasetId("dataset")
.tableId("table_to_scan")
.build())
.rowsLimit(1000)
.sampleMethod("RANDOM_START")
.build())
.build())
.build())
.build());
}
}
resources:
bigqueryRowLimit:
type: gcp:dataloss:PreventionJobTrigger
name: bigquery_row_limit
properties:
parent: projects/my-project-name
description: Description
displayName: Displayname
triggers:
- schedule:
recurrencePeriodDuration: 86400s
inspectJob:
inspectTemplateName: fake
actions:
- saveFindings:
outputConfig:
table:
projectId: project
datasetId: dataset
storageConfig:
bigQueryOptions:
tableReference:
projectId: project
datasetId: dataset
tableId: table_to_scan
rowsLimit: 1000
sampleMethod: RANDOM_START
Dlp Job Trigger Bigquery Row Limit Percentage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const bigqueryRowLimitPercentage = new gcp.dataloss.PreventionJobTrigger("bigquery_row_limit_percentage", {
parent: "projects/my-project-name",
description: "Description",
displayName: "Displayname",
triggers: [{
schedule: {
recurrencePeriodDuration: "86400s",
},
}],
inspectJob: {
inspectTemplateName: "fake",
actions: [{
saveFindings: {
outputConfig: {
table: {
projectId: "project",
datasetId: "dataset",
},
},
},
}],
storageConfig: {
bigQueryOptions: {
tableReference: {
projectId: "project",
datasetId: "dataset",
tableId: "table_to_scan",
},
rowsLimitPercent: 50,
sampleMethod: "RANDOM_START",
},
},
},
});
import pulumi
import pulumi_gcp as gcp
bigquery_row_limit_percentage = gcp.dataloss.PreventionJobTrigger("bigquery_row_limit_percentage",
parent="projects/my-project-name",
description="Description",
display_name="Displayname",
triggers=[{
"schedule": {
"recurrence_period_duration": "86400s",
},
}],
inspect_job={
"inspect_template_name": "fake",
"actions": [{
"save_findings": {
"output_config": {
"table": {
"project_id": "project",
"dataset_id": "dataset",
},
},
},
}],
"storage_config": {
"big_query_options": {
"table_reference": {
"project_id": "project",
"dataset_id": "dataset",
"table_id": "table_to_scan",
},
"rows_limit_percent": 50,
"sample_method": "RANDOM_START",
},
},
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/dataloss"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dataloss.NewPreventionJobTrigger(ctx, "bigquery_row_limit_percentage", &dataloss.PreventionJobTriggerArgs{
Parent: pulumi.String("projects/my-project-name"),
Description: pulumi.String("Description"),
DisplayName: pulumi.String("Displayname"),
Triggers: dataloss.PreventionJobTriggerTriggerArray{
&dataloss.PreventionJobTriggerTriggerArgs{
Schedule: &dataloss.PreventionJobTriggerTriggerScheduleArgs{
RecurrencePeriodDuration: pulumi.String("86400s"),
},
},
},
InspectJob: &dataloss.PreventionJobTriggerInspectJobArgs{
InspectTemplateName: pulumi.String("fake"),
Actions: dataloss.PreventionJobTriggerInspectJobActionArray{
&dataloss.PreventionJobTriggerInspectJobActionArgs{
SaveFindings: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsArgs{
OutputConfig: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs{
Table: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs{
ProjectId: pulumi.String("project"),
DatasetId: pulumi.String("dataset"),
},
},
},
},
},
StorageConfig: &dataloss.PreventionJobTriggerInspectJobStorageConfigArgs{
BigQueryOptions: &dataloss.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsArgs{
TableReference: &dataloss.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsTableReferenceArgs{
ProjectId: pulumi.String("project"),
DatasetId: pulumi.String("dataset"),
TableId: pulumi.String("table_to_scan"),
},
RowsLimitPercent: pulumi.Int(50),
SampleMethod: pulumi.String("RANDOM_START"),
},
},
},
})
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 bigqueryRowLimitPercentage = new Gcp.DataLoss.PreventionJobTrigger("bigquery_row_limit_percentage", new()
{
Parent = "projects/my-project-name",
Description = "Description",
DisplayName = "Displayname",
Triggers = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerTriggerArgs
{
Schedule = new Gcp.DataLoss.Inputs.PreventionJobTriggerTriggerScheduleArgs
{
RecurrencePeriodDuration = "86400s",
},
},
},
InspectJob = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobArgs
{
InspectTemplateName = "fake",
Actions = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionArgs
{
SaveFindings = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsArgs
{
OutputConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs
{
Table = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs
{
ProjectId = "project",
DatasetId = "dataset",
},
},
},
},
},
StorageConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigArgs
{
BigQueryOptions = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsArgs
{
TableReference = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsTableReferenceArgs
{
ProjectId = "project",
DatasetId = "dataset",
TableId = "table_to_scan",
},
RowsLimitPercent = 50,
SampleMethod = "RANDOM_START",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.dataloss.PreventionJobTrigger;
import com.pulumi.gcp.dataloss.PreventionJobTriggerArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerTriggerArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerTriggerScheduleArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsTableReferenceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var bigqueryRowLimitPercentage = new PreventionJobTrigger("bigqueryRowLimitPercentage", PreventionJobTriggerArgs.builder()
.parent("projects/my-project-name")
.description("Description")
.displayName("Displayname")
.triggers(PreventionJobTriggerTriggerArgs.builder()
.schedule(PreventionJobTriggerTriggerScheduleArgs.builder()
.recurrencePeriodDuration("86400s")
.build())
.build())
.inspectJob(PreventionJobTriggerInspectJobArgs.builder()
.inspectTemplateName("fake")
.actions(PreventionJobTriggerInspectJobActionArgs.builder()
.saveFindings(PreventionJobTriggerInspectJobActionSaveFindingsArgs.builder()
.outputConfig(PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs.builder()
.table(PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs.builder()
.projectId("project")
.datasetId("dataset")
.build())
.build())
.build())
.build())
.storageConfig(PreventionJobTriggerInspectJobStorageConfigArgs.builder()
.bigQueryOptions(PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsArgs.builder()
.tableReference(PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsTableReferenceArgs.builder()
.projectId("project")
.datasetId("dataset")
.tableId("table_to_scan")
.build())
.rowsLimitPercent(50)
.sampleMethod("RANDOM_START")
.build())
.build())
.build())
.build());
}
}
resources:
bigqueryRowLimitPercentage:
type: gcp:dataloss:PreventionJobTrigger
name: bigquery_row_limit_percentage
properties:
parent: projects/my-project-name
description: Description
displayName: Displayname
triggers:
- schedule:
recurrencePeriodDuration: 86400s
inspectJob:
inspectTemplateName: fake
actions:
- saveFindings:
outputConfig:
table:
projectId: project
datasetId: dataset
storageConfig:
bigQueryOptions:
tableReference:
projectId: project
datasetId: dataset
tableId: table_to_scan
rowsLimitPercent: 50
sampleMethod: RANDOM_START
Dlp Job Trigger Job Notification Emails
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const jobNotificationEmails = new gcp.dataloss.PreventionJobTrigger("job_notification_emails", {
parent: "projects/my-project-name",
description: "Description for the job_trigger created by terraform",
displayName: "TerraformDisplayName",
triggers: [{
schedule: {
recurrencePeriodDuration: "86400s",
},
}],
inspectJob: {
inspectTemplateName: "sample-inspect-template",
actions: [{
jobNotificationEmails: {},
}],
storageConfig: {
cloudStorageOptions: {
fileSet: {
url: "gs://mybucket/directory/",
},
},
},
},
});
import pulumi
import pulumi_gcp as gcp
job_notification_emails = gcp.dataloss.PreventionJobTrigger("job_notification_emails",
parent="projects/my-project-name",
description="Description for the job_trigger created by terraform",
display_name="TerraformDisplayName",
triggers=[{
"schedule": {
"recurrence_period_duration": "86400s",
},
}],
inspect_job={
"inspect_template_name": "sample-inspect-template",
"actions": [{
"job_notification_emails": {},
}],
"storage_config": {
"cloud_storage_options": {
"file_set": {
"url": "gs://mybucket/directory/",
},
},
},
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/dataloss"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dataloss.NewPreventionJobTrigger(ctx, "job_notification_emails", &dataloss.PreventionJobTriggerArgs{
Parent: pulumi.String("projects/my-project-name"),
Description: pulumi.String("Description for the job_trigger created by terraform"),
DisplayName: pulumi.String("TerraformDisplayName"),
Triggers: dataloss.PreventionJobTriggerTriggerArray{
&dataloss.PreventionJobTriggerTriggerArgs{
Schedule: &dataloss.PreventionJobTriggerTriggerScheduleArgs{
RecurrencePeriodDuration: pulumi.String("86400s"),
},
},
},
InspectJob: &dataloss.PreventionJobTriggerInspectJobArgs{
InspectTemplateName: pulumi.String("sample-inspect-template"),
Actions: dataloss.PreventionJobTriggerInspectJobActionArray{
&dataloss.PreventionJobTriggerInspectJobActionArgs{
JobNotificationEmails: nil,
},
},
StorageConfig: &dataloss.PreventionJobTriggerInspectJobStorageConfigArgs{
CloudStorageOptions: &dataloss.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs{
FileSet: &dataloss.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs{
Url: pulumi.String("gs://mybucket/directory/"),
},
},
},
},
})
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 jobNotificationEmails = new Gcp.DataLoss.PreventionJobTrigger("job_notification_emails", new()
{
Parent = "projects/my-project-name",
Description = "Description for the job_trigger created by terraform",
DisplayName = "TerraformDisplayName",
Triggers = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerTriggerArgs
{
Schedule = new Gcp.DataLoss.Inputs.PreventionJobTriggerTriggerScheduleArgs
{
RecurrencePeriodDuration = "86400s",
},
},
},
InspectJob = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobArgs
{
InspectTemplateName = "sample-inspect-template",
Actions = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionArgs
{
JobNotificationEmails = null,
},
},
StorageConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigArgs
{
CloudStorageOptions = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs
{
FileSet = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs
{
Url = "gs://mybucket/directory/",
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.dataloss.PreventionJobTrigger;
import com.pulumi.gcp.dataloss.PreventionJobTriggerArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerTriggerArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerTriggerScheduleArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var jobNotificationEmails = new PreventionJobTrigger("jobNotificationEmails", PreventionJobTriggerArgs.builder()
.parent("projects/my-project-name")
.description("Description for the job_trigger created by terraform")
.displayName("TerraformDisplayName")
.triggers(PreventionJobTriggerTriggerArgs.builder()
.schedule(PreventionJobTriggerTriggerScheduleArgs.builder()
.recurrencePeriodDuration("86400s")
.build())
.build())
.inspectJob(PreventionJobTriggerInspectJobArgs.builder()
.inspectTemplateName("sample-inspect-template")
.actions(PreventionJobTriggerInspectJobActionArgs.builder()
.jobNotificationEmails()
.build())
.storageConfig(PreventionJobTriggerInspectJobStorageConfigArgs.builder()
.cloudStorageOptions(PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs.builder()
.fileSet(PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs.builder()
.url("gs://mybucket/directory/")
.build())
.build())
.build())
.build())
.build());
}
}
resources:
jobNotificationEmails:
type: gcp:dataloss:PreventionJobTrigger
name: job_notification_emails
properties:
parent: projects/my-project-name
description: Description for the job_trigger created by terraform
displayName: TerraformDisplayName
triggers:
- schedule:
recurrencePeriodDuration: 86400s
inspectJob:
inspectTemplateName: sample-inspect-template
actions:
- jobNotificationEmails: {}
storageConfig:
cloudStorageOptions:
fileSet:
url: gs://mybucket/directory/
Dlp Job Trigger Deidentify
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const _default = new gcp.bigquery.Dataset("default", {
datasetId: "tf_test",
friendlyName: "terraform-test",
description: "Description for the dataset created by terraform",
location: "US",
defaultTableExpirationMs: 3600000,
labels: {
env: "default",
},
});
const defaultTable = new gcp.bigquery.Table("default", {
datasetId: _default.datasetId,
tableId: "tf_test",
deletionProtection: false,
timePartitioning: {
type: "DAY",
},
labels: {
env: "default",
},
schema: ` [
{
"name": "quantity",
"type": "NUMERIC",
"mode": "NULLABLE",
"description": "The quantity"
},
{
"name": "name",
"type": "STRING",
"mode": "NULLABLE",
"description": "Name of the object"
}
]
`,
});
const deidentify = new gcp.dataloss.PreventionJobTrigger("deidentify", {
parent: "projects/my-project-name",
description: "Description for the job_trigger created by terraform",
displayName: "TerraformDisplayName",
triggers: [{
schedule: {
recurrencePeriodDuration: "86400s",
},
}],
inspectJob: {
inspectTemplateName: "sample-inspect-template",
actions: [{
deidentify: {
cloudStorageOutput: "gs://samplebucket/dir/",
fileTypesToTransforms: [
"CSV",
"TSV",
],
transformationDetailsStorageConfig: {
table: {
projectId: "my-project-name",
datasetId: _default.datasetId,
tableId: defaultTable.tableId,
},
},
transformationConfig: {
deidentifyTemplate: "sample-deidentify-template",
imageRedactTemplate: "sample-image-redact-template",
structuredDeidentifyTemplate: "sample-structured-deidentify-template",
},
},
}],
storageConfig: {
cloudStorageOptions: {
fileSet: {
url: "gs://mybucket/directory/",
},
},
},
},
});
import pulumi
import pulumi_gcp as gcp
default = gcp.bigquery.Dataset("default",
dataset_id="tf_test",
friendly_name="terraform-test",
description="Description for the dataset created by terraform",
location="US",
default_table_expiration_ms=3600000,
labels={
"env": "default",
})
default_table = gcp.bigquery.Table("default",
dataset_id=default.dataset_id,
table_id="tf_test",
deletion_protection=False,
time_partitioning={
"type": "DAY",
},
labels={
"env": "default",
},
schema=""" [
{
"name": "quantity",
"type": "NUMERIC",
"mode": "NULLABLE",
"description": "The quantity"
},
{
"name": "name",
"type": "STRING",
"mode": "NULLABLE",
"description": "Name of the object"
}
]
""")
deidentify = gcp.dataloss.PreventionJobTrigger("deidentify",
parent="projects/my-project-name",
description="Description for the job_trigger created by terraform",
display_name="TerraformDisplayName",
triggers=[{
"schedule": {
"recurrence_period_duration": "86400s",
},
}],
inspect_job={
"inspect_template_name": "sample-inspect-template",
"actions": [{
"deidentify": {
"cloud_storage_output": "gs://samplebucket/dir/",
"file_types_to_transforms": [
"CSV",
"TSV",
],
"transformation_details_storage_config": {
"table": {
"project_id": "my-project-name",
"dataset_id": default.dataset_id,
"table_id": default_table.table_id,
},
},
"transformation_config": {
"deidentify_template": "sample-deidentify-template",
"image_redact_template": "sample-image-redact-template",
"structured_deidentify_template": "sample-structured-deidentify-template",
},
},
}],
"storage_config": {
"cloud_storage_options": {
"file_set": {
"url": "gs://mybucket/directory/",
},
},
},
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/bigquery"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/dataloss"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := bigquery.NewDataset(ctx, "default", &bigquery.DatasetArgs{
DatasetId: pulumi.String("tf_test"),
FriendlyName: pulumi.String("terraform-test"),
Description: pulumi.String("Description for the dataset created by terraform"),
Location: pulumi.String("US"),
DefaultTableExpirationMs: pulumi.Int(3600000),
Labels: pulumi.StringMap{
"env": pulumi.String("default"),
},
})
if err != nil {
return err
}
defaultTable, err := bigquery.NewTable(ctx, "default", &bigquery.TableArgs{
DatasetId: _default.DatasetId,
TableId: pulumi.String("tf_test"),
DeletionProtection: pulumi.Bool(false),
TimePartitioning: &bigquery.TableTimePartitioningArgs{
Type: pulumi.String("DAY"),
},
Labels: pulumi.StringMap{
"env": pulumi.String("default"),
},
Schema: pulumi.String(` [
{
"name": "quantity",
"type": "NUMERIC",
"mode": "NULLABLE",
"description": "The quantity"
},
{
"name": "name",
"type": "STRING",
"mode": "NULLABLE",
"description": "Name of the object"
}
]
`),
})
if err != nil {
return err
}
_, err = dataloss.NewPreventionJobTrigger(ctx, "deidentify", &dataloss.PreventionJobTriggerArgs{
Parent: pulumi.String("projects/my-project-name"),
Description: pulumi.String("Description for the job_trigger created by terraform"),
DisplayName: pulumi.String("TerraformDisplayName"),
Triggers: dataloss.PreventionJobTriggerTriggerArray{
&dataloss.PreventionJobTriggerTriggerArgs{
Schedule: &dataloss.PreventionJobTriggerTriggerScheduleArgs{
RecurrencePeriodDuration: pulumi.String("86400s"),
},
},
},
InspectJob: &dataloss.PreventionJobTriggerInspectJobArgs{
InspectTemplateName: pulumi.String("sample-inspect-template"),
Actions: dataloss.PreventionJobTriggerInspectJobActionArray{
&dataloss.PreventionJobTriggerInspectJobActionArgs{
Deidentify: &dataloss.PreventionJobTriggerInspectJobActionDeidentifyArgs{
CloudStorageOutput: pulumi.String("gs://samplebucket/dir/"),
FileTypesToTransforms: pulumi.StringArray{
pulumi.String("CSV"),
pulumi.String("TSV"),
},
TransformationDetailsStorageConfig: &dataloss.PreventionJobTriggerInspectJobActionDeidentifyTransformationDetailsStorageConfigArgs{
Table: &dataloss.PreventionJobTriggerInspectJobActionDeidentifyTransformationDetailsStorageConfigTableArgs{
ProjectId: pulumi.String("my-project-name"),
DatasetId: _default.DatasetId,
TableId: defaultTable.TableId,
},
},
TransformationConfig: &dataloss.PreventionJobTriggerInspectJobActionDeidentifyTransformationConfigArgs{
DeidentifyTemplate: pulumi.String("sample-deidentify-template"),
ImageRedactTemplate: pulumi.String("sample-image-redact-template"),
StructuredDeidentifyTemplate: pulumi.String("sample-structured-deidentify-template"),
},
},
},
},
StorageConfig: &dataloss.PreventionJobTriggerInspectJobStorageConfigArgs{
CloudStorageOptions: &dataloss.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs{
FileSet: &dataloss.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs{
Url: pulumi.String("gs://mybucket/directory/"),
},
},
},
},
})
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 @default = new Gcp.BigQuery.Dataset("default", new()
{
DatasetId = "tf_test",
FriendlyName = "terraform-test",
Description = "Description for the dataset created by terraform",
Location = "US",
DefaultTableExpirationMs = 3600000,
Labels =
{
{ "env", "default" },
},
});
var defaultTable = new Gcp.BigQuery.Table("default", new()
{
DatasetId = @default.DatasetId,
TableId = "tf_test",
DeletionProtection = false,
TimePartitioning = new Gcp.BigQuery.Inputs.TableTimePartitioningArgs
{
Type = "DAY",
},
Labels =
{
{ "env", "default" },
},
Schema = @" [
{
""name"": ""quantity"",
""type"": ""NUMERIC"",
""mode"": ""NULLABLE"",
""description"": ""The quantity""
},
{
""name"": ""name"",
""type"": ""STRING"",
""mode"": ""NULLABLE"",
""description"": ""Name of the object""
}
]
",
});
var deidentify = new Gcp.DataLoss.PreventionJobTrigger("deidentify", new()
{
Parent = "projects/my-project-name",
Description = "Description for the job_trigger created by terraform",
DisplayName = "TerraformDisplayName",
Triggers = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerTriggerArgs
{
Schedule = new Gcp.DataLoss.Inputs.PreventionJobTriggerTriggerScheduleArgs
{
RecurrencePeriodDuration = "86400s",
},
},
},
InspectJob = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobArgs
{
InspectTemplateName = "sample-inspect-template",
Actions = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionArgs
{
Deidentify = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionDeidentifyArgs
{
CloudStorageOutput = "gs://samplebucket/dir/",
FileTypesToTransforms = new[]
{
"CSV",
"TSV",
},
TransformationDetailsStorageConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionDeidentifyTransformationDetailsStorageConfigArgs
{
Table = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionDeidentifyTransformationDetailsStorageConfigTableArgs
{
ProjectId = "my-project-name",
DatasetId = @default.DatasetId,
TableId = defaultTable.TableId,
},
},
TransformationConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionDeidentifyTransformationConfigArgs
{
DeidentifyTemplate = "sample-deidentify-template",
ImageRedactTemplate = "sample-image-redact-template",
StructuredDeidentifyTemplate = "sample-structured-deidentify-template",
},
},
},
},
StorageConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigArgs
{
CloudStorageOptions = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs
{
FileSet = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs
{
Url = "gs://mybucket/directory/",
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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.bigquery.inputs.TableTimePartitioningArgs;
import com.pulumi.gcp.dataloss.PreventionJobTrigger;
import com.pulumi.gcp.dataloss.PreventionJobTriggerArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerTriggerArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerTriggerScheduleArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new Dataset("default", DatasetArgs.builder()
.datasetId("tf_test")
.friendlyName("terraform-test")
.description("Description for the dataset created by terraform")
.location("US")
.defaultTableExpirationMs(3600000)
.labels(Map.of("env", "default"))
.build());
var defaultTable = new Table("defaultTable", TableArgs.builder()
.datasetId(default_.datasetId())
.tableId("tf_test")
.deletionProtection(false)
.timePartitioning(TableTimePartitioningArgs.builder()
.type("DAY")
.build())
.labels(Map.of("env", "default"))
.schema("""
[
{
"name": "quantity",
"type": "NUMERIC",
"mode": "NULLABLE",
"description": "The quantity"
},
{
"name": "name",
"type": "STRING",
"mode": "NULLABLE",
"description": "Name of the object"
}
]
""")
.build());
var deidentify = new PreventionJobTrigger("deidentify", PreventionJobTriggerArgs.builder()
.parent("projects/my-project-name")
.description("Description for the job_trigger created by terraform")
.displayName("TerraformDisplayName")
.triggers(PreventionJobTriggerTriggerArgs.builder()
.schedule(PreventionJobTriggerTriggerScheduleArgs.builder()
.recurrencePeriodDuration("86400s")
.build())
.build())
.inspectJob(PreventionJobTriggerInspectJobArgs.builder()
.inspectTemplateName("sample-inspect-template")
.actions(PreventionJobTriggerInspectJobActionArgs.builder()
.deidentify(PreventionJobTriggerInspectJobActionDeidentifyArgs.builder()
.cloudStorageOutput("gs://samplebucket/dir/")
.fileTypesToTransforms(
"CSV",
"TSV")
.transformationDetailsStorageConfig(PreventionJobTriggerInspectJobActionDeidentifyTransformationDetailsStorageConfigArgs.builder()
.table(PreventionJobTriggerInspectJobActionDeidentifyTransformationDetailsStorageConfigTableArgs.builder()
.projectId("my-project-name")
.datasetId(default_.datasetId())
.tableId(defaultTable.tableId())
.build())
.build())
.transformationConfig(PreventionJobTriggerInspectJobActionDeidentifyTransformationConfigArgs.builder()
.deidentifyTemplate("sample-deidentify-template")
.imageRedactTemplate("sample-image-redact-template")
.structuredDeidentifyTemplate("sample-structured-deidentify-template")
.build())
.build())
.build())
.storageConfig(PreventionJobTriggerInspectJobStorageConfigArgs.builder()
.cloudStorageOptions(PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs.builder()
.fileSet(PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs.builder()
.url("gs://mybucket/directory/")
.build())
.build())
.build())
.build())
.build());
}
}
resources:
deidentify:
type: gcp:dataloss:PreventionJobTrigger
properties:
parent: projects/my-project-name
description: Description for the job_trigger created by terraform
displayName: TerraformDisplayName
triggers:
- schedule:
recurrencePeriodDuration: 86400s
inspectJob:
inspectTemplateName: sample-inspect-template
actions:
- deidentify:
cloudStorageOutput: gs://samplebucket/dir/
fileTypesToTransforms:
- CSV
- TSV
transformationDetailsStorageConfig:
table:
projectId: my-project-name
datasetId: ${default.datasetId}
tableId: ${defaultTable.tableId}
transformationConfig:
deidentifyTemplate: sample-deidentify-template
imageRedactTemplate: sample-image-redact-template
structuredDeidentifyTemplate: sample-structured-deidentify-template
storageConfig:
cloudStorageOptions:
fileSet:
url: gs://mybucket/directory/
default:
type: gcp:bigquery:Dataset
properties:
datasetId: tf_test
friendlyName: terraform-test
description: Description for the dataset created by terraform
location: US
defaultTableExpirationMs: 3.6e+06
labels:
env: default
defaultTable:
type: gcp:bigquery:Table
name: default
properties:
datasetId: ${default.datasetId}
tableId: tf_test
deletionProtection: false
timePartitioning:
type: DAY
labels:
env: default
schema: |2
[
{
"name": "quantity",
"type": "NUMERIC",
"mode": "NULLABLE",
"description": "The quantity"
},
{
"name": "name",
"type": "STRING",
"mode": "NULLABLE",
"description": "Name of the object"
}
]
Dlp Job Trigger Hybrid
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const hybridTrigger = new gcp.dataloss.PreventionJobTrigger("hybrid_trigger", {
parent: "projects/my-project-name",
triggers: [{
manual: {},
}],
inspectJob: {
inspectTemplateName: "fake",
actions: [{
saveFindings: {
outputConfig: {
table: {
projectId: "project",
datasetId: "dataset",
},
},
},
}],
storageConfig: {
hybridOptions: {
description: "Hybrid job trigger for data from the comments field of a table that contains customer appointment bookings",
requiredFindingLabelKeys: ["appointment-bookings-comments"],
labels: {
env: "prod",
},
tableOptions: {
identifyingFields: [{
name: "booking_id",
}],
},
},
},
},
});
import pulumi
import pulumi_gcp as gcp
hybrid_trigger = gcp.dataloss.PreventionJobTrigger("hybrid_trigger",
parent="projects/my-project-name",
triggers=[{
"manual": {},
}],
inspect_job={
"inspect_template_name": "fake",
"actions": [{
"save_findings": {
"output_config": {
"table": {
"project_id": "project",
"dataset_id": "dataset",
},
},
},
}],
"storage_config": {
"hybrid_options": {
"description": "Hybrid job trigger for data from the comments field of a table that contains customer appointment bookings",
"required_finding_label_keys": ["appointment-bookings-comments"],
"labels": {
"env": "prod",
},
"table_options": {
"identifying_fields": [{
"name": "booking_id",
}],
},
},
},
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/dataloss"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dataloss.NewPreventionJobTrigger(ctx, "hybrid_trigger", &dataloss.PreventionJobTriggerArgs{
Parent: pulumi.String("projects/my-project-name"),
Triggers: dataloss.PreventionJobTriggerTriggerArray{
&dataloss.PreventionJobTriggerTriggerArgs{
Manual: nil,
},
},
InspectJob: &dataloss.PreventionJobTriggerInspectJobArgs{
InspectTemplateName: pulumi.String("fake"),
Actions: dataloss.PreventionJobTriggerInspectJobActionArray{
&dataloss.PreventionJobTriggerInspectJobActionArgs{
SaveFindings: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsArgs{
OutputConfig: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs{
Table: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs{
ProjectId: pulumi.String("project"),
DatasetId: pulumi.String("dataset"),
},
},
},
},
},
StorageConfig: &dataloss.PreventionJobTriggerInspectJobStorageConfigArgs{
HybridOptions: &dataloss.PreventionJobTriggerInspectJobStorageConfigHybridOptionsArgs{
Description: pulumi.String("Hybrid job trigger for data from the comments field of a table that contains customer appointment bookings"),
RequiredFindingLabelKeys: pulumi.StringArray{
pulumi.String("appointment-bookings-comments"),
},
Labels: pulumi.StringMap{
"env": pulumi.String("prod"),
},
TableOptions: &dataloss.PreventionJobTriggerInspectJobStorageConfigHybridOptionsTableOptionsArgs{
IdentifyingFields: dataloss.PreventionJobTriggerInspectJobStorageConfigHybridOptionsTableOptionsIdentifyingFieldArray{
&dataloss.PreventionJobTriggerInspectJobStorageConfigHybridOptionsTableOptionsIdentifyingFieldArgs{
Name: pulumi.String("booking_id"),
},
},
},
},
},
},
})
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 hybridTrigger = new Gcp.DataLoss.PreventionJobTrigger("hybrid_trigger", new()
{
Parent = "projects/my-project-name",
Triggers = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerTriggerArgs
{
Manual = null,
},
},
InspectJob = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobArgs
{
InspectTemplateName = "fake",
Actions = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionArgs
{
SaveFindings = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsArgs
{
OutputConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs
{
Table = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs
{
ProjectId = "project",
DatasetId = "dataset",
},
},
},
},
},
StorageConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigArgs
{
HybridOptions = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigHybridOptionsArgs
{
Description = "Hybrid job trigger for data from the comments field of a table that contains customer appointment bookings",
RequiredFindingLabelKeys = new[]
{
"appointment-bookings-comments",
},
Labels =
{
{ "env", "prod" },
},
TableOptions = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigHybridOptionsTableOptionsArgs
{
IdentifyingFields = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigHybridOptionsTableOptionsIdentifyingFieldArgs
{
Name = "booking_id",
},
},
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.dataloss.PreventionJobTrigger;
import com.pulumi.gcp.dataloss.PreventionJobTriggerArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerTriggerArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerTriggerManualArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigHybridOptionsArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigHybridOptionsTableOptionsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var hybridTrigger = new PreventionJobTrigger("hybridTrigger", PreventionJobTriggerArgs.builder()
.parent("projects/my-project-name")
.triggers(PreventionJobTriggerTriggerArgs.builder()
.manual()
.build())
.inspectJob(PreventionJobTriggerInspectJobArgs.builder()
.inspectTemplateName("fake")
.actions(PreventionJobTriggerInspectJobActionArgs.builder()
.saveFindings(PreventionJobTriggerInspectJobActionSaveFindingsArgs.builder()
.outputConfig(PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs.builder()
.table(PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs.builder()
.projectId("project")
.datasetId("dataset")
.build())
.build())
.build())
.build())
.storageConfig(PreventionJobTriggerInspectJobStorageConfigArgs.builder()
.hybridOptions(PreventionJobTriggerInspectJobStorageConfigHybridOptionsArgs.builder()
.description("Hybrid job trigger for data from the comments field of a table that contains customer appointment bookings")
.requiredFindingLabelKeys("appointment-bookings-comments")
.labels(Map.of("env", "prod"))
.tableOptions(PreventionJobTriggerInspectJobStorageConfigHybridOptionsTableOptionsArgs.builder()
.identifyingFields(PreventionJobTriggerInspectJobStorageConfigHybridOptionsTableOptionsIdentifyingFieldArgs.builder()
.name("booking_id")
.build())
.build())
.build())
.build())
.build())
.build());
}
}
resources:
hybridTrigger:
type: gcp:dataloss:PreventionJobTrigger
name: hybrid_trigger
properties:
parent: projects/my-project-name
triggers:
- manual: {}
inspectJob:
inspectTemplateName: fake
actions:
- saveFindings:
outputConfig:
table:
projectId: project
datasetId: dataset
storageConfig:
hybridOptions:
description: Hybrid job trigger for data from the comments field of a table that contains customer appointment bookings
requiredFindingLabelKeys:
- appointment-bookings-comments
labels:
env: prod
tableOptions:
identifyingFields:
- name: booking_id
Dlp Job Trigger Inspect
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const inspect = new gcp.dataloss.PreventionJobTrigger("inspect", {
parent: "projects/my-project-name",
description: "Description",
displayName: "Displayname",
triggers: [{
schedule: {
recurrencePeriodDuration: "86400s",
},
}],
inspectJob: {
inspectTemplateName: "fake",
actions: [{
saveFindings: {
outputConfig: {
table: {
projectId: "project",
datasetId: "dataset",
},
},
},
}],
storageConfig: {
cloudStorageOptions: {
fileSet: {
url: "gs://mybucket/directory/",
},
},
},
inspectConfig: {
customInfoTypes: [{
infoType: {
name: "MY_CUSTOM_TYPE",
},
likelihood: "UNLIKELY",
regex: {
pattern: "test*",
},
}],
infoTypes: [{
name: "EMAIL_ADDRESS",
}],
minLikelihood: "UNLIKELY",
ruleSets: [
{
infoTypes: [{
name: "EMAIL_ADDRESS",
}],
rules: [{
exclusionRule: {
regex: {
pattern: ".+@example.com",
},
matchingType: "MATCHING_TYPE_FULL_MATCH",
},
}],
},
{
infoTypes: [{
name: "MY_CUSTOM_TYPE",
}],
rules: [{
hotwordRule: {
hotwordRegex: {
pattern: "example*",
},
proximity: {
windowBefore: 50,
},
likelihoodAdjustment: {
fixedLikelihood: "VERY_LIKELY",
},
},
}],
},
],
limits: {
maxFindingsPerItem: 10,
maxFindingsPerRequest: 50,
},
},
},
});
import pulumi
import pulumi_gcp as gcp
inspect = gcp.dataloss.PreventionJobTrigger("inspect",
parent="projects/my-project-name",
description="Description",
display_name="Displayname",
triggers=[{
"schedule": {
"recurrence_period_duration": "86400s",
},
}],
inspect_job={
"inspect_template_name": "fake",
"actions": [{
"save_findings": {
"output_config": {
"table": {
"project_id": "project",
"dataset_id": "dataset",
},
},
},
}],
"storage_config": {
"cloud_storage_options": {
"file_set": {
"url": "gs://mybucket/directory/",
},
},
},
"inspect_config": {
"custom_info_types": [{
"info_type": {
"name": "MY_CUSTOM_TYPE",
},
"likelihood": "UNLIKELY",
"regex": {
"pattern": "test*",
},
}],
"info_types": [{
"name": "EMAIL_ADDRESS",
}],
"min_likelihood": "UNLIKELY",
"rule_sets": [
{
"info_types": [{
"name": "EMAIL_ADDRESS",
}],
"rules": [{
"exclusion_rule": {
"regex": {
"pattern": ".+@example.com",
},
"matching_type": "MATCHING_TYPE_FULL_MATCH",
},
}],
},
{
"info_types": [{
"name": "MY_CUSTOM_TYPE",
}],
"rules": [{
"hotword_rule": {
"hotword_regex": {
"pattern": "example*",
},
"proximity": {
"window_before": 50,
},
"likelihood_adjustment": {
"fixed_likelihood": "VERY_LIKELY",
},
},
}],
},
],
"limits": {
"max_findings_per_item": 10,
"max_findings_per_request": 50,
},
},
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/dataloss"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dataloss.NewPreventionJobTrigger(ctx, "inspect", &dataloss.PreventionJobTriggerArgs{
Parent: pulumi.String("projects/my-project-name"),
Description: pulumi.String("Description"),
DisplayName: pulumi.String("Displayname"),
Triggers: dataloss.PreventionJobTriggerTriggerArray{
&dataloss.PreventionJobTriggerTriggerArgs{
Schedule: &dataloss.PreventionJobTriggerTriggerScheduleArgs{
RecurrencePeriodDuration: pulumi.String("86400s"),
},
},
},
InspectJob: &dataloss.PreventionJobTriggerInspectJobArgs{
InspectTemplateName: pulumi.String("fake"),
Actions: dataloss.PreventionJobTriggerInspectJobActionArray{
&dataloss.PreventionJobTriggerInspectJobActionArgs{
SaveFindings: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsArgs{
OutputConfig: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs{
Table: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs{
ProjectId: pulumi.String("project"),
DatasetId: pulumi.String("dataset"),
},
},
},
},
},
StorageConfig: &dataloss.PreventionJobTriggerInspectJobStorageConfigArgs{
CloudStorageOptions: &dataloss.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs{
FileSet: &dataloss.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs{
Url: pulumi.String("gs://mybucket/directory/"),
},
},
},
InspectConfig: &dataloss.PreventionJobTriggerInspectJobInspectConfigArgs{
CustomInfoTypes: dataloss.PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeArray{
&dataloss.PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeArgs{
InfoType: &dataloss.PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeInfoTypeArgs{
Name: pulumi.String("MY_CUSTOM_TYPE"),
},
Likelihood: pulumi.String("UNLIKELY"),
Regex: &dataloss.PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeRegexArgs{
Pattern: pulumi.String("test*"),
},
},
},
InfoTypes: dataloss.PreventionJobTriggerInspectJobInspectConfigInfoTypeArray{
&dataloss.PreventionJobTriggerInspectJobInspectConfigInfoTypeArgs{
Name: pulumi.String("EMAIL_ADDRESS"),
},
},
MinLikelihood: pulumi.String("UNLIKELY"),
RuleSets: dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetArray{
&dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetArgs{
InfoTypes: dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetInfoTypeArray{
&dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetInfoTypeArgs{
Name: pulumi.String("EMAIL_ADDRESS"),
},
},
Rules: dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleArray{
&dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleArgs{
ExclusionRule: &dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleArgs{
Regex: &dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleRegexArgs{
Pattern: pulumi.String(".+@example.com"),
},
MatchingType: pulumi.String("MATCHING_TYPE_FULL_MATCH"),
},
},
},
},
&dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetArgs{
InfoTypes: dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetInfoTypeArray{
&dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetInfoTypeArgs{
Name: pulumi.String("MY_CUSTOM_TYPE"),
},
},
Rules: dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleArray{
&dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleArgs{
HotwordRule: &dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleArgs{
HotwordRegex: &dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs{
Pattern: pulumi.String("example*"),
},
Proximity: &dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleProximityArgs{
WindowBefore: pulumi.Int(50),
},
LikelihoodAdjustment: &dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs{
FixedLikelihood: pulumi.String("VERY_LIKELY"),
},
},
},
},
},
},
Limits: &dataloss.PreventionJobTriggerInspectJobInspectConfigLimitsArgs{
MaxFindingsPerItem: pulumi.Int(10),
MaxFindingsPerRequest: pulumi.Int(50),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var inspect = new Gcp.DataLoss.PreventionJobTrigger("inspect", new()
{
Parent = "projects/my-project-name",
Description = "Description",
DisplayName = "Displayname",
Triggers = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerTriggerArgs
{
Schedule = new Gcp.DataLoss.Inputs.PreventionJobTriggerTriggerScheduleArgs
{
RecurrencePeriodDuration = "86400s",
},
},
},
InspectJob = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobArgs
{
InspectTemplateName = "fake",
Actions = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionArgs
{
SaveFindings = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsArgs
{
OutputConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs
{
Table = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs
{
ProjectId = "project",
DatasetId = "dataset",
},
},
},
},
},
StorageConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigArgs
{
CloudStorageOptions = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs
{
FileSet = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs
{
Url = "gs://mybucket/directory/",
},
},
},
InspectConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigArgs
{
CustomInfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeArgs
{
InfoType = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeInfoTypeArgs
{
Name = "MY_CUSTOM_TYPE",
},
Likelihood = "UNLIKELY",
Regex = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeRegexArgs
{
Pattern = "test*",
},
},
},
InfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigInfoTypeArgs
{
Name = "EMAIL_ADDRESS",
},
},
MinLikelihood = "UNLIKELY",
RuleSets = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetArgs
{
InfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetInfoTypeArgs
{
Name = "EMAIL_ADDRESS",
},
},
Rules = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleArgs
{
ExclusionRule = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleArgs
{
Regex = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleRegexArgs
{
Pattern = ".+@example.com",
},
MatchingType = "MATCHING_TYPE_FULL_MATCH",
},
},
},
},
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetArgs
{
InfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetInfoTypeArgs
{
Name = "MY_CUSTOM_TYPE",
},
},
Rules = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleArgs
{
HotwordRule = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleArgs
{
HotwordRegex = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs
{
Pattern = "example*",
},
Proximity = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleProximityArgs
{
WindowBefore = 50,
},
LikelihoodAdjustment = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs
{
FixedLikelihood = "VERY_LIKELY",
},
},
},
},
},
},
Limits = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigLimitsArgs
{
MaxFindingsPerItem = 10,
MaxFindingsPerRequest = 50,
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.dataloss.PreventionJobTrigger;
import com.pulumi.gcp.dataloss.PreventionJobTriggerArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerTriggerArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerTriggerScheduleArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobInspectConfigArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobInspectConfigLimitsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var inspect = new PreventionJobTrigger("inspect", PreventionJobTriggerArgs.builder()
.parent("projects/my-project-name")
.description("Description")
.displayName("Displayname")
.triggers(PreventionJobTriggerTriggerArgs.builder()
.schedule(PreventionJobTriggerTriggerScheduleArgs.builder()
.recurrencePeriodDuration("86400s")
.build())
.build())
.inspectJob(PreventionJobTriggerInspectJobArgs.builder()
.inspectTemplateName("fake")
.actions(PreventionJobTriggerInspectJobActionArgs.builder()
.saveFindings(PreventionJobTriggerInspectJobActionSaveFindingsArgs.builder()
.outputConfig(PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs.builder()
.table(PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs.builder()
.projectId("project")
.datasetId("dataset")
.build())
.build())
.build())
.build())
.storageConfig(PreventionJobTriggerInspectJobStorageConfigArgs.builder()
.cloudStorageOptions(PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs.builder()
.fileSet(PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs.builder()
.url("gs://mybucket/directory/")
.build())
.build())
.build())
.inspectConfig(PreventionJobTriggerInspectJobInspectConfigArgs.builder()
.customInfoTypes(PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeArgs.builder()
.infoType(PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeInfoTypeArgs.builder()
.name("MY_CUSTOM_TYPE")
.build())
.likelihood("UNLIKELY")
.regex(PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeRegexArgs.builder()
.pattern("test*")
.build())
.build())
.infoTypes(PreventionJobTriggerInspectJobInspectConfigInfoTypeArgs.builder()
.name("EMAIL_ADDRESS")
.build())
.minLikelihood("UNLIKELY")
.ruleSets(
PreventionJobTriggerInspectJobInspectConfigRuleSetArgs.builder()
.infoTypes(PreventionJobTriggerInspectJobInspectConfigRuleSetInfoTypeArgs.builder()
.name("EMAIL_ADDRESS")
.build())
.rules(PreventionJobTriggerInspectJobInspectConfigRuleSetRuleArgs.builder()
.exclusionRule(PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleArgs.builder()
.regex(PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleRegexArgs.builder()
.pattern(".+@example.com")
.build())
.matchingType("MATCHING_TYPE_FULL_MATCH")
.build())
.build())
.build(),
PreventionJobTriggerInspectJobInspectConfigRuleSetArgs.builder()
.infoTypes(PreventionJobTriggerInspectJobInspectConfigRuleSetInfoTypeArgs.builder()
.name("MY_CUSTOM_TYPE")
.build())
.rules(PreventionJobTriggerInspectJobInspectConfigRuleSetRuleArgs.builder()
.hotwordRule(PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleArgs.builder()
.hotwordRegex(PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs.builder()
.pattern("example*")
.build())
.proximity(PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleProximityArgs.builder()
.windowBefore(50)
.build())
.likelihoodAdjustment(PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs.builder()
.fixedLikelihood("VERY_LIKELY")
.build())
.build())
.build())
.build())
.limits(PreventionJobTriggerInspectJobInspectConfigLimitsArgs.builder()
.maxFindingsPerItem(10)
.maxFindingsPerRequest(50)
.build())
.build())
.build())
.build());
}
}
resources:
inspect:
type: gcp:dataloss:PreventionJobTrigger
properties:
parent: projects/my-project-name
description: Description
displayName: Displayname
triggers:
- schedule:
recurrencePeriodDuration: 86400s
inspectJob:
inspectTemplateName: fake
actions:
- saveFindings:
outputConfig:
table:
projectId: project
datasetId: dataset
storageConfig:
cloudStorageOptions:
fileSet:
url: gs://mybucket/directory/
inspectConfig:
customInfoTypes:
- infoType:
name: MY_CUSTOM_TYPE
likelihood: UNLIKELY
regex:
pattern: test*
infoTypes:
- name: EMAIL_ADDRESS
minLikelihood: UNLIKELY
ruleSets:
- infoTypes:
- name: EMAIL_ADDRESS
rules:
- exclusionRule:
regex:
pattern: .+@example.com
matchingType: MATCHING_TYPE_FULL_MATCH
- infoTypes:
- name: MY_CUSTOM_TYPE
rules:
- hotwordRule:
hotwordRegex:
pattern: example*
proximity:
windowBefore: 50
likelihoodAdjustment:
fixedLikelihood: VERY_LIKELY
limits:
maxFindingsPerItem: 10
maxFindingsPerRequest: 50
Dlp Job Trigger Publish To Stackdriver
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const publishToStackdriver = new gcp.dataloss.PreventionJobTrigger("publish_to_stackdriver", {
parent: "projects/my-project-name",
description: "Description for the job_trigger created by terraform",
displayName: "TerraformDisplayName",
triggers: [{
schedule: {
recurrencePeriodDuration: "86400s",
},
}],
inspectJob: {
inspectTemplateName: "sample-inspect-template",
actions: [{
publishToStackdriver: {},
}],
storageConfig: {
cloudStorageOptions: {
fileSet: {
url: "gs://mybucket/directory/",
},
},
},
},
});
import pulumi
import pulumi_gcp as gcp
publish_to_stackdriver = gcp.dataloss.PreventionJobTrigger("publish_to_stackdriver",
parent="projects/my-project-name",
description="Description for the job_trigger created by terraform",
display_name="TerraformDisplayName",
triggers=[{
"schedule": {
"recurrence_period_duration": "86400s",
},
}],
inspect_job={
"inspect_template_name": "sample-inspect-template",
"actions": [{
"publish_to_stackdriver": {},
}],
"storage_config": {
"cloud_storage_options": {
"file_set": {
"url": "gs://mybucket/directory/",
},
},
},
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/dataloss"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dataloss.NewPreventionJobTrigger(ctx, "publish_to_stackdriver", &dataloss.PreventionJobTriggerArgs{
Parent: pulumi.String("projects/my-project-name"),
Description: pulumi.String("Description for the job_trigger created by terraform"),
DisplayName: pulumi.String("TerraformDisplayName"),
Triggers: dataloss.PreventionJobTriggerTriggerArray{
&dataloss.PreventionJobTriggerTriggerArgs{
Schedule: &dataloss.PreventionJobTriggerTriggerScheduleArgs{
RecurrencePeriodDuration: pulumi.String("86400s"),
},
},
},
InspectJob: &dataloss.PreventionJobTriggerInspectJobArgs{
InspectTemplateName: pulumi.String("sample-inspect-template"),
Actions: dataloss.PreventionJobTriggerInspectJobActionArray{
&dataloss.PreventionJobTriggerInspectJobActionArgs{
PublishToStackdriver: nil,
},
},
StorageConfig: &dataloss.PreventionJobTriggerInspectJobStorageConfigArgs{
CloudStorageOptions: &dataloss.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs{
FileSet: &dataloss.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs{
Url: pulumi.String("gs://mybucket/directory/"),
},
},
},
},
})
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 publishToStackdriver = new Gcp.DataLoss.PreventionJobTrigger("publish_to_stackdriver", new()
{
Parent = "projects/my-project-name",
Description = "Description for the job_trigger created by terraform",
DisplayName = "TerraformDisplayName",
Triggers = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerTriggerArgs
{
Schedule = new Gcp.DataLoss.Inputs.PreventionJobTriggerTriggerScheduleArgs
{
RecurrencePeriodDuration = "86400s",
},
},
},
InspectJob = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobArgs
{
InspectTemplateName = "sample-inspect-template",
Actions = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionArgs
{
PublishToStackdriver = null,
},
},
StorageConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigArgs
{
CloudStorageOptions = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs
{
FileSet = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs
{
Url = "gs://mybucket/directory/",
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.dataloss.PreventionJobTrigger;
import com.pulumi.gcp.dataloss.PreventionJobTriggerArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerTriggerArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerTriggerScheduleArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var publishToStackdriver = new PreventionJobTrigger("publishToStackdriver", PreventionJobTriggerArgs.builder()
.parent("projects/my-project-name")
.description("Description for the job_trigger created by terraform")
.displayName("TerraformDisplayName")
.triggers(PreventionJobTriggerTriggerArgs.builder()
.schedule(PreventionJobTriggerTriggerScheduleArgs.builder()
.recurrencePeriodDuration("86400s")
.build())
.build())
.inspectJob(PreventionJobTriggerInspectJobArgs.builder()
.inspectTemplateName("sample-inspect-template")
.actions(PreventionJobTriggerInspectJobActionArgs.builder()
.publishToStackdriver()
.build())
.storageConfig(PreventionJobTriggerInspectJobStorageConfigArgs.builder()
.cloudStorageOptions(PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs.builder()
.fileSet(PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs.builder()
.url("gs://mybucket/directory/")
.build())
.build())
.build())
.build())
.build());
}
}
resources:
publishToStackdriver:
type: gcp:dataloss:PreventionJobTrigger
name: publish_to_stackdriver
properties:
parent: projects/my-project-name
description: Description for the job_trigger created by terraform
displayName: TerraformDisplayName
triggers:
- schedule:
recurrencePeriodDuration: 86400s
inspectJob:
inspectTemplateName: sample-inspect-template
actions:
- publishToStackdriver: {}
storageConfig:
cloudStorageOptions:
fileSet:
url: gs://mybucket/directory/
Dlp Job Trigger With Id
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const withTriggerId = new gcp.dataloss.PreventionJobTrigger("with_trigger_id", {
parent: "projects/my-project-name",
description: "Starting description",
displayName: "display",
triggerId: "id-",
triggers: [{
schedule: {
recurrencePeriodDuration: "86400s",
},
}],
inspectJob: {
inspectTemplateName: "fake",
actions: [{
saveFindings: {
outputConfig: {
table: {
projectId: "project",
datasetId: "dataset123",
},
},
},
}],
storageConfig: {
cloudStorageOptions: {
fileSet: {
url: "gs://mybucket/directory/",
},
},
},
},
});
import pulumi
import pulumi_gcp as gcp
with_trigger_id = gcp.dataloss.PreventionJobTrigger("with_trigger_id",
parent="projects/my-project-name",
description="Starting description",
display_name="display",
trigger_id="id-",
triggers=[{
"schedule": {
"recurrence_period_duration": "86400s",
},
}],
inspect_job={
"inspect_template_name": "fake",
"actions": [{
"save_findings": {
"output_config": {
"table": {
"project_id": "project",
"dataset_id": "dataset123",
},
},
},
}],
"storage_config": {
"cloud_storage_options": {
"file_set": {
"url": "gs://mybucket/directory/",
},
},
},
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/dataloss"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dataloss.NewPreventionJobTrigger(ctx, "with_trigger_id", &dataloss.PreventionJobTriggerArgs{
Parent: pulumi.String("projects/my-project-name"),
Description: pulumi.String("Starting description"),
DisplayName: pulumi.String("display"),
TriggerId: pulumi.String("id-"),
Triggers: dataloss.PreventionJobTriggerTriggerArray{
&dataloss.PreventionJobTriggerTriggerArgs{
Schedule: &dataloss.PreventionJobTriggerTriggerScheduleArgs{
RecurrencePeriodDuration: pulumi.String("86400s"),
},
},
},
InspectJob: &dataloss.PreventionJobTriggerInspectJobArgs{
InspectTemplateName: pulumi.String("fake"),
Actions: dataloss.PreventionJobTriggerInspectJobActionArray{
&dataloss.PreventionJobTriggerInspectJobActionArgs{
SaveFindings: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsArgs{
OutputConfig: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs{
Table: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs{
ProjectId: pulumi.String("project"),
DatasetId: pulumi.String("dataset123"),
},
},
},
},
},
StorageConfig: &dataloss.PreventionJobTriggerInspectJobStorageConfigArgs{
CloudStorageOptions: &dataloss.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs{
FileSet: &dataloss.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs{
Url: pulumi.String("gs://mybucket/directory/"),
},
},
},
},
})
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 withTriggerId = new Gcp.DataLoss.PreventionJobTrigger("with_trigger_id", new()
{
Parent = "projects/my-project-name",
Description = "Starting description",
DisplayName = "display",
TriggerId = "id-",
Triggers = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerTriggerArgs
{
Schedule = new Gcp.DataLoss.Inputs.PreventionJobTriggerTriggerScheduleArgs
{
RecurrencePeriodDuration = "86400s",
},
},
},
InspectJob = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobArgs
{
InspectTemplateName = "fake",
Actions = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionArgs
{
SaveFindings = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsArgs
{
OutputConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs
{
Table = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs
{
ProjectId = "project",
DatasetId = "dataset123",
},
},
},
},
},
StorageConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigArgs
{
CloudStorageOptions = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs
{
FileSet = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs
{
Url = "gs://mybucket/directory/",
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.dataloss.PreventionJobTrigger;
import com.pulumi.gcp.dataloss.PreventionJobTriggerArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerTriggerArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerTriggerScheduleArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var withTriggerId = new PreventionJobTrigger("withTriggerId", PreventionJobTriggerArgs.builder()
.parent("projects/my-project-name")
.description("Starting description")
.displayName("display")
.triggerId("id-")
.triggers(PreventionJobTriggerTriggerArgs.builder()
.schedule(PreventionJobTriggerTriggerScheduleArgs.builder()
.recurrencePeriodDuration("86400s")
.build())
.build())
.inspectJob(PreventionJobTriggerInspectJobArgs.builder()
.inspectTemplateName("fake")
.actions(PreventionJobTriggerInspectJobActionArgs.builder()
.saveFindings(PreventionJobTriggerInspectJobActionSaveFindingsArgs.builder()
.outputConfig(PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs.builder()
.table(PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs.builder()
.projectId("project")
.datasetId("dataset123")
.build())
.build())
.build())
.build())
.storageConfig(PreventionJobTriggerInspectJobStorageConfigArgs.builder()
.cloudStorageOptions(PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs.builder()
.fileSet(PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs.builder()
.url("gs://mybucket/directory/")
.build())
.build())
.build())
.build())
.build());
}
}
resources:
withTriggerId:
type: gcp:dataloss:PreventionJobTrigger
name: with_trigger_id
properties:
parent: projects/my-project-name
description: Starting description
displayName: display
triggerId: id-
triggers:
- schedule:
recurrencePeriodDuration: 86400s
inspectJob:
inspectTemplateName: fake
actions:
- saveFindings:
outputConfig:
table:
projectId: project
datasetId: dataset123
storageConfig:
cloudStorageOptions:
fileSet:
url: gs://mybucket/directory/
Dlp Job Trigger Multiple Actions
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const basic = new gcp.dataloss.PreventionJobTrigger("basic", {
parent: "projects/my-project-name",
description: "Description",
displayName: "Displayname",
triggers: [{
schedule: {
recurrencePeriodDuration: "86400s",
},
}],
inspectJob: {
inspectTemplateName: "fake",
actions: [
{
saveFindings: {
outputConfig: {
table: {
projectId: "project",
datasetId: "dataset",
},
},
},
},
{
pubSub: {
topic: "projects/project/topics/topic-name",
},
},
],
storageConfig: {
cloudStorageOptions: {
fileSet: {
url: "gs://mybucket/directory/",
},
},
},
},
});
import pulumi
import pulumi_gcp as gcp
basic = gcp.dataloss.PreventionJobTrigger("basic",
parent="projects/my-project-name",
description="Description",
display_name="Displayname",
triggers=[{
"schedule": {
"recurrence_period_duration": "86400s",
},
}],
inspect_job={
"inspect_template_name": "fake",
"actions": [
{
"save_findings": {
"output_config": {
"table": {
"project_id": "project",
"dataset_id": "dataset",
},
},
},
},
{
"pub_sub": {
"topic": "projects/project/topics/topic-name",
},
},
],
"storage_config": {
"cloud_storage_options": {
"file_set": {
"url": "gs://mybucket/directory/",
},
},
},
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/dataloss"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dataloss.NewPreventionJobTrigger(ctx, "basic", &dataloss.PreventionJobTriggerArgs{
Parent: pulumi.String("projects/my-project-name"),
Description: pulumi.String("Description"),
DisplayName: pulumi.String("Displayname"),
Triggers: dataloss.PreventionJobTriggerTriggerArray{
&dataloss.PreventionJobTriggerTriggerArgs{
Schedule: &dataloss.PreventionJobTriggerTriggerScheduleArgs{
RecurrencePeriodDuration: pulumi.String("86400s"),
},
},
},
InspectJob: &dataloss.PreventionJobTriggerInspectJobArgs{
InspectTemplateName: pulumi.String("fake"),
Actions: dataloss.PreventionJobTriggerInspectJobActionArray{
&dataloss.PreventionJobTriggerInspectJobActionArgs{
SaveFindings: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsArgs{
OutputConfig: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs{
Table: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs{
ProjectId: pulumi.String("project"),
DatasetId: pulumi.String("dataset"),
},
},
},
},
&dataloss.PreventionJobTriggerInspectJobActionArgs{
PubSub: &dataloss.PreventionJobTriggerInspectJobActionPubSubArgs{
Topic: pulumi.String("projects/project/topics/topic-name"),
},
},
},
StorageConfig: &dataloss.PreventionJobTriggerInspectJobStorageConfigArgs{
CloudStorageOptions: &dataloss.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs{
FileSet: &dataloss.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs{
Url: pulumi.String("gs://mybucket/directory/"),
},
},
},
},
})
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.PreventionJobTrigger("basic", new()
{
Parent = "projects/my-project-name",
Description = "Description",
DisplayName = "Displayname",
Triggers = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerTriggerArgs
{
Schedule = new Gcp.DataLoss.Inputs.PreventionJobTriggerTriggerScheduleArgs
{
RecurrencePeriodDuration = "86400s",
},
},
},
InspectJob = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobArgs
{
InspectTemplateName = "fake",
Actions = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionArgs
{
SaveFindings = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsArgs
{
OutputConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs
{
Table = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs
{
ProjectId = "project",
DatasetId = "dataset",
},
},
},
},
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionArgs
{
PubSub = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionPubSubArgs
{
Topic = "projects/project/topics/topic-name",
},
},
},
StorageConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigArgs
{
CloudStorageOptions = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs
{
FileSet = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs
{
Url = "gs://mybucket/directory/",
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.dataloss.PreventionJobTrigger;
import com.pulumi.gcp.dataloss.PreventionJobTriggerArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerTriggerArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerTriggerScheduleArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var basic = new PreventionJobTrigger("basic", PreventionJobTriggerArgs.builder()
.parent("projects/my-project-name")
.description("Description")
.displayName("Displayname")
.triggers(PreventionJobTriggerTriggerArgs.builder()
.schedule(PreventionJobTriggerTriggerScheduleArgs.builder()
.recurrencePeriodDuration("86400s")
.build())
.build())
.inspectJob(PreventionJobTriggerInspectJobArgs.builder()
.inspectTemplateName("fake")
.actions(
PreventionJobTriggerInspectJobActionArgs.builder()
.saveFindings(PreventionJobTriggerInspectJobActionSaveFindingsArgs.builder()
.outputConfig(PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs.builder()
.table(PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs.builder()
.projectId("project")
.datasetId("dataset")
.build())
.build())
.build())
.build(),
PreventionJobTriggerInspectJobActionArgs.builder()
.pubSub(PreventionJobTriggerInspectJobActionPubSubArgs.builder()
.topic("projects/project/topics/topic-name")
.build())
.build())
.storageConfig(PreventionJobTriggerInspectJobStorageConfigArgs.builder()
.cloudStorageOptions(PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs.builder()
.fileSet(PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs.builder()
.url("gs://mybucket/directory/")
.build())
.build())
.build())
.build())
.build());
}
}
resources:
basic:
type: gcp:dataloss:PreventionJobTrigger
properties:
parent: projects/my-project-name
description: Description
displayName: Displayname
triggers:
- schedule:
recurrencePeriodDuration: 86400s
inspectJob:
inspectTemplateName: fake
actions:
- saveFindings:
outputConfig:
table:
projectId: project
datasetId: dataset
- pubSub:
topic: projects/project/topics/topic-name
storageConfig:
cloudStorageOptions:
fileSet:
url: gs://mybucket/directory/
Dlp Job Trigger Cloud Storage Optional Timespan Autopopulation
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const basic = new gcp.dataloss.PreventionJobTrigger("basic", {
parent: "projects/my-project-name",
description: "Description",
displayName: "Displayname",
triggers: [{
schedule: {
recurrencePeriodDuration: "86400s",
},
}],
inspectJob: {
inspectTemplateName: "fake",
actions: [{
saveFindings: {
outputConfig: {
table: {
projectId: "project",
datasetId: "dataset",
},
},
},
}],
storageConfig: {
timespanConfig: {
enableAutoPopulationOfTimespanConfig: true,
},
cloudStorageOptions: {
fileSet: {
url: "gs://mybucket/directory/",
},
},
},
},
});
import pulumi
import pulumi_gcp as gcp
basic = gcp.dataloss.PreventionJobTrigger("basic",
parent="projects/my-project-name",
description="Description",
display_name="Displayname",
triggers=[{
"schedule": {
"recurrence_period_duration": "86400s",
},
}],
inspect_job={
"inspect_template_name": "fake",
"actions": [{
"save_findings": {
"output_config": {
"table": {
"project_id": "project",
"dataset_id": "dataset",
},
},
},
}],
"storage_config": {
"timespan_config": {
"enable_auto_population_of_timespan_config": True,
},
"cloud_storage_options": {
"file_set": {
"url": "gs://mybucket/directory/",
},
},
},
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/dataloss"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dataloss.NewPreventionJobTrigger(ctx, "basic", &dataloss.PreventionJobTriggerArgs{
Parent: pulumi.String("projects/my-project-name"),
Description: pulumi.String("Description"),
DisplayName: pulumi.String("Displayname"),
Triggers: dataloss.PreventionJobTriggerTriggerArray{
&dataloss.PreventionJobTriggerTriggerArgs{
Schedule: &dataloss.PreventionJobTriggerTriggerScheduleArgs{
RecurrencePeriodDuration: pulumi.String("86400s"),
},
},
},
InspectJob: &dataloss.PreventionJobTriggerInspectJobArgs{
InspectTemplateName: pulumi.String("fake"),
Actions: dataloss.PreventionJobTriggerInspectJobActionArray{
&dataloss.PreventionJobTriggerInspectJobActionArgs{
SaveFindings: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsArgs{
OutputConfig: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs{
Table: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs{
ProjectId: pulumi.String("project"),
DatasetId: pulumi.String("dataset"),
},
},
},
},
},
StorageConfig: &dataloss.PreventionJobTriggerInspectJobStorageConfigArgs{
TimespanConfig: &dataloss.PreventionJobTriggerInspectJobStorageConfigTimespanConfigArgs{
EnableAutoPopulationOfTimespanConfig: pulumi.Bool(true),
},
CloudStorageOptions: &dataloss.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs{
FileSet: &dataloss.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs{
Url: pulumi.String("gs://mybucket/directory/"),
},
},
},
},
})
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.PreventionJobTrigger("basic", new()
{
Parent = "projects/my-project-name",
Description = "Description",
DisplayName = "Displayname",
Triggers = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerTriggerArgs
{
Schedule = new Gcp.DataLoss.Inputs.PreventionJobTriggerTriggerScheduleArgs
{
RecurrencePeriodDuration = "86400s",
},
},
},
InspectJob = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobArgs
{
InspectTemplateName = "fake",
Actions = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionArgs
{
SaveFindings = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsArgs
{
OutputConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs
{
Table = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs
{
ProjectId = "project",
DatasetId = "dataset",
},
},
},
},
},
StorageConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigArgs
{
TimespanConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigTimespanConfigArgs
{
EnableAutoPopulationOfTimespanConfig = true,
},
CloudStorageOptions = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs
{
FileSet = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs
{
Url = "gs://mybucket/directory/",
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.dataloss.PreventionJobTrigger;
import com.pulumi.gcp.dataloss.PreventionJobTriggerArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerTriggerArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerTriggerScheduleArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigTimespanConfigArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var basic = new PreventionJobTrigger("basic", PreventionJobTriggerArgs.builder()
.parent("projects/my-project-name")
.description("Description")
.displayName("Displayname")
.triggers(PreventionJobTriggerTriggerArgs.builder()
.schedule(PreventionJobTriggerTriggerScheduleArgs.builder()
.recurrencePeriodDuration("86400s")
.build())
.build())
.inspectJob(PreventionJobTriggerInspectJobArgs.builder()
.inspectTemplateName("fake")
.actions(PreventionJobTriggerInspectJobActionArgs.builder()
.saveFindings(PreventionJobTriggerInspectJobActionSaveFindingsArgs.builder()
.outputConfig(PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs.builder()
.table(PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs.builder()
.projectId("project")
.datasetId("dataset")
.build())
.build())
.build())
.build())
.storageConfig(PreventionJobTriggerInspectJobStorageConfigArgs.builder()
.timespanConfig(PreventionJobTriggerInspectJobStorageConfigTimespanConfigArgs.builder()
.enableAutoPopulationOfTimespanConfig(true)
.build())
.cloudStorageOptions(PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs.builder()
.fileSet(PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs.builder()
.url("gs://mybucket/directory/")
.build())
.build())
.build())
.build())
.build());
}
}
resources:
basic:
type: gcp:dataloss:PreventionJobTrigger
properties:
parent: projects/my-project-name
description: Description
displayName: Displayname
triggers:
- schedule:
recurrencePeriodDuration: 86400s
inspectJob:
inspectTemplateName: fake
actions:
- saveFindings:
outputConfig:
table:
projectId: project
datasetId: dataset
storageConfig:
timespanConfig:
enableAutoPopulationOfTimespanConfig: true
cloudStorageOptions:
fileSet:
url: gs://mybucket/directory/
Dlp Job Trigger Timespan Config Big Query
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const timespanConfigBigQuery = new gcp.dataloss.PreventionJobTrigger("timespan_config_big_query", {
parent: "projects/my-project-name",
description: "BigQuery DLP Job Trigger with timespan config and row limit",
displayName: "bigquery-dlp-job-trigger-limit-timespan",
triggers: [{
schedule: {
recurrencePeriodDuration: "86400s",
},
}],
inspectJob: {
inspectTemplateName: "projects/test/locations/global/inspectTemplates/6425492983381733900",
storageConfig: {
bigQueryOptions: {
tableReference: {
projectId: "project",
datasetId: "dataset",
tableId: "table",
},
sampleMethod: "",
},
timespanConfig: {
startTime: "2023-01-01T00:00:23Z",
timestampField: {
name: "timestamp",
},
},
},
actions: [{
saveFindings: {
outputConfig: {
table: {
projectId: "project",
datasetId: "output",
},
},
},
}],
},
});
import pulumi
import pulumi_gcp as gcp
timespan_config_big_query = gcp.dataloss.PreventionJobTrigger("timespan_config_big_query",
parent="projects/my-project-name",
description="BigQuery DLP Job Trigger with timespan config and row limit",
display_name="bigquery-dlp-job-trigger-limit-timespan",
triggers=[{
"schedule": {
"recurrence_period_duration": "86400s",
},
}],
inspect_job={
"inspect_template_name": "projects/test/locations/global/inspectTemplates/6425492983381733900",
"storage_config": {
"big_query_options": {
"table_reference": {
"project_id": "project",
"dataset_id": "dataset",
"table_id": "table",
},
"sample_method": "",
},
"timespan_config": {
"start_time": "2023-01-01T00:00:23Z",
"timestamp_field": {
"name": "timestamp",
},
},
},
"actions": [{
"save_findings": {
"output_config": {
"table": {
"project_id": "project",
"dataset_id": "output",
},
},
},
}],
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/dataloss"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dataloss.NewPreventionJobTrigger(ctx, "timespan_config_big_query", &dataloss.PreventionJobTriggerArgs{
Parent: pulumi.String("projects/my-project-name"),
Description: pulumi.String("BigQuery DLP Job Trigger with timespan config and row limit"),
DisplayName: pulumi.String("bigquery-dlp-job-trigger-limit-timespan"),
Triggers: dataloss.PreventionJobTriggerTriggerArray{
&dataloss.PreventionJobTriggerTriggerArgs{
Schedule: &dataloss.PreventionJobTriggerTriggerScheduleArgs{
RecurrencePeriodDuration: pulumi.String("86400s"),
},
},
},
InspectJob: &dataloss.PreventionJobTriggerInspectJobArgs{
InspectTemplateName: pulumi.String("projects/test/locations/global/inspectTemplates/6425492983381733900"),
StorageConfig: &dataloss.PreventionJobTriggerInspectJobStorageConfigArgs{
BigQueryOptions: &dataloss.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsArgs{
TableReference: &dataloss.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsTableReferenceArgs{
ProjectId: pulumi.String("project"),
DatasetId: pulumi.String("dataset"),
TableId: pulumi.String("table"),
},
SampleMethod: pulumi.String(""),
},
TimespanConfig: &dataloss.PreventionJobTriggerInspectJobStorageConfigTimespanConfigArgs{
StartTime: pulumi.String("2023-01-01T00:00:23Z"),
TimestampField: &dataloss.PreventionJobTriggerInspectJobStorageConfigTimespanConfigTimestampFieldArgs{
Name: pulumi.String("timestamp"),
},
},
},
Actions: dataloss.PreventionJobTriggerInspectJobActionArray{
&dataloss.PreventionJobTriggerInspectJobActionArgs{
SaveFindings: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsArgs{
OutputConfig: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs{
Table: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs{
ProjectId: pulumi.String("project"),
DatasetId: pulumi.String("output"),
},
},
},
},
},
},
})
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 timespanConfigBigQuery = new Gcp.DataLoss.PreventionJobTrigger("timespan_config_big_query", new()
{
Parent = "projects/my-project-name",
Description = "BigQuery DLP Job Trigger with timespan config and row limit",
DisplayName = "bigquery-dlp-job-trigger-limit-timespan",
Triggers = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerTriggerArgs
{
Schedule = new Gcp.DataLoss.Inputs.PreventionJobTriggerTriggerScheduleArgs
{
RecurrencePeriodDuration = "86400s",
},
},
},
InspectJob = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobArgs
{
InspectTemplateName = "projects/test/locations/global/inspectTemplates/6425492983381733900",
StorageConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigArgs
{
BigQueryOptions = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsArgs
{
TableReference = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsTableReferenceArgs
{
ProjectId = "project",
DatasetId = "dataset",
TableId = "table",
},
SampleMethod = "",
},
TimespanConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigTimespanConfigArgs
{
StartTime = "2023-01-01T00:00:23Z",
TimestampField = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigTimespanConfigTimestampFieldArgs
{
Name = "timestamp",
},
},
},
Actions = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionArgs
{
SaveFindings = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsArgs
{
OutputConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs
{
Table = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs
{
ProjectId = "project",
DatasetId = "output",
},
},
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.dataloss.PreventionJobTrigger;
import com.pulumi.gcp.dataloss.PreventionJobTriggerArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerTriggerArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerTriggerScheduleArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsTableReferenceArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigTimespanConfigArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigTimespanConfigTimestampFieldArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var timespanConfigBigQuery = new PreventionJobTrigger("timespanConfigBigQuery", PreventionJobTriggerArgs.builder()
.parent("projects/my-project-name")
.description("BigQuery DLP Job Trigger with timespan config and row limit")
.displayName("bigquery-dlp-job-trigger-limit-timespan")
.triggers(PreventionJobTriggerTriggerArgs.builder()
.schedule(PreventionJobTriggerTriggerScheduleArgs.builder()
.recurrencePeriodDuration("86400s")
.build())
.build())
.inspectJob(PreventionJobTriggerInspectJobArgs.builder()
.inspectTemplateName("projects/test/locations/global/inspectTemplates/6425492983381733900")
.storageConfig(PreventionJobTriggerInspectJobStorageConfigArgs.builder()
.bigQueryOptions(PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsArgs.builder()
.tableReference(PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsTableReferenceArgs.builder()
.projectId("project")
.datasetId("dataset")
.tableId("table")
.build())
.sampleMethod("")
.build())
.timespanConfig(PreventionJobTriggerInspectJobStorageConfigTimespanConfigArgs.builder()
.startTime("2023-01-01T00:00:23Z")
.timestampField(PreventionJobTriggerInspectJobStorageConfigTimespanConfigTimestampFieldArgs.builder()
.name("timestamp")
.build())
.build())
.build())
.actions(PreventionJobTriggerInspectJobActionArgs.builder()
.saveFindings(PreventionJobTriggerInspectJobActionSaveFindingsArgs.builder()
.outputConfig(PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs.builder()
.table(PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs.builder()
.projectId("project")
.datasetId("output")
.build())
.build())
.build())
.build())
.build())
.build());
}
}
resources:
timespanConfigBigQuery:
type: gcp:dataloss:PreventionJobTrigger
name: timespan_config_big_query
properties:
parent: projects/my-project-name
description: BigQuery DLP Job Trigger with timespan config and row limit
displayName: bigquery-dlp-job-trigger-limit-timespan
triggers:
- schedule:
recurrencePeriodDuration: 86400s
inspectJob:
inspectTemplateName: projects/test/locations/global/inspectTemplates/6425492983381733900
storageConfig:
bigQueryOptions:
tableReference:
projectId: project
datasetId: dataset
tableId: table
sampleMethod:
timespanConfig:
startTime: 2023-01-01T00:00:23Z
timestampField:
name: timestamp
actions:
- saveFindings:
outputConfig:
table:
projectId: project
datasetId: output
Create PreventionJobTrigger Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PreventionJobTrigger(name: string, args: PreventionJobTriggerArgs, opts?: CustomResourceOptions);
@overload
def PreventionJobTrigger(resource_name: str,
args: PreventionJobTriggerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PreventionJobTrigger(resource_name: str,
opts: Optional[ResourceOptions] = None,
parent: Optional[str] = None,
triggers: Optional[Sequence[PreventionJobTriggerTriggerArgs]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
inspect_job: Optional[PreventionJobTriggerInspectJobArgs] = None,
status: Optional[str] = None,
trigger_id: Optional[str] = None)
func NewPreventionJobTrigger(ctx *Context, name string, args PreventionJobTriggerArgs, opts ...ResourceOption) (*PreventionJobTrigger, error)
public PreventionJobTrigger(string name, PreventionJobTriggerArgs args, CustomResourceOptions? opts = null)
public PreventionJobTrigger(String name, PreventionJobTriggerArgs args)
public PreventionJobTrigger(String name, PreventionJobTriggerArgs args, CustomResourceOptions options)
type: gcp:dataloss:PreventionJobTrigger
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PreventionJobTriggerArgs
- 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 PreventionJobTriggerArgs
- 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 PreventionJobTriggerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PreventionJobTriggerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PreventionJobTriggerArgs
- 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 preventionJobTriggerResource = new Gcp.DataLoss.PreventionJobTrigger("preventionJobTriggerResource", new()
{
Parent = "string",
Triggers = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerTriggerArgs
{
Manual = null,
Schedule = new Gcp.DataLoss.Inputs.PreventionJobTriggerTriggerScheduleArgs
{
RecurrencePeriodDuration = "string",
},
},
},
Description = "string",
DisplayName = "string",
InspectJob = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobArgs
{
StorageConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigArgs
{
BigQueryOptions = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsArgs
{
TableReference = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsTableReferenceArgs
{
DatasetId = "string",
ProjectId = "string",
TableId = "string",
},
ExcludedFields = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsExcludedFieldArgs
{
Name = "string",
},
},
IdentifyingFields = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsIdentifyingFieldArgs
{
Name = "string",
},
},
IncludedFields = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsIncludedFieldArgs
{
Name = "string",
},
},
RowsLimit = 0,
RowsLimitPercent = 0,
SampleMethod = "string",
},
CloudStorageOptions = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs
{
FileSet = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs
{
RegexFileSet = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetRegexFileSetArgs
{
BucketName = "string",
ExcludeRegexes = new[]
{
"string",
},
IncludeRegexes = new[]
{
"string",
},
},
Url = "string",
},
BytesLimitPerFile = 0,
BytesLimitPerFilePercent = 0,
FileTypes = new[]
{
"string",
},
FilesLimitPercent = 0,
SampleMethod = "string",
},
DatastoreOptions = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigDatastoreOptionsArgs
{
Kind = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigDatastoreOptionsKindArgs
{
Name = "string",
},
PartitionId = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigDatastoreOptionsPartitionIdArgs
{
ProjectId = "string",
NamespaceId = "string",
},
},
HybridOptions = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigHybridOptionsArgs
{
Description = "string",
Labels =
{
{ "string", "string" },
},
RequiredFindingLabelKeys = new[]
{
"string",
},
TableOptions = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigHybridOptionsTableOptionsArgs
{
IdentifyingFields = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigHybridOptionsTableOptionsIdentifyingFieldArgs
{
Name = "string",
},
},
},
},
TimespanConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigTimespanConfigArgs
{
EnableAutoPopulationOfTimespanConfig = false,
EndTime = "string",
StartTime = "string",
TimestampField = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobStorageConfigTimespanConfigTimestampFieldArgs
{
Name = "string",
},
},
},
Actions = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionArgs
{
Deidentify = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionDeidentifyArgs
{
CloudStorageOutput = "string",
FileTypesToTransforms = new[]
{
"string",
},
TransformationConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionDeidentifyTransformationConfigArgs
{
DeidentifyTemplate = "string",
ImageRedactTemplate = "string",
StructuredDeidentifyTemplate = "string",
},
TransformationDetailsStorageConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionDeidentifyTransformationDetailsStorageConfigArgs
{
Table = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionDeidentifyTransformationDetailsStorageConfigTableArgs
{
DatasetId = "string",
ProjectId = "string",
TableId = "string",
},
},
},
JobNotificationEmails = null,
PubSub = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionPubSubArgs
{
Topic = "string",
},
PublishFindingsToCloudDataCatalog = null,
PublishSummaryToCscc = null,
PublishToStackdriver = null,
SaveFindings = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsArgs
{
OutputConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs
{
Table = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs
{
DatasetId = "string",
ProjectId = "string",
TableId = "string",
},
OutputSchema = "string",
},
},
},
},
InspectConfig = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigArgs
{
CustomInfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeArgs
{
InfoType = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeInfoTypeArgs
{
Name = "string",
SensitivityScore = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeInfoTypeSensitivityScoreArgs
{
Score = "string",
},
Version = "string",
},
Dictionary = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeDictionaryArgs
{
CloudStoragePath = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeDictionaryCloudStoragePathArgs
{
Path = "string",
},
WordList = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeDictionaryWordListArgs
{
Words = new[]
{
"string",
},
},
},
ExclusionType = "string",
Likelihood = "string",
Regex = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeRegexArgs
{
Pattern = "string",
GroupIndexes = new[]
{
0,
},
},
SensitivityScore = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeSensitivityScoreArgs
{
Score = "string",
},
StoredType = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeStoredTypeArgs
{
Name = "string",
CreateTime = "string",
},
SurrogateType = null,
},
},
ExcludeInfoTypes = false,
IncludeQuote = false,
InfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigInfoTypeArgs
{
Name = "string",
SensitivityScore = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigInfoTypeSensitivityScoreArgs
{
Score = "string",
},
Version = "string",
},
},
Limits = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigLimitsArgs
{
MaxFindingsPerInfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigLimitsMaxFindingsPerInfoTypeArgs
{
InfoType = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeArgs
{
Name = "string",
SensitivityScore = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeSensitivityScoreArgs
{
Score = "string",
},
Version = "string",
},
MaxFindings = 0,
},
},
MaxFindingsPerItem = 0,
MaxFindingsPerRequest = 0,
},
MinLikelihood = "string",
RuleSets = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetArgs
{
Rules = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleArgs
{
ExclusionRule = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleArgs
{
MatchingType = "string",
Dictionary = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleDictionaryArgs
{
CloudStoragePath = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleDictionaryCloudStoragePathArgs
{
Path = "string",
},
WordList = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleDictionaryWordListArgs
{
Words = new[]
{
"string",
},
},
},
ExcludeByHotword = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordArgs
{
HotwordRegex = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordHotwordRegexArgs
{
GroupIndexes = new[]
{
0,
},
Pattern = "string",
},
Proximity = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordProximityArgs
{
WindowAfter = 0,
WindowBefore = 0,
},
},
ExcludeInfoTypes = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesArgs
{
InfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeArgs
{
Name = "string",
SensitivityScore = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeSensitivityScoreArgs
{
Score = "string",
},
Version = "string",
},
},
},
Regex = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleRegexArgs
{
Pattern = "string",
GroupIndexes = new[]
{
0,
},
},
},
HotwordRule = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleArgs
{
HotwordRegex = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs
{
GroupIndexes = new[]
{
0,
},
Pattern = "string",
},
LikelihoodAdjustment = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs
{
FixedLikelihood = "string",
RelativeLikelihood = 0,
},
Proximity = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleProximityArgs
{
WindowAfter = 0,
WindowBefore = 0,
},
},
},
},
InfoTypes = new[]
{
new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetInfoTypeArgs
{
Name = "string",
SensitivityScore = new Gcp.DataLoss.Inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetInfoTypeSensitivityScoreArgs
{
Score = "string",
},
Version = "string",
},
},
},
},
},
InspectTemplateName = "string",
},
Status = "string",
TriggerId = "string",
});
example, err := dataloss.NewPreventionJobTrigger(ctx, "preventionJobTriggerResource", &dataloss.PreventionJobTriggerArgs{
Parent: pulumi.String("string"),
Triggers: dataloss.PreventionJobTriggerTriggerArray{
&dataloss.PreventionJobTriggerTriggerArgs{
Manual: nil,
Schedule: &dataloss.PreventionJobTriggerTriggerScheduleArgs{
RecurrencePeriodDuration: pulumi.String("string"),
},
},
},
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
InspectJob: &dataloss.PreventionJobTriggerInspectJobArgs{
StorageConfig: &dataloss.PreventionJobTriggerInspectJobStorageConfigArgs{
BigQueryOptions: &dataloss.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsArgs{
TableReference: &dataloss.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsTableReferenceArgs{
DatasetId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
TableId: pulumi.String("string"),
},
ExcludedFields: dataloss.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsExcludedFieldArray{
&dataloss.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsExcludedFieldArgs{
Name: pulumi.String("string"),
},
},
IdentifyingFields: dataloss.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsIdentifyingFieldArray{
&dataloss.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsIdentifyingFieldArgs{
Name: pulumi.String("string"),
},
},
IncludedFields: dataloss.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsIncludedFieldArray{
&dataloss.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsIncludedFieldArgs{
Name: pulumi.String("string"),
},
},
RowsLimit: pulumi.Int(0),
RowsLimitPercent: pulumi.Int(0),
SampleMethod: pulumi.String("string"),
},
CloudStorageOptions: &dataloss.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs{
FileSet: &dataloss.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs{
RegexFileSet: &dataloss.PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetRegexFileSetArgs{
BucketName: pulumi.String("string"),
ExcludeRegexes: pulumi.StringArray{
pulumi.String("string"),
},
IncludeRegexes: pulumi.StringArray{
pulumi.String("string"),
},
},
Url: pulumi.String("string"),
},
BytesLimitPerFile: pulumi.Int(0),
BytesLimitPerFilePercent: pulumi.Int(0),
FileTypes: pulumi.StringArray{
pulumi.String("string"),
},
FilesLimitPercent: pulumi.Int(0),
SampleMethod: pulumi.String("string"),
},
DatastoreOptions: &dataloss.PreventionJobTriggerInspectJobStorageConfigDatastoreOptionsArgs{
Kind: &dataloss.PreventionJobTriggerInspectJobStorageConfigDatastoreOptionsKindArgs{
Name: pulumi.String("string"),
},
PartitionId: &dataloss.PreventionJobTriggerInspectJobStorageConfigDatastoreOptionsPartitionIdArgs{
ProjectId: pulumi.String("string"),
NamespaceId: pulumi.String("string"),
},
},
HybridOptions: &dataloss.PreventionJobTriggerInspectJobStorageConfigHybridOptionsArgs{
Description: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
RequiredFindingLabelKeys: pulumi.StringArray{
pulumi.String("string"),
},
TableOptions: &dataloss.PreventionJobTriggerInspectJobStorageConfigHybridOptionsTableOptionsArgs{
IdentifyingFields: dataloss.PreventionJobTriggerInspectJobStorageConfigHybridOptionsTableOptionsIdentifyingFieldArray{
&dataloss.PreventionJobTriggerInspectJobStorageConfigHybridOptionsTableOptionsIdentifyingFieldArgs{
Name: pulumi.String("string"),
},
},
},
},
TimespanConfig: &dataloss.PreventionJobTriggerInspectJobStorageConfigTimespanConfigArgs{
EnableAutoPopulationOfTimespanConfig: pulumi.Bool(false),
EndTime: pulumi.String("string"),
StartTime: pulumi.String("string"),
TimestampField: &dataloss.PreventionJobTriggerInspectJobStorageConfigTimespanConfigTimestampFieldArgs{
Name: pulumi.String("string"),
},
},
},
Actions: dataloss.PreventionJobTriggerInspectJobActionArray{
&dataloss.PreventionJobTriggerInspectJobActionArgs{
Deidentify: &dataloss.PreventionJobTriggerInspectJobActionDeidentifyArgs{
CloudStorageOutput: pulumi.String("string"),
FileTypesToTransforms: pulumi.StringArray{
pulumi.String("string"),
},
TransformationConfig: &dataloss.PreventionJobTriggerInspectJobActionDeidentifyTransformationConfigArgs{
DeidentifyTemplate: pulumi.String("string"),
ImageRedactTemplate: pulumi.String("string"),
StructuredDeidentifyTemplate: pulumi.String("string"),
},
TransformationDetailsStorageConfig: &dataloss.PreventionJobTriggerInspectJobActionDeidentifyTransformationDetailsStorageConfigArgs{
Table: &dataloss.PreventionJobTriggerInspectJobActionDeidentifyTransformationDetailsStorageConfigTableArgs{
DatasetId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
TableId: pulumi.String("string"),
},
},
},
JobNotificationEmails: nil,
PubSub: &dataloss.PreventionJobTriggerInspectJobActionPubSubArgs{
Topic: pulumi.String("string"),
},
PublishFindingsToCloudDataCatalog: nil,
PublishSummaryToCscc: nil,
PublishToStackdriver: nil,
SaveFindings: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsArgs{
OutputConfig: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs{
Table: &dataloss.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs{
DatasetId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
TableId: pulumi.String("string"),
},
OutputSchema: pulumi.String("string"),
},
},
},
},
InspectConfig: &dataloss.PreventionJobTriggerInspectJobInspectConfigArgs{
CustomInfoTypes: dataloss.PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeArray{
&dataloss.PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeArgs{
InfoType: &dataloss.PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeInfoTypeArgs{
Name: pulumi.String("string"),
SensitivityScore: &dataloss.PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeInfoTypeSensitivityScoreArgs{
Score: pulumi.String("string"),
},
Version: pulumi.String("string"),
},
Dictionary: &dataloss.PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeDictionaryArgs{
CloudStoragePath: &dataloss.PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeDictionaryCloudStoragePathArgs{
Path: pulumi.String("string"),
},
WordList: &dataloss.PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeDictionaryWordListArgs{
Words: pulumi.StringArray{
pulumi.String("string"),
},
},
},
ExclusionType: pulumi.String("string"),
Likelihood: pulumi.String("string"),
Regex: &dataloss.PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeRegexArgs{
Pattern: pulumi.String("string"),
GroupIndexes: pulumi.IntArray{
pulumi.Int(0),
},
},
SensitivityScore: &dataloss.PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeSensitivityScoreArgs{
Score: pulumi.String("string"),
},
StoredType: &dataloss.PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeStoredTypeArgs{
Name: pulumi.String("string"),
CreateTime: pulumi.String("string"),
},
SurrogateType: nil,
},
},
ExcludeInfoTypes: pulumi.Bool(false),
IncludeQuote: pulumi.Bool(false),
InfoTypes: dataloss.PreventionJobTriggerInspectJobInspectConfigInfoTypeArray{
&dataloss.PreventionJobTriggerInspectJobInspectConfigInfoTypeArgs{
Name: pulumi.String("string"),
SensitivityScore: &dataloss.PreventionJobTriggerInspectJobInspectConfigInfoTypeSensitivityScoreArgs{
Score: pulumi.String("string"),
},
Version: pulumi.String("string"),
},
},
Limits: &dataloss.PreventionJobTriggerInspectJobInspectConfigLimitsArgs{
MaxFindingsPerInfoTypes: dataloss.PreventionJobTriggerInspectJobInspectConfigLimitsMaxFindingsPerInfoTypeArray{
&dataloss.PreventionJobTriggerInspectJobInspectConfigLimitsMaxFindingsPerInfoTypeArgs{
InfoType: &dataloss.PreventionJobTriggerInspectJobInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeArgs{
Name: pulumi.String("string"),
SensitivityScore: &dataloss.PreventionJobTriggerInspectJobInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeSensitivityScoreArgs{
Score: pulumi.String("string"),
},
Version: pulumi.String("string"),
},
MaxFindings: pulumi.Int(0),
},
},
MaxFindingsPerItem: pulumi.Int(0),
MaxFindingsPerRequest: pulumi.Int(0),
},
MinLikelihood: pulumi.String("string"),
RuleSets: dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetArray{
&dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetArgs{
Rules: dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleArray{
&dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleArgs{
ExclusionRule: &dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleArgs{
MatchingType: pulumi.String("string"),
Dictionary: &dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleDictionaryArgs{
CloudStoragePath: &dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleDictionaryCloudStoragePathArgs{
Path: pulumi.String("string"),
},
WordList: &dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleDictionaryWordListArgs{
Words: pulumi.StringArray{
pulumi.String("string"),
},
},
},
ExcludeByHotword: &dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordArgs{
HotwordRegex: &dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordHotwordRegexArgs{
GroupIndexes: pulumi.IntArray{
pulumi.Int(0),
},
Pattern: pulumi.String("string"),
},
Proximity: &dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordProximityArgs{
WindowAfter: pulumi.Int(0),
WindowBefore: pulumi.Int(0),
},
},
ExcludeInfoTypes: &dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesArgs{
InfoTypes: dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeArray{
&dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeArgs{
Name: pulumi.String("string"),
SensitivityScore: &dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeSensitivityScoreArgs{
Score: pulumi.String("string"),
},
Version: pulumi.String("string"),
},
},
},
Regex: &dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleRegexArgs{
Pattern: pulumi.String("string"),
GroupIndexes: pulumi.IntArray{
pulumi.Int(0),
},
},
},
HotwordRule: &dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleArgs{
HotwordRegex: &dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs{
GroupIndexes: pulumi.IntArray{
pulumi.Int(0),
},
Pattern: pulumi.String("string"),
},
LikelihoodAdjustment: &dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs{
FixedLikelihood: pulumi.String("string"),
RelativeLikelihood: pulumi.Int(0),
},
Proximity: &dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleProximityArgs{
WindowAfter: pulumi.Int(0),
WindowBefore: pulumi.Int(0),
},
},
},
},
InfoTypes: dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetInfoTypeArray{
&dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetInfoTypeArgs{
Name: pulumi.String("string"),
SensitivityScore: &dataloss.PreventionJobTriggerInspectJobInspectConfigRuleSetInfoTypeSensitivityScoreArgs{
Score: pulumi.String("string"),
},
Version: pulumi.String("string"),
},
},
},
},
},
InspectTemplateName: pulumi.String("string"),
},
Status: pulumi.String("string"),
TriggerId: pulumi.String("string"),
})
var preventionJobTriggerResource = new PreventionJobTrigger("preventionJobTriggerResource", PreventionJobTriggerArgs.builder()
.parent("string")
.triggers(PreventionJobTriggerTriggerArgs.builder()
.manual()
.schedule(PreventionJobTriggerTriggerScheduleArgs.builder()
.recurrencePeriodDuration("string")
.build())
.build())
.description("string")
.displayName("string")
.inspectJob(PreventionJobTriggerInspectJobArgs.builder()
.storageConfig(PreventionJobTriggerInspectJobStorageConfigArgs.builder()
.bigQueryOptions(PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsArgs.builder()
.tableReference(PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsTableReferenceArgs.builder()
.datasetId("string")
.projectId("string")
.tableId("string")
.build())
.excludedFields(PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsExcludedFieldArgs.builder()
.name("string")
.build())
.identifyingFields(PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsIdentifyingFieldArgs.builder()
.name("string")
.build())
.includedFields(PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsIncludedFieldArgs.builder()
.name("string")
.build())
.rowsLimit(0)
.rowsLimitPercent(0)
.sampleMethod("string")
.build())
.cloudStorageOptions(PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs.builder()
.fileSet(PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs.builder()
.regexFileSet(PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetRegexFileSetArgs.builder()
.bucketName("string")
.excludeRegexes("string")
.includeRegexes("string")
.build())
.url("string")
.build())
.bytesLimitPerFile(0)
.bytesLimitPerFilePercent(0)
.fileTypes("string")
.filesLimitPercent(0)
.sampleMethod("string")
.build())
.datastoreOptions(PreventionJobTriggerInspectJobStorageConfigDatastoreOptionsArgs.builder()
.kind(PreventionJobTriggerInspectJobStorageConfigDatastoreOptionsKindArgs.builder()
.name("string")
.build())
.partitionId(PreventionJobTriggerInspectJobStorageConfigDatastoreOptionsPartitionIdArgs.builder()
.projectId("string")
.namespaceId("string")
.build())
.build())
.hybridOptions(PreventionJobTriggerInspectJobStorageConfigHybridOptionsArgs.builder()
.description("string")
.labels(Map.of("string", "string"))
.requiredFindingLabelKeys("string")
.tableOptions(PreventionJobTriggerInspectJobStorageConfigHybridOptionsTableOptionsArgs.builder()
.identifyingFields(PreventionJobTriggerInspectJobStorageConfigHybridOptionsTableOptionsIdentifyingFieldArgs.builder()
.name("string")
.build())
.build())
.build())
.timespanConfig(PreventionJobTriggerInspectJobStorageConfigTimespanConfigArgs.builder()
.enableAutoPopulationOfTimespanConfig(false)
.endTime("string")
.startTime("string")
.timestampField(PreventionJobTriggerInspectJobStorageConfigTimespanConfigTimestampFieldArgs.builder()
.name("string")
.build())
.build())
.build())
.actions(PreventionJobTriggerInspectJobActionArgs.builder()
.deidentify(PreventionJobTriggerInspectJobActionDeidentifyArgs.builder()
.cloudStorageOutput("string")
.fileTypesToTransforms("string")
.transformationConfig(PreventionJobTriggerInspectJobActionDeidentifyTransformationConfigArgs.builder()
.deidentifyTemplate("string")
.imageRedactTemplate("string")
.structuredDeidentifyTemplate("string")
.build())
.transformationDetailsStorageConfig(PreventionJobTriggerInspectJobActionDeidentifyTransformationDetailsStorageConfigArgs.builder()
.table(PreventionJobTriggerInspectJobActionDeidentifyTransformationDetailsStorageConfigTableArgs.builder()
.datasetId("string")
.projectId("string")
.tableId("string")
.build())
.build())
.build())
.jobNotificationEmails()
.pubSub(PreventionJobTriggerInspectJobActionPubSubArgs.builder()
.topic("string")
.build())
.publishFindingsToCloudDataCatalog()
.publishSummaryToCscc()
.publishToStackdriver()
.saveFindings(PreventionJobTriggerInspectJobActionSaveFindingsArgs.builder()
.outputConfig(PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs.builder()
.table(PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs.builder()
.datasetId("string")
.projectId("string")
.tableId("string")
.build())
.outputSchema("string")
.build())
.build())
.build())
.inspectConfig(PreventionJobTriggerInspectJobInspectConfigArgs.builder()
.customInfoTypes(PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeArgs.builder()
.infoType(PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeInfoTypeArgs.builder()
.name("string")
.sensitivityScore(PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeInfoTypeSensitivityScoreArgs.builder()
.score("string")
.build())
.version("string")
.build())
.dictionary(PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeDictionaryArgs.builder()
.cloudStoragePath(PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeDictionaryCloudStoragePathArgs.builder()
.path("string")
.build())
.wordList(PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeDictionaryWordListArgs.builder()
.words("string")
.build())
.build())
.exclusionType("string")
.likelihood("string")
.regex(PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeRegexArgs.builder()
.pattern("string")
.groupIndexes(0)
.build())
.sensitivityScore(PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeSensitivityScoreArgs.builder()
.score("string")
.build())
.storedType(PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeStoredTypeArgs.builder()
.name("string")
.createTime("string")
.build())
.surrogateType()
.build())
.excludeInfoTypes(false)
.includeQuote(false)
.infoTypes(PreventionJobTriggerInspectJobInspectConfigInfoTypeArgs.builder()
.name("string")
.sensitivityScore(PreventionJobTriggerInspectJobInspectConfigInfoTypeSensitivityScoreArgs.builder()
.score("string")
.build())
.version("string")
.build())
.limits(PreventionJobTriggerInspectJobInspectConfigLimitsArgs.builder()
.maxFindingsPerInfoTypes(PreventionJobTriggerInspectJobInspectConfigLimitsMaxFindingsPerInfoTypeArgs.builder()
.infoType(PreventionJobTriggerInspectJobInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeArgs.builder()
.name("string")
.sensitivityScore(PreventionJobTriggerInspectJobInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeSensitivityScoreArgs.builder()
.score("string")
.build())
.version("string")
.build())
.maxFindings(0)
.build())
.maxFindingsPerItem(0)
.maxFindingsPerRequest(0)
.build())
.minLikelihood("string")
.ruleSets(PreventionJobTriggerInspectJobInspectConfigRuleSetArgs.builder()
.rules(PreventionJobTriggerInspectJobInspectConfigRuleSetRuleArgs.builder()
.exclusionRule(PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleArgs.builder()
.matchingType("string")
.dictionary(PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleDictionaryArgs.builder()
.cloudStoragePath(PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleDictionaryCloudStoragePathArgs.builder()
.path("string")
.build())
.wordList(PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleDictionaryWordListArgs.builder()
.words("string")
.build())
.build())
.excludeByHotword(PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordArgs.builder()
.hotwordRegex(PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordHotwordRegexArgs.builder()
.groupIndexes(0)
.pattern("string")
.build())
.proximity(PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordProximityArgs.builder()
.windowAfter(0)
.windowBefore(0)
.build())
.build())
.excludeInfoTypes(PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesArgs.builder()
.infoTypes(PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeArgs.builder()
.name("string")
.sensitivityScore(PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeSensitivityScoreArgs.builder()
.score("string")
.build())
.version("string")
.build())
.build())
.regex(PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleRegexArgs.builder()
.pattern("string")
.groupIndexes(0)
.build())
.build())
.hotwordRule(PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleArgs.builder()
.hotwordRegex(PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs.builder()
.groupIndexes(0)
.pattern("string")
.build())
.likelihoodAdjustment(PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs.builder()
.fixedLikelihood("string")
.relativeLikelihood(0)
.build())
.proximity(PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleProximityArgs.builder()
.windowAfter(0)
.windowBefore(0)
.build())
.build())
.build())
.infoTypes(PreventionJobTriggerInspectJobInspectConfigRuleSetInfoTypeArgs.builder()
.name("string")
.sensitivityScore(PreventionJobTriggerInspectJobInspectConfigRuleSetInfoTypeSensitivityScoreArgs.builder()
.score("string")
.build())
.version("string")
.build())
.build())
.build())
.inspectTemplateName("string")
.build())
.status("string")
.triggerId("string")
.build());
prevention_job_trigger_resource = gcp.dataloss.PreventionJobTrigger("preventionJobTriggerResource",
parent="string",
triggers=[{
"manual": {},
"schedule": {
"recurrencePeriodDuration": "string",
},
}],
description="string",
display_name="string",
inspect_job={
"storageConfig": {
"bigQueryOptions": {
"tableReference": {
"datasetId": "string",
"projectId": "string",
"tableId": "string",
},
"excludedFields": [{
"name": "string",
}],
"identifyingFields": [{
"name": "string",
}],
"includedFields": [{
"name": "string",
}],
"rowsLimit": 0,
"rowsLimitPercent": 0,
"sampleMethod": "string",
},
"cloudStorageOptions": {
"fileSet": {
"regexFileSet": {
"bucketName": "string",
"excludeRegexes": ["string"],
"includeRegexes": ["string"],
},
"url": "string",
},
"bytesLimitPerFile": 0,
"bytesLimitPerFilePercent": 0,
"fileTypes": ["string"],
"filesLimitPercent": 0,
"sampleMethod": "string",
},
"datastoreOptions": {
"kind": {
"name": "string",
},
"partitionId": {
"projectId": "string",
"namespaceId": "string",
},
},
"hybridOptions": {
"description": "string",
"labels": {
"string": "string",
},
"requiredFindingLabelKeys": ["string"],
"tableOptions": {
"identifyingFields": [{
"name": "string",
}],
},
},
"timespanConfig": {
"enableAutoPopulationOfTimespanConfig": False,
"endTime": "string",
"startTime": "string",
"timestampField": {
"name": "string",
},
},
},
"actions": [{
"deidentify": {
"cloudStorageOutput": "string",
"fileTypesToTransforms": ["string"],
"transformationConfig": {
"deidentifyTemplate": "string",
"imageRedactTemplate": "string",
"structuredDeidentifyTemplate": "string",
},
"transformationDetailsStorageConfig": {
"table": {
"datasetId": "string",
"projectId": "string",
"tableId": "string",
},
},
},
"jobNotificationEmails": {},
"pubSub": {
"topic": "string",
},
"publishFindingsToCloudDataCatalog": {},
"publishSummaryToCscc": {},
"publishToStackdriver": {},
"saveFindings": {
"outputConfig": {
"table": {
"datasetId": "string",
"projectId": "string",
"tableId": "string",
},
"outputSchema": "string",
},
},
}],
"inspectConfig": {
"customInfoTypes": [{
"infoType": {
"name": "string",
"sensitivityScore": {
"score": "string",
},
"version": "string",
},
"dictionary": {
"cloudStoragePath": {
"path": "string",
},
"wordList": {
"words": ["string"],
},
},
"exclusionType": "string",
"likelihood": "string",
"regex": {
"pattern": "string",
"groupIndexes": [0],
},
"sensitivityScore": {
"score": "string",
},
"storedType": {
"name": "string",
"createTime": "string",
},
"surrogateType": {},
}],
"excludeInfoTypes": False,
"includeQuote": False,
"infoTypes": [{
"name": "string",
"sensitivityScore": {
"score": "string",
},
"version": "string",
}],
"limits": {
"maxFindingsPerInfoTypes": [{
"infoType": {
"name": "string",
"sensitivityScore": {
"score": "string",
},
"version": "string",
},
"maxFindings": 0,
}],
"maxFindingsPerItem": 0,
"maxFindingsPerRequest": 0,
},
"minLikelihood": "string",
"ruleSets": [{
"rules": [{
"exclusionRule": {
"matchingType": "string",
"dictionary": {
"cloudStoragePath": {
"path": "string",
},
"wordList": {
"words": ["string"],
},
},
"excludeByHotword": {
"hotwordRegex": {
"groupIndexes": [0],
"pattern": "string",
},
"proximity": {
"windowAfter": 0,
"windowBefore": 0,
},
},
"excludeInfoTypes": {
"infoTypes": [{
"name": "string",
"sensitivityScore": {
"score": "string",
},
"version": "string",
}],
},
"regex": {
"pattern": "string",
"groupIndexes": [0],
},
},
"hotwordRule": {
"hotwordRegex": {
"groupIndexes": [0],
"pattern": "string",
},
"likelihoodAdjustment": {
"fixedLikelihood": "string",
"relativeLikelihood": 0,
},
"proximity": {
"windowAfter": 0,
"windowBefore": 0,
},
},
}],
"infoTypes": [{
"name": "string",
"sensitivityScore": {
"score": "string",
},
"version": "string",
}],
}],
},
"inspectTemplateName": "string",
},
status="string",
trigger_id="string")
const preventionJobTriggerResource = new gcp.dataloss.PreventionJobTrigger("preventionJobTriggerResource", {
parent: "string",
triggers: [{
manual: {},
schedule: {
recurrencePeriodDuration: "string",
},
}],
description: "string",
displayName: "string",
inspectJob: {
storageConfig: {
bigQueryOptions: {
tableReference: {
datasetId: "string",
projectId: "string",
tableId: "string",
},
excludedFields: [{
name: "string",
}],
identifyingFields: [{
name: "string",
}],
includedFields: [{
name: "string",
}],
rowsLimit: 0,
rowsLimitPercent: 0,
sampleMethod: "string",
},
cloudStorageOptions: {
fileSet: {
regexFileSet: {
bucketName: "string",
excludeRegexes: ["string"],
includeRegexes: ["string"],
},
url: "string",
},
bytesLimitPerFile: 0,
bytesLimitPerFilePercent: 0,
fileTypes: ["string"],
filesLimitPercent: 0,
sampleMethod: "string",
},
datastoreOptions: {
kind: {
name: "string",
},
partitionId: {
projectId: "string",
namespaceId: "string",
},
},
hybridOptions: {
description: "string",
labels: {
string: "string",
},
requiredFindingLabelKeys: ["string"],
tableOptions: {
identifyingFields: [{
name: "string",
}],
},
},
timespanConfig: {
enableAutoPopulationOfTimespanConfig: false,
endTime: "string",
startTime: "string",
timestampField: {
name: "string",
},
},
},
actions: [{
deidentify: {
cloudStorageOutput: "string",
fileTypesToTransforms: ["string"],
transformationConfig: {
deidentifyTemplate: "string",
imageRedactTemplate: "string",
structuredDeidentifyTemplate: "string",
},
transformationDetailsStorageConfig: {
table: {
datasetId: "string",
projectId: "string",
tableId: "string",
},
},
},
jobNotificationEmails: {},
pubSub: {
topic: "string",
},
publishFindingsToCloudDataCatalog: {},
publishSummaryToCscc: {},
publishToStackdriver: {},
saveFindings: {
outputConfig: {
table: {
datasetId: "string",
projectId: "string",
tableId: "string",
},
outputSchema: "string",
},
},
}],
inspectConfig: {
customInfoTypes: [{
infoType: {
name: "string",
sensitivityScore: {
score: "string",
},
version: "string",
},
dictionary: {
cloudStoragePath: {
path: "string",
},
wordList: {
words: ["string"],
},
},
exclusionType: "string",
likelihood: "string",
regex: {
pattern: "string",
groupIndexes: [0],
},
sensitivityScore: {
score: "string",
},
storedType: {
name: "string",
createTime: "string",
},
surrogateType: {},
}],
excludeInfoTypes: false,
includeQuote: false,
infoTypes: [{
name: "string",
sensitivityScore: {
score: "string",
},
version: "string",
}],
limits: {
maxFindingsPerInfoTypes: [{
infoType: {
name: "string",
sensitivityScore: {
score: "string",
},
version: "string",
},
maxFindings: 0,
}],
maxFindingsPerItem: 0,
maxFindingsPerRequest: 0,
},
minLikelihood: "string",
ruleSets: [{
rules: [{
exclusionRule: {
matchingType: "string",
dictionary: {
cloudStoragePath: {
path: "string",
},
wordList: {
words: ["string"],
},
},
excludeByHotword: {
hotwordRegex: {
groupIndexes: [0],
pattern: "string",
},
proximity: {
windowAfter: 0,
windowBefore: 0,
},
},
excludeInfoTypes: {
infoTypes: [{
name: "string",
sensitivityScore: {
score: "string",
},
version: "string",
}],
},
regex: {
pattern: "string",
groupIndexes: [0],
},
},
hotwordRule: {
hotwordRegex: {
groupIndexes: [0],
pattern: "string",
},
likelihoodAdjustment: {
fixedLikelihood: "string",
relativeLikelihood: 0,
},
proximity: {
windowAfter: 0,
windowBefore: 0,
},
},
}],
infoTypes: [{
name: "string",
sensitivityScore: {
score: "string",
},
version: "string",
}],
}],
},
inspectTemplateName: "string",
},
status: "string",
triggerId: "string",
});
type: gcp:dataloss:PreventionJobTrigger
properties:
description: string
displayName: string
inspectJob:
actions:
- deidentify:
cloudStorageOutput: string
fileTypesToTransforms:
- string
transformationConfig:
deidentifyTemplate: string
imageRedactTemplate: string
structuredDeidentifyTemplate: string
transformationDetailsStorageConfig:
table:
datasetId: string
projectId: string
tableId: string
jobNotificationEmails: {}
pubSub:
topic: string
publishFindingsToCloudDataCatalog: {}
publishSummaryToCscc: {}
publishToStackdriver: {}
saveFindings:
outputConfig:
outputSchema: string
table:
datasetId: string
projectId: string
tableId: string
inspectConfig:
customInfoTypes:
- dictionary:
cloudStoragePath:
path: string
wordList:
words:
- string
exclusionType: string
infoType:
name: string
sensitivityScore:
score: string
version: string
likelihood: string
regex:
groupIndexes:
- 0
pattern: string
sensitivityScore:
score: string
storedType:
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
ruleSets:
- infoTypes:
- name: string
sensitivityScore:
score: string
version: string
rules:
- exclusionRule:
dictionary:
cloudStoragePath:
path: string
wordList:
words:
- string
excludeByHotword:
hotwordRegex:
groupIndexes:
- 0
pattern: string
proximity:
windowAfter: 0
windowBefore: 0
excludeInfoTypes:
infoTypes:
- name: string
sensitivityScore:
score: string
version: string
matchingType: string
regex:
groupIndexes:
- 0
pattern: string
hotwordRule:
hotwordRegex:
groupIndexes:
- 0
pattern: string
likelihoodAdjustment:
fixedLikelihood: string
relativeLikelihood: 0
proximity:
windowAfter: 0
windowBefore: 0
inspectTemplateName: string
storageConfig:
bigQueryOptions:
excludedFields:
- name: string
identifyingFields:
- name: string
includedFields:
- name: string
rowsLimit: 0
rowsLimitPercent: 0
sampleMethod: string
tableReference:
datasetId: string
projectId: string
tableId: string
cloudStorageOptions:
bytesLimitPerFile: 0
bytesLimitPerFilePercent: 0
fileSet:
regexFileSet:
bucketName: string
excludeRegexes:
- string
includeRegexes:
- string
url: string
fileTypes:
- string
filesLimitPercent: 0
sampleMethod: string
datastoreOptions:
kind:
name: string
partitionId:
namespaceId: string
projectId: string
hybridOptions:
description: string
labels:
string: string
requiredFindingLabelKeys:
- string
tableOptions:
identifyingFields:
- name: string
timespanConfig:
enableAutoPopulationOfTimespanConfig: false
endTime: string
startTime: string
timestampField:
name: string
parent: string
status: string
triggerId: string
triggers:
- manual: {}
schedule:
recurrencePeriodDuration: string
PreventionJobTrigger Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The PreventionJobTrigger resource accepts the following input properties:
- Parent string
- The parent of the trigger, either in the format
projects/{{project}}
orprojects/{{project}}/locations/{{location}}
- Triggers
List<Prevention
Job Trigger Trigger> - What event needs to occur for a new job to be started. Structure is documented below.
- Description string
- A description of the job trigger.
- Display
Name string - User set display name of the job trigger.
- Inspect
Job PreventionJob Trigger Inspect Job - Controls what and how to inspect for findings.
- Status string
- Whether the trigger is currently active. Default value: "HEALTHY" Possible values: ["PAUSED", "HEALTHY", "CANCELLED"]
- Trigger
Id string - The trigger id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- Parent string
- The parent of the trigger, either in the format
projects/{{project}}
orprojects/{{project}}/locations/{{location}}
- Triggers
[]Prevention
Job Trigger Trigger Args - What event needs to occur for a new job to be started. Structure is documented below.
- Description string
- A description of the job trigger.
- Display
Name string - User set display name of the job trigger.
- Inspect
Job PreventionJob Trigger Inspect Job Args - Controls what and how to inspect for findings.
- Status string
- Whether the trigger is currently active. Default value: "HEALTHY" Possible values: ["PAUSED", "HEALTHY", "CANCELLED"]
- Trigger
Id string - The trigger id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- parent String
- The parent of the trigger, either in the format
projects/{{project}}
orprojects/{{project}}/locations/{{location}}
- triggers
List<Prevention
Job Trigger Trigger> - What event needs to occur for a new job to be started. Structure is documented below.
- description String
- A description of the job trigger.
- display
Name String - User set display name of the job trigger.
- inspect
Job PreventionJob Trigger Inspect Job - Controls what and how to inspect for findings.
- status String
- Whether the trigger is currently active. Default value: "HEALTHY" Possible values: ["PAUSED", "HEALTHY", "CANCELLED"]
- trigger
Id String - The trigger id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- parent string
- The parent of the trigger, either in the format
projects/{{project}}
orprojects/{{project}}/locations/{{location}}
- triggers
Prevention
Job Trigger Trigger[] - What event needs to occur for a new job to be started. Structure is documented below.
- description string
- A description of the job trigger.
- display
Name string - User set display name of the job trigger.
- inspect
Job PreventionJob Trigger Inspect Job - Controls what and how to inspect for findings.
- status string
- Whether the trigger is currently active. Default value: "HEALTHY" Possible values: ["PAUSED", "HEALTHY", "CANCELLED"]
- trigger
Id string - The trigger id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- parent str
- The parent of the trigger, either in the format
projects/{{project}}
orprojects/{{project}}/locations/{{location}}
- triggers
Sequence[Prevention
Job Trigger Trigger Args] - What event needs to occur for a new job to be started. Structure is documented below.
- description str
- A description of the job trigger.
- display_
name str - User set display name of the job trigger.
- inspect_
job PreventionJob Trigger Inspect Job Args - Controls what and how to inspect for findings.
- status str
- Whether the trigger is currently active. Default value: "HEALTHY" Possible values: ["PAUSED", "HEALTHY", "CANCELLED"]
- trigger_
id str - The trigger id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- parent String
- The parent of the trigger, either in the format
projects/{{project}}
orprojects/{{project}}/locations/{{location}}
- triggers List<Property Map>
- What event needs to occur for a new job to be started. Structure is documented below.
- description String
- A description of the job trigger.
- display
Name String - User set display name of the job trigger.
- inspect
Job Property Map - Controls what and how to inspect for findings.
- status String
- Whether the trigger is currently active. Default value: "HEALTHY" Possible values: ["PAUSED", "HEALTHY", "CANCELLED"]
- trigger
Id String - The trigger id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
Outputs
All input properties are implicitly available as output properties. Additionally, the PreventionJobTrigger resource produces the following output properties:
- Create
Time string - The creation timestamp of an inspectTemplate. Set by the server.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Run stringTime - The timestamp of the last time this trigger executed.
- Name string
- The resource name of the job trigger. Set by the server.
- Update
Time string - The last update timestamp of an inspectTemplate. Set by the server.
- Create
Time string - The creation timestamp of an inspectTemplate. Set by the server.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Run stringTime - The timestamp of the last time this trigger executed.
- Name string
- The resource name of the job trigger. Set by the server.
- Update
Time string - The last update timestamp of an inspectTemplate. Set by the server.
- create
Time String - The creation timestamp of an inspectTemplate. Set by the server.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Run StringTime - The timestamp of the last time this trigger executed.
- name String
- The resource name of the job trigger. Set by the server.
- update
Time String - The last update timestamp of an inspectTemplate. Set by the server.
- create
Time string - The creation timestamp of an inspectTemplate. Set by the server.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Run stringTime - The timestamp of the last time this trigger executed.
- name string
- The resource name of the job trigger. Set by the server.
- update
Time string - The last update timestamp of an inspectTemplate. Set by the server.
- create_
time str - The creation timestamp of an inspectTemplate. Set by the server.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
run_ strtime - The timestamp of the last time this trigger executed.
- name str
- The resource name of the job trigger. Set by the server.
- update_
time str - The last update timestamp of an inspectTemplate. Set by the server.
- create
Time String - The creation timestamp of an inspectTemplate. Set by the server.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Run StringTime - The timestamp of the last time this trigger executed.
- name String
- The resource name of the job trigger. Set by the server.
- update
Time String - The last update timestamp of an inspectTemplate. Set by the server.
Look up Existing PreventionJobTrigger Resource
Get an existing PreventionJobTrigger 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?: PreventionJobTriggerState, opts?: CustomResourceOptions): PreventionJobTrigger
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
inspect_job: Optional[PreventionJobTriggerInspectJobArgs] = None,
last_run_time: Optional[str] = None,
name: Optional[str] = None,
parent: Optional[str] = None,
status: Optional[str] = None,
trigger_id: Optional[str] = None,
triggers: Optional[Sequence[PreventionJobTriggerTriggerArgs]] = None,
update_time: Optional[str] = None) -> PreventionJobTrigger
func GetPreventionJobTrigger(ctx *Context, name string, id IDInput, state *PreventionJobTriggerState, opts ...ResourceOption) (*PreventionJobTrigger, error)
public static PreventionJobTrigger Get(string name, Input<string> id, PreventionJobTriggerState? state, CustomResourceOptions? opts = null)
public static PreventionJobTrigger get(String name, Output<String> id, PreventionJobTriggerState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Create
Time string - The creation timestamp of an inspectTemplate. Set by the server.
- Description string
- A description of the job trigger.
- Display
Name string - User set display name of the job trigger.
- Inspect
Job PreventionJob Trigger Inspect Job - Controls what and how to inspect for findings.
- Last
Run stringTime - The timestamp of the last time this trigger executed.
- Name string
- The resource name of the job trigger. Set by the server.
- Parent string
- The parent of the trigger, either in the format
projects/{{project}}
orprojects/{{project}}/locations/{{location}}
- Status string
- Whether the trigger is currently active. Default value: "HEALTHY" Possible values: ["PAUSED", "HEALTHY", "CANCELLED"]
- Trigger
Id string - The trigger id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- Triggers
List<Prevention
Job Trigger Trigger> - What event needs to occur for a new job to be started. Structure is documented below.
- Update
Time string - The last update timestamp of an inspectTemplate. Set by the server.
- Create
Time string - The creation timestamp of an inspectTemplate. Set by the server.
- Description string
- A description of the job trigger.
- Display
Name string - User set display name of the job trigger.
- Inspect
Job PreventionJob Trigger Inspect Job Args - Controls what and how to inspect for findings.
- Last
Run stringTime - The timestamp of the last time this trigger executed.
- Name string
- The resource name of the job trigger. Set by the server.
- Parent string
- The parent of the trigger, either in the format
projects/{{project}}
orprojects/{{project}}/locations/{{location}}
- Status string
- Whether the trigger is currently active. Default value: "HEALTHY" Possible values: ["PAUSED", "HEALTHY", "CANCELLED"]
- Trigger
Id string - The trigger id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- Triggers
[]Prevention
Job Trigger Trigger Args - What event needs to occur for a new job to be started. Structure is documented below.
- Update
Time string - The last update timestamp of an inspectTemplate. Set by the server.
- create
Time String - The creation timestamp of an inspectTemplate. Set by the server.
- description String
- A description of the job trigger.
- display
Name String - User set display name of the job trigger.
- inspect
Job PreventionJob Trigger Inspect Job - Controls what and how to inspect for findings.
- last
Run StringTime - The timestamp of the last time this trigger executed.
- name String
- The resource name of the job trigger. Set by the server.
- parent String
- The parent of the trigger, either in the format
projects/{{project}}
orprojects/{{project}}/locations/{{location}}
- status String
- Whether the trigger is currently active. Default value: "HEALTHY" Possible values: ["PAUSED", "HEALTHY", "CANCELLED"]
- trigger
Id String - The trigger id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- triggers
List<Prevention
Job Trigger Trigger> - What event needs to occur for a new job to be started. Structure is documented below.
- update
Time String - The last update timestamp of an inspectTemplate. Set by the server.
- create
Time string - The creation timestamp of an inspectTemplate. Set by the server.
- description string
- A description of the job trigger.
- display
Name string - User set display name of the job trigger.
- inspect
Job PreventionJob Trigger Inspect Job - Controls what and how to inspect for findings.
- last
Run stringTime - The timestamp of the last time this trigger executed.
- name string
- The resource name of the job trigger. Set by the server.
- parent string
- The parent of the trigger, either in the format
projects/{{project}}
orprojects/{{project}}/locations/{{location}}
- status string
- Whether the trigger is currently active. Default value: "HEALTHY" Possible values: ["PAUSED", "HEALTHY", "CANCELLED"]
- trigger
Id string - The trigger id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- triggers
Prevention
Job Trigger Trigger[] - What event needs to occur for a new job to be started. Structure is documented below.
- update
Time string - The last update timestamp of an inspectTemplate. Set by the server.
- create_
time str - The creation timestamp of an inspectTemplate. Set by the server.
- description str
- A description of the job trigger.
- display_
name str - User set display name of the job trigger.
- inspect_
job PreventionJob Trigger Inspect Job Args - Controls what and how to inspect for findings.
- last_
run_ strtime - The timestamp of the last time this trigger executed.
- name str
- The resource name of the job trigger. Set by the server.
- parent str
- The parent of the trigger, either in the format
projects/{{project}}
orprojects/{{project}}/locations/{{location}}
- status str
- Whether the trigger is currently active. Default value: "HEALTHY" Possible values: ["PAUSED", "HEALTHY", "CANCELLED"]
- trigger_
id str - The trigger id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- triggers
Sequence[Prevention
Job Trigger Trigger Args] - What event needs to occur for a new job to be started. Structure is documented below.
- update_
time str - The last update timestamp of an inspectTemplate. Set by the server.
- create
Time String - The creation timestamp of an inspectTemplate. Set by the server.
- description String
- A description of the job trigger.
- display
Name String - User set display name of the job trigger.
- inspect
Job Property Map - Controls what and how to inspect for findings.
- last
Run StringTime - The timestamp of the last time this trigger executed.
- name String
- The resource name of the job trigger. Set by the server.
- parent String
- The parent of the trigger, either in the format
projects/{{project}}
orprojects/{{project}}/locations/{{location}}
- status String
- Whether the trigger is currently active. Default value: "HEALTHY" Possible values: ["PAUSED", "HEALTHY", "CANCELLED"]
- trigger
Id String - The trigger id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- triggers List<Property Map>
- What event needs to occur for a new job to be started. Structure is documented below.
- update
Time String - The last update timestamp of an inspectTemplate. Set by the server.
Supporting Types
PreventionJobTriggerInspectJob, PreventionJobTriggerInspectJobArgs
- Storage
Config PreventionJob Trigger Inspect Job Storage Config - Information on where to inspect Structure is documented below.
- Actions
List<Prevention
Job Trigger Inspect Job Action> - Configuration block for the actions to execute on the completion of a job. Can be specified multiple times, but only one for each type. Each action block supports fields documented below. This argument is processed in attribute-as-blocks mode. Structure is documented below.
- Inspect
Config PreventionJob Trigger Inspect Job Inspect Config - The core content of the template. Structure is documented below.
- Inspect
Template stringName - The name of the template to run when this job is triggered.
- Storage
Config PreventionJob Trigger Inspect Job Storage Config - Information on where to inspect Structure is documented below.
- Actions
[]Prevention
Job Trigger Inspect Job Action - Configuration block for the actions to execute on the completion of a job. Can be specified multiple times, but only one for each type. Each action block supports fields documented below. This argument is processed in attribute-as-blocks mode. Structure is documented below.
- Inspect
Config PreventionJob Trigger Inspect Job Inspect Config - The core content of the template. Structure is documented below.
- Inspect
Template stringName - The name of the template to run when this job is triggered.
- storage
Config PreventionJob Trigger Inspect Job Storage Config - Information on where to inspect Structure is documented below.
- actions
List<Prevention
Job Trigger Inspect Job Action> - Configuration block for the actions to execute on the completion of a job. Can be specified multiple times, but only one for each type. Each action block supports fields documented below. This argument is processed in attribute-as-blocks mode. Structure is documented below.
- inspect
Config PreventionJob Trigger Inspect Job Inspect Config - The core content of the template. Structure is documented below.
- inspect
Template StringName - The name of the template to run when this job is triggered.
- storage
Config PreventionJob Trigger Inspect Job Storage Config - Information on where to inspect Structure is documented below.
- actions
Prevention
Job Trigger Inspect Job Action[] - Configuration block for the actions to execute on the completion of a job. Can be specified multiple times, but only one for each type. Each action block supports fields documented below. This argument is processed in attribute-as-blocks mode. Structure is documented below.
- inspect
Config PreventionJob Trigger Inspect Job Inspect Config - The core content of the template. Structure is documented below.
- inspect
Template stringName - The name of the template to run when this job is triggered.
- storage_
config PreventionJob Trigger Inspect Job Storage Config - Information on where to inspect Structure is documented below.
- actions
Sequence[Prevention
Job Trigger Inspect Job Action] - Configuration block for the actions to execute on the completion of a job. Can be specified multiple times, but only one for each type. Each action block supports fields documented below. This argument is processed in attribute-as-blocks mode. Structure is documented below.
- inspect_
config PreventionJob Trigger Inspect Job Inspect Config - The core content of the template. Structure is documented below.
- inspect_
template_ strname - The name of the template to run when this job is triggered.
- storage
Config Property Map - Information on where to inspect Structure is documented below.
- actions List<Property Map>
- Configuration block for the actions to execute on the completion of a job. Can be specified multiple times, but only one for each type. Each action block supports fields documented below. This argument is processed in attribute-as-blocks mode. Structure is documented below.
- inspect
Config Property Map - The core content of the template. Structure is documented below.
- inspect
Template StringName - The name of the template to run when this job is triggered.
PreventionJobTriggerInspectJobAction, PreventionJobTriggerInspectJobActionArgs
- Deidentify
Prevention
Job Trigger Inspect Job Action Deidentify - Create a de-identified copy of the requested table or files. Structure is documented below.
- Job
Notification PreventionEmails Job Trigger Inspect Job Action Job Notification Emails - Sends an email when the job completes. The email goes to IAM project owners and technical Essential Contacts.
- Pub
Sub PreventionJob Trigger Inspect Job Action Pub Sub - Publish a message into a given Pub/Sub topic when the job completes. Structure is documented below.
- Publish
Findings PreventionTo Cloud Data Catalog Job Trigger Inspect Job Action Publish Findings To Cloud Data Catalog - Publish findings of a DlpJob to Data Catalog.
- Publish
Summary PreventionTo Cscc Job Trigger Inspect Job Action Publish Summary To Cscc - Publish the result summary of a DlpJob to the Cloud Security Command Center.
- Publish
To PreventionStackdriver Job Trigger Inspect Job Action Publish To Stackdriver - Enable Stackdriver metric dlp.googleapis.com/findingCount.
- Save
Findings PreventionJob Trigger Inspect Job Action Save Findings - If set, the detailed findings will be persisted to the specified OutputStorageConfig. Only a single instance of this action can be specified. Compatible with: Inspect, Risk Structure is documented below.
- Deidentify
Prevention
Job Trigger Inspect Job Action Deidentify - Create a de-identified copy of the requested table or files. Structure is documented below.
- Job
Notification PreventionEmails Job Trigger Inspect Job Action Job Notification Emails - Sends an email when the job completes. The email goes to IAM project owners and technical Essential Contacts.
- Pub
Sub PreventionJob Trigger Inspect Job Action Pub Sub - Publish a message into a given Pub/Sub topic when the job completes. Structure is documented below.
- Publish
Findings PreventionTo Cloud Data Catalog Job Trigger Inspect Job Action Publish Findings To Cloud Data Catalog - Publish findings of a DlpJob to Data Catalog.
- Publish
Summary PreventionTo Cscc Job Trigger Inspect Job Action Publish Summary To Cscc - Publish the result summary of a DlpJob to the Cloud Security Command Center.
- Publish
To PreventionStackdriver Job Trigger Inspect Job Action Publish To Stackdriver - Enable Stackdriver metric dlp.googleapis.com/findingCount.
- Save
Findings PreventionJob Trigger Inspect Job Action Save Findings - If set, the detailed findings will be persisted to the specified OutputStorageConfig. Only a single instance of this action can be specified. Compatible with: Inspect, Risk Structure is documented below.
- deidentify
Prevention
Job Trigger Inspect Job Action Deidentify - Create a de-identified copy of the requested table or files. Structure is documented below.
- job
Notification PreventionEmails Job Trigger Inspect Job Action Job Notification Emails - Sends an email when the job completes. The email goes to IAM project owners and technical Essential Contacts.
- pub
Sub PreventionJob Trigger Inspect Job Action Pub Sub - Publish a message into a given Pub/Sub topic when the job completes. Structure is documented below.
- publish
Findings PreventionTo Cloud Data Catalog Job Trigger Inspect Job Action Publish Findings To Cloud Data Catalog - Publish findings of a DlpJob to Data Catalog.
- publish
Summary PreventionTo Cscc Job Trigger Inspect Job Action Publish Summary To Cscc - Publish the result summary of a DlpJob to the Cloud Security Command Center.
- publish
To PreventionStackdriver Job Trigger Inspect Job Action Publish To Stackdriver - Enable Stackdriver metric dlp.googleapis.com/findingCount.
- save
Findings PreventionJob Trigger Inspect Job Action Save Findings - If set, the detailed findings will be persisted to the specified OutputStorageConfig. Only a single instance of this action can be specified. Compatible with: Inspect, Risk Structure is documented below.
- deidentify
Prevention
Job Trigger Inspect Job Action Deidentify - Create a de-identified copy of the requested table or files. Structure is documented below.
- job
Notification PreventionEmails Job Trigger Inspect Job Action Job Notification Emails - Sends an email when the job completes. The email goes to IAM project owners and technical Essential Contacts.
- pub
Sub PreventionJob Trigger Inspect Job Action Pub Sub - Publish a message into a given Pub/Sub topic when the job completes. Structure is documented below.
- publish
Findings PreventionTo Cloud Data Catalog Job Trigger Inspect Job Action Publish Findings To Cloud Data Catalog - Publish findings of a DlpJob to Data Catalog.
- publish
Summary PreventionTo Cscc Job Trigger Inspect Job Action Publish Summary To Cscc - Publish the result summary of a DlpJob to the Cloud Security Command Center.
- publish
To PreventionStackdriver Job Trigger Inspect Job Action Publish To Stackdriver - Enable Stackdriver metric dlp.googleapis.com/findingCount.
- save
Findings PreventionJob Trigger Inspect Job Action Save Findings - If set, the detailed findings will be persisted to the specified OutputStorageConfig. Only a single instance of this action can be specified. Compatible with: Inspect, Risk Structure is documented below.
- deidentify
Prevention
Job Trigger Inspect Job Action Deidentify - Create a de-identified copy of the requested table or files. Structure is documented below.
- job_
notification_ Preventionemails Job Trigger Inspect Job Action Job Notification Emails - Sends an email when the job completes. The email goes to IAM project owners and technical Essential Contacts.
- pub_
sub PreventionJob Trigger Inspect Job Action Pub Sub - Publish a message into a given Pub/Sub topic when the job completes. Structure is documented below.
- publish_
findings_ Preventionto_ cloud_ data_ catalog Job Trigger Inspect Job Action Publish Findings To Cloud Data Catalog - Publish findings of a DlpJob to Data Catalog.
- publish_
summary_ Preventionto_ cscc Job Trigger Inspect Job Action Publish Summary To Cscc - Publish the result summary of a DlpJob to the Cloud Security Command Center.
- publish_
to_ Preventionstackdriver Job Trigger Inspect Job Action Publish To Stackdriver - Enable Stackdriver metric dlp.googleapis.com/findingCount.
- save_
findings PreventionJob Trigger Inspect Job Action Save Findings - If set, the detailed findings will be persisted to the specified OutputStorageConfig. Only a single instance of this action can be specified. Compatible with: Inspect, Risk Structure is documented below.
- deidentify Property Map
- Create a de-identified copy of the requested table or files. Structure is documented below.
- job
Notification Property MapEmails - Sends an email when the job completes. The email goes to IAM project owners and technical Essential Contacts.
- pub
Sub Property Map - Publish a message into a given Pub/Sub topic when the job completes. Structure is documented below.
- publish
Findings Property MapTo Cloud Data Catalog - Publish findings of a DlpJob to Data Catalog.
- publish
Summary Property MapTo Cscc - Publish the result summary of a DlpJob to the Cloud Security Command Center.
- publish
To Property MapStackdriver - Enable Stackdriver metric dlp.googleapis.com/findingCount.
- save
Findings Property Map - If set, the detailed findings will be persisted to the specified OutputStorageConfig. Only a single instance of this action can be specified. Compatible with: Inspect, Risk Structure is documented below.
PreventionJobTriggerInspectJobActionDeidentify, PreventionJobTriggerInspectJobActionDeidentifyArgs
- Cloud
Storage stringOutput - User settable Cloud Storage bucket and folders to store de-identified files. This field must be set for cloud storage deidentification. The output Cloud Storage bucket must be different from the input bucket. De-identified files will overwrite files in the output path. Form of: gs://bucket/folder/ or gs://bucket
- File
Types List<string>To Transforms - List of user-specified file type groups to transform. If specified, only the files with these filetypes will be transformed.
If empty, all supported files will be transformed. Supported types may be automatically added over time.
If a file type is set in this field that isn't supported by the Deidentify action then the job will fail and will not be successfully created/started.
Each value may be one of:
IMAGE
,TEXT_FILE
,CSV
,TSV
. - Transformation
Config PreventionJob Trigger Inspect Job Action Deidentify Transformation Config - User specified deidentify templates and configs for structured, unstructured, and image files. Structure is documented below.
- Transformation
Details PreventionStorage Config Job Trigger Inspect Job Action Deidentify Transformation Details Storage Config - Config for storing transformation details. Structure is documented below.
- Cloud
Storage stringOutput - User settable Cloud Storage bucket and folders to store de-identified files. This field must be set for cloud storage deidentification. The output Cloud Storage bucket must be different from the input bucket. De-identified files will overwrite files in the output path. Form of: gs://bucket/folder/ or gs://bucket
- File
Types []stringTo Transforms - List of user-specified file type groups to transform. If specified, only the files with these filetypes will be transformed.
If empty, all supported files will be transformed. Supported types may be automatically added over time.
If a file type is set in this field that isn't supported by the Deidentify action then the job will fail and will not be successfully created/started.
Each value may be one of:
IMAGE
,TEXT_FILE
,CSV
,TSV
. - Transformation
Config PreventionJob Trigger Inspect Job Action Deidentify Transformation Config - User specified deidentify templates and configs for structured, unstructured, and image files. Structure is documented below.
- Transformation
Details PreventionStorage Config Job Trigger Inspect Job Action Deidentify Transformation Details Storage Config - Config for storing transformation details. Structure is documented below.
- cloud
Storage StringOutput - User settable Cloud Storage bucket and folders to store de-identified files. This field must be set for cloud storage deidentification. The output Cloud Storage bucket must be different from the input bucket. De-identified files will overwrite files in the output path. Form of: gs://bucket/folder/ or gs://bucket
- file
Types List<String>To Transforms - List of user-specified file type groups to transform. If specified, only the files with these filetypes will be transformed.
If empty, all supported files will be transformed. Supported types may be automatically added over time.
If a file type is set in this field that isn't supported by the Deidentify action then the job will fail and will not be successfully created/started.
Each value may be one of:
IMAGE
,TEXT_FILE
,CSV
,TSV
. - transformation
Config PreventionJob Trigger Inspect Job Action Deidentify Transformation Config - User specified deidentify templates and configs for structured, unstructured, and image files. Structure is documented below.
- transformation
Details PreventionStorage Config Job Trigger Inspect Job Action Deidentify Transformation Details Storage Config - Config for storing transformation details. Structure is documented below.
- cloud
Storage stringOutput - User settable Cloud Storage bucket and folders to store de-identified files. This field must be set for cloud storage deidentification. The output Cloud Storage bucket must be different from the input bucket. De-identified files will overwrite files in the output path. Form of: gs://bucket/folder/ or gs://bucket
- file
Types string[]To Transforms - List of user-specified file type groups to transform. If specified, only the files with these filetypes will be transformed.
If empty, all supported files will be transformed. Supported types may be automatically added over time.
If a file type is set in this field that isn't supported by the Deidentify action then the job will fail and will not be successfully created/started.
Each value may be one of:
IMAGE
,TEXT_FILE
,CSV
,TSV
. - transformation
Config PreventionJob Trigger Inspect Job Action Deidentify Transformation Config - User specified deidentify templates and configs for structured, unstructured, and image files. Structure is documented below.
- transformation
Details PreventionStorage Config Job Trigger Inspect Job Action Deidentify Transformation Details Storage Config - Config for storing transformation details. Structure is documented below.
- cloud_
storage_ stroutput - User settable Cloud Storage bucket and folders to store de-identified files. This field must be set for cloud storage deidentification. The output Cloud Storage bucket must be different from the input bucket. De-identified files will overwrite files in the output path. Form of: gs://bucket/folder/ or gs://bucket
- file_
types_ Sequence[str]to_ transforms - List of user-specified file type groups to transform. If specified, only the files with these filetypes will be transformed.
If empty, all supported files will be transformed. Supported types may be automatically added over time.
If a file type is set in this field that isn't supported by the Deidentify action then the job will fail and will not be successfully created/started.
Each value may be one of:
IMAGE
,TEXT_FILE
,CSV
,TSV
. - transformation_
config PreventionJob Trigger Inspect Job Action Deidentify Transformation Config - User specified deidentify templates and configs for structured, unstructured, and image files. Structure is documented below.
- transformation_
details_ Preventionstorage_ config Job Trigger Inspect Job Action Deidentify Transformation Details Storage Config - Config for storing transformation details. Structure is documented below.
- cloud
Storage StringOutput - User settable Cloud Storage bucket and folders to store de-identified files. This field must be set for cloud storage deidentification. The output Cloud Storage bucket must be different from the input bucket. De-identified files will overwrite files in the output path. Form of: gs://bucket/folder/ or gs://bucket
- file
Types List<String>To Transforms - List of user-specified file type groups to transform. If specified, only the files with these filetypes will be transformed.
If empty, all supported files will be transformed. Supported types may be automatically added over time.
If a file type is set in this field that isn't supported by the Deidentify action then the job will fail and will not be successfully created/started.
Each value may be one of:
IMAGE
,TEXT_FILE
,CSV
,TSV
. - transformation
Config Property Map - User specified deidentify templates and configs for structured, unstructured, and image files. Structure is documented below.
- transformation
Details Property MapStorage Config - Config for storing transformation details. Structure is documented below.
PreventionJobTriggerInspectJobActionDeidentifyTransformationConfig, PreventionJobTriggerInspectJobActionDeidentifyTransformationConfigArgs
- Deidentify
Template string - If this template is specified, it will serve as the default de-identify template.
- Image
Redact stringTemplate - If this template is specified, it will serve as the de-identify template for images.
- Structured
Deidentify stringTemplate - If this template is specified, it will serve as the de-identify template for structured content such as delimited files and tables.
- Deidentify
Template string - If this template is specified, it will serve as the default de-identify template.
- Image
Redact stringTemplate - If this template is specified, it will serve as the de-identify template for images.
- Structured
Deidentify stringTemplate - If this template is specified, it will serve as the de-identify template for structured content such as delimited files and tables.
- deidentify
Template String - If this template is specified, it will serve as the default de-identify template.
- image
Redact StringTemplate - If this template is specified, it will serve as the de-identify template for images.
- structured
Deidentify StringTemplate - If this template is specified, it will serve as the de-identify template for structured content such as delimited files and tables.
- deidentify
Template string - If this template is specified, it will serve as the default de-identify template.
- image
Redact stringTemplate - If this template is specified, it will serve as the de-identify template for images.
- structured
Deidentify stringTemplate - If this template is specified, it will serve as the de-identify template for structured content such as delimited files and tables.
- deidentify_
template str - If this template is specified, it will serve as the default de-identify template.
- image_
redact_ strtemplate - If this template is specified, it will serve as the de-identify template for images.
- structured_
deidentify_ strtemplate - If this template is specified, it will serve as the de-identify template for structured content such as delimited files and tables.
- deidentify
Template String - If this template is specified, it will serve as the default de-identify template.
- image
Redact StringTemplate - If this template is specified, it will serve as the de-identify template for images.
- structured
Deidentify StringTemplate - If this template is specified, it will serve as the de-identify template for structured content such as delimited files and tables.
PreventionJobTriggerInspectJobActionDeidentifyTransformationDetailsStorageConfig, PreventionJobTriggerInspectJobActionDeidentifyTransformationDetailsStorageConfigArgs
- Table
Prevention
Job Trigger Inspect Job Action Deidentify Transformation Details Storage Config Table - The BigQuery table in which to store the output. Structure is documented below.
- Table
Prevention
Job Trigger Inspect Job Action Deidentify Transformation Details Storage Config Table - The BigQuery table in which to store the output. Structure is documented below.
- table
Prevention
Job Trigger Inspect Job Action Deidentify Transformation Details Storage Config Table - The BigQuery table in which to store the output. Structure is documented below.
- table
Prevention
Job Trigger Inspect Job Action Deidentify Transformation Details Storage Config Table - The BigQuery table in which to store the output. Structure is documented below.
- table
Prevention
Job Trigger Inspect Job Action Deidentify Transformation Details Storage Config Table - The BigQuery table in which to store the output. Structure is documented below.
- table Property Map
- The BigQuery table in which to store the output. Structure is documented below.
PreventionJobTriggerInspectJobActionDeidentifyTransformationDetailsStorageConfigTable, PreventionJobTriggerInspectJobActionDeidentifyTransformationDetailsStorageConfigTableArgs
- dataset_
id str - The ID of the dataset containing this table.
- project_
id str - The ID of the project containing this table.
- table_
id str - The ID of the table. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
PreventionJobTriggerInspectJobActionPubSub, PreventionJobTriggerInspectJobActionPubSubArgs
- Topic string
- Cloud Pub/Sub topic to send notifications to.
- Topic string
- Cloud Pub/Sub topic to send notifications to.
- topic String
- Cloud Pub/Sub topic to send notifications to.
- topic string
- Cloud Pub/Sub topic to send notifications to.
- topic str
- Cloud Pub/Sub topic to send notifications to.
- topic String
- Cloud Pub/Sub topic to send notifications to.
PreventionJobTriggerInspectJobActionSaveFindings, PreventionJobTriggerInspectJobActionSaveFindingsArgs
- Output
Config PreventionJob Trigger Inspect Job Action Save Findings Output Config - Information on where to store output Structure is documented below.
- Output
Config PreventionJob Trigger Inspect Job Action Save Findings Output Config - Information on where to store output Structure is documented below.
- output
Config PreventionJob Trigger Inspect Job Action Save Findings Output Config - Information on where to store output Structure is documented below.
- output
Config PreventionJob Trigger Inspect Job Action Save Findings Output Config - Information on where to store output Structure is documented below.
- output_
config PreventionJob Trigger Inspect Job Action Save Findings Output Config - Information on where to store output Structure is documented below.
- output
Config Property Map - Information on where to store output Structure is documented below.
PreventionJobTriggerInspectJobActionSaveFindingsOutputConfig, PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs
- Table
Prevention
Job Trigger Inspect Job Action Save Findings Output Config Table - Information on the location of the target BigQuery Table. Structure is documented below.
- Output
Schema string - Schema used for writing the findings for Inspect jobs. This field is only used for
Inspect and must be unspecified for Risk jobs. Columns are derived from the Finding
object. If appending to an existing table, any columns from the predefined schema
that are missing will be added. No columns in the existing table will be deleted.
If unspecified, then all available columns will be used for a new table or an (existing)
table with no schema, and no changes will be made to an existing table that has a schema.
Only for use with external storage.
Possible values are:
BASIC_COLUMNS
,GCS_COLUMNS
,DATASTORE_COLUMNS
,BIG_QUERY_COLUMNS
,ALL_COLUMNS
.
- Table
Prevention
Job Trigger Inspect Job Action Save Findings Output Config Table - Information on the location of the target BigQuery Table. Structure is documented below.
- Output
Schema string - Schema used for writing the findings for Inspect jobs. This field is only used for
Inspect and must be unspecified for Risk jobs. Columns are derived from the Finding
object. If appending to an existing table, any columns from the predefined schema
that are missing will be added. No columns in the existing table will be deleted.
If unspecified, then all available columns will be used for a new table or an (existing)
table with no schema, and no changes will be made to an existing table that has a schema.
Only for use with external storage.
Possible values are:
BASIC_COLUMNS
,GCS_COLUMNS
,DATASTORE_COLUMNS
,BIG_QUERY_COLUMNS
,ALL_COLUMNS
.
- table
Prevention
Job Trigger Inspect Job Action Save Findings Output Config Table - Information on the location of the target BigQuery Table. Structure is documented below.
- output
Schema String - Schema used for writing the findings for Inspect jobs. This field is only used for
Inspect and must be unspecified for Risk jobs. Columns are derived from the Finding
object. If appending to an existing table, any columns from the predefined schema
that are missing will be added. No columns in the existing table will be deleted.
If unspecified, then all available columns will be used for a new table or an (existing)
table with no schema, and no changes will be made to an existing table that has a schema.
Only for use with external storage.
Possible values are:
BASIC_COLUMNS
,GCS_COLUMNS
,DATASTORE_COLUMNS
,BIG_QUERY_COLUMNS
,ALL_COLUMNS
.
- table
Prevention
Job Trigger Inspect Job Action Save Findings Output Config Table - Information on the location of the target BigQuery Table. Structure is documented below.
- output
Schema string - Schema used for writing the findings for Inspect jobs. This field is only used for
Inspect and must be unspecified for Risk jobs. Columns are derived from the Finding
object. If appending to an existing table, any columns from the predefined schema
that are missing will be added. No columns in the existing table will be deleted.
If unspecified, then all available columns will be used for a new table or an (existing)
table with no schema, and no changes will be made to an existing table that has a schema.
Only for use with external storage.
Possible values are:
BASIC_COLUMNS
,GCS_COLUMNS
,DATASTORE_COLUMNS
,BIG_QUERY_COLUMNS
,ALL_COLUMNS
.
- table
Prevention
Job Trigger Inspect Job Action Save Findings Output Config Table - Information on the location of the target BigQuery Table. Structure is documented below.
- output_
schema str - Schema used for writing the findings for Inspect jobs. This field is only used for
Inspect and must be unspecified for Risk jobs. Columns are derived from the Finding
object. If appending to an existing table, any columns from the predefined schema
that are missing will be added. No columns in the existing table will be deleted.
If unspecified, then all available columns will be used for a new table or an (existing)
table with no schema, and no changes will be made to an existing table that has a schema.
Only for use with external storage.
Possible values are:
BASIC_COLUMNS
,GCS_COLUMNS
,DATASTORE_COLUMNS
,BIG_QUERY_COLUMNS
,ALL_COLUMNS
.
- table Property Map
- Information on the location of the target BigQuery Table. Structure is documented below.
- output
Schema String - Schema used for writing the findings for Inspect jobs. This field is only used for
Inspect and must be unspecified for Risk jobs. Columns are derived from the Finding
object. If appending to an existing table, any columns from the predefined schema
that are missing will be added. No columns in the existing table will be deleted.
If unspecified, then all available columns will be used for a new table or an (existing)
table with no schema, and no changes will be made to an existing table that has a schema.
Only for use with external storage.
Possible values are:
BASIC_COLUMNS
,GCS_COLUMNS
,DATASTORE_COLUMNS
,BIG_QUERY_COLUMNS
,ALL_COLUMNS
.
PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTable, PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs
- dataset_
id str - The ID of the dataset containing this table.
- project_
id str - The ID of the project containing this table.
- table_
id str - The ID of the table. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
PreventionJobTriggerInspectJobInspectConfig, PreventionJobTriggerInspectJobInspectConfigArgs
- Custom
Info List<PreventionTypes Job Trigger Inspect Job 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<PreventionJob Trigger Inspect Job 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
Job Trigger Inspect Job 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
. - Rule
Sets List<PreventionJob Trigger Inspect Job 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.
- Custom
Info []PreventionTypes Job Trigger Inspect Job 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 []PreventionJob Trigger Inspect Job 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
Job Trigger Inspect Job 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
. - Rule
Sets []PreventionJob Trigger Inspect Job 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.
- custom
Info List<PreventionTypes Job Trigger Inspect Job 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<PreventionJob Trigger Inspect Job 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
Job Trigger Inspect Job 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
. - rule
Sets List<PreventionJob Trigger Inspect Job 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.
- custom
Info PreventionTypes Job Trigger Inspect Job 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 PreventionJob Trigger Inspect Job 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
Job Trigger Inspect Job 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
. - rule
Sets PreventionJob Trigger Inspect Job 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.
- custom_
info_ Sequence[Preventiontypes Job Trigger Inspect Job 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[PreventionJob Trigger Inspect Job 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
Job Trigger Inspect Job Inspect Config Limits - Configuration to control the number of findings returned. Structure is documented below.
- min_
likelihood str - Only returns findings equal or above this threshold. See https://cloud.google.com/dlp/docs/likelihood for more info
Default value is
POSSIBLE
. Possible values are:VERY_UNLIKELY
,UNLIKELY
,POSSIBLE
,LIKELY
,VERY_LIKELY
. - rule_
sets Sequence[PreventionJob Trigger Inspect Job 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.
- 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
. - 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.
PreventionJobTriggerInspectJobInspectConfigCustomInfoType, PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeArgs
- Info
Type PreventionJob Trigger Inspect Job Inspect Config Custom Info Type Info Type - CustomInfoType can either be a new infoType, or an extension of built-in infoType, when the name matches one of existing
infoTypes and that infoType is specified in
info_types
field. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified ininfo_types
list then the name is treated as a custom info type. Structure is documented below. - Dictionary
Prevention
Job Trigger Inspect Job 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
. - Likelihood string
- Likelihood to return for this CustomInfoType. This base value can be altered by a detection rule if the finding meets the criteria
specified by the rule.
Default value is
VERY_LIKELY
. Possible values are:VERY_UNLIKELY
,UNLIKELY
,POSSIBLE
,LIKELY
,VERY_LIKELY
. - Regex
Prevention
Job Trigger Inspect Job Inspect Config Custom Info Type Regex - Regular expression which defines the rule. Structure is documented below.
- Sensitivity
Score PreventionJob Trigger Inspect Job 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 PreventionJob Trigger Inspect Job Inspect Config Custom Info Type Stored Type - A reference to a StoredInfoType to use with scanning. Structure is documented below.
- Surrogate
Type PreventionJob Trigger Inspect Job Inspect Config Custom Info Type Surrogate Type - Message for detecting output from deidentification transformations that support reversing.
- Info
Type PreventionJob Trigger Inspect Job Inspect Config Custom Info Type Info Type - CustomInfoType can either be a new infoType, or an extension of built-in infoType, when the name matches one of existing
infoTypes and that infoType is specified in
info_types
field. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified ininfo_types
list then the name is treated as a custom info type. Structure is documented below. - Dictionary
Prevention
Job Trigger Inspect Job 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
. - Likelihood string
- Likelihood to return for this CustomInfoType. This base value can be altered by a detection rule if the finding meets the criteria
specified by the rule.
Default value is
VERY_LIKELY
. Possible values are:VERY_UNLIKELY
,UNLIKELY
,POSSIBLE
,LIKELY
,VERY_LIKELY
. - Regex
Prevention
Job Trigger Inspect Job Inspect Config Custom Info Type Regex - Regular expression which defines the rule. Structure is documented below.
- Sensitivity
Score PreventionJob Trigger Inspect Job 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 PreventionJob Trigger Inspect Job Inspect Config Custom Info Type Stored Type - A reference to a StoredInfoType to use with scanning. Structure is documented below.
- Surrogate
Type PreventionJob Trigger Inspect Job Inspect Config Custom Info Type Surrogate Type - Message for detecting output from deidentification transformations that support reversing.
- info
Type PreventionJob Trigger Inspect Job Inspect Config Custom Info Type Info Type - CustomInfoType can either be a new infoType, or an extension of built-in infoType, when the name matches one of existing
infoTypes and that infoType is specified in
info_types
field. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified ininfo_types
list then the name is treated as a custom info type. Structure is documented below. - dictionary
Prevention
Job Trigger Inspect Job 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
. - likelihood String
- Likelihood to return for this CustomInfoType. This base value can be altered by a detection rule if the finding meets the criteria
specified by the rule.
Default value is
VERY_LIKELY
. Possible values are:VERY_UNLIKELY
,UNLIKELY
,POSSIBLE
,LIKELY
,VERY_LIKELY
. - regex
Prevention
Job Trigger Inspect Job Inspect Config Custom Info Type Regex - Regular expression which defines the rule. Structure is documented below.
- sensitivity
Score PreventionJob Trigger Inspect Job 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 PreventionJob Trigger Inspect Job Inspect Config Custom Info Type Stored Type - A reference to a StoredInfoType to use with scanning. Structure is documented below.
- surrogate
Type PreventionJob Trigger Inspect Job Inspect Config Custom Info Type Surrogate Type - Message for detecting output from deidentification transformations that support reversing.
- info
Type PreventionJob Trigger Inspect Job Inspect Config Custom Info Type Info Type - CustomInfoType can either be a new infoType, or an extension of built-in infoType, when the name matches one of existing
infoTypes and that infoType is specified in
info_types
field. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified ininfo_types
list then the name is treated as a custom info type. Structure is documented below. - dictionary
Prevention
Job Trigger Inspect Job 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
. - likelihood string
- Likelihood to return for this CustomInfoType. This base value can be altered by a detection rule if the finding meets the criteria
specified by the rule.
Default value is
VERY_LIKELY
. Possible values are:VERY_UNLIKELY
,UNLIKELY
,POSSIBLE
,LIKELY
,VERY_LIKELY
. - regex
Prevention
Job Trigger Inspect Job Inspect Config Custom Info Type Regex - Regular expression which defines the rule. Structure is documented below.
- sensitivity
Score PreventionJob Trigger Inspect Job 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 PreventionJob Trigger Inspect Job Inspect Config Custom Info Type Stored Type - A reference to a StoredInfoType to use with scanning. Structure is documented below.
- surrogate
Type PreventionJob Trigger Inspect Job Inspect Config Custom Info Type Surrogate Type - Message for detecting output from deidentification transformations that support reversing.
- info_
type PreventionJob Trigger Inspect Job Inspect Config Custom Info Type Info Type - CustomInfoType can either be a new infoType, or an extension of built-in infoType, when the name matches one of existing
infoTypes and that infoType is specified in
info_types
field. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified ininfo_types
list then the name is treated as a custom info type. Structure is documented below. - dictionary
Prevention
Job Trigger Inspect Job Inspect Config Custom Info Type Dictionary - Dictionary which defines the rule. Structure is documented below.
- exclusion_
type str - If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned. It still can be used for rules matching.
Possible values are:
EXCLUSION_TYPE_EXCLUDE
. - likelihood str
- Likelihood to return for this CustomInfoType. This base value can be altered by a detection rule if the finding meets the criteria
specified by the rule.
Default value is
VERY_LIKELY
. Possible values are:VERY_UNLIKELY
,UNLIKELY
,POSSIBLE
,LIKELY
,VERY_LIKELY
. - regex
Prevention
Job Trigger Inspect Job Inspect Config Custom Info Type Regex - Regular expression which defines the rule. Structure is documented below.
- sensitivity_
score PreventionJob Trigger Inspect Job 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 PreventionJob Trigger Inspect Job Inspect Config Custom Info Type Stored Type - A reference to a StoredInfoType to use with scanning. Structure is documented below.
- surrogate_
type PreventionJob Trigger Inspect Job 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
info_types
field. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified ininfo_types
list then the name is treated as a custom info type. Structure is documented below. - dictionary Property Map
- Dictionary which defines the rule. Structure is documented below.
- 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
. - likelihood String
- Likelihood to return for this CustomInfoType. This base value can be altered by a detection rule if the finding meets the criteria
specified by the rule.
Default value is
VERY_LIKELY
. Possible values are:VERY_UNLIKELY
,UNLIKELY
,POSSIBLE
,LIKELY
,VERY_LIKELY
. - regex Property Map
- Regular expression which defines the rule. Structure is documented below.
- 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.
PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeDictionary, PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeDictionaryArgs
- Cloud
Storage PreventionPath Job Trigger Inspect Job 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 PreventionJob Trigger Inspect Job Inspect Config Custom Info Type Dictionary Word List - List of words or phrases to search for. Structure is documented below.
- Cloud
Storage PreventionPath Job Trigger Inspect Job 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 PreventionJob Trigger Inspect Job Inspect Config Custom Info Type Dictionary Word List - List of words or phrases to search for. Structure is documented below.
- cloud
Storage PreventionPath Job Trigger Inspect Job 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 PreventionJob Trigger Inspect Job Inspect Config Custom Info Type Dictionary Word List - List of words or phrases to search for. Structure is documented below.
- cloud
Storage PreventionPath Job Trigger Inspect Job 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 PreventionJob Trigger Inspect Job Inspect Config Custom Info Type Dictionary Word List - List of words or phrases to search for. Structure is documented below.
- cloud_
storage_ Preventionpath Job Trigger Inspect Job 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 PreventionJob Trigger Inspect Job 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.
PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeDictionaryCloudStoragePath, PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeDictionaryCloudStoragePathArgs
- 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
PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeDictionaryWordList, PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeDictionaryWordListArgs
- Words List<string>
- Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits.
- Words []string
- Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits.
- words List<String>
- Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits.
- words string[]
- Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits.
- words Sequence[str]
- Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits.
- words List<String>
- Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits.
PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeInfoType, PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeInfoTypeArgs
- 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 PreventionJob Trigger Inspect Job 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 of the information type to use. By default, the version is set to stable.
- 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 PreventionJob Trigger Inspect Job 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 of the information type to use. By default, the version is set to stable.
- 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 PreventionJob Trigger Inspect Job 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 of the information type to use. By default, the version is set to stable.
- 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 PreventionJob Trigger Inspect Job 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 of the information type to use. By default, the version is set to stable.
- 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 PreventionJob Trigger Inspect Job 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 of the information type to use. By default, the version is set to stable.
- 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 of the information type to use. By default, the version is set to stable.
PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeInfoTypeSensitivityScore, PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeInfoTypeSensitivityScoreArgs
- 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
.
PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeRegex, PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeRegexArgs
- 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<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.
PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeSensitivityScore, PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeSensitivityScoreArgs
- 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
.
PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeStoredType, PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeStoredTypeArgs
- Name string
- Resource name of the requested StoredInfoType, for example
organizations/433245324/storedInfoTypes/432452342
orprojects/project-id/storedInfoTypes/432452342
. - Create
Time string - (Output) The creation timestamp of an inspectTemplate. Set by the server.
- Name string
- Resource name of the requested StoredInfoType, for example
organizations/433245324/storedInfoTypes/432452342
orprojects/project-id/storedInfoTypes/432452342
. - Create
Time string - (Output) The creation timestamp of an inspectTemplate. Set by the server.
- name String
- Resource name of the requested StoredInfoType, for example
organizations/433245324/storedInfoTypes/432452342
orprojects/project-id/storedInfoTypes/432452342
. - create
Time String - (Output) The creation timestamp of an inspectTemplate. Set by the server.
- name string
- Resource name of the requested StoredInfoType, for example
organizations/433245324/storedInfoTypes/432452342
orprojects/project-id/storedInfoTypes/432452342
. - create
Time string - (Output) The creation timestamp of an inspectTemplate. Set by the server.
- name str
- Resource name of the requested StoredInfoType, for example
organizations/433245324/storedInfoTypes/432452342
orprojects/project-id/storedInfoTypes/432452342
. - create_
time str - (Output) The creation timestamp of an inspectTemplate. Set by the server.
- name String
- Resource name of the requested StoredInfoType, for example
organizations/433245324/storedInfoTypes/432452342
orprojects/project-id/storedInfoTypes/432452342
. - create
Time String - (Output) The creation timestamp of an inspectTemplate. Set by the server.
PreventionJobTriggerInspectJobInspectConfigInfoType, PreventionJobTriggerInspectJobInspectConfigInfoTypeArgs
- 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 PreventionJob Trigger Inspect Job Inspect Config Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- Version string
- Version of the information type to use. By default, the version is set to stable.
- 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 PreventionJob Trigger Inspect Job Inspect Config Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- Version string
- Version of the information type to use. By default, the version is set to stable.
- 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 PreventionJob Trigger Inspect Job Inspect Config Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version String
- Version of the information type to use. By default, the version is set to stable.
- 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 PreventionJob Trigger Inspect Job Inspect Config Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version string
- Version of the information type to use. By default, the version is set to stable.
- 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 PreventionJob Trigger Inspect Job Inspect Config Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version str
- Version of the information type to use. By default, the version is set to stable.
- 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 of the information type to use. By default, the version is set to stable.
PreventionJobTriggerInspectJobInspectConfigInfoTypeSensitivityScore, PreventionJobTriggerInspectJobInspectConfigInfoTypeSensitivityScoreArgs
- 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
.
PreventionJobTriggerInspectJobInspectConfigLimits, PreventionJobTriggerInspectJobInspectConfigLimitsArgs
- Max
Findings List<PreventionPer Info Types Job Trigger Inspect Job 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 Job Trigger Inspect Job 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 List<PreventionPer Info Types Job Trigger Inspect Job Inspect Config Limits Max Findings Per Info Type> - 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 PreventionPer Info Types Job Trigger Inspect Job 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_ Sequence[Preventionper_ info_ types Job Trigger Inspect Job 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 List<Property Map>Per Info Types - 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.
PreventionJobTriggerInspectJobInspectConfigLimitsMaxFindingsPerInfoType, PreventionJobTriggerInspectJobInspectConfigLimitsMaxFindingsPerInfoTypeArgs
- Info
Type PreventionJob Trigger Inspect Job 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 PreventionJob Trigger Inspect Job 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 PreventionJob Trigger Inspect Job 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 Integer - Max findings limit for the given infoType.
- info
Type PreventionJob Trigger Inspect Job 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 PreventionJob Trigger Inspect Job 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 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.
- max
Findings Number - Max findings limit for the given infoType.
PreventionJobTriggerInspectJobInspectConfigLimitsMaxFindingsPerInfoTypeInfoType, PreventionJobTriggerInspectJobInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeArgs
- 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 PreventionJob Trigger Inspect Job 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 of the information type to use. By default, the version is set to stable.
- 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 PreventionJob Trigger Inspect Job 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 of the information type to use. By default, the version is set to stable.
- 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 PreventionJob Trigger Inspect Job 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 of the information type to use. By default, the version is set to stable.
- 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 PreventionJob Trigger Inspect Job 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 of the information type to use. By default, the version is set to stable.
- 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 PreventionJob Trigger Inspect Job 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 of the information type to use. By default, the version is set to stable.
- 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 of the information type to use. By default, the version is set to stable.
PreventionJobTriggerInspectJobInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeSensitivityScore, PreventionJobTriggerInspectJobInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeSensitivityScoreArgs
- 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
.
PreventionJobTriggerInspectJobInspectConfigRuleSet, PreventionJobTriggerInspectJobInspectConfigRuleSetArgs
- Rules
List<Prevention
Job Trigger Inspect Job 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<PreventionJob Trigger Inspect Job Inspect Config Rule Set Info Type> - List of infoTypes this rule set is applied to. Structure is documented below.
- Rules
[]Prevention
Job Trigger Inspect Job 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 []PreventionJob Trigger Inspect Job Inspect Config Rule Set Info Type - List of infoTypes this rule set is applied to. Structure is documented below.
- rules
List<Prevention
Job Trigger Inspect Job 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<PreventionJob Trigger Inspect Job Inspect Config Rule Set Info Type> - List of infoTypes this rule set is applied to. Structure is documented below.
- rules
Prevention
Job Trigger Inspect Job 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 PreventionJob Trigger Inspect Job Inspect Config Rule Set Info Type[] - List of infoTypes this rule set is applied to. Structure is documented below.
- rules
Sequence[Prevention
Job Trigger Inspect Job 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[PreventionJob Trigger Inspect Job Inspect Config Rule Set Info Type] - 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.
- info
Types List<Property Map> - List of infoTypes this rule set is applied to. Structure is documented below.
PreventionJobTriggerInspectJobInspectConfigRuleSetInfoType, PreventionJobTriggerInspectJobInspectConfigRuleSetInfoTypeArgs
- 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 PreventionJob Trigger Inspect Job Inspect Config Rule Set Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- Version string
- Version of the information type to use. By default, the version is set to stable.
- 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 PreventionJob Trigger Inspect Job Inspect Config Rule Set Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- Version string
- Version of the information type to use. By default, the version is set to stable.
- 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 PreventionJob Trigger Inspect Job Inspect Config Rule Set Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version String
- Version of the information type to use. By default, the version is set to stable.
- 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 PreventionJob Trigger Inspect Job Inspect Config Rule Set Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version string
- Version of the information type to use. By default, the version is set to stable.
- 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 PreventionJob Trigger Inspect Job Inspect Config Rule Set Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version str
- Version of the information type to use. By default, the version is set to stable.
- 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 of the information type to use. By default, the version is set to stable.
PreventionJobTriggerInspectJobInspectConfigRuleSetInfoTypeSensitivityScore, PreventionJobTriggerInspectJobInspectConfigRuleSetInfoTypeSensitivityScoreArgs
- 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
.
PreventionJobTriggerInspectJobInspectConfigRuleSetRule, PreventionJobTriggerInspectJobInspectConfigRuleSetRuleArgs
- Exclusion
Rule PreventionJob Trigger Inspect Job 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 PreventionJob Trigger Inspect Job Inspect Config Rule Set Rule Hotword Rule - Hotword-based detection rule. Structure is documented below.
- Exclusion
Rule PreventionJob Trigger Inspect Job 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 PreventionJob Trigger Inspect Job Inspect Config Rule Set Rule Hotword Rule - Hotword-based detection rule. Structure is documented below.
- exclusion
Rule PreventionJob Trigger Inspect Job 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 PreventionJob Trigger Inspect Job Inspect Config Rule Set Rule Hotword Rule - Hotword-based detection rule. Structure is documented below.
- exclusion
Rule PreventionJob Trigger Inspect Job 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 PreventionJob Trigger Inspect Job Inspect Config Rule Set Rule Hotword Rule - Hotword-based detection rule. Structure is documented below.
- exclusion_
rule PreventionJob Trigger Inspect Job 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 PreventionJob Trigger Inspect Job Inspect Config Rule Set Rule Hotword Rule - Hotword-based detection rule. 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.
PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRule, PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleArgs
- 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
. - Dictionary
Prevention
Job Trigger Inspect Job Inspect Config Rule Set Rule Exclusion Rule Dictionary - Dictionary which defines the rule. Structure is documented below.
- Exclude
By PreventionHotword Job Trigger Inspect Job Inspect Config Rule Set Rule Exclusion Rule Exclude By Hotword - Drop if the hotword rule is contained in the proximate context. Structure is documented below.
- Exclude
Info PreventionTypes Job Trigger Inspect Job 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
Job Trigger Inspect Job 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
. - Dictionary
Prevention
Job Trigger Inspect Job Inspect Config Rule Set Rule Exclusion Rule Dictionary - Dictionary which defines the rule. Structure is documented below.
- Exclude
By PreventionHotword Job Trigger Inspect Job Inspect Config Rule Set Rule Exclusion Rule Exclude By Hotword - Drop if the hotword rule is contained in the proximate context. Structure is documented below.
- Exclude
Info PreventionTypes Job Trigger Inspect Job 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
Job Trigger Inspect Job 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
. - dictionary
Prevention
Job Trigger Inspect Job Inspect Config Rule Set Rule Exclusion Rule Dictionary - Dictionary which defines the rule. Structure is documented below.
- exclude
By PreventionHotword Job Trigger Inspect Job Inspect Config Rule Set Rule Exclusion Rule Exclude By Hotword - Drop if the hotword rule is contained in the proximate context. Structure is documented below.
- exclude
Info PreventionTypes Job Trigger Inspect Job 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
Job Trigger Inspect Job 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
. - dictionary
Prevention
Job Trigger Inspect Job Inspect Config Rule Set Rule Exclusion Rule Dictionary - Dictionary which defines the rule. Structure is documented below.
- exclude
By PreventionHotword Job Trigger Inspect Job Inspect Config Rule Set Rule Exclusion Rule Exclude By Hotword - Drop if the hotword rule is contained in the proximate context. Structure is documented below.
- exclude
Info PreventionTypes Job Trigger Inspect Job 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
Job Trigger Inspect Job Inspect Config Rule Set Rule Exclusion Rule Regex - Regular expression which defines the rule. Structure is documented below.
- matching_
type str - How the rule is applied. See the documentation for more information: https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#MatchingType
Possible values are:
MATCHING_TYPE_FULL_MATCH
,MATCHING_TYPE_PARTIAL_MATCH
,MATCHING_TYPE_INVERSE_MATCH
. - dictionary
Prevention
Job Trigger Inspect Job Inspect Config Rule Set Rule Exclusion Rule Dictionary - Dictionary which defines the rule. Structure is documented below.
- exclude_
by_ Preventionhotword Job Trigger Inspect Job Inspect Config Rule Set Rule Exclusion Rule Exclude By Hotword - Drop if the hotword rule is contained in the proximate context. Structure is documented below.
- exclude_
info_ Preventiontypes Job Trigger Inspect Job 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
Job Trigger Inspect Job 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
. - 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. 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.
PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleDictionary, PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleDictionaryArgs
- Cloud
Storage PreventionPath Job Trigger Inspect Job 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 PreventionJob Trigger Inspect Job 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 Job Trigger Inspect Job 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 PreventionJob Trigger Inspect Job 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 Job Trigger Inspect Job 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 PreventionJob Trigger Inspect Job 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 Job Trigger Inspect Job 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 PreventionJob Trigger Inspect Job 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 Job Trigger Inspect Job 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 PreventionJob Trigger Inspect Job 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.
PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleDictionaryCloudStoragePath, PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleDictionaryCloudStoragePathArgs
- 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
PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleDictionaryWordList, PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleDictionaryWordListArgs
- Words List<string>
- Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits.
- Words []string
- Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits.
- words List<String>
- Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits.
- words string[]
- Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits.
- words Sequence[str]
- Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits.
- words List<String>
- Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits.
PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeByHotword, PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordArgs
- Hotword
Regex PreventionJob Trigger Inspect Job 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
Job Trigger Inspect Job 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)
, wherexxx
is the area code in question. Structure is documented below.
- Hotword
Regex PreventionJob Trigger Inspect Job 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
Job Trigger Inspect Job 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)
, wherexxx
is the area code in question. Structure is documented below.
- hotword
Regex PreventionJob Trigger Inspect Job 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
Job Trigger Inspect Job 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)
, wherexxx
is the area code in question. Structure is documented below.
- hotword
Regex PreventionJob Trigger Inspect Job 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
Job Trigger Inspect Job 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)
, wherexxx
is the area code in question. Structure is documented below.
- hotword_
regex PreventionJob Trigger Inspect Job 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
Job Trigger Inspect Job 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)
, wherexxx
is 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)
, wherexxx
is the area code in question. Structure is documented below.
PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordHotwordRegex, PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordHotwordRegexArgs
- 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<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 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 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 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 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.
PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordProximity, PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordProximityArgs
- Window
After int - Number of characters after the finding to consider. Either this or window_before must be specified
- Window
Before int - Number of characters before the finding to consider. Either this or window_after must be specified
- Window
After int - Number of characters after the finding to consider. Either this or window_before must be specified
- Window
Before int - Number of characters before the finding to consider. Either this or window_after must be specified
- window
After Integer - Number of characters after the finding to consider. Either this or window_before must be specified
- window
Before Integer - Number of characters before the finding to consider. Either this or window_after must be specified
- window
After number - Number of characters after the finding to consider. Either this or window_before must be specified
- window
Before number - Number of characters before the finding to consider. Either this or window_after must be specified
- window_
after int - Number of characters after the finding to consider. Either this or window_before must be specified
- window_
before int - Number of characters before the finding to consider. Either this or window_after must be specified
- window
After Number - Number of characters after the finding to consider. Either this or window_before must be specified
- window
Before Number - Number of characters before the finding to consider. Either this or window_after must be specified
PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypes, PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesArgs
- Info
Types List<PreventionJob Trigger Inspect Job 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 []PreventionJob Trigger Inspect Job 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<PreventionJob Trigger Inspect Job 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 PreventionJob Trigger Inspect Job 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[PreventionJob Trigger Inspect Job 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.
PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoType, PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeArgs
- 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 PreventionJob Trigger Inspect Job Inspect Config Rule Set Rule Exclusion Rule Exclude Info Types Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- Version string
- Version of the information type to use. By default, the version is set to stable.
- 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 PreventionJob Trigger Inspect Job Inspect Config Rule Set Rule Exclusion Rule Exclude Info Types Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- Version string
- Version of the information type to use. By default, the version is set to stable.
- 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 PreventionJob Trigger Inspect Job Inspect Config Rule Set Rule Exclusion Rule Exclude Info Types Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version String
- Version of the information type to use. By default, the version is set to stable.
- 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 PreventionJob Trigger Inspect Job Inspect Config Rule Set Rule Exclusion Rule Exclude Info Types Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version string
- Version of the information type to use. By default, the version is set to stable.
- 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 PreventionJob Trigger Inspect Job Inspect Config Rule Set Rule Exclusion Rule Exclude Info Types Info Type Sensitivity Score - Optional custom sensitivity for this InfoType. This only applies to data profiling. Structure is documented below.
- version str
- Version of the information type to use. By default, the version is set to stable.
- 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 of the information type to use. By default, the version is set to stable.
PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeSensitivityScore, PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesInfoTypeSensitivityScoreArgs
- 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
.
PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleRegex, PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleRegexArgs
- 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<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.
PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRule, PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleArgs
- Hotword
Regex PreventionJob Trigger Inspect Job Inspect Config Rule Set Rule Hotword Rule Hotword Regex - Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- Likelihood
Adjustment PreventionJob Trigger Inspect Job Inspect Config Rule Set Rule Hotword Rule Likelihood Adjustment - Likelihood adjustment to apply to all matching findings. Structure is documented below.
- Proximity
Prevention
Job Trigger Inspect Job Inspect Config Rule Set Rule Hotword Rule Proximity - Proximity of the finding within which the entire hotword must reside. The total length of the window cannot
exceed 1000 characters. Note that the finding itself will be included in the window, so that hotwords may be
used to match substrings of the finding itself. For example, the certainty of a phone number regex
(\d{3}) \d{3}-\d{4}
could be adjusted upwards if the area code is known to be the local area code of a company office using the hotword regex(xxx)
, wherexxx
is the area code in question. Structure is documented below.
- Hotword
Regex PreventionJob Trigger Inspect Job Inspect Config Rule Set Rule Hotword Rule Hotword Regex - Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- Likelihood
Adjustment PreventionJob Trigger Inspect Job Inspect Config Rule Set Rule Hotword Rule Likelihood Adjustment - Likelihood adjustment to apply to all matching findings. Structure is documented below.
- Proximity
Prevention
Job Trigger Inspect Job Inspect Config Rule Set Rule Hotword Rule Proximity - Proximity of the finding within which the entire hotword must reside. The total length of the window cannot
exceed 1000 characters. Note that the finding itself will be included in the window, so that hotwords may be
used to match substrings of the finding itself. For example, the certainty of a phone number regex
(\d{3}) \d{3}-\d{4}
could be adjusted upwards if the area code is known to be the local area code of a company office using the hotword regex(xxx)
, wherexxx
is the area code in question. Structure is documented below.
- hotword
Regex PreventionJob Trigger Inspect Job Inspect Config Rule Set Rule Hotword Rule Hotword Regex - Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- likelihood
Adjustment PreventionJob Trigger Inspect Job Inspect Config Rule Set Rule Hotword Rule Likelihood Adjustment - Likelihood adjustment to apply to all matching findings. Structure is documented below.
- proximity
Prevention
Job Trigger Inspect Job Inspect Config Rule Set Rule Hotword Rule Proximity - Proximity of the finding within which the entire hotword must reside. The total length of the window cannot
exceed 1000 characters. Note that the finding itself will be included in the window, so that hotwords may be
used to match substrings of the finding itself. For example, the certainty of a phone number regex
(\d{3}) \d{3}-\d{4}
could be adjusted upwards if the area code is known to be the local area code of a company office using the hotword regex(xxx)
, wherexxx
is the area code in question. Structure is documented below.
- hotword
Regex PreventionJob Trigger Inspect Job Inspect Config Rule Set Rule Hotword Rule Hotword Regex - Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- likelihood
Adjustment PreventionJob Trigger Inspect Job Inspect Config Rule Set Rule Hotword Rule Likelihood Adjustment - Likelihood adjustment to apply to all matching findings. Structure is documented below.
- proximity
Prevention
Job Trigger Inspect Job Inspect Config Rule Set Rule Hotword Rule Proximity - Proximity of the finding within which the entire hotword must reside. The total length of the window cannot
exceed 1000 characters. Note that the finding itself will be included in the window, so that hotwords may be
used to match substrings of the finding itself. For example, the certainty of a phone number regex
(\d{3}) \d{3}-\d{4}
could be adjusted upwards if the area code is known to be the local area code of a company office using the hotword regex(xxx)
, wherexxx
is the area code in question. Structure is documented below.
- hotword_
regex PreventionJob Trigger Inspect Job Inspect Config Rule Set Rule Hotword Rule Hotword Regex - Regular expression pattern defining what qualifies as a hotword. Structure is documented below.
- likelihood_
adjustment PreventionJob Trigger Inspect Job Inspect Config Rule Set Rule Hotword Rule Likelihood Adjustment - Likelihood adjustment to apply to all matching findings. Structure is documented below.
- proximity
Prevention
Job Trigger Inspect Job Inspect Config Rule Set Rule Hotword Rule Proximity - Proximity of the finding within which the entire hotword must reside. The total length of the window cannot
exceed 1000 characters. Note that the finding itself will be included in the window, so that hotwords may be
used to match substrings of the finding itself. For example, the certainty of a phone number regex
(\d{3}) \d{3}-\d{4}
could be adjusted upwards if the area code is known to be the local area code of a company office using the hotword regex(xxx)
, wherexxx
is 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.
- 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. 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)
, wherexxx
is the area code in question. Structure is documented below.
PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleHotwordRegex, PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleHotwordRegexArgs
- 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<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 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 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 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 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.
PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustment, PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs
- Fixed
Likelihood string - Set the likelihood of a finding to a fixed value. Either this or relative_likelihood can be set.
Possible values are:
VERY_UNLIKELY
,UNLIKELY
,POSSIBLE
,LIKELY
,VERY_LIKELY
. - Relative
Likelihood int - Increase or decrease the likelihood by the specified number of levels. For example, if a finding would be POSSIBLE without the detection rule and relativeLikelihood is 1, then it is upgraded to LIKELY, while a value of -1 would downgrade it to UNLIKELY. Likelihood may never drop below VERY_UNLIKELY or exceed VERY_LIKELY, so applying an adjustment of 1 followed by an adjustment of -1 when base likelihood is VERY_LIKELY will result in a final likelihood of LIKELY. Either this or fixed_likelihood can be set.
- Fixed
Likelihood string - Set the likelihood of a finding to a fixed value. Either this or relative_likelihood can be set.
Possible values are:
VERY_UNLIKELY
,UNLIKELY
,POSSIBLE
,LIKELY
,VERY_LIKELY
. - Relative
Likelihood int - Increase or decrease the likelihood by the specified number of levels. For example, if a finding would be POSSIBLE without the detection rule and relativeLikelihood is 1, then it is upgraded to LIKELY, while a value of -1 would downgrade it to UNLIKELY. Likelihood may never drop below VERY_UNLIKELY or exceed VERY_LIKELY, so applying an adjustment of 1 followed by an adjustment of -1 when base likelihood is VERY_LIKELY will result in a final likelihood of LIKELY. Either this or fixed_likelihood can be set.
- fixed
Likelihood String - Set the likelihood of a finding to a fixed value. Either this or relative_likelihood can be set.
Possible values are:
VERY_UNLIKELY
,UNLIKELY
,POSSIBLE
,LIKELY
,VERY_LIKELY
. - relative
Likelihood Integer - Increase or decrease the likelihood by the specified number of levels. For example, if a finding would be POSSIBLE without the detection rule and relativeLikelihood is 1, then it is upgraded to LIKELY, while a value of -1 would downgrade it to UNLIKELY. Likelihood may never drop below VERY_UNLIKELY or exceed VERY_LIKELY, so applying an adjustment of 1 followed by an adjustment of -1 when base likelihood is VERY_LIKELY will result in a final likelihood of LIKELY. Either this or fixed_likelihood can be set.
- fixed
Likelihood string - Set the likelihood of a finding to a fixed value. Either this or relative_likelihood can be set.
Possible values are:
VERY_UNLIKELY
,UNLIKELY
,POSSIBLE
,LIKELY
,VERY_LIKELY
. - relative
Likelihood number - Increase or decrease the likelihood by the specified number of levels. For example, if a finding would be POSSIBLE without the detection rule and relativeLikelihood is 1, then it is upgraded to LIKELY, while a value of -1 would downgrade it to UNLIKELY. Likelihood may never drop below VERY_UNLIKELY or exceed VERY_LIKELY, so applying an adjustment of 1 followed by an adjustment of -1 when base likelihood is VERY_LIKELY will result in a final likelihood of LIKELY. Either this or fixed_likelihood can be set.
- fixed_
likelihood str - Set the likelihood of a finding to a fixed value. Either this or relative_likelihood can be set.
Possible values are:
VERY_UNLIKELY
,UNLIKELY
,POSSIBLE
,LIKELY
,VERY_LIKELY
. - relative_
likelihood int - Increase or decrease the likelihood by the specified number of levels. For example, if a finding would be POSSIBLE without the detection rule and relativeLikelihood is 1, then it is upgraded to LIKELY, while a value of -1 would downgrade it to UNLIKELY. Likelihood may never drop below VERY_UNLIKELY or exceed VERY_LIKELY, so applying an adjustment of 1 followed by an adjustment of -1 when base likelihood is VERY_LIKELY will result in a final likelihood of LIKELY. Either this or fixed_likelihood can be set.
- fixed
Likelihood String - Set the likelihood of a finding to a fixed value. Either this or relative_likelihood can be set.
Possible values are:
VERY_UNLIKELY
,UNLIKELY
,POSSIBLE
,LIKELY
,VERY_LIKELY
. - relative
Likelihood Number - Increase or decrease the likelihood by the specified number of levels. For example, if a finding would be POSSIBLE without the detection rule and relativeLikelihood is 1, then it is upgraded to LIKELY, while a value of -1 would downgrade it to UNLIKELY. Likelihood may never drop below VERY_UNLIKELY or exceed VERY_LIKELY, so applying an adjustment of 1 followed by an adjustment of -1 when base likelihood is VERY_LIKELY will result in a final likelihood of LIKELY. Either this or fixed_likelihood can be set.
PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleProximity, PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleProximityArgs
- Window
After int - Number of characters after the finding to consider. Either this or window_before must be specified
- Window
Before int - Number of characters before the finding to consider. Either this or window_after must be specified
- Window
After int - Number of characters after the finding to consider. Either this or window_before must be specified
- Window
Before int - Number of characters before the finding to consider. Either this or window_after must be specified
- window
After Integer - Number of characters after the finding to consider. Either this or window_before must be specified
- window
Before Integer - Number of characters before the finding to consider. Either this or window_after must be specified
- window
After number - Number of characters after the finding to consider. Either this or window_before must be specified
- window
Before number - Number of characters before the finding to consider. Either this or window_after must be specified
- window_
after int - Number of characters after the finding to consider. Either this or window_before must be specified
- window_
before int - Number of characters before the finding to consider. Either this or window_after must be specified
- window
After Number - Number of characters after the finding to consider. Either this or window_before must be specified
- window
Before Number - Number of characters before the finding to consider. Either this or window_after must be specified
PreventionJobTriggerInspectJobStorageConfig, PreventionJobTriggerInspectJobStorageConfigArgs
- Big
Query PreventionOptions Job Trigger Inspect Job Storage Config Big Query Options - Options defining BigQuery table and row identifiers. Structure is documented below.
- Cloud
Storage PreventionOptions Job Trigger Inspect Job Storage Config Cloud Storage Options - Options defining a file or a set of files within a Google Cloud Storage bucket. Structure is documented below.
- Datastore
Options PreventionJob Trigger Inspect Job Storage Config Datastore Options - Options defining a data set within Google Cloud Datastore. Structure is documented below.
- Hybrid
Options PreventionJob Trigger Inspect Job Storage Config Hybrid Options - Configuration to control jobs where the content being inspected is outside of Google Cloud Platform. Structure is documented below.
- Timespan
Config PreventionJob Trigger Inspect Job Storage Config Timespan Config - Configuration of the timespan of the items to include in scanning Structure is documented below.
- Big
Query PreventionOptions Job Trigger Inspect Job Storage Config Big Query Options - Options defining BigQuery table and row identifiers. Structure is documented below.
- Cloud
Storage PreventionOptions Job Trigger Inspect Job Storage Config Cloud Storage Options - Options defining a file or a set of files within a Google Cloud Storage bucket. Structure is documented below.
- Datastore
Options PreventionJob Trigger Inspect Job Storage Config Datastore Options - Options defining a data set within Google Cloud Datastore. Structure is documented below.
- Hybrid
Options PreventionJob Trigger Inspect Job Storage Config Hybrid Options - Configuration to control jobs where the content being inspected is outside of Google Cloud Platform. Structure is documented below.
- Timespan
Config PreventionJob Trigger Inspect Job Storage Config Timespan Config - Configuration of the timespan of the items to include in scanning Structure is documented below.
- big
Query PreventionOptions Job Trigger Inspect Job Storage Config Big Query Options - Options defining BigQuery table and row identifiers. Structure is documented below.
- cloud
Storage PreventionOptions Job Trigger Inspect Job Storage Config Cloud Storage Options - Options defining a file or a set of files within a Google Cloud Storage bucket. Structure is documented below.
- datastore
Options PreventionJob Trigger Inspect Job Storage Config Datastore Options - Options defining a data set within Google Cloud Datastore. Structure is documented below.
- hybrid
Options PreventionJob Trigger Inspect Job Storage Config Hybrid Options - Configuration to control jobs where the content being inspected is outside of Google Cloud Platform. Structure is documented below.
- timespan
Config PreventionJob Trigger Inspect Job Storage Config Timespan Config - Configuration of the timespan of the items to include in scanning Structure is documented below.
- big
Query PreventionOptions Job Trigger Inspect Job Storage Config Big Query Options - Options defining BigQuery table and row identifiers. Structure is documented below.
- cloud
Storage PreventionOptions Job Trigger Inspect Job Storage Config Cloud Storage Options - Options defining a file or a set of files within a Google Cloud Storage bucket. Structure is documented below.
- datastore
Options PreventionJob Trigger Inspect Job Storage Config Datastore Options - Options defining a data set within Google Cloud Datastore. Structure is documented below.
- hybrid
Options PreventionJob Trigger Inspect Job Storage Config Hybrid Options - Configuration to control jobs where the content being inspected is outside of Google Cloud Platform. Structure is documented below.
- timespan
Config PreventionJob Trigger Inspect Job Storage Config Timespan Config - Configuration of the timespan of the items to include in scanning Structure is documented below.
- big_
query_ Preventionoptions Job Trigger Inspect Job Storage Config Big Query Options - Options defining BigQuery table and row identifiers. Structure is documented below.
- cloud_
storage_ Preventionoptions Job Trigger Inspect Job Storage Config Cloud Storage Options - Options defining a file or a set of files within a Google Cloud Storage bucket. Structure is documented below.
- datastore_
options PreventionJob Trigger Inspect Job Storage Config Datastore Options - Options defining a data set within Google Cloud Datastore. Structure is documented below.
- hybrid_
options PreventionJob Trigger Inspect Job Storage Config Hybrid Options - Configuration to control jobs where the content being inspected is outside of Google Cloud Platform. Structure is documented below.
- timespan_
config PreventionJob Trigger Inspect Job Storage Config Timespan Config - Configuration of the timespan of the items to include in scanning Structure is documented below.
- big
Query Property MapOptions - Options defining BigQuery table and row identifiers. Structure is documented below.
- cloud
Storage Property MapOptions - Options defining a file or a set of files within a Google Cloud Storage bucket. Structure is documented below.
- datastore
Options Property Map - Options defining a data set within Google Cloud Datastore. Structure is documented below.
- hybrid
Options Property Map - Configuration to control jobs where the content being inspected is outside of Google Cloud Platform. Structure is documented below.
- timespan
Config Property Map - Configuration of the timespan of the items to include in scanning Structure is documented below.
PreventionJobTriggerInspectJobStorageConfigBigQueryOptions, PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsArgs
- Table
Reference PreventionJob Trigger Inspect Job Storage Config Big Query Options Table Reference - Set of files to scan. Structure is documented below.
- Excluded
Fields List<PreventionJob Trigger Inspect Job Storage Config Big Query Options Excluded Field> - References to fields excluded from scanning. This allows you to skip inspection of entire columns which you know have no findings. Structure is documented below.
- Identifying
Fields List<PreventionJob Trigger Inspect Job Storage Config Big Query Options Identifying Field> - Specifies the BigQuery fields that will be returned with findings. If not specified, no identifying fields will be returned for findings. Structure is documented below.
- Included
Fields List<PreventionJob Trigger Inspect Job Storage Config Big Query Options Included Field> - Limit scanning only to these fields. Structure is documented below.
- Rows
Limit int - Max number of rows to scan. If the table has more rows than this value, the rest of the rows are omitted. If not set, or if set to 0, all rows will be scanned. Only one of rowsLimit and rowsLimitPercent can be specified. Cannot be used in conjunction with TimespanConfig.
- Rows
Limit intPercent - Max percentage of rows to scan. The rest are omitted. The number of rows scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of rowsLimit and rowsLimitPercent can be specified. Cannot be used in conjunction with TimespanConfig.
- Sample
Method string - How to sample rows if not all rows are scanned. Meaningful only when used in conjunction with either
rowsLimit or rowsLimitPercent. If not specified, rows are scanned in the order BigQuery reads them.
If TimespanConfig is set, set this to an empty string to avoid using the default value.
Default value is
TOP
. Possible values are:TOP
,RANDOM_START
.
- Table
Reference PreventionJob Trigger Inspect Job Storage Config Big Query Options Table Reference - Set of files to scan. Structure is documented below.
- Excluded
Fields []PreventionJob Trigger Inspect Job Storage Config Big Query Options Excluded Field - References to fields excluded from scanning. This allows you to skip inspection of entire columns which you know have no findings. Structure is documented below.
- Identifying
Fields []PreventionJob Trigger Inspect Job Storage Config Big Query Options Identifying Field - Specifies the BigQuery fields that will be returned with findings. If not specified, no identifying fields will be returned for findings. Structure is documented below.
- Included
Fields []PreventionJob Trigger Inspect Job Storage Config Big Query Options Included Field - Limit scanning only to these fields. Structure is documented below.
- Rows
Limit int - Max number of rows to scan. If the table has more rows than this value, the rest of the rows are omitted. If not set, or if set to 0, all rows will be scanned. Only one of rowsLimit and rowsLimitPercent can be specified. Cannot be used in conjunction with TimespanConfig.
- Rows
Limit intPercent - Max percentage of rows to scan. The rest are omitted. The number of rows scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of rowsLimit and rowsLimitPercent can be specified. Cannot be used in conjunction with TimespanConfig.
- Sample
Method string - How to sample rows if not all rows are scanned. Meaningful only when used in conjunction with either
rowsLimit or rowsLimitPercent. If not specified, rows are scanned in the order BigQuery reads them.
If TimespanConfig is set, set this to an empty string to avoid using the default value.
Default value is
TOP
. Possible values are:TOP
,RANDOM_START
.
- table
Reference PreventionJob Trigger Inspect Job Storage Config Big Query Options Table Reference - Set of files to scan. Structure is documented below.
- excluded
Fields List<PreventionJob Trigger Inspect Job Storage Config Big Query Options Excluded Field> - References to fields excluded from scanning. This allows you to skip inspection of entire columns which you know have no findings. Structure is documented below.
- identifying
Fields List<PreventionJob Trigger Inspect Job Storage Config Big Query Options Identifying Field> - Specifies the BigQuery fields that will be returned with findings. If not specified, no identifying fields will be returned for findings. Structure is documented below.
- included
Fields List<PreventionJob Trigger Inspect Job Storage Config Big Query Options Included Field> - Limit scanning only to these fields. Structure is documented below.
- rows
Limit Integer - Max number of rows to scan. If the table has more rows than this value, the rest of the rows are omitted. If not set, or if set to 0, all rows will be scanned. Only one of rowsLimit and rowsLimitPercent can be specified. Cannot be used in conjunction with TimespanConfig.
- rows
Limit IntegerPercent - Max percentage of rows to scan. The rest are omitted. The number of rows scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of rowsLimit and rowsLimitPercent can be specified. Cannot be used in conjunction with TimespanConfig.
- sample
Method String - How to sample rows if not all rows are scanned. Meaningful only when used in conjunction with either
rowsLimit or rowsLimitPercent. If not specified, rows are scanned in the order BigQuery reads them.
If TimespanConfig is set, set this to an empty string to avoid using the default value.
Default value is
TOP
. Possible values are:TOP
,RANDOM_START
.
- table
Reference PreventionJob Trigger Inspect Job Storage Config Big Query Options Table Reference - Set of files to scan. Structure is documented below.
- excluded
Fields PreventionJob Trigger Inspect Job Storage Config Big Query Options Excluded Field[] - References to fields excluded from scanning. This allows you to skip inspection of entire columns which you know have no findings. Structure is documented below.
- identifying
Fields PreventionJob Trigger Inspect Job Storage Config Big Query Options Identifying Field[] - Specifies the BigQuery fields that will be returned with findings. If not specified, no identifying fields will be returned for findings. Structure is documented below.
- included
Fields PreventionJob Trigger Inspect Job Storage Config Big Query Options Included Field[] - Limit scanning only to these fields. Structure is documented below.
- rows
Limit number - Max number of rows to scan. If the table has more rows than this value, the rest of the rows are omitted. If not set, or if set to 0, all rows will be scanned. Only one of rowsLimit and rowsLimitPercent can be specified. Cannot be used in conjunction with TimespanConfig.
- rows
Limit numberPercent - Max percentage of rows to scan. The rest are omitted. The number of rows scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of rowsLimit and rowsLimitPercent can be specified. Cannot be used in conjunction with TimespanConfig.
- sample
Method string - How to sample rows if not all rows are scanned. Meaningful only when used in conjunction with either
rowsLimit or rowsLimitPercent. If not specified, rows are scanned in the order BigQuery reads them.
If TimespanConfig is set, set this to an empty string to avoid using the default value.
Default value is
TOP
. Possible values are:TOP
,RANDOM_START
.
- table_
reference PreventionJob Trigger Inspect Job Storage Config Big Query Options Table Reference - Set of files to scan. Structure is documented below.
- excluded_
fields Sequence[PreventionJob Trigger Inspect Job Storage Config Big Query Options Excluded Field] - References to fields excluded from scanning. This allows you to skip inspection of entire columns which you know have no findings. Structure is documented below.
- identifying_
fields Sequence[PreventionJob Trigger Inspect Job Storage Config Big Query Options Identifying Field] - Specifies the BigQuery fields that will be returned with findings. If not specified, no identifying fields will be returned for findings. Structure is documented below.
- included_
fields Sequence[PreventionJob Trigger Inspect Job Storage Config Big Query Options Included Field] - Limit scanning only to these fields. Structure is documented below.
- rows_
limit int - Max number of rows to scan. If the table has more rows than this value, the rest of the rows are omitted. If not set, or if set to 0, all rows will be scanned. Only one of rowsLimit and rowsLimitPercent can be specified. Cannot be used in conjunction with TimespanConfig.
- rows_
limit_ intpercent - Max percentage of rows to scan. The rest are omitted. The number of rows scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of rowsLimit and rowsLimitPercent can be specified. Cannot be used in conjunction with TimespanConfig.
- sample_
method str - How to sample rows if not all rows are scanned. Meaningful only when used in conjunction with either
rowsLimit or rowsLimitPercent. If not specified, rows are scanned in the order BigQuery reads them.
If TimespanConfig is set, set this to an empty string to avoid using the default value.
Default value is
TOP
. Possible values are:TOP
,RANDOM_START
.
- table
Reference Property Map - Set of files to scan. Structure is documented below.
- excluded
Fields List<Property Map> - References to fields excluded from scanning. This allows you to skip inspection of entire columns which you know have no findings. Structure is documented below.
- identifying
Fields List<Property Map> - Specifies the BigQuery fields that will be returned with findings. If not specified, no identifying fields will be returned for findings. Structure is documented below.
- included
Fields List<Property Map> - Limit scanning only to these fields. Structure is documented below.
- rows
Limit Number - Max number of rows to scan. If the table has more rows than this value, the rest of the rows are omitted. If not set, or if set to 0, all rows will be scanned. Only one of rowsLimit and rowsLimitPercent can be specified. Cannot be used in conjunction with TimespanConfig.
- rows
Limit NumberPercent - Max percentage of rows to scan. The rest are omitted. The number of rows scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of rowsLimit and rowsLimitPercent can be specified. Cannot be used in conjunction with TimespanConfig.
- sample
Method String - How to sample rows if not all rows are scanned. Meaningful only when used in conjunction with either
rowsLimit or rowsLimitPercent. If not specified, rows are scanned in the order BigQuery reads them.
If TimespanConfig is set, set this to an empty string to avoid using the default value.
Default value is
TOP
. Possible values are:TOP
,RANDOM_START
.
PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsExcludedField, PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsExcludedFieldArgs
- Name string
- Name describing the field excluded from scanning.
- Name string
- Name describing the field excluded from scanning.
- name String
- Name describing the field excluded from scanning.
- name string
- Name describing the field excluded from scanning.
- name str
- Name describing the field excluded from scanning.
- name String
- Name describing the field excluded from scanning.
PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsIdentifyingField, PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsIdentifyingFieldArgs
- Name string
- Name describing the field.
- Name string
- Name describing the field.
- name String
- Name describing the field.
- name string
- Name describing the field.
- name str
- Name describing the field.
- name String
- Name describing the field.
PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsIncludedField, PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsIncludedFieldArgs
- Name string
- Name describing the field to which scanning is limited.
- Name string
- Name describing the field to which scanning is limited.
- name String
- Name describing the field to which scanning is limited.
- name string
- Name describing the field to which scanning is limited.
- name str
- Name describing the field to which scanning is limited.
- name String
- Name describing the field to which scanning is limited.
PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsTableReference, PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsTableReferenceArgs
- dataset_
id str - The dataset ID of the table.
- project_
id str - The Google Cloud Platform project ID of the project containing the table.
- table_
id str - The name of the table.
PreventionJobTriggerInspectJobStorageConfigCloudStorageOptions, PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsArgs
- File
Set PreventionJob Trigger Inspect Job Storage Config Cloud Storage Options File Set - Set of files to scan. Structure is documented below.
- Bytes
Limit intPer File - Max number of bytes to scan from a file. If a scanned file's size is bigger than this value then the rest of the bytes are omitted.
- Bytes
Limit intPer File Percent - Max percentage of bytes to scan from a file. The rest are omitted. The number of bytes scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit.
- File
Types List<string> - List of file type groups to include in the scan. If empty, all files are scanned and available data
format processors are applied. In addition, the binary content of the selected files is always scanned as well.
Images are scanned only as binary if the specified region does not support image inspection and no fileTypes were specified.
Each value may be one of:
BINARY_FILE
,TEXT_FILE
,IMAGE
,WORD
,PDF
,AVRO
,CSV
,TSV
,POWERPOINT
,EXCEL
. - Files
Limit intPercent - Limits the number of files to scan to this percentage of the input FileSet. Number of files scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit.
- Sample
Method string - How to sample bytes if not all bytes are scanned. Meaningful only when used in conjunction with bytesLimitPerFile.
If not specified, scanning would start from the top.
Possible values are:
TOP
,RANDOM_START
.
- File
Set PreventionJob Trigger Inspect Job Storage Config Cloud Storage Options File Set - Set of files to scan. Structure is documented below.
- Bytes
Limit intPer File - Max number of bytes to scan from a file. If a scanned file's size is bigger than this value then the rest of the bytes are omitted.
- Bytes
Limit intPer File Percent - Max percentage of bytes to scan from a file. The rest are omitted. The number of bytes scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit.
- File
Types []string - List of file type groups to include in the scan. If empty, all files are scanned and available data
format processors are applied. In addition, the binary content of the selected files is always scanned as well.
Images are scanned only as binary if the specified region does not support image inspection and no fileTypes were specified.
Each value may be one of:
BINARY_FILE
,TEXT_FILE
,IMAGE
,WORD
,PDF
,AVRO
,CSV
,TSV
,POWERPOINT
,EXCEL
. - Files
Limit intPercent - Limits the number of files to scan to this percentage of the input FileSet. Number of files scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit.
- Sample
Method string - How to sample bytes if not all bytes are scanned. Meaningful only when used in conjunction with bytesLimitPerFile.
If not specified, scanning would start from the top.
Possible values are:
TOP
,RANDOM_START
.
- file
Set PreventionJob Trigger Inspect Job Storage Config Cloud Storage Options File Set - Set of files to scan. Structure is documented below.
- bytes
Limit IntegerPer File - Max number of bytes to scan from a file. If a scanned file's size is bigger than this value then the rest of the bytes are omitted.
- bytes
Limit IntegerPer File Percent - Max percentage of bytes to scan from a file. The rest are omitted. The number of bytes scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit.
- file
Types List<String> - List of file type groups to include in the scan. If empty, all files are scanned and available data
format processors are applied. In addition, the binary content of the selected files is always scanned as well.
Images are scanned only as binary if the specified region does not support image inspection and no fileTypes were specified.
Each value may be one of:
BINARY_FILE
,TEXT_FILE
,IMAGE
,WORD
,PDF
,AVRO
,CSV
,TSV
,POWERPOINT
,EXCEL
. - files
Limit IntegerPercent - Limits the number of files to scan to this percentage of the input FileSet. Number of files scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit.
- sample
Method String - How to sample bytes if not all bytes are scanned. Meaningful only when used in conjunction with bytesLimitPerFile.
If not specified, scanning would start from the top.
Possible values are:
TOP
,RANDOM_START
.
- file
Set PreventionJob Trigger Inspect Job Storage Config Cloud Storage Options File Set - Set of files to scan. Structure is documented below.
- bytes
Limit numberPer File - Max number of bytes to scan from a file. If a scanned file's size is bigger than this value then the rest of the bytes are omitted.
- bytes
Limit numberPer File Percent - Max percentage of bytes to scan from a file. The rest are omitted. The number of bytes scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit.
- file
Types string[] - List of file type groups to include in the scan. If empty, all files are scanned and available data
format processors are applied. In addition, the binary content of the selected files is always scanned as well.
Images are scanned only as binary if the specified region does not support image inspection and no fileTypes were specified.
Each value may be one of:
BINARY_FILE
,TEXT_FILE
,IMAGE
,WORD
,PDF
,AVRO
,CSV
,TSV
,POWERPOINT
,EXCEL
. - files
Limit numberPercent - Limits the number of files to scan to this percentage of the input FileSet. Number of files scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit.
- sample
Method string - How to sample bytes if not all bytes are scanned. Meaningful only when used in conjunction with bytesLimitPerFile.
If not specified, scanning would start from the top.
Possible values are:
TOP
,RANDOM_START
.
- file_
set PreventionJob Trigger Inspect Job Storage Config Cloud Storage Options File Set - Set of files to scan. Structure is documented below.
- bytes_
limit_ intper_ file - Max number of bytes to scan from a file. If a scanned file's size is bigger than this value then the rest of the bytes are omitted.
- bytes_
limit_ intper_ file_ percent - Max percentage of bytes to scan from a file. The rest are omitted. The number of bytes scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit.
- file_
types Sequence[str] - List of file type groups to include in the scan. If empty, all files are scanned and available data
format processors are applied. In addition, the binary content of the selected files is always scanned as well.
Images are scanned only as binary if the specified region does not support image inspection and no fileTypes were specified.
Each value may be one of:
BINARY_FILE
,TEXT_FILE
,IMAGE
,WORD
,PDF
,AVRO
,CSV
,TSV
,POWERPOINT
,EXCEL
. - files_
limit_ intpercent - Limits the number of files to scan to this percentage of the input FileSet. Number of files scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit.
- sample_
method str - How to sample bytes if not all bytes are scanned. Meaningful only when used in conjunction with bytesLimitPerFile.
If not specified, scanning would start from the top.
Possible values are:
TOP
,RANDOM_START
.
- file
Set Property Map - Set of files to scan. Structure is documented below.
- bytes
Limit NumberPer File - Max number of bytes to scan from a file. If a scanned file's size is bigger than this value then the rest of the bytes are omitted.
- bytes
Limit NumberPer File Percent - Max percentage of bytes to scan from a file. The rest are omitted. The number of bytes scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit.
- file
Types List<String> - List of file type groups to include in the scan. If empty, all files are scanned and available data
format processors are applied. In addition, the binary content of the selected files is always scanned as well.
Images are scanned only as binary if the specified region does not support image inspection and no fileTypes were specified.
Each value may be one of:
BINARY_FILE
,TEXT_FILE
,IMAGE
,WORD
,PDF
,AVRO
,CSV
,TSV
,POWERPOINT
,EXCEL
. - files
Limit NumberPercent - Limits the number of files to scan to this percentage of the input FileSet. Number of files scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit.
- sample
Method String - How to sample bytes if not all bytes are scanned. Meaningful only when used in conjunction with bytesLimitPerFile.
If not specified, scanning would start from the top.
Possible values are:
TOP
,RANDOM_START
.
PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSet, PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetArgs
- Regex
File PreventionSet Job Trigger Inspect Job Storage Config Cloud Storage Options File Set Regex File Set - The regex-filtered set of files to scan. Structure is documented below.
- Url string
- The Cloud Storage url of the file(s) to scan, in the format
gs://<bucket>/<path>
. Trailing wildcard in the path is allowed. If the url ends in a trailing slash, the bucket or directory represented by the url will be scanned non-recursively (content in sub-directories will not be scanned). This means thatgs://mybucket/
is equivalent togs://mybucket/*
, andgs://mybucket/directory/
is equivalent togs://mybucket/directory/*
.
- Regex
File PreventionSet Job Trigger Inspect Job Storage Config Cloud Storage Options File Set Regex File Set - The regex-filtered set of files to scan. Structure is documented below.
- Url string
- The Cloud Storage url of the file(s) to scan, in the format
gs://<bucket>/<path>
. Trailing wildcard in the path is allowed. If the url ends in a trailing slash, the bucket or directory represented by the url will be scanned non-recursively (content in sub-directories will not be scanned). This means thatgs://mybucket/
is equivalent togs://mybucket/*
, andgs://mybucket/directory/
is equivalent togs://mybucket/directory/*
.
- regex
File PreventionSet Job Trigger Inspect Job Storage Config Cloud Storage Options File Set Regex File Set - The regex-filtered set of files to scan. Structure is documented below.
- url String
- The Cloud Storage url of the file(s) to scan, in the format
gs://<bucket>/<path>
. Trailing wildcard in the path is allowed. If the url ends in a trailing slash, the bucket or directory represented by the url will be scanned non-recursively (content in sub-directories will not be scanned). This means thatgs://mybucket/
is equivalent togs://mybucket/*
, andgs://mybucket/directory/
is equivalent togs://mybucket/directory/*
.
- regex
File PreventionSet Job Trigger Inspect Job Storage Config Cloud Storage Options File Set Regex File Set - The regex-filtered set of files to scan. Structure is documented below.
- url string
- The Cloud Storage url of the file(s) to scan, in the format
gs://<bucket>/<path>
. Trailing wildcard in the path is allowed. If the url ends in a trailing slash, the bucket or directory represented by the url will be scanned non-recursively (content in sub-directories will not be scanned). This means thatgs://mybucket/
is equivalent togs://mybucket/*
, andgs://mybucket/directory/
is equivalent togs://mybucket/directory/*
.
- regex_
file_ Preventionset Job Trigger Inspect Job Storage Config Cloud Storage Options File Set Regex File Set - The regex-filtered set of files to scan. Structure is documented below.
- url str
- The Cloud Storage url of the file(s) to scan, in the format
gs://<bucket>/<path>
. Trailing wildcard in the path is allowed. If the url ends in a trailing slash, the bucket or directory represented by the url will be scanned non-recursively (content in sub-directories will not be scanned). This means thatgs://mybucket/
is equivalent togs://mybucket/*
, andgs://mybucket/directory/
is equivalent togs://mybucket/directory/*
.
- regex
File Property MapSet - The regex-filtered set of files to scan. Structure is documented below.
- url String
- The Cloud Storage url of the file(s) to scan, in the format
gs://<bucket>/<path>
. Trailing wildcard in the path is allowed. If the url ends in a trailing slash, the bucket or directory represented by the url will be scanned non-recursively (content in sub-directories will not be scanned). This means thatgs://mybucket/
is equivalent togs://mybucket/*
, andgs://mybucket/directory/
is equivalent togs://mybucket/directory/*
.
PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetRegexFileSet, PreventionJobTriggerInspectJobStorageConfigCloudStorageOptionsFileSetRegexFileSetArgs
- Bucket
Name string - The name of a Cloud Storage bucket.
- Exclude
Regexes List<string> - A list of regular expressions matching file paths to exclude. All files in the bucket that match at least one of these regular expressions will be excluded from the scan.
- Include
Regexes List<string> - A list of regular expressions matching file paths to include. All files in the bucket that match at least one of these regular expressions will be included in the set of files, except for those that also match an item in excludeRegex. Leaving this field empty will match all files by default (this is equivalent to including .* in the list)
- Bucket
Name string - The name of a Cloud Storage bucket.
- Exclude
Regexes []string - A list of regular expressions matching file paths to exclude. All files in the bucket that match at least one of these regular expressions will be excluded from the scan.
- Include
Regexes []string - A list of regular expressions matching file paths to include. All files in the bucket that match at least one of these regular expressions will be included in the set of files, except for those that also match an item in excludeRegex. Leaving this field empty will match all files by default (this is equivalent to including .* in the list)
- bucket
Name String - The name of a Cloud Storage bucket.
- exclude
Regexes List<String> - A list of regular expressions matching file paths to exclude. All files in the bucket that match at least one of these regular expressions will be excluded from the scan.
- include
Regexes List<String> - A list of regular expressions matching file paths to include. All files in the bucket that match at least one of these regular expressions will be included in the set of files, except for those that also match an item in excludeRegex. Leaving this field empty will match all files by default (this is equivalent to including .* in the list)
- bucket
Name string - The name of a Cloud Storage bucket.
- exclude
Regexes string[] - A list of regular expressions matching file paths to exclude. All files in the bucket that match at least one of these regular expressions will be excluded from the scan.
- include
Regexes string[] - A list of regular expressions matching file paths to include. All files in the bucket that match at least one of these regular expressions will be included in the set of files, except for those that also match an item in excludeRegex. Leaving this field empty will match all files by default (this is equivalent to including .* in the list)
- bucket_
name str - The name of a Cloud Storage bucket.
- exclude_
regexes Sequence[str] - A list of regular expressions matching file paths to exclude. All files in the bucket that match at least one of these regular expressions will be excluded from the scan.
- include_
regexes Sequence[str] - A list of regular expressions matching file paths to include. All files in the bucket that match at least one of these regular expressions will be included in the set of files, except for those that also match an item in excludeRegex. Leaving this field empty will match all files by default (this is equivalent to including .* in the list)
- bucket
Name String - The name of a Cloud Storage bucket.
- exclude
Regexes List<String> - A list of regular expressions matching file paths to exclude. All files in the bucket that match at least one of these regular expressions will be excluded from the scan.
- include
Regexes List<String> - A list of regular expressions matching file paths to include. All files in the bucket that match at least one of these regular expressions will be included in the set of files, except for those that also match an item in excludeRegex. Leaving this field empty will match all files by default (this is equivalent to including .* in the list)
PreventionJobTriggerInspectJobStorageConfigDatastoreOptions, PreventionJobTriggerInspectJobStorageConfigDatastoreOptionsArgs
- Kind
Prevention
Job Trigger Inspect Job Storage Config Datastore Options Kind - A representation of a Datastore kind. Structure is documented below.
- Partition
Id PreventionJob Trigger Inspect Job Storage Config Datastore Options Partition Id - Datastore partition ID. A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. Structure is documented below.
- Kind
Prevention
Job Trigger Inspect Job Storage Config Datastore Options Kind - A representation of a Datastore kind. Structure is documented below.
- Partition
Id PreventionJob Trigger Inspect Job Storage Config Datastore Options Partition Id - Datastore partition ID. A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. Structure is documented below.
- kind
Prevention
Job Trigger Inspect Job Storage Config Datastore Options Kind - A representation of a Datastore kind. Structure is documented below.
- partition
Id PreventionJob Trigger Inspect Job Storage Config Datastore Options Partition Id - Datastore partition ID. A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. Structure is documented below.
- kind
Prevention
Job Trigger Inspect Job Storage Config Datastore Options Kind - A representation of a Datastore kind. Structure is documented below.
- partition
Id PreventionJob Trigger Inspect Job Storage Config Datastore Options Partition Id - Datastore partition ID. A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. Structure is documented below.
- kind
Prevention
Job Trigger Inspect Job Storage Config Datastore Options Kind - A representation of a Datastore kind. Structure is documented below.
- partition_
id PreventionJob Trigger Inspect Job Storage Config Datastore Options Partition Id - Datastore partition ID. A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. Structure is documented below.
- kind Property Map
- A representation of a Datastore kind. Structure is documented below.
- partition
Id Property Map - Datastore partition ID. A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. Structure is documented below.
PreventionJobTriggerInspectJobStorageConfigDatastoreOptionsKind, PreventionJobTriggerInspectJobStorageConfigDatastoreOptionsKindArgs
- Name string
- The name of the Datastore kind.
- Name string
- The name of the Datastore kind.
- name String
- The name of the Datastore kind.
- name string
- The name of the Datastore kind.
- name str
- The name of the Datastore kind.
- name String
- The name of the Datastore kind.
PreventionJobTriggerInspectJobStorageConfigDatastoreOptionsPartitionId, PreventionJobTriggerInspectJobStorageConfigDatastoreOptionsPartitionIdArgs
- Project
Id string - The ID of the project to which the entities belong.
- Namespace
Id string - If not empty, the ID of the namespace to which the entities belong.
- Project
Id string - The ID of the project to which the entities belong.
- Namespace
Id string - If not empty, the ID of the namespace to which the entities belong.
- project
Id String - The ID of the project to which the entities belong.
- namespace
Id String - If not empty, the ID of the namespace to which the entities belong.
- project
Id string - The ID of the project to which the entities belong.
- namespace
Id string - If not empty, the ID of the namespace to which the entities belong.
- project_
id str - The ID of the project to which the entities belong.
- namespace_
id str - If not empty, the ID of the namespace to which the entities belong.
- project
Id String - The ID of the project to which the entities belong.
- namespace
Id String - If not empty, the ID of the namespace to which the entities belong.
PreventionJobTriggerInspectJobStorageConfigHybridOptions, PreventionJobTriggerInspectJobStorageConfigHybridOptionsArgs
- Description string
- A short description of where the data is coming from. Will be stored once in the job. 256 max length.
- Labels Dictionary<string, string>
- To organize findings, these labels will be added to each finding.
Label keys must be between 1 and 63 characters long and must conform to the following regular expression:
a-z?
. Label values must be between 0 and 63 characters long and must conform to the regular expression(a-z?)?
. No more than 10 labels can be associated with a given finding. Examples:"environment" : "production"
"pipeline" : "etl"
- Required
Finding List<string>Label Keys - These are labels that each inspection request must include within their 'finding_labels' map. Request
may contain others, but any missing one of these will be rejected.
Label keys must be between 1 and 63 characters long and must conform to the following regular expression:
a-z?
. No more than 10 keys can be required. - Table
Options PreventionJob Trigger Inspect Job Storage Config Hybrid Options Table Options - If the container is a table, additional information to make findings meaningful such as the columns that are primary keys. Structure is documented below.
- Description string
- A short description of where the data is coming from. Will be stored once in the job. 256 max length.
- Labels map[string]string
- To organize findings, these labels will be added to each finding.
Label keys must be between 1 and 63 characters long and must conform to the following regular expression:
a-z?
. Label values must be between 0 and 63 characters long and must conform to the regular expression(a-z?)?
. No more than 10 labels can be associated with a given finding. Examples:"environment" : "production"
"pipeline" : "etl"
- Required
Finding []stringLabel Keys - These are labels that each inspection request must include within their 'finding_labels' map. Request
may contain others, but any missing one of these will be rejected.
Label keys must be between 1 and 63 characters long and must conform to the following regular expression:
a-z?
. No more than 10 keys can be required. - Table
Options PreventionJob Trigger Inspect Job Storage Config Hybrid Options Table Options - If the container is a table, additional information to make findings meaningful such as the columns that are primary keys. Structure is documented below.
- description String
- A short description of where the data is coming from. Will be stored once in the job. 256 max length.
- labels Map<String,String>
- To organize findings, these labels will be added to each finding.
Label keys must be between 1 and 63 characters long and must conform to the following regular expression:
a-z?
. Label values must be between 0 and 63 characters long and must conform to the regular expression(a-z?)?
. No more than 10 labels can be associated with a given finding. Examples:"environment" : "production"
"pipeline" : "etl"
- required
Finding List<String>Label Keys - These are labels that each inspection request must include within their 'finding_labels' map. Request
may contain others, but any missing one of these will be rejected.
Label keys must be between 1 and 63 characters long and must conform to the following regular expression:
a-z?
. No more than 10 keys can be required. - table
Options PreventionJob Trigger Inspect Job Storage Config Hybrid Options Table Options - If the container is a table, additional information to make findings meaningful such as the columns that are primary keys. Structure is documented below.
- description string
- A short description of where the data is coming from. Will be stored once in the job. 256 max length.
- labels {[key: string]: string}
- To organize findings, these labels will be added to each finding.
Label keys must be between 1 and 63 characters long and must conform to the following regular expression:
a-z?
. Label values must be between 0 and 63 characters long and must conform to the regular expression(a-z?)?
. No more than 10 labels can be associated with a given finding. Examples:"environment" : "production"
"pipeline" : "etl"
- required
Finding string[]Label Keys - These are labels that each inspection request must include within their 'finding_labels' map. Request
may contain others, but any missing one of these will be rejected.
Label keys must be between 1 and 63 characters long and must conform to the following regular expression:
a-z?
. No more than 10 keys can be required. - table
Options PreventionJob Trigger Inspect Job Storage Config Hybrid Options Table Options - If the container is a table, additional information to make findings meaningful such as the columns that are primary keys. Structure is documented below.
- description str
- A short description of where the data is coming from. Will be stored once in the job. 256 max length.
- labels Mapping[str, str]
- To organize findings, these labels will be added to each finding.
Label keys must be between 1 and 63 characters long and must conform to the following regular expression:
a-z?
. Label values must be between 0 and 63 characters long and must conform to the regular expression(a-z?)?
. No more than 10 labels can be associated with a given finding. Examples:"environment" : "production"
"pipeline" : "etl"
- required_
finding_ Sequence[str]label_ keys - These are labels that each inspection request must include within their 'finding_labels' map. Request
may contain others, but any missing one of these will be rejected.
Label keys must be between 1 and 63 characters long and must conform to the following regular expression:
a-z?
. No more than 10 keys can be required. - table_
options PreventionJob Trigger Inspect Job Storage Config Hybrid Options Table Options - If the container is a table, additional information to make findings meaningful such as the columns that are primary keys. Structure is documented below.
- description String
- A short description of where the data is coming from. Will be stored once in the job. 256 max length.
- labels Map<String>
- To organize findings, these labels will be added to each finding.
Label keys must be between 1 and 63 characters long and must conform to the following regular expression:
a-z?
. Label values must be between 0 and 63 characters long and must conform to the regular expression(a-z?)?
. No more than 10 labels can be associated with a given finding. Examples:"environment" : "production"
"pipeline" : "etl"
- required
Finding List<String>Label Keys - These are labels that each inspection request must include within their 'finding_labels' map. Request
may contain others, but any missing one of these will be rejected.
Label keys must be between 1 and 63 characters long and must conform to the following regular expression:
a-z?
. No more than 10 keys can be required. - table
Options Property Map - If the container is a table, additional information to make findings meaningful such as the columns that are primary keys. Structure is documented below.
PreventionJobTriggerInspectJobStorageConfigHybridOptionsTableOptions, PreventionJobTriggerInspectJobStorageConfigHybridOptionsTableOptionsArgs
- Identifying
Fields List<PreventionJob Trigger Inspect Job Storage Config Hybrid Options Table Options Identifying Field> - The columns that are the primary keys for table objects included in ContentItem. A copy of this cell's value will stored alongside alongside each finding so that the finding can be traced to the specific row it came from. No more than 3 may be provided. Structure is documented below.
- Identifying
Fields []PreventionJob Trigger Inspect Job Storage Config Hybrid Options Table Options Identifying Field - The columns that are the primary keys for table objects included in ContentItem. A copy of this cell's value will stored alongside alongside each finding so that the finding can be traced to the specific row it came from. No more than 3 may be provided. Structure is documented below.
- identifying
Fields List<PreventionJob Trigger Inspect Job Storage Config Hybrid Options Table Options Identifying Field> - The columns that are the primary keys for table objects included in ContentItem. A copy of this cell's value will stored alongside alongside each finding so that the finding can be traced to the specific row it came from. No more than 3 may be provided. Structure is documented below.
- identifying
Fields PreventionJob Trigger Inspect Job Storage Config Hybrid Options Table Options Identifying Field[] - The columns that are the primary keys for table objects included in ContentItem. A copy of this cell's value will stored alongside alongside each finding so that the finding can be traced to the specific row it came from. No more than 3 may be provided. Structure is documented below.
- identifying_
fields Sequence[PreventionJob Trigger Inspect Job Storage Config Hybrid Options Table Options Identifying Field] - The columns that are the primary keys for table objects included in ContentItem. A copy of this cell's value will stored alongside alongside each finding so that the finding can be traced to the specific row it came from. No more than 3 may be provided. Structure is documented below.
- identifying
Fields List<Property Map> - The columns that are the primary keys for table objects included in ContentItem. A copy of this cell's value will stored alongside alongside each finding so that the finding can be traced to the specific row it came from. No more than 3 may be provided. Structure is documented below.
PreventionJobTriggerInspectJobStorageConfigHybridOptionsTableOptionsIdentifyingField, PreventionJobTriggerInspectJobStorageConfigHybridOptionsTableOptionsIdentifyingFieldArgs
- Name string
- Name describing the field.
- Name string
- Name describing the field.
- name String
- Name describing the field.
- name string
- Name describing the field.
- name str
- Name describing the field.
- name String
- Name describing the field.
PreventionJobTriggerInspectJobStorageConfigTimespanConfig, PreventionJobTriggerInspectJobStorageConfigTimespanConfigArgs
- Enable
Auto boolPopulation Of Timespan Config - When the job is started by a JobTrigger we will automatically figure out a valid startTime to avoid scanning files that have not been modified since the last time the JobTrigger executed. This will be based on the time of the execution of the last run of the JobTrigger or the timespan endTime used in the last run of the JobTrigger.
- End
Time string - Exclude files, tables, or rows newer than this value. If not set, no upper time limit is applied.
- Start
Time string - Exclude files, tables, or rows older than this value. If not set, no lower time limit is applied.
- Timestamp
Field PreventionJob Trigger Inspect Job Storage Config Timespan Config Timestamp Field - Specification of the field containing the timestamp of scanned items. Structure is documented below.
- Enable
Auto boolPopulation Of Timespan Config - When the job is started by a JobTrigger we will automatically figure out a valid startTime to avoid scanning files that have not been modified since the last time the JobTrigger executed. This will be based on the time of the execution of the last run of the JobTrigger or the timespan endTime used in the last run of the JobTrigger.
- End
Time string - Exclude files, tables, or rows newer than this value. If not set, no upper time limit is applied.
- Start
Time string - Exclude files, tables, or rows older than this value. If not set, no lower time limit is applied.
- Timestamp
Field PreventionJob Trigger Inspect Job Storage Config Timespan Config Timestamp Field - Specification of the field containing the timestamp of scanned items. Structure is documented below.
- enable
Auto BooleanPopulation Of Timespan Config - When the job is started by a JobTrigger we will automatically figure out a valid startTime to avoid scanning files that have not been modified since the last time the JobTrigger executed. This will be based on the time of the execution of the last run of the JobTrigger or the timespan endTime used in the last run of the JobTrigger.
- end
Time String - Exclude files, tables, or rows newer than this value. If not set, no upper time limit is applied.
- start
Time String - Exclude files, tables, or rows older than this value. If not set, no lower time limit is applied.
- timestamp
Field PreventionJob Trigger Inspect Job Storage Config Timespan Config Timestamp Field - Specification of the field containing the timestamp of scanned items. Structure is documented below.
- enable
Auto booleanPopulation Of Timespan Config - When the job is started by a JobTrigger we will automatically figure out a valid startTime to avoid scanning files that have not been modified since the last time the JobTrigger executed. This will be based on the time of the execution of the last run of the JobTrigger or the timespan endTime used in the last run of the JobTrigger.
- end
Time string - Exclude files, tables, or rows newer than this value. If not set, no upper time limit is applied.
- start
Time string - Exclude files, tables, or rows older than this value. If not set, no lower time limit is applied.
- timestamp
Field PreventionJob Trigger Inspect Job Storage Config Timespan Config Timestamp Field - Specification of the field containing the timestamp of scanned items. Structure is documented below.
- enable_
auto_ boolpopulation_ of_ timespan_ config - When the job is started by a JobTrigger we will automatically figure out a valid startTime to avoid scanning files that have not been modified since the last time the JobTrigger executed. This will be based on the time of the execution of the last run of the JobTrigger or the timespan endTime used in the last run of the JobTrigger.
- end_
time str - Exclude files, tables, or rows newer than this value. If not set, no upper time limit is applied.
- start_
time str - Exclude files, tables, or rows older than this value. If not set, no lower time limit is applied.
- timestamp_
field PreventionJob Trigger Inspect Job Storage Config Timespan Config Timestamp Field - Specification of the field containing the timestamp of scanned items. Structure is documented below.
- enable
Auto BooleanPopulation Of Timespan Config - When the job is started by a JobTrigger we will automatically figure out a valid startTime to avoid scanning files that have not been modified since the last time the JobTrigger executed. This will be based on the time of the execution of the last run of the JobTrigger or the timespan endTime used in the last run of the JobTrigger.
- end
Time String - Exclude files, tables, or rows newer than this value. If not set, no upper time limit is applied.
- start
Time String - Exclude files, tables, or rows older than this value. If not set, no lower time limit is applied.
- timestamp
Field Property Map - Specification of the field containing the timestamp of scanned items. Structure is documented below.
PreventionJobTriggerInspectJobStorageConfigTimespanConfigTimestampField, PreventionJobTriggerInspectJobStorageConfigTimespanConfigTimestampFieldArgs
- Name string
- Specification of the field containing the timestamp of scanned items. Used for data sources like Datastore and BigQuery. For BigQuery: Required to filter out rows based on the given start and end times. If not specified and the table was modified between the given start and end times, the entire table will be scanned. The valid data types of the timestamp field are: INTEGER, DATE, TIMESTAMP, or DATETIME BigQuery column. For Datastore. Valid data types of the timestamp field are: TIMESTAMP. Datastore entity will be scanned if the timestamp property does not exist or its value is empty or invalid.
- Name string
- Specification of the field containing the timestamp of scanned items. Used for data sources like Datastore and BigQuery. For BigQuery: Required to filter out rows based on the given start and end times. If not specified and the table was modified between the given start and end times, the entire table will be scanned. The valid data types of the timestamp field are: INTEGER, DATE, TIMESTAMP, or DATETIME BigQuery column. For Datastore. Valid data types of the timestamp field are: TIMESTAMP. Datastore entity will be scanned if the timestamp property does not exist or its value is empty or invalid.
- name String
- Specification of the field containing the timestamp of scanned items. Used for data sources like Datastore and BigQuery. For BigQuery: Required to filter out rows based on the given start and end times. If not specified and the table was modified between the given start and end times, the entire table will be scanned. The valid data types of the timestamp field are: INTEGER, DATE, TIMESTAMP, or DATETIME BigQuery column. For Datastore. Valid data types of the timestamp field are: TIMESTAMP. Datastore entity will be scanned if the timestamp property does not exist or its value is empty or invalid.
- name string
- Specification of the field containing the timestamp of scanned items. Used for data sources like Datastore and BigQuery. For BigQuery: Required to filter out rows based on the given start and end times. If not specified and the table was modified between the given start and end times, the entire table will be scanned. The valid data types of the timestamp field are: INTEGER, DATE, TIMESTAMP, or DATETIME BigQuery column. For Datastore. Valid data types of the timestamp field are: TIMESTAMP. Datastore entity will be scanned if the timestamp property does not exist or its value is empty or invalid.
- name str
- Specification of the field containing the timestamp of scanned items. Used for data sources like Datastore and BigQuery. For BigQuery: Required to filter out rows based on the given start and end times. If not specified and the table was modified between the given start and end times, the entire table will be scanned. The valid data types of the timestamp field are: INTEGER, DATE, TIMESTAMP, or DATETIME BigQuery column. For Datastore. Valid data types of the timestamp field are: TIMESTAMP. Datastore entity will be scanned if the timestamp property does not exist or its value is empty or invalid.
- name String
- Specification of the field containing the timestamp of scanned items. Used for data sources like Datastore and BigQuery. For BigQuery: Required to filter out rows based on the given start and end times. If not specified and the table was modified between the given start and end times, the entire table will be scanned. The valid data types of the timestamp field are: INTEGER, DATE, TIMESTAMP, or DATETIME BigQuery column. For Datastore. Valid data types of the timestamp field are: TIMESTAMP. Datastore entity will be scanned if the timestamp property does not exist or its value is empty or invalid.
PreventionJobTriggerTrigger, PreventionJobTriggerTriggerArgs
- Manual
Prevention
Job Trigger Trigger Manual - For use with hybrid jobs. Jobs must be manually created and finished.
- Schedule
Prevention
Job Trigger Trigger Schedule - Schedule for triggered jobs Structure is documented below.
- Manual
Prevention
Job Trigger Trigger Manual - For use with hybrid jobs. Jobs must be manually created and finished.
- Schedule
Prevention
Job Trigger Trigger Schedule - Schedule for triggered jobs Structure is documented below.
- manual
Prevention
Job Trigger Trigger Manual - For use with hybrid jobs. Jobs must be manually created and finished.
- schedule
Prevention
Job Trigger Trigger Schedule - Schedule for triggered jobs Structure is documented below.
- manual
Prevention
Job Trigger Trigger Manual - For use with hybrid jobs. Jobs must be manually created and finished.
- schedule
Prevention
Job Trigger Trigger Schedule - Schedule for triggered jobs Structure is documented below.
- manual
Prevention
Job Trigger Trigger Manual - For use with hybrid jobs. Jobs must be manually created and finished.
- schedule
Prevention
Job Trigger Trigger Schedule - Schedule for triggered jobs Structure is documented below.
- manual Property Map
- For use with hybrid jobs. Jobs must be manually created and finished.
- schedule Property Map
- Schedule for triggered jobs Structure is documented below.
PreventionJobTriggerTriggerSchedule, PreventionJobTriggerTriggerScheduleArgs
- Recurrence
Period stringDuration - With this option a job is started a regular periodic basis. For example: every day (86400 seconds).
A scheduled start time will be skipped if the previous execution has not ended when its scheduled time occurs.
This value must be set to a time duration greater than or equal to 1 day and can be no longer than 60 days.
A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- Recurrence
Period stringDuration - With this option a job is started a regular periodic basis. For example: every day (86400 seconds).
A scheduled start time will be skipped if the previous execution has not ended when its scheduled time occurs.
This value must be set to a time duration greater than or equal to 1 day and can be no longer than 60 days.
A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- recurrence
Period StringDuration - With this option a job is started a regular periodic basis. For example: every day (86400 seconds).
A scheduled start time will be skipped if the previous execution has not ended when its scheduled time occurs.
This value must be set to a time duration greater than or equal to 1 day and can be no longer than 60 days.
A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- recurrence
Period stringDuration - With this option a job is started a regular periodic basis. For example: every day (86400 seconds).
A scheduled start time will be skipped if the previous execution has not ended when its scheduled time occurs.
This value must be set to a time duration greater than or equal to 1 day and can be no longer than 60 days.
A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- recurrence_
period_ strduration - With this option a job is started a regular periodic basis. For example: every day (86400 seconds).
A scheduled start time will be skipped if the previous execution has not ended when its scheduled time occurs.
This value must be set to a time duration greater than or equal to 1 day and can be no longer than 60 days.
A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- recurrence
Period StringDuration - With this option a job is started a regular periodic basis. For example: every day (86400 seconds).
A scheduled start time will be skipped if the previous execution has not ended when its scheduled time occurs.
This value must be set to a time duration greater than or equal to 1 day and can be no longer than 60 days.
A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
Import
JobTrigger can be imported using any of these accepted formats:
{{parent}}/jobTriggers/{{name}}
{{parent}}/{{name}}
When using the pulumi import
command, JobTrigger can be imported using one of the formats above. For example:
$ pulumi import gcp:dataloss/preventionJobTrigger:PreventionJobTrigger default {{parent}}/jobTriggers/{{name}}
$ pulumi import gcp:dataloss/preventionJobTrigger:PreventionJobTrigger default {{parent}}/{{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.