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
-
descriptionoptional - string
A description of the info type.
-
display_nameoptional - string
User set display name of the info type.
The resource name of the info type. Set by the server.
-
parentrequired - 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]]'
-
dictionarylist block-
cloud_storage_pathlist block-
pathrequired - string
A url representing a file or path (no wildcards) in Cloud Storage. Example: 'gs://[BUCKET_NAME]/dictionary.txt'
-
-
word_listlist block-
wordsrequired - 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_dictionarylist block-
big_query_fieldlist block-
fieldlist block-
namerequired - string
Name describing the field.
-
-
tablelist block-
dataset_idrequired - string
The dataset ID of the table.
-
project_idrequired - string
The Google Cloud Platform project ID of the project containing the table.
-
table_idrequired - string
The name of the table.
-
-
-
cloud_storage_file_setlist block-
urlrequired - string
The url, in the format 'gs://<bucket>/<path>'. Trailing wildcard in the path is allowed.
-
-
output_pathlist block-
pathrequired - string
A url representing a file or path (no wildcards) in Cloud Storage. Example: 'gs://[BUCKET_NAME]/dictionary.txt'
-
-
-
regexlist block-
group_indexesoptional - 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.
-
patternrequired - 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.
-
-
timeoutssingle block
Explanation in Terraform Registry
Allows creation of custom info types. To get more information about StoredInfoType, see:
- API documentation
- How-to Guides