Google Data loss prevention Deidentify Template
This page shows how to write Terraform for Data loss prevention Deidentify Template and write them securely.
google_data_loss_prevention_deidentify_template (Terraform)
The Deidentify Template in Data loss prevention can be configured in Terraform with the resource name google_data_loss_prevention_deidentify_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 template.
-
display_nameoptional - string
User set display name of the template.
The resource name of the template. Set by the server.
-
parentrequired - string
The parent of the template in any of the following formats: 'projects/[[project]]' 'projects/[[project]]/locations/[[location]]' 'organizations/[[organization_id]]' 'organizations/[[organization_id]]/locations/[[location]]'
-
deidentify_configlist block-
info_type_transformationslist block-
transformationslist block-
info_typeslist block-
namerequired - string
Name of the information type.
-
-
primitive_transformationlist block-
character_mask_configlist block-
masking_characteroptional - string
Character to use to mask the sensitive values—for example, for an alphabetic string such as a name, or 0 for a numeric string such as ZIP code or credit card number. This string must have a length of 1. If not supplied, this value defaults to for strings, and 0 for digits.
-
number_to_maskoptional - number
Number of characters to mask. If not set, all matching chars will be masked. Skipped characters do not count towards this tally.
-
reverse_orderoptional - bool
Mask characters in reverse order. For example, if masking_character is 0, number_to_mask is 14, and reverse_order is 'false', then the input string '1234-5678-9012-3456' is masked as '00000000000000-3456'.
-
characters_to_ignorelist block-
character_to_skipoptional - string
Characters to not transform when masking.
-
common_characters_to_ignoreoptional - string
Common characters to not transform when masking. Useful to avoid removing punctuation. Possible values: ["NUMERIC", "ALPHA_UPPER_CASE", "ALPHA_LOWER_CASE", "PUNCTUATION", "WHITESPACE"]
-
-
-
replace_configlist block-
new_valuelist block-
boolean_valueoptional - bool
A boolean value.
-
day_of_week_valueoptional - string
Represents a day of the week. Possible values: ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"]
-
float_valueoptional - number
A float value.
-
integer_valueoptional - number
An integer value.
-
string_valueoptional - string
A string value.
-
timestamp_valueoptional - string
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
-
date_valuelist block-
dayoptional - number
Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a year by itself or a year and month where the day is not significant.
-
monthoptional - number
Month of year. Must be from 1 to 12, or 0 if specifying a year without a month and day.
-
yearoptional - number
Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
-
-
time_valuelist block-
hoursoptional - number
Hours of day in 24 hour format. Should be from 0 to 23.
-
minutesoptional - number
Minutes of hour of day. Must be from 0 to 59.
-
nanosoptional - number
Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
-
secondsoptional - number
Seconds of minutes of the time. Must normally be from 0 to 59.
-
-
-
-
-
-
-
-
timeoutssingle block
Explanation in Terraform Registry
Allows creation of templates to de-identify content. To get more information about DeidentifyTemplate, see:
- API documentation
- How-to Guides