Skip to content

Commit 117cc8e

Browse files
committed
chore: update protocol_tests
1 parent ef6e2ca commit 117cc8e

File tree

5 files changed

+760
-0
lines changed

5 files changed

+760
-0
lines changed

protocol_tests/aws-ec2/models/index.ts

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {
2+
SENSITIVE_STRING,
23
SmithyException as __SmithyException,
34
isa as __isa
45
} from "@aws-sdk/smithy-client";
@@ -15,6 +16,12 @@ export interface ComplexError extends __SmithyException, $MetadataBearer {
1516
}
1617

1718
export namespace ComplexError {
19+
export const filterSensitiveLog = (obj: ComplexError): any => ({
20+
...obj,
21+
...(obj.Nested && {
22+
Nested: ComplexNestedErrorData.filterSensitiveLog(obj.Nested)
23+
})
24+
});
1825
export const isa = (o: any): o is ComplexError => __isa(o, "ComplexError");
1926
}
2027

@@ -24,6 +31,9 @@ export interface ComplexNestedErrorData {
2431
}
2532

2633
export namespace ComplexNestedErrorData {
34+
export const filterSensitiveLog = (obj: ComplexNestedErrorData): any => ({
35+
...obj
36+
});
2737
export const isa = (o: any): o is ComplexNestedErrorData =>
2838
__isa(o, "ComplexNestedErrorData");
2939
}
@@ -33,6 +43,11 @@ export interface EmptyInputAndEmptyOutputInput {
3343
}
3444

3545
export namespace EmptyInputAndEmptyOutputInput {
46+
export const filterSensitiveLog = (
47+
obj: EmptyInputAndEmptyOutputInput
48+
): any => ({
49+
...obj
50+
});
3651
export const isa = (o: any): o is EmptyInputAndEmptyOutputInput =>
3752
__isa(o, "EmptyInputAndEmptyOutputInput");
3853
}
@@ -42,6 +57,11 @@ export interface EmptyInputAndEmptyOutputOutput {
4257
}
4358

4459
export namespace EmptyInputAndEmptyOutputOutput {
60+
export const filterSensitiveLog = (
61+
obj: EmptyInputAndEmptyOutputOutput
62+
): any => ({
63+
...obj
64+
});
4565
export const isa = (o: any): o is EmptyInputAndEmptyOutputOutput =>
4666
__isa(o, "EmptyInputAndEmptyOutputOutput");
4767
}
@@ -52,6 +72,9 @@ export interface GreetingWithErrorsOutput {
5272
}
5373

5474
export namespace GreetingWithErrorsOutput {
75+
export const filterSensitiveLog = (obj: GreetingWithErrorsOutput): any => ({
76+
...obj
77+
});
5578
export const isa = (o: any): o is GreetingWithErrorsOutput =>
5679
__isa(o, "GreetingWithErrorsOutput");
5780
}
@@ -62,6 +85,11 @@ export interface IgnoresWrappingXmlNameOutput {
6285
}
6386

6487
export namespace IgnoresWrappingXmlNameOutput {
88+
export const filterSensitiveLog = (
89+
obj: IgnoresWrappingXmlNameOutput
90+
): any => ({
91+
...obj
92+
});
6593
export const isa = (o: any): o is IgnoresWrappingXmlNameOutput =>
6694
__isa(o, "IgnoresWrappingXmlNameOutput");
6795
}
@@ -76,6 +104,9 @@ export interface InvalidGreeting extends __SmithyException, $MetadataBearer {
76104
}
77105

78106
export namespace InvalidGreeting {
107+
export const filterSensitiveLog = (obj: InvalidGreeting): any => ({
108+
...obj
109+
});
79110
export const isa = (o: any): o is InvalidGreeting =>
80111
__isa(o, "InvalidGreeting");
81112
}
@@ -86,6 +117,10 @@ export interface NestedStructuresInput {
86117
}
87118

