Google Data loss prevention Inspect Template
This page shows how to write Terraform for Data loss prevention Inspect Template and write them securely.
google_data_loss_prevention_inspect_template (Terraform)
The Inspect Template in Data loss prevention can be configured in Terraform with the resource name google_data_loss_prevention_inspect_template. 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 inspect template.
-
display_nameoptional - string
User set display name of the inspect template.
The resource name of the inspect template. Set by the server.
-
parentrequired - string
The parent of the inspect template in any of the following formats: 'projects/[[project]]' 'projects/[[project]]/locations/[[location]]' 'organizations/[[organization_id]]' 'organizations/[[organization_id]]/locations/[[location]]'
-
inspect_configlist block-
content_optionsoptional - list of string
List of options defining data content to scan. If empty, text, images, and other content will be included. Possible values: ["CONTENT_TEXT", "CONTENT_IMAGE"]
-
exclude_info_typesoptional - bool
When true, excludes type information of the findings.
-
include_quoteoptional - bool
When true, a contextual quote from the data that triggered a finding is included in the response.
-
min_likelihoodoptional - string
Only returns findings equal or above this threshold. See https://cloud.google.com/dlp/docs/likelihood for more info Default value: "POSSIBLE" Possible values: ["VERY_UNLIKELY", "UNLIKELY", "POSSIBLE", "LIKELY", "VERY_LIKELY"]
-
custom_info_typeslist block-
exclusion_typeoptional - string
If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned. It still can be used for rules matching. Possible values: ["EXCLUSION_TYPE_EXCLUDE"]
-
likelihoodoptional - string
Likelihood to return for this CustomInfoType. This base value can be altered by a detection rule if the finding meets the criteria specified by the rule. Default value: "VERY_LIKELY" Possible values: ["VERY_UNLIKELY", "UNLIKELY", "POSSIBLE", "LIKELY", "VERY_LIKELY"]
-
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.
-
-
-
info_typelist block-
namerequired - string
Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
-
-
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.
-
-
stored_typelist block-
namerequired - string
Resource name of the requested StoredInfoType, for example 'organizations/433245324/storedInfoTypes/432452342' or 'projects/project-id/storedInfoTypes/432452342'.
-
-
-
info_typeslist block-
namerequired - string
Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
-
-
limitslist block-
max_findings_per_itemrequired - number
Max number of findings that will be returned for each item scanned. The maximum returned is 2000.
-
max_findings_per_requestrequired - number
Max number of findings that will be returned per request/job. The maximum returned is 2000.
-
max_findings_per_info_typelist block-
max_findingsrequired - number
Max findings limit for the given infoType.
-
info_typelist block-
namerequired - string
Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
-
-
-
-
rule_setlist block-
info_typeslist block-
namerequired - string
Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
-
-
ruleslist block-
exclusion_rulelist block-
matching_typerequired - string
How the rule is applied. See the documentation for more information: https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#MatchingType Possible values: ["MATCHING_TYPE_FULL_MATCH", "MATCHING_TYPE_PARTIAL_MATCH", "MATCHING_TYPE_INVERSE_MATCH"]
-
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.
-
-
-
exclude_info_typeslist block-
info_typeslist block-
namerequired - string
Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.
-
-
-
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.
-
-
-
hotword_rulelist block-
hotword_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.
-
-
likelihood_adjustmentlist block-
fixed_likelihoodoptional - string
Set the likelihood of a finding to a fixed value. Either this or relative_likelihood can be set. Possible values: ["VERY_UNLIKELY", "UNLIKELY", "POSSIBLE", "LIKELY", "VERY_LIKELY"]
-
relative_likelihoodoptional - number
Increase or decrease the likelihood by the specified number of levels. For example, if a finding would be POSSIBLE without the detection rule and relativeLikelihood is 1, then it is upgraded to LIKELY, while a value of -1 would downgrade it to UNLIKELY. Likelihood may never drop below VERY_UNLIKELY or exceed VERY_LIKELY, so applying an adjustment of 1 followed by an adjustment of -1 when base likelihood is VERY_LIKELY will result in a final likelihood of LIKELY. Either this or fixed_likelihood can be set.
-
-
proximitylist block-
window_afteroptional - number
Number of characters after the finding to consider. Either this or window_before must be specified
-
window_beforeoptional - number
Number of characters before the finding to consider. Either this or window_after must be specified
-
-
-
-
-
-
timeoutssingle block
Explanation in Terraform Registry
An inspect job template. To get more information about InspectTemplate, see:
- API documentation
- How-to Guides