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.
Parameters
-
description
optional - string
A description of the info type.
-
display_name
optional - string
User set display name of the info type.
The resource name of the info type. Set by the server.
-
parent
required - 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]]'
-
dictionary
list block-
cloud_storage_path
list block-
path
required - string
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
required - string
Name describing the field.
-
-
table
list block-
dataset_id
required - string
The dataset ID of the table.
-
project_id
required - string
The Google Cloud Platform project ID of the project containing the table.
-
table_id
required - string
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-
path
required - string
A url representing a file or path (no wildcards) in Cloud Storage. Example: 'gs://[BUCKET_NAME]/dictionary.txt'
-
-
-
regex
list block-
group_indexes
optional - list of 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
required - 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.
-
-
timeouts
single block
Explanation in Terraform Registry
Allows creation of custom info types. To get more information about StoredInfoType, see:
- API documentation
- How-to Guides