1
1
import {
2
+ SENSITIVE_STRING ,
2
3
SmithyException as __SmithyException ,
3
4
isa as __isa
4
5
} from "@aws-sdk/smithy-client" ;
@@ -15,6 +16,12 @@ export interface ComplexError extends __SmithyException, $MetadataBearer {
15
16
}
16
17
17
18
export namespace ComplexError {
19
+ export const filterSensitiveLog = ( obj : ComplexError ) : any => ( {
20
+ ...obj ,
21
+ ...( obj . Nested && {
22
+ Nested : ComplexNestedErrorData . filterSensitiveLog ( obj . Nested )
23
+ } )
24
+ } ) ;
18
25
export const isa = ( o : any ) : o is ComplexError => __isa ( o , "ComplexError" ) ;
19
26
}
20
27
@@ -24,6 +31,9 @@ export interface ComplexNestedErrorData {
24
31
}
25
32
26
33
export namespace ComplexNestedErrorData {
34
+ export const filterSensitiveLog = ( obj : ComplexNestedErrorData ) : any => ( {
35
+ ...obj
36
+ } ) ;
27
37
export const isa = ( o : any ) : o is ComplexNestedErrorData =>
28
38
__isa ( o , "ComplexNestedErrorData" ) ;
29
39
}
@@ -33,6 +43,11 @@ export interface EmptyInputAndEmptyOutputInput {
33
43
}
34
44
35
45
export namespace EmptyInputAndEmptyOutputInput {
46
+ export const filterSensitiveLog = (
47
+ obj : EmptyInputAndEmptyOutputInput
48
+ ) : any => ( {
49
+ ...obj
50
+ } ) ;
36
51
export const isa = ( o : any ) : o is EmptyInputAndEmptyOutputInput =>
37
52
__isa ( o , "EmptyInputAndEmptyOutputInput" ) ;
38
53
}
@@ -42,6 +57,11 @@ export interface EmptyInputAndEmptyOutputOutput {
42
57
}
43
58
44
59
export namespace EmptyInputAndEmptyOutputOutput {
60
+ export const filterSensitiveLog = (
61
+ obj : EmptyInputAndEmptyOutputOutput
62
+ ) : any => ( {
63
+ ...obj
64
+ } ) ;
45
65
export const isa = ( o : any ) : o is EmptyInputAndEmptyOutputOutput =>
46
66
__isa ( o , "EmptyInputAndEmptyOutputOutput" ) ;
47
67
}
@@ -52,6 +72,9 @@ export interface GreetingWithErrorsOutput {
52
72
}
53
73
54
74
export namespace GreetingWithErrorsOutput {
75
+ export const filterSensitiveLog = ( obj : GreetingWithErrorsOutput ) : any => ( {
76
+ ...obj
77
+ } ) ;
55
78
export const isa = ( o : any ) : o is GreetingWithErrorsOutput =>
56
79
__isa ( o , "GreetingWithErrorsOutput" ) ;
57
80
}
@@ -62,6 +85,11 @@ export interface IgnoresWrappingXmlNameOutput {
62
85
}
63
86
64
87
export namespace IgnoresWrappingXmlNameOutput {
88
+ export const filterSensitiveLog = (
89
+ obj : IgnoresWrappingXmlNameOutput
90
+ ) : any => ( {
91
+ ...obj
92
+ } ) ;
65
93
export const isa = ( o : any ) : o is IgnoresWrappingXmlNameOutput =>
66
94
__isa ( o , "IgnoresWrappingXmlNameOutput" ) ;
67
95
}
@@ -76,6 +104,9 @@ export interface InvalidGreeting extends __SmithyException, $MetadataBearer {
76
104
}
77
105
78
106
export namespace InvalidGreeting {
107
+ export const filterSensitiveLog = ( obj : InvalidGreeting ) : any => ( {
108
+ ...obj
109
+ } ) ;
79
110
export const isa = ( o : any ) : o is InvalidGreeting =>
80
111
__isa ( o , "InvalidGreeting" ) ;
81
112
}
@@ -86,6 +117,10 @@ export interface NestedStructuresInput {
86
117
}
87
118
88
119
export namespace NestedStructuresInput {
120
+ export const filterSensitiveLog = ( obj : NestedStructuresInput ) : any => ( {
121
+ ...obj ,
122
+ ...( obj . Nested && { Nested : StructArg . filterSensitiveLog ( obj . Nested ) } )
123
+ } ) ;
89
124
export const isa = ( o : any ) : o is NestedStructuresInput =>
90
125
__isa ( o , "NestedStructuresInput" ) ;
91
126
}
@@ -95,6 +130,9 @@ export interface NoInputAndOutputOutput {
95
130
}
96
131
97
132
export namespace NoInputAndOutputOutput {
133
+ export const filterSensitiveLog = ( obj : NoInputAndOutputOutput ) : any => ( {
134
+ ...obj
135
+ } ) ;
98
136
export const isa = ( o : any ) : o is NoInputAndOutputOutput =>
99
137
__isa ( o , "NoInputAndOutputOutput" ) ;
100
138
}
@@ -105,6 +143,11 @@ export interface QueryIdempotencyTokenAutoFillInput {
105
143
}
106
144
107
145
export namespace QueryIdempotencyTokenAutoFillInput {
146
+ export const filterSensitiveLog = (
147
+ obj : QueryIdempotencyTokenAutoFillInput
148
+ ) : any => ( {
149
+ ...obj
150
+ } ) ;
108
151
export const isa = ( o : any ) : o is QueryIdempotencyTokenAutoFillInput =>
109
152
__isa ( o , "QueryIdempotencyTokenAutoFillInput" ) ;
110
153
}
@@ -118,6 +161,12 @@ export interface QueryListsInput {
118
161
}
119
162
120
163
export namespace QueryListsInput {
164
+ export const filterSensitiveLog = ( obj : QueryListsInput ) : any => ( {
165
+ ...obj ,
166
+ ...( obj . ComplexListArg && {
167
+ ComplexListArg : obj . ComplexListArg . map ( GreetingStruct . filterSensitiveLog )
168
+ } )
169
+ } ) ;
121
170
export const isa = ( o : any ) : o is QueryListsInput =>
122
171
__isa ( o , "QueryListsInput" ) ;
123
172
}
@@ -130,6 +179,9 @@ export interface QueryTimestampsInput {
130
179
}
131
180
132
181
export namespace QueryTimestampsInput {
182
+ export const filterSensitiveLog = ( obj : QueryTimestampsInput ) : any => ( {
183
+ ...obj
184
+ } ) ;
133
185
export const isa = ( o : any ) : o is QueryTimestampsInput =>
134
186
__isa ( o , "QueryTimestampsInput" ) ;
135
187
}
@@ -140,6 +192,12 @@ export interface RecursiveXmlShapesOutput {
140
192
}
141
193
142
194
export namespace RecursiveXmlShapesOutput {
195
+ export const filterSensitiveLog = ( obj : RecursiveXmlShapesOutput ) : any => ( {
196
+ ...obj ,
197
+ ...( obj . nested && {
198
+ nested : RecursiveXmlShapesOutputNested1 . filterSensitiveLog ( obj . nested )
199
+ } )
200
+ } ) ;
143
201
export const isa = ( o : any ) : o is RecursiveXmlShapesOutput =>
144
202
__isa ( o , "RecursiveXmlShapesOutput" ) ;
145
203
}
@@ -151,6 +209,14 @@ export interface RecursiveXmlShapesOutputNested1 {
151
209
}
152
210
153
211
export namespace RecursiveXmlShapesOutputNested1 {
212
+ export const filterSensitiveLog = (
213
+ obj : RecursiveXmlShapesOutputNested1
214
+ ) : any => ( {
215
+ ...obj ,
216
+ ...( obj . nested && {
217
+ nested : RecursiveXmlShapesOutputNested2 . filterSensitiveLog ( obj . nested )
218
+ } )
219
+ } ) ;
154
220
export const isa = ( o : any ) : o is RecursiveXmlShapesOutputNested1 =>
155
221
__isa ( o , "RecursiveXmlShapesOutputNested1" ) ;
156
222
}
@@ -162,6 +228,16 @@ export interface RecursiveXmlShapesOutputNested2 {
162
228
}
163
229
164
230
export namespace RecursiveXmlShapesOutputNested2 {
231
+ export const filterSensitiveLog = (
232
+ obj : RecursiveXmlShapesOutputNested2
233
+ ) : any => ( {
234
+ ...obj ,
235
+ ...( obj . recursiveMember && {
236
+ recursiveMember : RecursiveXmlShapesOutputNested1 . filterSensitiveLog (
237
+ obj . recursiveMember
238
+ )
239
+ } )
240
+ } ) ;
165
241
export const isa = ( o : any ) : o is RecursiveXmlShapesOutputNested2 =>
166
242
__isa ( o , "RecursiveXmlShapesOutputNested2" ) ;
167
243
}
@@ -181,6 +257,9 @@ export interface SimpleInputParamsInput {
181
257
}
182
258
183
259
export namespace SimpleInputParamsInput {
260
+ export const filterSensitiveLog = ( obj : SimpleInputParamsInput ) : any => ( {
261
+ ...obj
262
+ } ) ;
184
263
export const isa = ( o : any ) : o is SimpleInputParamsInput =>
185
264
__isa ( o , "SimpleInputParamsInput" ) ;
186
265
}
@@ -200,6 +279,11 @@ export interface SimpleScalarXmlPropertiesOutput {
200
279
}
201
280
202
281
export namespace SimpleScalarXmlPropertiesOutput {
282
+ export const filterSensitiveLog = (
283
+ obj : SimpleScalarXmlPropertiesOutput
284
+ ) : any => ( {
285
+ ...obj
286
+ } ) ;
203
287
export const isa = ( o : any ) : o is SimpleScalarXmlPropertiesOutput =>
204
288
__isa ( o , "SimpleScalarXmlPropertiesOutput" ) ;
205
289
}
@@ -212,6 +296,12 @@ export interface StructArg {
212
296
}
213
297
214
298
export namespace StructArg {
299
+ export const filterSensitiveLog = ( obj : StructArg ) : any => ( {
300
+ ...obj ,
301
+ ...( obj . RecursiveArg && {
302
+ RecursiveArg : StructArg . filterSensitiveLog ( obj . RecursiveArg )
303
+ } )
304
+ } ) ;
215
305
export const isa = ( o : any ) : o is StructArg => __isa ( o , "StructArg" ) ;
216
306
}
217
307
@@ -222,6 +312,9 @@ export interface StructureListMember {
222
312
}
223
313
224
314
export namespace StructureListMember {
315
+ export const filterSensitiveLog = ( obj : StructureListMember ) : any => ( {
316
+ ...obj
317
+ } ) ;
225
318
export const isa = ( o : any ) : o is StructureListMember =>
226
319
__isa ( o , "StructureListMember" ) ;
227
320
}
@@ -232,6 +325,9 @@ export interface XmlBlobsOutput {
232
325
}
233
326
234
327
export namespace XmlBlobsOutput {
328
+ export const filterSensitiveLog = ( obj : XmlBlobsOutput ) : any => ( {
329
+ ...obj
330
+ } ) ;
235
331
export const isa = ( o : any ) : o is XmlBlobsOutput =>
236
332
__isa ( o , "XmlBlobsOutput" ) ;
237
333
}
@@ -247,6 +343,9 @@ export interface XmlEnumsOutput {
247
343
}
248
344
249
345
export namespace XmlEnumsOutput {
346
+ export const filterSensitiveLog = ( obj : XmlEnumsOutput ) : any => ( {
347
+ ...obj
348
+ } ) ;
250
349
export const isa = ( o : any ) : o is XmlEnumsOutput =>
251
350
__isa ( o , "XmlEnumsOutput" ) ;
252
351
}
@@ -271,6 +370,14 @@ export interface XmlListsOutput {
271
370
}
272
371
273
372
export namespace XmlListsOutput {
373
+ export const filterSensitiveLog = ( obj : XmlListsOutput ) : any => ( {
374
+ ...obj ,
375
+ ...( obj . structureList && {
376
+ structureList : obj . structureList . map (
377
+ StructureListMember . filterSensitiveLog
378
+ )
379
+ } )
380
+ } ) ;
274
381
export const isa = ( o : any ) : o is XmlListsOutput =>
275
382
__isa ( o , "XmlListsOutput" ) ;
276
383
}
@@ -282,6 +389,9 @@ export interface XmlNamespaceNested {
282
389
}
283
390
284
391
export namespace XmlNamespaceNested {
392
+ export const filterSensitiveLog = ( obj : XmlNamespaceNested ) : any => ( {
393
+ ...obj
394
+ } ) ;
285
395
export const isa = ( o : any ) : o is XmlNamespaceNested =>
286
396
__isa ( o , "XmlNamespaceNested" ) ;
287
397
}
@@ -292,6 +402,12 @@ export interface XmlNamespacesOutput {
292
402
}
293
403
294
404
export namespace XmlNamespacesOutput {
405
+ export const filterSensitiveLog = ( obj : XmlNamespacesOutput ) : any => ( {
406
+ ...obj ,
407
+ ...( obj . nested && {
408
+ nested : XmlNamespaceNested . filterSensitiveLog ( obj . nested )
409
+ } )
410
+ } ) ;
295
411
export const isa = ( o : any ) : o is XmlNamespacesOutput =>
296
412
__isa ( o , "XmlNamespacesOutput" ) ;
297
413
}
@@ -305,6 +421,9 @@ export interface XmlTimestampsOutput {
305
421
}
306
422
307
423
export namespace XmlTimestampsOutput {
424
+ export const filterSensitiveLog = ( obj : XmlTimestampsOutput ) : any => ( {
425
+ ...obj
426
+ } ) ;
308
427
export const isa = ( o : any ) : o is XmlTimestampsOutput =>
309
428
__isa ( o , "XmlTimestampsOutput" ) ;
310
429
}
@@ -317,6 +436,9 @@ export interface GreetingStruct {
317
436
}
318
437
319
438
export namespace GreetingStruct {
439
+ export const filterSensitiveLog = ( obj : GreetingStruct ) : any => ( {
440
+ ...obj
441
+ } ) ;
320
442
export const isa = ( o : any ) : o is GreetingStruct =>
321
443
__isa ( o , "GreetingStruct" ) ;
322
444
}
0 commit comments