gcp.dataloss.PreventionStoredInfoType
Explore with Pulumi AI
Allows creation of custom info types.
To get more information about StoredInfoType, see:
- API documentation
- How-to Guides
Example Usage
Dlp Stored Info Type Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const basic = new gcp.dataloss.PreventionStoredInfoType("basic", {
parent: "projects/my-project-name",
description: "Description",
displayName: "Displayname",
regex: {
pattern: "patient",
groupIndexes: [2],
},
});
import pulumi
import pulumi_gcp as gcp
basic = gcp.dataloss.PreventionStoredInfoType("basic",
parent="projects/my-project-name",
description="Description",
display_name="Displayname",
regex={
"pattern": "patient",
"group_indexes": [2],
})
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.NewPreventionStoredInfoType(ctx, "basic", &dataloss.PreventionStoredInfoTypeArgs{
Parent: pulumi.String("projects/my-project-name"),
Description: pulumi.String("Description"),
DisplayName: pulumi.String("Displayname"),
Regex: &dataloss.PreventionStoredInfoTypeRegexArgs{
Pattern: pulumi.String("patient"),
GroupIndexes: pulumi.IntArray{
pulumi.Int(2),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var basic = new Gcp.DataLoss.PreventionStoredInfoType("basic", new()
{
Parent = "projects/my-project-name",
Description = "Description",
DisplayName = "Displayname",
Regex = new Gcp.DataLoss.Inputs.PreventionStoredInfoTypeRegexArgs
{
Pattern = "patient",
GroupIndexes = new[]
{
2,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.dataloss.PreventionStoredInfoType;
import com.pulumi.gcp.dataloss.PreventionStoredInfoTypeArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionStoredInfoTypeRegexArgs;
import 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 PreventionStoredInfoType("basic", PreventionStoredInfoTypeArgs.builder()
.parent("projects/my-project-name")
.description("Description")
.displayName("Displayname")
.regex(PreventionStoredInfoTypeRegexArgs.builder()
.pattern("patient")
.groupIndexes(2)
.build())
.build());
}
}
resources:
basic:
type: gcp:dataloss:PreventionStoredInfoType
properties:
parent: projects/my-project-name
description: Description
displayName: Displayname
regex:
pattern: patient
groupIndexes:
- 2
Dlp Stored Info Type Dictionary
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const dictionary = new gcp.dataloss.PreventionStoredInfoType("dictionary", {
parent: "projects/my-project-name",
description: "Description",
displayName: "Displayname",
dictionary: {
wordList: {
words: [
"word",
"word2",
],
},
},
});
import pulumi
import pulumi_gcp as gcp
dictionary = gcp.dataloss.PreventionStoredInfoType("dictionary",
parent="projects/my-project-name",
description="Description",
display_name="Displayname",
dictionary={
"word_list": {
"words": [
"word",
"word2",
],
},
})
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.NewPreventionStoredInfoType(ctx, "dictionary", &dataloss.PreventionStoredInfoTypeArgs{
Parent: pulumi.String("projects/my-project-name"),
Description: pulumi.String("Description"),
DisplayName: pulumi.String("Displayname"),
Dictionary: &dataloss.PreventionStoredInfoTypeDictionaryArgs{
WordList: &dataloss.PreventionStoredInfoTypeDictionaryWordListArgs{
Words: pulumi.StringArray{
pulumi.String("word"),
pulumi.String("word2"),
},
},
},
})
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 dictionary = new Gcp.DataLoss.PreventionStoredInfoType("dictionary", new()
{
Parent = "projects/my-project-name",
Description = "Description",
DisplayName = "Displayname",
Dictionary = new Gcp.DataLoss.Inputs.PreventionStoredInfoTypeDictionaryArgs
{
WordList = new Gcp.DataLoss.Inputs.PreventionStoredInfoTypeDictionaryWordListArgs
{
Words = new[]
{
"word",
"word2",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.dataloss.PreventionStoredInfoType;
import com.pulumi.gcp.dataloss.PreventionStoredInfoTypeArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionStoredInfoTypeDictionaryArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionStoredInfoTypeDictionaryWordListArgs;
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 dictionary = new PreventionStoredInfoType("dictionary", PreventionStoredInfoTypeArgs.builder()
.parent("projects/my-project-name")
.description("Description")
.displayName("Displayname")
.dictionary(PreventionStoredInfoTypeDictionaryArgs.builder()
.wordList(PreventionStoredInfoTypeDictionaryWordListArgs.builder()
.words(
"word",
"word2")
.build())
.build())
.build());
}
}
resources:
dictionary:
type: gcp:dataloss:PreventionStoredInfoType
properties:
parent: projects/my-project-name
description: Description
displayName: Displayname
dictionary:
wordList:
words:
- word
- word2
Dlp Stored Info Type Large Custom Dictionary
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const bucket = new gcp.storage.Bucket("bucket", {
name: "tf-test-bucket",
location: "US",
forceDestroy: true,
});
const object = new gcp.storage.BucketObject("object", {
name: "tf-test-object",
bucket: bucket.name,
source: new pulumi.asset.FileAsset("./test-fixtures/words.txt"),
});
const large = new gcp.dataloss.PreventionStoredInfoType("large", {
parent: "projects/my-project-name",
description: "Description",
displayName: "Displayname",
largeCustomDictionary: {
cloudStorageFileSet: {
url: pulumi.interpolate`gs://${bucket.name}/${object.name}`,
},
outputPath: {
path: pulumi.interpolate`gs://${bucket.name}/output/dictionary.txt`,
},
},
});
import pulumi
import pulumi_gcp as gcp
bucket = gcp.storage.Bucket("bucket",
name="tf-test-bucket",
location="US",
force_destroy=True)
object = gcp.storage.BucketObject("object",
name="tf-test-object",
bucket=bucket.name,
source=pulumi.FileAsset("./test-fixtures/words.txt"))
large = gcp.dataloss.PreventionStoredInfoType("large",
parent="projects/my-project-name",
description="Description",
display_name="Displayname",
large_custom_dictionary={
"cloud_storage_file_set": {
"url": pulumi.Output.all(
bucketName=bucket.name,
objectName=object.name
).apply(lambda resolved_outputs: f"gs://{resolved_outputs['bucketName']}/{resolved_outputs['objectName']}")
,
},
"output_path": {
"path": bucket.name.apply(lambda name: f"gs://{name}/output/dictionary.txt"),
},
})
package main
import (
"fmt"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/dataloss"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/storage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
bucket, err := storage.NewBucket(ctx, "bucket", &storage.BucketArgs{
Name: pulumi.String("tf-test-bucket"),
Location: pulumi.String("US"),
ForceDestroy: pulumi.Bool(true),
})
if err != nil {
return err
}
object, err := storage.NewBucketObject(ctx, "object", &storage.BucketObjectArgs{
Name: pulumi.String("tf-test-object"),
Bucket: bucket.Name,
Source: pulumi.NewFileAsset("./test-fixtures/words.txt"),
})
if err != nil {
return err
}
_, err = dataloss.NewPreventionStoredInfoType(ctx, "large", &dataloss.PreventionStoredInfoTypeArgs{
Parent: pulumi.String("projects/my-project-name"),
Description: pulumi.String("Description"),
DisplayName: pulumi.String("Displayname"),
LargeCustomDictionary: &dataloss.PreventionStoredInfoTypeLargeCustomDictionaryArgs{
CloudStorageFileSet: &dataloss.PreventionStoredInfoTypeLargeCustomDictionaryCloudStorageFileSetArgs{
Url: pulumi.All(bucket.Name, object.Name).ApplyT(func(_args []interface{}) (string, error) {
bucketName := _args[0].(string)
objectName := _args[1].(string)
return fmt.Sprintf("gs://%v/%v", bucketName, objectName), nil
}).(pulumi.StringOutput),
},
OutputPath: &dataloss.PreventionStoredInfoTypeLargeCustomDictionaryOutputPathArgs{
Path: bucket.Name.ApplyT(func(name string) (string, error) {
return fmt.Sprintf("gs://%v/output/dictionary.txt", name), nil
}).(pulumi.StringOutput),
},
},
})
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 bucket = new Gcp.Storage.Bucket("bucket", new()
{
Name = "tf-test-bucket",
Location = "US",
ForceDestroy = true,
});
var @object = new Gcp.Storage.BucketObject("object", new()
{
Name = "tf-test-object",
Bucket = bucket.Name,
Source = new FileAsset("./test-fixtures/words.txt"),
});
var large = new Gcp.DataLoss.PreventionStoredInfoType("large", new()
{
Parent = "projects/my-project-name",
Description = "Description",
DisplayName = "Displayname",
LargeCustomDictionary = new Gcp.DataLoss.Inputs.PreventionStoredInfoTypeLargeCustomDictionaryArgs
{
CloudStorageFileSet = new Gcp.DataLoss.Inputs.PreventionStoredInfoTypeLargeCustomDictionaryCloudStorageFileSetArgs
{
Url = Output.Tuple(bucket.Name, @object.Name).Apply(values =>
{
var bucketName = values.Item1;
var objectName = values.Item2;
return $"gs://{bucketName}/{objectName}";
}),
},
OutputPath = new Gcp.DataLoss.Inputs.PreventionStoredInfoTypeLargeCustomDictionaryOutputPathArgs
{
Path = bucket.Name.Apply(name => $"gs://{name}/output/dictionary.txt"),
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.storage.Bucket;
import com.pulumi.gcp.storage.BucketArgs;
import com.pulumi.gcp.storage.BucketObject;
import com.pulumi.gcp.storage.BucketObjectArgs;
import com.pulumi.gcp.dataloss.PreventionStoredInfoType;
import com.pulumi.gcp.dataloss.PreventionStoredInfoTypeArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionStoredInfoTypeLargeCustomDictionaryArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionStoredInfoTypeLargeCustomDictionaryCloudStorageFileSetArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionStoredInfoTypeLargeCustomDictionaryOutputPathArgs;
import com.pulumi.asset.FileAsset;
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 bucket = new Bucket("bucket", BucketArgs.builder()
.name("tf-test-bucket")
.location("US")
.forceDestroy(true)
.build());
var object = new BucketObject("object", BucketObjectArgs.builder()
.name("tf-test-object")
.bucket(bucket.name())
.source(new FileAsset("./test-fixtures/words.txt"))
.build());
var large = new PreventionStoredInfoType("large", PreventionStoredInfoTypeArgs.builder()
.parent("projects/my-project-name")
.description("Description")
.displayName("Displayname")
.largeCustomDictionary(PreventionStoredInfoTypeLargeCustomDictionaryArgs.builder()
.cloudStorageFileSet(PreventionStoredInfoTypeLargeCustomDictionaryCloudStorageFileSetArgs.builder()
.url(Output.tuple(bucket.name(), object.name()).applyValue(values -> {
var bucketName = values.t1;
var objectName = values.t2;
return String.format("gs://%s/%s", bucketName,objectName);
}))
.build())
.outputPath(PreventionStoredInfoTypeLargeCustomDictionaryOutputPathArgs.builder()
.path(bucket.name().applyValue(name -> String.format("gs://%s/output/dictionary.txt", name)))
.build())
.build())
.build());
}
}
resources:
large:
type: gcp:dataloss:PreventionStoredInfoType
properties:
parent: projects/my-project-name
description: Description
displayName: Displayname
largeCustomDictionary:
cloudStorageFileSet:
url: gs://${bucket.name}/${object.name}
outputPath:
path: gs://${bucket.name}/output/dictionary.txt
bucket:
type: gcp:storage:Bucket
properties:
name: tf-test-bucket
location: US
forceDestroy: true
object:
type: gcp:storage:BucketObject
properties:
name: tf-test-object
bucket: ${bucket.name}
source:
fn::FileAsset: ./test-fixtures/words.txt
Dlp Stored Info Type With Id
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const withStoredInfoTypeId = new gcp.dataloss.PreventionStoredInfoType("with_stored_info_type_id", {
parent: "projects/my-project-name",
description: "Description",
displayName: "Displayname",
storedInfoTypeId: "id-",
regex: {
pattern: "patient",
groupIndexes: [2],
},
});
import pulumi
import pulumi_gcp as gcp
with_stored_info_type_id = gcp.dataloss.PreventionStoredInfoType("with_stored_info_type_id",
parent="projects/my-project-name",
description="Description",
display_name="Displayname",
stored_info_type_id="id-",
regex={
"pattern": "patient",
"group_indexes": [2],
})
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.NewPreventionStoredInfoType(ctx, "with_stored_info_type_id", &dataloss.PreventionStoredInfoTypeArgs{
Parent: pulumi.String("projects/my-project-name"),
Description: pulumi.String("Description"),
DisplayName: pulumi.String("Displayname"),
StoredInfoTypeId: pulumi.String("id-"),
Regex: &dataloss.PreventionStoredInfoTypeRegexArgs{
Pattern: pulumi.String("patient"),
GroupIndexes: pulumi.IntArray{
pulumi.Int(2),
},
},
})
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 withStoredInfoTypeId = new Gcp.DataLoss.PreventionStoredInfoType("with_stored_info_type_id", new()
{
Parent = "projects/my-project-name",
Description = "Description",
DisplayName = "Displayname",
StoredInfoTypeId = "id-",
Regex = new Gcp.DataLoss.Inputs.PreventionStoredInfoTypeRegexArgs
{
Pattern = "patient",
GroupIndexes = new[]
{
2,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.dataloss.PreventionStoredInfoType;
import com.pulumi.gcp.dataloss.PreventionStoredInfoTypeArgs;
import com.pulumi.gcp.dataloss.inputs.PreventionStoredInfoTypeRegexArgs;
import 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 withStoredInfoTypeId = new PreventionStoredInfoType("withStoredInfoTypeId", PreventionStoredInfoTypeArgs.builder()
.parent("projects/my-project-name")
.description("Description")
.displayName("Displayname")
.storedInfoTypeId("id-")
.regex(PreventionStoredInfoTypeRegexArgs.builder()
.pattern("patient")
.groupIndexes(2)
.build())
.build());
}
}
resources:
withStoredInfoTypeId:
type: gcp:dataloss:PreventionStoredInfoType
name: with_stored_info_type_id
properties:
parent: projects/my-project-name
description: Description
displayName: Displayname
storedInfoTypeId: id-
regex:
pattern: patient
groupIndexes:
- 2
Create PreventionStoredInfoType Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PreventionStoredInfoType(name: string, args: PreventionStoredInfoTypeArgs, opts?: CustomResourceOptions);
@overload
def PreventionStoredInfoType(resource_name: str,
args: PreventionStoredInfoTypeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PreventionStoredInfoType(resource_name: str,
opts: Optional[ResourceOptions] = None,
parent: Optional[str] = None,
description: Optional[str] = None,
dictionary: Optional[PreventionStoredInfoTypeDictionaryArgs] = None,
display_name: Optional[str] = None,
large_custom_dictionary: Optional[PreventionStoredInfoTypeLargeCustomDictionaryArgs] = None,
regex: Optional[PreventionStoredInfoTypeRegexArgs] = None,
stored_info_type_id: Optional[str] = None)
func NewPreventionStoredInfoType(ctx *Context, name string, args PreventionStoredInfoTypeArgs, opts ...ResourceOption) (*PreventionStoredInfoType, error)
public PreventionStoredInfoType(string name, PreventionStoredInfoTypeArgs args, CustomResourceOptions? opts = null)
public PreventionStoredInfoType(String name, PreventionStoredInfoTypeArgs args)
public PreventionStoredInfoType(String name, PreventionStoredInfoTypeArgs args, CustomResourceOptions options)
type: gcp:dataloss:PreventionStoredInfoType
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 PreventionStoredInfoTypeArgs
- 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 PreventionStoredInfoTypeArgs
- 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 PreventionStoredInfoTypeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PreventionStoredInfoTypeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PreventionStoredInfoTypeArgs
- 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 preventionStoredInfoTypeResource = new Gcp.DataLoss.PreventionStoredInfoType("preventionStoredInfoTypeResource", new()
{
Parent = "string",
Description = "string",
Dictionary = new Gcp.DataLoss.Inputs.PreventionStoredInfoTypeDictionaryArgs
{
CloudStoragePath = new Gcp.DataLoss.Inputs.PreventionStoredInfoTypeDictionaryCloudStoragePathArgs
{
Path = "string",
},
WordList = new Gcp.DataLoss.Inputs.PreventionStoredInfoTypeDictionaryWordListArgs
{
Words = new[]
{
"string",
},
},
},
DisplayName = "string",
LargeCustomDictionary = new Gcp.DataLoss.Inputs.PreventionStoredInfoTypeLargeCustomDictionaryArgs
{
OutputPath = new Gcp.DataLoss.Inputs.PreventionStoredInfoTypeLargeCustomDictionaryOutputPathArgs
{
Path = "string",
},
BigQueryField = new Gcp.DataLoss.Inputs.PreventionStoredInfoTypeLargeCustomDictionaryBigQueryFieldArgs
{
Field = new Gcp.DataLoss.Inputs.PreventionStoredInfoTypeLargeCustomDictionaryBigQueryFieldFieldArgs
{
Name = "string",
},
Table = new Gcp.DataLoss.Inputs.PreventionStoredInfoTypeLargeCustomDictionaryBigQueryFieldTableArgs
{
DatasetId = "string",
ProjectId = "string",
TableId = "string",
},
},
CloudStorageFileSet = new Gcp.DataLoss.Inputs.PreventionStoredInfoTypeLargeCustomDictionaryCloudStorageFileSetArgs
{
Url = "string",
},
},
Regex = new Gcp.DataLoss.Inputs.PreventionStoredInfoTypeRegexArgs
{
Pattern = "string",
GroupIndexes = new[]
{
0,
},
},
StoredInfoTypeId = "string",
});
example, err := dataloss.NewPreventionStoredInfoType(ctx, "preventionStoredInfoTypeResource", &dataloss.PreventionStoredInfoTypeArgs{
Parent: pulumi.String("string"),
Description: pulumi.String("string"),
Dictionary: &dataloss.PreventionStoredInfoTypeDictionaryArgs{
CloudStoragePath: &dataloss.PreventionStoredInfoTypeDictionaryCloudStoragePathArgs{
Path: pulumi.String("string"),
},
WordList: &dataloss.PreventionStoredInfoTypeDictionaryWordListArgs{
Words: pulumi.StringArray{
pulumi.String("string"),
},
},
},
DisplayName: pulumi.String("string"),
LargeCustomDictionary: &dataloss.PreventionStoredInfoTypeLargeCustomDictionaryArgs{
OutputPath: &dataloss.PreventionStoredInfoTypeLargeCustomDictionaryOutputPathArgs{
Path: pulumi.String("string"),
},
BigQueryField: &dataloss.PreventionStoredInfoTypeLargeCustomDictionaryBigQueryFieldArgs{
Field: &dataloss.PreventionStoredInfoTypeLargeCustomDictionaryBigQueryFieldFieldArgs{
Name: pulumi.String("string"),
},
Table: &dataloss.PreventionStoredInfoTypeLargeCustomDictionaryBigQueryFieldTableArgs{
DatasetId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
TableId: pulumi.String("string"),
},
},
CloudStorageFileSet: &dataloss.PreventionStoredInfoTypeLargeCustomDictionaryCloudStorageFileSetArgs{
Url: pulumi.String("string"),
},
},
Regex: &dataloss.PreventionStoredInfoTypeRegexArgs{
Pattern: pulumi.String("string"),
GroupIndexes: pulumi.IntArray{
pulumi.Int(0),
},
},
StoredInfoTypeId: pulumi.String("string"),
})
var preventionStoredInfoTypeResource = new PreventionStoredInfoType("preventionStoredInfoTypeResource", PreventionStoredInfoTypeArgs.builder()
.parent("string")
.description("string")
.dictionary(PreventionStoredInfoTypeDictionaryArgs.builder()
.cloudStoragePath(PreventionStoredInfoTypeDictionaryCloudStoragePathArgs.builder()
.path("string")
.build())
.wordList(PreventionStoredInfoTypeDictionaryWordListArgs.builder()
.words("string")
.build())
.build())
.displayName("string")
.largeCustomDictionary(PreventionStoredInfoTypeLargeCustomDictionaryArgs.builder()
.outputPath(PreventionStoredInfoTypeLargeCustomDictionaryOutputPathArgs.builder()
.path("string")
.build())
.bigQueryField(PreventionStoredInfoTypeLargeCustomDictionaryBigQueryFieldArgs.builder()
.field(PreventionStoredInfoTypeLargeCustomDictionaryBigQueryFieldFieldArgs.builder()
.name("string")
.build())
.table(PreventionStoredInfoTypeLargeCustomDictionaryBigQueryFieldTableArgs.builder()
.datasetId("string")
.projectId("string")
.tableId("string")
.build())
.build())
.cloudStorageFileSet(PreventionStoredInfoTypeLargeCustomDictionaryCloudStorageFileSetArgs.builder()
.url("string")
.build())
.build())
.regex(PreventionStoredInfoTypeRegexArgs.builder()
.pattern("string")
.groupIndexes(0)
.build())
.storedInfoTypeId("string")
.build());
prevention_stored_info_type_resource = gcp.dataloss.PreventionStoredInfoType("preventionStoredInfoTypeResource",
parent="string",
description="string",
dictionary={
"cloud_storage_path": {
"path": "string",
},
"word_list": {
"words": ["string"],
},
},
display_name="string",
large_custom_dictionary={
"output_path": {
"path": "string",
},
"big_query_field": {
"field": {
"name": "string",
},
"table": {
"dataset_id": "string",
"project_id": "string",
"table_id": "string",
},
},
"cloud_storage_file_set": {
"url": "string",
},
},
regex={
"pattern": "string",
"group_indexes": [0],
},
stored_info_type_id="string")
const preventionStoredInfoTypeResource = new gcp.dataloss.PreventionStoredInfoType("preventionStoredInfoTypeResource", {
parent: "string",
description: "string",
dictionary: {
cloudStoragePath: {
path: "string",
},
wordList: {
words: ["string"],
},
},
displayName: "string",
largeCustomDictionary: {
outputPath: {
path: "string",
},
bigQueryField: {
field: {
name: "string",
},
table: {
datasetId: "string",
projectId: "string",
tableId: "string",
},
},
cloudStorageFileSet: {
url: "string",
},
},
regex: {
pattern: "string",
groupIndexes: [0],
},
storedInfoTypeId: "string",
});
type: gcp:dataloss:PreventionStoredInfoType
properties:
description: string
dictionary:
cloudStoragePath:
path: string
wordList:
words:
- string
displayName: string
largeCustomDictionary:
bigQueryField:
field:
name: string
table:
datasetId: string
projectId: string
tableId: string
cloudStorageFileSet:
url: string
outputPath:
path: string
parent: string
regex:
groupIndexes:
- 0
pattern: string
storedInfoTypeId: string
PreventionStoredInfoType Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PreventionStoredInfoType resource accepts the following input properties:
- Parent string
- The parent of the info type in any of the following formats:
projects/{{project}}
projects/{{project}}/locations/{{location}}
organizations/{{organization_id}}
organizations/{{organization_id}}/locations/{{location}}
- Description string
- A description of the info type.
- Dictionary
Prevention
Stored Info Type Dictionary - Dictionary which defines the rule. Structure is documented below.
- Display
Name string - User set display name of the info type.
- Large
Custom PreventionDictionary Stored Info Type Large Custom Dictionary - Dictionary which defines the rule. Structure is documented below.
- Regex
Prevention
Stored Info Type Regex - Regular expression which defines the rule. Structure is documented below.
- Stored
Info stringType Id - The storedInfoType 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 info type in any of the following formats:
projects/{{project}}
projects/{{project}}/locations/{{location}}
organizations/{{organization_id}}
organizations/{{organization_id}}/locations/{{location}}
- Description string
- A description of the info type.
- Dictionary
Prevention
Stored Info Type Dictionary Args - Dictionary which defines the rule. Structure is documented below.
- Display
Name string - User set display name of the info type.
- Large
Custom PreventionDictionary Stored Info Type Large Custom Dictionary Args - Dictionary which defines the rule. Structure is documented below.
- Regex
Prevention
Stored Info Type Regex Args - Regular expression which defines the rule. Structure is documented below.
- Stored
Info stringType Id - The storedInfoType 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 info type in any of the following formats:
projects/{{project}}
projects/{{project}}/locations/{{location}}
organizations/{{organization_id}}
organizations/{{organization_id}}/locations/{{location}}
- description String
- A description of the info type.
- dictionary
Prevention
Stored Info Type Dictionary - Dictionary which defines the rule. Structure is documented below.
- display
Name String - User set display name of the info type.
- large
Custom PreventionDictionary Stored Info Type Large Custom Dictionary - Dictionary which defines the rule. Structure is documented below.
- regex
Prevention
Stored Info Type Regex - Regular expression which defines the rule. Structure is documented below.
- stored
Info StringType Id - The storedInfoType 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 info type in any of the following formats:
projects/{{project}}
projects/{{project}}/locations/{{location}}
organizations/{{organization_id}}
organizations/{{organization_id}}/locations/{{location}}
- description string
- A description of the info type.
- dictionary
Prevention
Stored Info Type Dictionary - Dictionary which defines the rule. Structure is documented below.
- display
Name string - User set display name of the info type.
- large
Custom PreventionDictionary Stored Info Type Large Custom Dictionary - Dictionary which defines the rule. Structure is documented below.
- regex
Prevention
Stored Info Type Regex - Regular expression which defines the rule. Structure is documented below.
- stored
Info stringType Id - The storedInfoType 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 info type in any of the following formats:
projects/{{project}}
projects/{{project}}/locations/{{location}}
organizations/{{organization_id}}
organizations/{{organization_id}}/locations/{{location}}
- description str
- A description of the info type.
- dictionary
Prevention
Stored Info Type Dictionary Args - Dictionary which defines the rule. Structure is documented below.
- display_
name str - User set display name of the info type.
- large_
custom_ Preventiondictionary Stored Info Type Large Custom Dictionary Args - Dictionary which defines the rule. Structure is documented below.
- regex
Prevention
Stored Info Type Regex Args - Regular expression which defines the rule. Structure is documented below.
- stored_
info_ strtype_ id - The storedInfoType 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 info type in any of the following formats:
projects/{{project}}
projects/{{project}}/locations/{{location}}
organizations/{{organization_id}}
organizations/{{organization_id}}/locations/{{location}}
- description String
- A description of the info type.
- dictionary Property Map
- Dictionary which defines the rule. Structure is documented below.
- display
Name String - User set display name of the info type.
- large
Custom Property MapDictionary - Dictionary which defines the rule. Structure is documented below.
- regex Property Map
- Regular expression which defines the rule. Structure is documented below.
- stored
Info StringType Id - The storedInfoType 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 PreventionStoredInfoType resource produces the following output properties:
Look up Existing PreventionStoredInfoType Resource
Get an existing PreventionStoredInfoType 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?: PreventionStoredInfoTypeState, opts?: CustomResourceOptions): PreventionStoredInfoType
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
dictionary: Optional[PreventionStoredInfoTypeDictionaryArgs] = None,
display_name: Optional[str] = None,
large_custom_dictionary: Optional[PreventionStoredInfoTypeLargeCustomDictionaryArgs] = None,
name: Optional[str] = None,
parent: Optional[str] = None,
regex: Optional[PreventionStoredInfoTypeRegexArgs] = None,
stored_info_type_id: Optional[str] = None) -> PreventionStoredInfoType
func GetPreventionStoredInfoType(ctx *Context, name string, id IDInput, state *PreventionStoredInfoTypeState, opts ...ResourceOption) (*PreventionStoredInfoType, error)
public static PreventionStoredInfoType Get(string name, Input<string> id, PreventionStoredInfoTypeState? state, CustomResourceOptions? opts = null)
public static PreventionStoredInfoType get(String name, Output<String> id, PreventionStoredInfoTypeState 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.
- Description string
- A description of the info type.
- Dictionary
Prevention
Stored Info Type Dictionary - Dictionary which defines the rule. Structure is documented below.
- Display
Name string - User set display name of the info type.
- Large
Custom PreventionDictionary Stored Info Type Large Custom Dictionary - Dictionary which defines the rule. Structure is documented below.
- Name string
- The resource name of the info type. Set by the server.
- Parent string
- The parent of the info type in any of the following formats:
projects/{{project}}
projects/{{project}}/locations/{{location}}
organizations/{{organization_id}}
organizations/{{organization_id}}/locations/{{location}}
- Regex
Prevention
Stored Info Type Regex - Regular expression which defines the rule. Structure is documented below.
- Stored
Info stringType Id - The storedInfoType ID can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- Description string
- A description of the info type.
- Dictionary
Prevention
Stored Info Type Dictionary Args - Dictionary which defines the rule. Structure is documented below.
- Display
Name string - User set display name of the info type.
- Large
Custom PreventionDictionary Stored Info Type Large Custom Dictionary Args - Dictionary which defines the rule. Structure is documented below.
- Name string
- The resource name of the info type. Set by the server.
- Parent string
- The parent of the info type in any of the following formats:
projects/{{project}}
projects/{{project}}/locations/{{location}}
organizations/{{organization_id}}
organizations/{{organization_id}}/locations/{{location}}
- Regex
Prevention
Stored Info Type Regex Args - Regular expression which defines the rule. Structure is documented below.
- Stored
Info stringType Id - The storedInfoType ID can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- description String
- A description of the info type.
- dictionary
Prevention
Stored Info Type Dictionary - Dictionary which defines the rule. Structure is documented below.
- display
Name String - User set display name of the info type.
- large
Custom PreventionDictionary Stored Info Type Large Custom Dictionary - Dictionary which defines the rule. Structure is documented below.
- name String
- The resource name of the info type. Set by the server.
- parent String
- The parent of the info type in any of the following formats:
projects/{{project}}
projects/{{project}}/locations/{{location}}
organizations/{{organization_id}}
organizations/{{organization_id}}/locations/{{location}}
- regex
Prevention
Stored Info Type Regex - Regular expression which defines the rule. Structure is documented below.
- stored
Info StringType Id - The storedInfoType ID can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- description string
- A description of the info type.
- dictionary
Prevention
Stored Info Type Dictionary - Dictionary which defines the rule. Structure is documented below.
- display
Name string - User set display name of the info type.
- large
Custom PreventionDictionary Stored Info Type Large Custom Dictionary - Dictionary which defines the rule. Structure is documented below.
- name string
- The resource name of the info type. Set by the server.
- parent string
- The parent of the info type in any of the following formats:
projects/{{project}}
projects/{{project}}/locations/{{location}}
organizations/{{organization_id}}
organizations/{{organization_id}}/locations/{{location}}
- regex
Prevention
Stored Info Type Regex - Regular expression which defines the rule. Structure is documented below.
- stored
Info stringType Id - The storedInfoType ID can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- description str
- A description of the info type.
- dictionary
Prevention
Stored Info Type Dictionary Args - Dictionary which defines the rule. Structure is documented below.
- display_
name str - User set display name of the info type.
- large_
custom_ Preventiondictionary Stored Info Type Large Custom Dictionary Args - Dictionary which defines the rule. Structure is documented below.
- name str
- The resource name of the info type. Set by the server.
- parent str
- The parent of the info type in any of the following formats:
projects/{{project}}
projects/{{project}}/locations/{{location}}
organizations/{{organization_id}}
organizations/{{organization_id}}/locations/{{location}}
- regex
Prevention
Stored Info Type Regex Args - Regular expression which defines the rule. Structure is documented below.
- stored_
info_ strtype_ id - The storedInfoType ID can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
- description String
- A description of the info type.
- dictionary Property Map
- Dictionary which defines the rule. Structure is documented below.
- display
Name String - User set display name of the info type.
- large
Custom Property MapDictionary - Dictionary which defines the rule. Structure is documented below.
- name String
- The resource name of the info type. Set by the server.
- parent String
- The parent of the info type in any of the following formats:
projects/{{project}}
projects/{{project}}/locations/{{location}}
organizations/{{organization_id}}
organizations/{{organization_id}}/locations/{{location}}
- regex Property Map
- Regular expression which defines the rule. Structure is documented below.
- stored
Info StringType Id - The storedInfoType ID can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
Supporting Types
PreventionStoredInfoTypeDictionary, PreventionStoredInfoTypeDictionaryArgs
- Cloud
Storage PreventionPath Stored 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 PreventionStored Info Type Dictionary Word List - List of words or phrases to search for. Structure is documented below.
- Cloud
Storage PreventionPath Stored 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 PreventionStored Info Type Dictionary Word List - List of words or phrases to search for. Structure is documented below.
- cloud
Storage PreventionPath Stored 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 PreventionStored Info Type Dictionary Word List - List of words or phrases to search for. Structure is documented below.
- cloud
Storage PreventionPath Stored 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 PreventionStored Info Type Dictionary Word List - List of words or phrases to search for. Structure is documented below.
- cloud_
storage_ Preventionpath Stored 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 PreventionStored 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.
PreventionStoredInfoTypeDictionaryCloudStoragePath, PreventionStoredInfoTypeDictionaryCloudStoragePathArgs
- 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
PreventionStoredInfoTypeDictionaryWordList, PreventionStoredInfoTypeDictionaryWordListArgs
- 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.
PreventionStoredInfoTypeLargeCustomDictionary, PreventionStoredInfoTypeLargeCustomDictionaryArgs
- Output
Path PreventionStored Info Type Large Custom Dictionary Output Path - Location to store dictionary artifacts in Google Cloud Storage. These files will only be accessible by project owners and the DLP API. If any of these artifacts are modified, the dictionary is considered invalid and can no longer be used. Structure is documented below.
- Big
Query PreventionField Stored Info Type Large Custom Dictionary Big Query Field - Field in a BigQuery table where each cell represents a dictionary phrase. Structure is documented below.
- Cloud
Storage PreventionFile Set Stored Info Type Large Custom Dictionary Cloud Storage File Set - Set of files containing newline-delimited lists of dictionary phrases. Structure is documented below.
- Output
Path PreventionStored Info Type Large Custom Dictionary Output Path - Location to store dictionary artifacts in Google Cloud Storage. These files will only be accessible by project owners and the DLP API. If any of these artifacts are modified, the dictionary is considered invalid and can no longer be used. Structure is documented below.
- Big
Query PreventionField Stored Info Type Large Custom Dictionary Big Query Field - Field in a BigQuery table where each cell represents a dictionary phrase. Structure is documented below.
- Cloud
Storage PreventionFile Set Stored Info Type Large Custom Dictionary Cloud Storage File Set - Set of files containing newline-delimited lists of dictionary phrases. Structure is documented below.
- output
Path PreventionStored Info Type Large Custom Dictionary Output Path - Location to store dictionary artifacts in Google Cloud Storage. These files will only be accessible by project owners and the DLP API. If any of these artifacts are modified, the dictionary is considered invalid and can no longer be used. Structure is documented below.
- big
Query PreventionField Stored Info Type Large Custom Dictionary Big Query Field - Field in a BigQuery table where each cell represents a dictionary phrase. Structure is documented below.
- cloud
Storage PreventionFile Set Stored Info Type Large Custom Dictionary Cloud Storage File Set - Set of files containing newline-delimited lists of dictionary phrases. Structure is documented below.
- output
Path PreventionStored Info Type Large Custom Dictionary Output Path - Location to store dictionary artifacts in Google Cloud Storage. These files will only be accessible by project owners and the DLP API. If any of these artifacts are modified, the dictionary is considered invalid and can no longer be used. Structure is documented below.
- big
Query PreventionField Stored Info Type Large Custom Dictionary Big Query Field - Field in a BigQuery table where each cell represents a dictionary phrase. Structure is documented below.
- cloud
Storage PreventionFile Set Stored Info Type Large Custom Dictionary Cloud Storage File Set - Set of files containing newline-delimited lists of dictionary phrases. Structure is documented below.
- output_
path PreventionStored Info Type Large Custom Dictionary Output Path - Location to store dictionary artifacts in Google Cloud Storage. These files will only be accessible by project owners and the DLP API. If any of these artifacts are modified, the dictionary is considered invalid and can no longer be used. Structure is documented below.
- big_
query_ Preventionfield Stored Info Type Large Custom Dictionary Big Query Field - Field in a BigQuery table where each cell represents a dictionary phrase. Structure is documented below.
- cloud_
storage_ Preventionfile_ set Stored Info Type Large Custom Dictionary Cloud Storage File Set - Set of files containing newline-delimited lists of dictionary phrases. Structure is documented below.
- output
Path Property Map - Location to store dictionary artifacts in Google Cloud Storage. These files will only be accessible by project owners and the DLP API. If any of these artifacts are modified, the dictionary is considered invalid and can no longer be used. Structure is documented below.
- big
Query Property MapField - Field in a BigQuery table where each cell represents a dictionary phrase. Structure is documented below.
- cloud
Storage Property MapFile Set - Set of files containing newline-delimited lists of dictionary phrases. Structure is documented below.
PreventionStoredInfoTypeLargeCustomDictionaryBigQueryField, PreventionStoredInfoTypeLargeCustomDictionaryBigQueryFieldArgs
- Field
Prevention
Stored Info Type Large Custom Dictionary Big Query Field Field - Designated field in the BigQuery table. Structure is documented below.
- Table
Prevention
Stored Info Type Large Custom Dictionary Big Query Field Table - Field in a BigQuery table where each cell represents a dictionary phrase. Structure is documented below.
- Field
Prevention
Stored Info Type Large Custom Dictionary Big Query Field Field - Designated field in the BigQuery table. Structure is documented below.
- Table
Prevention
Stored Info Type Large Custom Dictionary Big Query Field Table - Field in a BigQuery table where each cell represents a dictionary phrase. Structure is documented below.
- field
Prevention
Stored Info Type Large Custom Dictionary Big Query Field Field - Designated field in the BigQuery table. Structure is documented below.
- table
Prevention
Stored Info Type Large Custom Dictionary Big Query Field Table - Field in a BigQuery table where each cell represents a dictionary phrase. Structure is documented below.
- field
Prevention
Stored Info Type Large Custom Dictionary Big Query Field Field - Designated field in the BigQuery table. Structure is documented below.
- table
Prevention
Stored Info Type Large Custom Dictionary Big Query Field Table - Field in a BigQuery table where each cell represents a dictionary phrase. Structure is documented below.
- field
Prevention
Stored Info Type Large Custom Dictionary Big Query Field Field - Designated field in the BigQuery table. Structure is documented below.
- table
Prevention
Stored Info Type Large Custom Dictionary Big Query Field Table - Field in a BigQuery table where each cell represents a dictionary phrase. Structure is documented below.
- field Property Map
- Designated field in the BigQuery table. Structure is documented below.
- table Property Map
- Field in a BigQuery table where each cell represents a dictionary phrase. Structure is documented below.
PreventionStoredInfoTypeLargeCustomDictionaryBigQueryFieldField, PreventionStoredInfoTypeLargeCustomDictionaryBigQueryFieldFieldArgs
- 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.
PreventionStoredInfoTypeLargeCustomDictionaryBigQueryFieldTable, PreventionStoredInfoTypeLargeCustomDictionaryBigQueryFieldTableArgs
- 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.
PreventionStoredInfoTypeLargeCustomDictionaryCloudStorageFileSet, PreventionStoredInfoTypeLargeCustomDictionaryCloudStorageFileSetArgs
- Url string
- The url, in the format
gs://<bucket>/<path>
. Trailing wildcard in the path is allowed.
- Url string
- The url, in the format
gs://<bucket>/<path>
. Trailing wildcard in the path is allowed.
- url String
- The url, in the format
gs://<bucket>/<path>
. Trailing wildcard in the path is allowed.
- url string
- The url, in the format
gs://<bucket>/<path>
. Trailing wildcard in the path is allowed.
- url str
- The url, in the format
gs://<bucket>/<path>
. Trailing wildcard in the path is allowed.
- url String
- The url, in the format
gs://<bucket>/<path>
. Trailing wildcard in the path is allowed.
PreventionStoredInfoTypeLargeCustomDictionaryOutputPath, PreventionStoredInfoTypeLargeCustomDictionaryOutputPathArgs
- 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
PreventionStoredInfoTypeRegex, PreventionStoredInfoTypeRegexArgs
- 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.
Import
StoredInfoType can be imported using any of these accepted formats:
{{parent}}/storedInfoTypes/{{name}}
{{parent}}/{{name}}
When using the pulumi import
command, StoredInfoType can be imported using one of the formats above. For example:
$ pulumi import gcp:dataloss/preventionStoredInfoType:PreventionStoredInfoType default {{parent}}/storedInfoTypes/{{name}}
$ pulumi import gcp:dataloss/preventionStoredInfoType:PreventionStoredInfoType 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.