88119
export namespace NestedStructuresInput {
120+
export const filterSensitiveLog = (obj: NestedStructuresInput): any => ({
121+
...obj,
122+
...(obj.Nested && { Nested: StructArg.filterSensitiveLog(obj.Nested) })
123+
});
89124
export const isa = (o: any): o is NestedStructuresInput =>
90125
__isa(o, "NestedStructuresInput");
91126
}
@@ -95,6 +130,9 @@ export interface NoInputAndOutputOutput {
95130
}
96131

97132
export namespace NoInputAndOutputOutput {
133+
export const filterSensitiveLog = (obj: NoInputAndOutputOutput): any => ({
134+
...obj
135+
});
98136
export const isa = (o: any): o is NoInputAndOutputOutput =>
99137
__isa(o, "NoInputAndOutputOutput");
100138
}
@@ -105,6 +143,11 @@ export interface QueryIdempotencyTokenAutoFillInput {
105143
}
106144

107145
export namespace QueryIdempotencyTokenAutoFillInput {
146+
export const filterSensitiveLog = (
147+
obj: QueryIdempotencyTokenAutoFillInput
148+
): any => ({
149+
...obj
150+
});
108151
export const isa = (o: any): o is QueryIdempotencyTokenAutoFillInput =>
109152
__isa(o, "QueryIdempotencyTokenAutoFillInput");
110153
}
@@ -118,6 +161,12 @@ export interface QueryListsInput {
118161
}
119162

120163
export namespace QueryListsInput {
164+
export const filterSensitiveLog = (obj: QueryListsInput): any => ({
165+
...obj,
166+
...(obj.ComplexListArg && {
167+
ComplexListArg: obj.ComplexListArg.map(GreetingStruct.filterSensitiveLog)
168+
})
169+
});
121170
export const isa = (o: any): o is QueryListsInput =>
122171
__isa(o, "QueryListsInput");
123172
}
@@ -130,6 +179,9 @@ export interface QueryTimestampsInput {
130179
}
131180

132181
export namespace QueryTimestampsInput {
182+
export const filterSensitiveLog = (obj: QueryTimestampsInput): any => ({
183+
...obj
184+
});
133185
export const isa = (o: any): o is QueryTimestampsInput =>
134186
__isa(o, "QueryTimestampsInput");
135187
}
@@ -140,6 +192,12 @@ export interface RecursiveXmlShapesOutput {
140192
}
141193

142194
export namespace RecursiveXmlShapesOutput {
195+
export const filterSensitiveLog = (obj: RecursiveXmlShapesOutput): any => ({
196+
...obj,
197+
...(obj.nested && {
198+
nested: RecursiveXmlShapesOutputNested1.filterSensitiveLog(obj.nested)
199+
})
200+
});
143201
export const isa = (o: any): o is RecursiveXmlShapesOutput =>
144202
__isa(o, "RecursiveXmlShapesOutput");
145203
}
@@ -151,6 +209,14 @@ export interface RecursiveXmlShapesOutputNested1 {
151209
}
152210

153211
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+
});
154220
export const isa = (o: any): o is RecursiveXmlShapesOutputNested1 =>
155221
__isa(o, "RecursiveXmlShapesOutputNested1");
156222
}
@@ -162,6 +228,16 @@ export interface RecursiveXmlShapesOutputNested2 {
162228
}
163229

164230
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+
});
165241
export const isa = (o: any): o is RecursiveXmlShapesOutputNested2 =>
166242
__isa(o, "RecursiveXmlShapesOutputNested2");
167243
}
@@ -181,6 +257,9 @@ export interface SimpleInputParamsInput {
181257
}
182258

183259
export namespace SimpleInputParamsInput {
260+
export const filterSensitiveLog = (obj: SimpleInputParamsInput): any => ({
261+
...obj
262+
});
184263
export const isa = (o: any): o is SimpleInputParamsInput =>
185264
__isa(o, "SimpleInputParamsInput");
186265
}
@@ -200,6 +279,11 @@ export interface SimpleScalarXmlPropertiesOutput {
200279
}
201280

