1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. dataloss
  5. PreventionStoredInfoType
Google Cloud Classic v8.3.1 published on Wednesday, Sep 25, 2024 by Pulumi

gcp.dataloss.PreventionStoredInfoType

Explore with Pulumi AI

gcp logo
Google Cloud Classic v8.3.1 published on Wednesday, Sep 25, 2024 by Pulumi

    Allows creation of custom info types.

    To get more information about StoredInfoType, see:

    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={
            "cloudStoragePath": {
                "path": "string",
            },
            "wordList": {
                "words": ["string"],
            },
        },
        display_name="string",
        large_custom_dictionary={
            "outputPath": {
                "path": "string",
            },
            "bigQueryField": {
                "field": {
                    "name": "string",
                },
                "table": {
                    "datasetId": "string",
                    "projectId": "string",
                    "tableId": "string",
                },
            },
            "cloudStorageFileSet": {
                "url": "string",
            },
        },
        regex={
            "pattern": "string",
            "groupIndexes": [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

    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 PreventionStoredInfoTypeDictionary
    Dictionary which defines the rule. Structure is documented below.
    DisplayName string
    User set display name of the info type.
    LargeCustomDictionary PreventionStoredInfoTypeLargeCustomDictionary
    Dictionary which defines the rule. Structure is documented below.
    Regex PreventionStoredInfoTypeRegex
    Regular expression which defines the rule. Structure is documented below.
    StoredInfoTypeId string
    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 PreventionStoredInfoTypeDictionaryArgs
    Dictionary which defines the rule. Structure is documented below.
    DisplayName string
    User set display name of the info type.
    LargeCustomDictionary PreventionStoredInfoTypeLargeCustomDictionaryArgs
    Dictionary which defines the rule. Structure is documented below.
    Regex PreventionStoredInfoTypeRegexArgs
    Regular expression which defines the rule. Structure is documented below.
    StoredInfoTypeId string
    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 PreventionStoredInfoTypeDictionary
    Dictionary which defines the rule. Structure is documented below.
    displayName String
    User set display name of the info type.
    largeCustomDictionary PreventionStoredInfoTypeLargeCustomDictionary
    Dictionary which defines the rule. Structure is documented below.
    regex PreventionStoredInfoTypeRegex
    Regular expression which defines the rule. Structure is documented below.
    storedInfoTypeId String
    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 PreventionStoredInfoTypeDictionary
    Dictionary which defines the rule. Structure is documented below.
    displayName string
    User set display name of the info type.
    largeCustomDictionary PreventionStoredInfoTypeLargeCustomDictionary
    Dictionary which defines the rule. Structure is documented below.
    regex PreventionStoredInfoTypeRegex
    Regular expression which defines the rule. Structure is documented below.
    storedInfoTypeId string
    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 PreventionStoredInfoTypeDictionaryArgs
    Dictionary which defines the rule. Structure is documented below.
    display_name str
    User set display name of the info type.
    large_custom_dictionary PreventionStoredInfoTypeLargeCustomDictionaryArgs
    Dictionary which defines the rule. Structure is documented below.
    regex PreventionStoredInfoTypeRegexArgs
    Regular expression which defines the rule. Structure is documented below.
    stored_info_type_id str
    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.
    displayName String
    User set display name of the info type.
    largeCustomDictionary Property Map
    Dictionary which defines the rule. Structure is documented below.
    regex Property Map
    Regular expression which defines the rule. Structure is documented below.
    storedInfoTypeId String
    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:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The resource name of the info type. Set by the server.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The resource name of the info type. Set by the server.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The resource name of the info type. Set by the server.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The resource name of the info type. Set by the server.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The resource name of the info type. Set by the server.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The resource name of the info type. Set by the server.

    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.
    The following state arguments are supported:
    Description string
    A description of the info type.
    Dictionary PreventionStoredInfoTypeDictionary
    Dictionary which defines the rule. Structure is documented below.
    DisplayName string
    User set display name of the info type.
    LargeCustomDictionary PreventionStoredInfoTypeLargeCustomDictionary
    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 PreventionStoredInfoTypeRegex
    Regular expression which defines the rule. Structure is documented below.
    StoredInfoTypeId string
    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 PreventionStoredInfoTypeDictionaryArgs
    Dictionary which defines the rule. Structure is documented below.
    DisplayName string
    User set display name of the info type.
    LargeCustomDictionary PreventionStoredInfoTypeLargeCustomDictionaryArgs
    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 PreventionStoredInfoTypeRegexArgs
    Regular expression which defines the rule. Structure is documented below.
    StoredInfoTypeId string
    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 PreventionStoredInfoTypeDictionary
    Dictionary which defines the rule. Structure is documented below.
    displayName String
    User set display name of the info type.
    largeCustomDictionary PreventionStoredInfoTypeLargeCustomDictionary
    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 PreventionStoredInfoTypeRegex
    Regular expression which defines the rule. Structure is documented below.
    storedInfoTypeId String
    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 PreventionStoredInfoTypeDictionary
    Dictionary which defines the rule. Structure is documented below.
    displayName string
    User set display name of the info type.
    largeCustomDictionary PreventionStoredInfoTypeLargeCustomDictionary
    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 PreventionStoredInfoTypeRegex
    Regular expression which defines the rule. Structure is documented below.
    storedInfoTypeId string
    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 PreventionStoredInfoTypeDictionaryArgs
    Dictionary which defines the rule. Structure is documented below.
    display_name str
    User set display name of the info type.
    large_custom_dictionary PreventionStoredInfoTypeLargeCustomDictionaryArgs
    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 PreventionStoredInfoTypeRegexArgs
    Regular expression which defines the rule. Structure is documented below.
    stored_info_type_id str
    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.
    displayName String
    User set display name of the info type.
    largeCustomDictionary Property Map
    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.
    storedInfoTypeId String
    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

    CloudStoragePath PreventionStoredInfoTypeDictionaryCloudStoragePath
    Newline-delimited file of words in Cloud Storage. Only a single file is accepted. Structure is documented below.
    WordList PreventionStoredInfoTypeDictionaryWordList
    List of words or phrases to search for. Structure is documented below.
    CloudStoragePath PreventionStoredInfoTypeDictionaryCloudStoragePath
    Newline-delimited file of words in Cloud Storage. Only a single file is accepted. Structure is documented below.
    WordList PreventionStoredInfoTypeDictionaryWordList
    List of words or phrases to search for. Structure is documented below.
    cloudStoragePath PreventionStoredInfoTypeDictionaryCloudStoragePath
    Newline-delimited file of words in Cloud Storage. Only a single file is accepted. Structure is documented below.
    wordList PreventionStoredInfoTypeDictionaryWordList
    List of words or phrases to search for. Structure is documented below.
    cloudStoragePath PreventionStoredInfoTypeDictionaryCloudStoragePath
    Newline-delimited file of words in Cloud Storage. Only a single file is accepted. Structure is documented below.
    wordList PreventionStoredInfoTypeDictionaryWordList
    List of words or phrases to search for. Structure is documented below.
    cloud_storage_path PreventionStoredInfoTypeDictionaryCloudStoragePath
    Newline-delimited file of words in Cloud Storage. Only a single file is accepted. Structure is documented below.
    word_list PreventionStoredInfoTypeDictionaryWordList
    List of words or phrases to search for. Structure is documented below.
    cloudStoragePath Property Map
    Newline-delimited file of words in Cloud Storage. Only a single file is accepted. Structure is documented below.
    wordList Property Map
    List of words or phrases to search for. Structure is documented below.

    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

    OutputPath PreventionStoredInfoTypeLargeCustomDictionaryOutputPath
    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.
    BigQueryField PreventionStoredInfoTypeLargeCustomDictionaryBigQueryField
    Field in a BigQuery table where each cell represents a dictionary phrase. Structure is documented below.
    CloudStorageFileSet PreventionStoredInfoTypeLargeCustomDictionaryCloudStorageFileSet
    Set of files containing newline-delimited lists of dictionary phrases. Structure is documented below.
    OutputPath PreventionStoredInfoTypeLargeCustomDictionaryOutputPath
    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.
    BigQueryField PreventionStoredInfoTypeLargeCustomDictionaryBigQueryField
    Field in a BigQuery table where each cell represents a dictionary phrase. Structure is documented below.
    CloudStorageFileSet PreventionStoredInfoTypeLargeCustomDictionaryCloudStorageFileSet
    Set of files containing newline-delimited lists of dictionary phrases. Structure is documented below.
    outputPath PreventionStoredInfoTypeLargeCustomDictionaryOutputPath
    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.
    bigQueryField PreventionStoredInfoTypeLargeCustomDictionaryBigQueryField
    Field in a BigQuery table where each cell represents a dictionary phrase. Structure is documented below.
    cloudStorageFileSet PreventionStoredInfoTypeLargeCustomDictionaryCloudStorageFileSet
    Set of files containing newline-delimited lists of dictionary phrases. Structure is documented below.
    outputPath PreventionStoredInfoTypeLargeCustomDictionaryOutputPath
    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.
    bigQueryField PreventionStoredInfoTypeLargeCustomDictionaryBigQueryField
    Field in a BigQuery table where each cell represents a dictionary phrase. Structure is documented below.
    cloudStorageFileSet PreventionStoredInfoTypeLargeCustomDictionaryCloudStorageFileSet
    Set of files containing newline-delimited lists of dictionary phrases. Structure is documented below.
    output_path PreventionStoredInfoTypeLargeCustomDictionaryOutputPath
    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_field PreventionStoredInfoTypeLargeCustomDictionaryBigQueryField
    Field in a BigQuery table where each cell represents a dictionary phrase. Structure is documented below.
    cloud_storage_file_set PreventionStoredInfoTypeLargeCustomDictionaryCloudStorageFileSet
    Set of files containing newline-delimited lists of dictionary phrases. Structure is documented below.
    outputPath 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.
    bigQueryField Property Map
    Field in a BigQuery table where each cell represents a dictionary phrase. Structure is documented below.
    cloudStorageFileSet Property Map
    Set of files containing newline-delimited lists of dictionary phrases. Structure is documented below.

    PreventionStoredInfoTypeLargeCustomDictionaryBigQueryField, PreventionStoredInfoTypeLargeCustomDictionaryBigQueryFieldArgs

    Field PreventionStoredInfoTypeLargeCustomDictionaryBigQueryFieldField
    Designated field in the BigQuery table. Structure is documented below.
    Table PreventionStoredInfoTypeLargeCustomDictionaryBigQueryFieldTable
    Field in a BigQuery table where each cell represents a dictionary phrase. Structure is documented below.
    Field PreventionStoredInfoTypeLargeCustomDictionaryBigQueryFieldField
    Designated field in the BigQuery table. Structure is documented below.
    Table PreventionStoredInfoTypeLargeCustomDictionaryBigQueryFieldTable
    Field in a BigQuery table where each cell represents a dictionary phrase. Structure is documented below.
    field PreventionStoredInfoTypeLargeCustomDictionaryBigQueryFieldField
    Designated field in the BigQuery table. Structure is documented below.
    table PreventionStoredInfoTypeLargeCustomDictionaryBigQueryFieldTable
    Field in a BigQuery table where each cell represents a dictionary phrase. Structure is documented below.
    field PreventionStoredInfoTypeLargeCustomDictionaryBigQueryFieldField
    Designated field in the BigQuery table. Structure is documented below.
    table PreventionStoredInfoTypeLargeCustomDictionaryBigQueryFieldTable
    Field in a BigQuery table where each cell represents a dictionary phrase. Structure is documented below.
    field PreventionStoredInfoTypeLargeCustomDictionaryBigQueryFieldField
    Designated field in the BigQuery table. Structure is documented below.
    table PreventionStoredInfoTypeLargeCustomDictionaryBigQueryFieldTable
    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

    DatasetId string
    The dataset ID of the table.
    ProjectId string
    The Google Cloud Platform project ID of the project containing the table.
    TableId string
    The name of the table.
    DatasetId string
    The dataset ID of the table.
    ProjectId string
    The Google Cloud Platform project ID of the project containing the table.
    TableId string
    The name of the table.
    datasetId String
    The dataset ID of the table.
    projectId String
    The Google Cloud Platform project ID of the project containing the table.
    tableId String
    The name of the table.
    datasetId string
    The dataset ID of the table.
    projectId string
    The Google Cloud Platform project ID of the project containing the table.
    tableId string
    The name of the table.
    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.
    datasetId String
    The dataset ID of the table.
    projectId String
    The Google Cloud Platform project ID of the project containing the table.
    tableId String
    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.
    GroupIndexes List<int>
    The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
    Pattern string
    Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
    GroupIndexes []int
    The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
    pattern String
    Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
    groupIndexes List<Integer>
    The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
    pattern string
    Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
    groupIndexes number[]
    The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
    pattern str
    Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
    group_indexes Sequence[int]
    The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
    pattern String
    Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
    groupIndexes List<Number>
    The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.

    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.
    gcp logo
    Google Cloud Classic v8.3.1 published on Wednesday, Sep 25, 2024 by Pulumi