Google Data loss prevention Stored Info Type

This page shows how to write Terraform for Data loss prevention Stored Info Type and write them securely.

google_data_loss_prevention_stored_info_type (Terraform)

The Stored Info Type in Data loss prevention can be configured in Terraform with the resource name google_data_loss_prevention_stored_info_type. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Review your Terraform file for Google best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

A description of the info type.

User set display name of the info type.

  • id optional computed - string
  • name optional computed - string

The resource name of the info type. Set by the server.

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]]'

  • dictionary list block
    • cloud_storage_path list block

      A url representing a file or path (no wildcards) in Cloud Storage. Example: 'gs://[BUCKET_NAME]/dictionary.txt'

    • word_list list block
      • words required - list of 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.

  • large_custom_dictionary list block
    • big_query_field list block
      • field list block

        Name describing the field.

      • table list block

        The dataset ID of the table.

        The Google Cloud Platform project ID of the project containing the table.

        The name of the table.

    • cloud_storage_file_set list block
      • url required - string

      The url, in the format 'gs://<bucket>/<path>'. Trailing wildcard in the path is allowed.

    • output_path list block

      A url representing a file or path (no wildcards) in Cloud Storage. Example: 'gs://[BUCKET_NAME]/dictionary.txt'

  • regex list block

    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 defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.

  • timeouts single block

Explanation in Terraform Registry

Allows creation of custom info types. To get more information about StoredInfoType, see:

Frequently asked questions

What is Google Data loss prevention Stored Info Type?

Google Data loss prevention Stored Info Type is a resource for Data loss prevention of Google Cloud Platform. Settings can be wrote in Terraform.

security-icon

Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.