202281
export namespace SimpleScalarXmlPropertiesOutput {
282+
export const filterSensitiveLog = (
283+
obj: SimpleScalarXmlPropertiesOutput
284+
): any => ({
285+
...obj
286+
});
203287
export const isa = (o: any): o is SimpleScalarXmlPropertiesOutput =>
204288
__isa(o, "SimpleScalarXmlPropertiesOutput");
205289
}
@@ -212,6 +296,12 @@ export interface StructArg {
212296
}
213297

214298
export namespace StructArg {
299+
export const filterSensitiveLog = (obj: StructArg): any => ({
300+
...obj,
301+
...(obj.RecursiveArg && {
302+
RecursiveArg: StructArg.filterSensitiveLog(obj.RecursiveArg)
303+
})
304+
});
215305
export const isa = (o: any): o is StructArg => __isa(o, "StructArg");
216306
}
217307

@@ -222,6 +312,9 @@ export interface StructureListMember {
222312
}
223313

224314
export namespace StructureListMember {
315+
export const filterSensitiveLog = (obj: StructureListMember): any => ({
316+
...obj
317+
});
225318
export const isa = (o: any): o is StructureListMember =>
226319
__isa(o, "StructureListMember");
227320
}
@@ -232,6 +325,9 @@ export interface XmlBlobsOutput {
232325
}
233326

234327
export namespace XmlBlobsOutput {
328+
export const filterSensitiveLog = (obj: XmlBlobsOutput): any => ({
329+
...obj
330+
});
235331
export const isa = (o: any): o is XmlBlobsOutput =>
236332
__isa(o, "XmlBlobsOutput");
237333
}
@@ -247,6 +343,9 @@ export interface XmlEnumsOutput {
247343
}
248344

249345
export namespace XmlEnumsOutput {
346+
export const filterSensitiveLog = (obj: XmlEnumsOutput): any => ({
347+
...obj
348+
});
250349
export const isa = (o: any): o is XmlEnumsOutput =>
251350
__isa(o, "XmlEnumsOutput");
252351
}
@@ -271,6 +370,14 @@ export interface XmlListsOutput {
271370
}
272371

273372
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+
});
274381
export const isa = (o: any): o is XmlListsOutput =>
275382
__isa(o, "XmlListsOutput");
276383
}
@@ -282,6 +389,9 @@ export interface XmlNamespaceNested {
282389
}
283390

284391
export namespace XmlNamespaceNested {
392+
export const filterSensitiveLog = (obj: XmlNamespaceNested): any => ({
393+
...obj
394+
});
285395
export const isa = (o: any): o is XmlNamespaceNested =>
286396
__isa(o, "XmlNamespaceNested");
287397
}
@@ -292,6 +402,12 @@ export interface XmlNamespacesOutput {
292402
}
293403

294404
export namespace XmlNamespacesOutput {
405+
export const filterSensitiveLog = (obj: XmlNamespacesOutput): any => ({
406+
...obj,
407+
...(obj.nested && {
408+
nested: XmlNamespaceNested.filterSensitiveLog(obj.nested)
409+
})
410+
});
295411
export const isa = (o: any): o is XmlNamespacesOutput =>
296412
__isa(o, "XmlNamespacesOutput");
297413
}
@@ -305,6 +421,9 @@ export interface XmlTimestampsOutput {
305421
}
306422

307423
export namespace XmlTimestampsOutput {
424+
export const filterSensitiveLog = (obj: XmlTimestampsOutput): any => ({
425+
...obj
426+
});
308427
export const isa = (o: any): o is XmlTimestampsOutput =>
309428
__isa(o, "XmlTimestampsOutput");
310429
}
@@ -317,6 +436,9 @@ export interface GreetingStruct {
317436
}
318437

319438
export namespace GreetingStruct {
439+
export const filterSensitiveLog = (obj: GreetingStruct): any => ({
440+
...obj
441+
});
320442
export const isa = (o: any): o is GreetingStruct =>
321443
__isa(o, "GreetingStruct");
322444
}

0 commit comments

Comments
 (0)