...
1label: Config Connector DLPDeidentifyTemplate
2markdownDescription: Creates yaml for a DLPDeidentifyTemplate resource
3insertText: |
4 apiVersion: dlp.cnrm.cloud.google.com/v1beta1
5 kind: DLPDeidentifyTemplate
6 metadata:
7 name: \${1:dlpdeidentifytemplate-name}
8 spec:
9 projectRef:
10 external: \${2:projects/[PROJECT_ID?]}
11 displayName: \${3:sample-template}
12 description: \${4:A sample deidentify template}
13 deidentifyConfig:
14 infoTypeTransformations:
15 transformations:
16 - infoTypes:
17 - name: \${5:PHONE_NUMBER}
18 - name: \${6:AGE}
19 primitiveTransformation:
20 replaceConfig:
21 newValue:
22 integerValue: \${7:9}
23 - infoTypes:
24 - name: \${8:SALARY}
25 primitiveTransformation:
26 replaceConfig:
27 newValue:
28 floatValue: \${9:192168.01}
29 - infoTypes:
30 - name: \${10:HOME_PAGE}
31 primitiveTransformation:
32 replaceConfig:
33 newValue:
34 stringValue: \${11:https://www.example.com/}
35 - infoTypes:
36 - name: \${12:RETIRED}
37 primitiveTransformation:
38 replaceConfig:
39 newValue:
40 booleanValue: \${13:true}
41 - infoTypes:
42 - name: \${14:LAST_LOGIN}
43 primitiveTransformation:
44 replaceConfig:
45 newValue:
46 timestampValue: \${15:2014-10-02T15:01:23Z}
47 - infoTypes:
48 - name: \${16:START_TIME}
49 primitiveTransformation:
50 replaceConfig:
51 newValue:
52 timeValue:
53 hours: \${17:9}
54 minutes: \${18:30}
55 seconds: \${19:0}
56 nanos: \${20:0}
57 - infoTypes:
58 - name: \${21:DATE_OF_BIRTH}
59 primitiveTransformation:
60 replaceConfig:
61 newValue:
62 dateValue:
63 year: \${22:2020}
64 month: \${23:1}
65 day: \${24:1}
66 - infoTypes:
67 - name: \${25:PAYDAY}
68 primitiveTransformation:
69 replaceConfig:
70 newValue:
71 dayOfWeekValue: \${26:FRIDAY}
72 - infoTypes:
73 - name: \${27:HEIGHT}
74 primitiveTransformation:
75 redactConfig: {}
76 - infoTypes:
77 - name: \${28:EMAIL_ADDRESS}
78 - name: \${29:LAST_NAME}
79 primitiveTransformation:
80 characterMaskConfig:
81 maskingCharacter: \${30:X}
82 numberToMask: \${31:4}
83 reverseOrder: \${32:true}
84 charactersToIgnore:
85 - charactersToSkip: \${33:#}
86 - commonCharactersToIgnore: \${34:PUNCTUATION}
87 - infoTypes:
88 - name: \${35:HOME_ADDRESS}
89 primitiveTransformation:
90 cryptoReplaceFfxFpeConfig:
91 context:
92 name: \${36:sometweak}
93 cryptoKey:
94 transient:
95 name: \${37:beep}
96 surrogateInfoType:
97 name: \${38:abc}
98 commonAlphabet: \${39:NUMERIC}
99 - infoTypes:
100 - name: \${40:BANK_ACCOUNT_NUMBER}
101 primitiveTransformation:
102 cryptoReplaceFfxFpeConfig:
103 cryptoKey:
104 unwrapped:
105 key: \${41:vJZQm1FyV4BdF99nlcUYNA==}
106 customAlphabet: \${42:~`!@#%^&*()_-+=[[]]|:;"'<,>.?/}
107 - infoTypes:
108 - name: \${43:BILLING_ADDRESS}
109 primitiveTransformation:
110 cryptoReplaceFfxFpeConfig:
111 cryptoKey:
112 kmsWrapped:
113 wrappedKey: \${44:vJZQm1FyV4BdF99nlcUYNA==}
114 cryptoKeyRef:
115 name: \${45:dlpdeidentifytemplate-dep-infotypedeidentifytemplate}
116 radix: \${46:4}
117 - infoTypes:
118 - name: \${47:FIRST_NAME}
119 primitiveTransformation:
120 fixedSizeBucketingConfig:
121 lowerBound:
122 integerValue: \${48:7}
123 upperBound:
124 integerValue: \${49:9}
125 bucketSize: \${50:2.5}
126 - infoTypes:
127 - name: \${51:MIDDLE_NAME}
128 primitiveTransformation:
129 bucketingConfig:
130 buckets:
131 - min:
132 integerValue: \${52:7}
133 max:
134 integerValue: \${53:9}
135 replacementValue:
136 integerValue: \${54:6}
137 - infoTypes:
138 - name: \${55:EYE_COLOR}
139 primitiveTransformation:
140 replaceWithInfoTypeConfig: {}
141 - infoTypes:
142 - name: \${56:START_DATE}
143 primitiveTransformation:
144 timePartConfig:
145 partToExtract: \${57:YEAR}
146 - infoTypes:
147 - name: \${58:CREDIT_CARD_NUMBER}
148 primitiveTransformation:
149 cryptoDeterministicConfig:
150 context:
151 name: \${59:sometweak}
152 cryptoKey:
153 transient:
154 name: \${60:beep}
155 surrogateInfoType:
156 name: \${61:abc}
157 - infoTypes:
158 - name: \${62:LAST_VACATION}
159 primitiveTransformation:
160 dateShiftConfig:
161 upperBoundDays: \${63:3}
162 lowerBoundDays: \${64:2}
163 context:
164 name: \${65:def}
165 cryptoKey:
166 transient:
167 name: \${66:beep}
View as plain text