@aws-sdk/client-rtbfabric 3.928.0 → 3.930.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist-cjs/index.js +1115 -1450
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/RTBFabricClient.js +2 -0
  4. package/dist-es/commands/AcceptLinkCommand.js +3 -9
  5. package/dist-es/commands/CreateInboundExternalLinkCommand.js +3 -9
  6. package/dist-es/commands/CreateLinkCommand.js +3 -9
  7. package/dist-es/commands/CreateOutboundExternalLinkCommand.js +3 -9
  8. package/dist-es/commands/CreateRequesterGatewayCommand.js +3 -9
  9. package/dist-es/commands/CreateResponderGatewayCommand.js +3 -10
  10. package/dist-es/commands/DeleteInboundExternalLinkCommand.js +3 -9
  11. package/dist-es/commands/DeleteLinkCommand.js +3 -9
  12. package/dist-es/commands/DeleteOutboundExternalLinkCommand.js +3 -9
  13. package/dist-es/commands/DeleteRequesterGatewayCommand.js +3 -9
  14. package/dist-es/commands/DeleteResponderGatewayCommand.js +3 -9
  15. package/dist-es/commands/GetInboundExternalLinkCommand.js +3 -9
  16. package/dist-es/commands/GetLinkCommand.js +3 -9
  17. package/dist-es/commands/GetOutboundExternalLinkCommand.js +3 -9
  18. package/dist-es/commands/GetRequesterGatewayCommand.js +3 -9
  19. package/dist-es/commands/GetResponderGatewayCommand.js +3 -10
  20. package/dist-es/commands/ListLinksCommand.js +3 -9
  21. package/dist-es/commands/ListRequesterGatewaysCommand.js +3 -9
  22. package/dist-es/commands/ListResponderGatewaysCommand.js +3 -9
  23. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  24. package/dist-es/commands/RejectLinkCommand.js +3 -9
  25. package/dist-es/commands/TagResourceCommand.js +3 -9
  26. package/dist-es/commands/UntagResourceCommand.js +3 -9
  27. package/dist-es/commands/UpdateLinkCommand.js +3 -9
  28. package/dist-es/commands/UpdateLinkModuleFlowCommand.js +3 -9
  29. package/dist-es/commands/UpdateRequesterGatewayCommand.js +3 -9
  30. package/dist-es/commands/UpdateResponderGatewayCommand.js +3 -10
  31. package/dist-es/models/models_0.js +0 -76
  32. package/dist-es/runtimeConfig.shared.js +2 -0
  33. package/dist-es/schemas/schemas_0.js +1051 -0
  34. package/dist-types/RTBFabricClient.d.ts +10 -1
  35. package/dist-types/commands/CreateInboundExternalLinkCommand.d.ts +17 -1
  36. package/dist-types/commands/CreateOutboundExternalLinkCommand.d.ts +29 -0
  37. package/dist-types/commands/GetInboundExternalLinkCommand.d.ts +8 -0
  38. package/dist-types/commands/GetOutboundExternalLinkCommand.d.ts +8 -0
  39. package/dist-types/models/models_0.d.ts +37 -27
  40. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  41. package/dist-types/runtimeConfig.d.ts +1 -0
  42. package/dist-types/runtimeConfig.native.d.ts +1 -0
  43. package/dist-types/runtimeConfig.shared.d.ts +2 -5
  44. package/dist-types/schemas/schemas_0.d.ts +127 -0
  45. package/dist-types/ts3.4/RTBFabricClient.d.ts +4 -0
  46. package/dist-types/ts3.4/models/models_0.d.ts +5 -24
  47. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  48. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  49. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  50. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  51. package/dist-types/ts3.4/schemas/schemas_0.d.ts +133 -0
  52. package/package.json +34 -35
  53. package/dist-es/protocols/Aws_restJson1.js +0 -1163
  54. package/dist-types/protocols/Aws_restJson1.d.ts +0 -245
  55. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -329
@@ -1,1163 +0,0 @@
1
- import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
- import { v4 as generateIdempotencyToken } from "@smithy/uuid";
5
- import { AccessDeniedException, ConflictException, InternalServerException, ModuleParameters, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
6
- import { RTBFabricServiceException as __BaseException } from "../models/RTBFabricServiceException";
7
- export const se_AcceptLinkCommand = async (input, context) => {
8
- const b = rb(input, context);
9
- const headers = {
10
- "content-type": "application/json",
11
- };
12
- b.bp("/gateway/{gatewayId}/link/{linkId}/accept");
13
- b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
14
- b.p("linkId", () => input.linkId, "{linkId}", false);
15
- let body;
16
- body = JSON.stringify(take(input, {
17
- attributes: (_) => se_LinkAttributes(_, context),
18
- logSettings: (_) => se_LinkLogSettings(_, context),
19
- }));
20
- b.m("POST").h(headers).b(body);
21
- return b.build();
22
- };
23
- export const se_CreateInboundExternalLinkCommand = async (input, context) => {
24
- const b = rb(input, context);
25
- const headers = {
26
- "content-type": "application/json",
27
- };
28
- b.bp("/responder-gateway/{gatewayId}/inbound-external-link");
29
- b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
30
- let body;
31
- body = JSON.stringify(take(input, {
32
- attributes: (_) => se_LinkAttributes(_, context),
33
- clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
34
- tags: (_) => _json(_),
35
- }));
36
- b.m("POST").h(headers).b(body);
37
- return b.build();
38
- };
39
- export const se_CreateLinkCommand = async (input, context) => {
40
- const b = rb(input, context);
41
- const headers = {
42
- "content-type": "application/json",
43
- };
44
- b.bp("/gateway/{gatewayId}/create-link");
45
- b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
46
- let body;
47
- body = JSON.stringify(take(input, {
48
- attributes: (_) => se_LinkAttributes(_, context),
49
- httpResponderAllowed: [],
50
- logSettings: (_) => se_LinkLogSettings(_, context),
51
- peerGatewayId: [],
52
- tags: (_) => _json(_),
53
- }));
54
- b.m("POST").h(headers).b(body);
55
- return b.build();
56
- };
57
- export const se_CreateOutboundExternalLinkCommand = async (input, context) => {
58
- const b = rb(input, context);
59
- const headers = {
60
- "content-type": "application/json",
61
- };
62
- b.bp("/requester-gateway/{gatewayId}/outbound-external-link");
63
- b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
64
- let body;
65
- body = JSON.stringify(take(input, {
66
- clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
67
- publicEndpoint: [],
68
- tags: (_) => _json(_),
69
- }));
70
- b.m("POST").h(headers).b(body);
71
- return b.build();
72
- };
73
- export const se_CreateRequesterGatewayCommand = async (input, context) => {
74
- const b = rb(input, context);
75
- const headers = {
76
- "content-type": "application/json",
77
- };
78
- b.bp("/requester-gateway");
79
- let body;
80
- body = JSON.stringify(take(input, {
81
- clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
82
- description: [],
83
- securityGroupIds: (_) => _json(_),
84
- subnetIds: (_) => _json(_),
85
- tags: (_) => _json(_),
86
- vpcId: [],
87
- }));
88
- b.m("POST").h(headers).b(body);
89
- return b.build();
90
- };
91
- export const se_CreateResponderGatewayCommand = async (input, context) => {
92
- const b = rb(input, context);
93
- const headers = {
94
- "content-type": "application/json",
95
- };
96
- b.bp("/responder-gateway");
97
- let body;
98
- body = JSON.stringify(take(input, {
99
- clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
100
- description: [],
101
- domainName: [],
102
- managedEndpointConfiguration: (_) => _json(_),
103
- port: [],
104
- protocol: [],
105
- securityGroupIds: (_) => _json(_),
106
- subnetIds: (_) => _json(_),
107
- tags: (_) => _json(_),
108
- trustStoreConfiguration: (_) => _json(_),
109
- vpcId: [],
110
- }));
111
- b.m("POST").h(headers).b(body);
112
- return b.build();
113
- };
114
- export const se_DeleteInboundExternalLinkCommand = async (input, context) => {
115
- const b = rb(input, context);
116
- const headers = {};
117
- b.bp("/responder-gateway/{gatewayId}/inbound-external-link/{linkId}");
118
- b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
119
- b.p("linkId", () => input.linkId, "{linkId}", false);
120
- let body;
121
- b.m("DELETE").h(headers).b(body);
122
- return b.build();
123
- };
124
- export const se_DeleteLinkCommand = async (input, context) => {
125
- const b = rb(input, context);
126
- const headers = {};
127
- b.bp("/gateway/{gatewayId}/link/{linkId}");
128
- b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
129
- b.p("linkId", () => input.linkId, "{linkId}", false);
130
- let body;
131
- b.m("DELETE").h(headers).b(body);
132
- return b.build();
133
- };
134
- export const se_DeleteOutboundExternalLinkCommand = async (input, context) => {
135
- const b = rb(input, context);
136
- const headers = {};
137
- b.bp("/requester-gateway/{gatewayId}/outbound-external-link/{linkId}");
138
- b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
139
- b.p("linkId", () => input.linkId, "{linkId}", false);
140
- let body;
141
- b.m("DELETE").h(headers).b(body);
142
- return b.build();
143
- };
144
- export const se_DeleteRequesterGatewayCommand = async (input, context) => {
145
- const b = rb(input, context);
146
- const headers = {};
147
- b.bp("/requester-gateway/{gatewayId}");
148
- b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
149
- let body;
150
- b.m("DELETE").h(headers).b(body);
151
- return b.build();
152
- };
153
- export const se_DeleteResponderGatewayCommand = async (input, context) => {
154
- const b = rb(input, context);
155
- const headers = {};
156
- b.bp("/responder-gateway/{gatewayId}");
157
- b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
158
- let body;
159
- b.m("DELETE").h(headers).b(body);
160
- return b.build();
161
- };
162
- export const se_GetInboundExternalLinkCommand = async (input, context) => {
163
- const b = rb(input, context);
164
- const headers = {};
165
- b.bp("/responder-gateway/{gatewayId}/inbound-external-link/{linkId}");
166
- b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
167
- b.p("linkId", () => input.linkId, "{linkId}", false);
168
- let body;
169
- b.m("GET").h(headers).b(body);
170
- return b.build();
171
- };
172
- export const se_GetLinkCommand = async (input, context) => {
173
- const b = rb(input, context);
174
- const headers = {};
175
- b.bp("/gateway/{gatewayId}/link/{linkId}");
176
- b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
177
- b.p("linkId", () => input.linkId, "{linkId}", false);
178
- let body;
179
- b.m("GET").h(headers).b(body);
180
- return b.build();
181
- };
182
- export const se_GetOutboundExternalLinkCommand = async (input, context) => {
183
- const b = rb(input, context);
184
- const headers = {};
185
- b.bp("/requester-gateway/{gatewayId}/outbound-external-link/{linkId}");
186
- b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
187
- b.p("linkId", () => input.linkId, "{linkId}", false);
188
- let body;
189
- b.m("GET").h(headers).b(body);
190
- return b.build();
191
- };
192
- export const se_GetRequesterGatewayCommand = async (input, context) => {
193
- const b = rb(input, context);
194
- const headers = {};
195
- b.bp("/requester-gateway/{gatewayId}");
196
- b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
197
- let body;
198
- b.m("GET").h(headers).b(body);
199
- return b.build();
200
- };
201
- export const se_GetResponderGatewayCommand = async (input, context) => {
202
- const b = rb(input, context);
203
- const headers = {};
204
- b.bp("/responder-gateway/{gatewayId}");
205
- b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
206
- let body;
207
- b.m("GET").h(headers).b(body);
208
- return b.build();
209
- };
210
- export const se_ListLinksCommand = async (input, context) => {
211
- const b = rb(input, context);
212
- const headers = {};
213
- b.bp("/gateway/{gatewayId}/links");
214
- b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
215
- const query = map({
216
- [_nT]: [, input[_nT]],
217
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
218
- });
219
- let body;
220
- b.m("GET").h(headers).q(query).b(body);
221
- return b.build();
222
- };
223
- export const se_ListRequesterGatewaysCommand = async (input, context) => {
224
- const b = rb(input, context);
225
- const headers = {};
226
- b.bp("/requester-gateways");
227
- const query = map({
228
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
229
- [_nT]: [, input[_nT]],
230
- });
231
- let body;
232
- b.m("GET").h(headers).q(query).b(body);
233
- return b.build();
234
- };
235
- export const se_ListResponderGatewaysCommand = async (input, context) => {
236
- const b = rb(input, context);
237
- const headers = {};
238
- b.bp("/responder-gateways");
239
- const query = map({
240
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
241
- [_nT]: [, input[_nT]],
242
- });
243
- let body;
244
- b.m("GET").h(headers).q(query).b(body);
245
- return b.build();
246
- };
247
- export const se_ListTagsForResourceCommand = async (input, context) => {
248
- const b = rb(input, context);
249
- const headers = {};
250
- b.bp("/tags/{resourceArn}");
251
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
252
- let body;
253
- b.m("GET").h(headers).b(body);
254
- return b.build();
255
- };
256
- export const se_RejectLinkCommand = async (input, context) => {
257
- const b = rb(input, context);
258
- const headers = {};
259
- b.bp("/gateway/{gatewayId}/link/{linkId}/reject");
260
- b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
261
- b.p("linkId", () => input.linkId, "{linkId}", false);
262
- let body;
263
- b.m("POST").h(headers).b(body);
264
- return b.build();
265
- };
266
- export const se_TagResourceCommand = async (input, context) => {
267
- const b = rb(input, context);
268
- const headers = {
269
- "content-type": "application/json",
270
- };
271
- b.bp("/tags/{resourceArn}");
272
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
273
- let body;
274
- body = JSON.stringify(take(input, {
275
- tags: (_) => _json(_),
276
- }));
277
- b.m("POST").h(headers).b(body);
278
- return b.build();
279
- };
280
- export const se_UntagResourceCommand = async (input, context) => {
281
- const b = rb(input, context);
282
- const headers = {};
283
- b.bp("/tags/{resourceArn}");
284
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
285
- const query = map({
286
- [_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
287
- });
288
- let body;
289
- b.m("DELETE").h(headers).q(query).b(body);
290
- return b.build();
291
- };
292
- export const se_UpdateLinkCommand = async (input, context) => {
293
- const b = rb(input, context);
294
- const headers = {
295
- "content-type": "application/json",
296
- };
297
- b.bp("/gateway/{gatewayId}/link/{linkId}");
298
- b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
299
- b.p("linkId", () => input.linkId, "{linkId}", false);
300
- let body;
301
- body = JSON.stringify(take(input, {
302
- logSettings: (_) => se_LinkLogSettings(_, context),
303
- }));
304
- b.m("PATCH").h(headers).b(body);
305
- return b.build();
306
- };
307
- export const se_UpdateLinkModuleFlowCommand = async (input, context) => {
308
- const b = rb(input, context);
309
- const headers = {
310
- "content-type": "application/json",
311
- };
312
- b.bp("/gateway/{gatewayId}/link/{linkId}/module-flow");
313
- b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
314
- b.p("linkId", () => input.linkId, "{linkId}", false);
315
- let body;
316
- body = JSON.stringify(take(input, {
317
- clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
318
- modules: (_) => se_ModuleConfigurationList(_, context),
319
- }));
320
- b.m("POST").h(headers).b(body);
321
- return b.build();
322
- };
323
- export const se_UpdateRequesterGatewayCommand = async (input, context) => {
324
- const b = rb(input, context);
325
- const headers = {
326
- "content-type": "application/json",
327
- };
328
- b.bp("/requester-gateway/{gatewayId}/update");
329
- b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
330
- let body;
331
- body = JSON.stringify(take(input, {
332
- clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
333
- description: [],
334
- }));
335
- b.m("POST").h(headers).b(body);
336
- return b.build();
337
- };
338
- export const se_UpdateResponderGatewayCommand = async (input, context) => {
339
- const b = rb(input, context);
340
- const headers = {
341
- "content-type": "application/json",
342
- };
343
- b.bp("/responder-gateway/{gatewayId}/update");
344
- b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
345
- let body;
346
- body = JSON.stringify(take(input, {
347
- clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
348
- description: [],
349
- domainName: [],
350
- managedEndpointConfiguration: (_) => _json(_),
351
- port: [],
352
- protocol: [],
353
- trustStoreConfiguration: (_) => _json(_),
354
- }));
355
- b.m("POST").h(headers).b(body);
356
- return b.build();
357
- };
358
- export const de_AcceptLinkCommand = async (output, context) => {
359
- if (output.statusCode !== 200 && output.statusCode >= 300) {
360
- return de_CommandError(output, context);
361
- }
362
- const contents = map({
363
- $metadata: deserializeMetadata(output),
364
- });
365
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
366
- const doc = take(data, {
367
- attributes: (_) => de_LinkAttributes(_, context),
368
- createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
369
- direction: __expectString,
370
- flowModules: (_) => de_ModuleConfigurationList(_, context),
371
- gatewayId: __expectString,
372
- linkId: __expectString,
373
- peerGatewayId: __expectString,
374
- pendingFlowModules: (_) => de_ModuleConfigurationList(_, context),
375
- status: __expectString,
376
- updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
377
- });
378
- Object.assign(contents, doc);
379
- return contents;
380
- };
381
- export const de_CreateInboundExternalLinkCommand = async (output, context) => {
382
- if (output.statusCode !== 200 && output.statusCode >= 300) {
383
- return de_CommandError(output, context);
384
- }
385
- const contents = map({
386
- $metadata: deserializeMetadata(output),
387
- });
388
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
389
- const doc = take(data, {
390
- domainName: __expectString,
391
- gatewayId: __expectString,
392
- linkId: __expectString,
393
- status: __expectString,
394
- });
395
- Object.assign(contents, doc);
396
- return contents;
397
- };
398
- export const de_CreateLinkCommand = async (output, context) => {
399
- if (output.statusCode !== 200 && output.statusCode >= 300) {
400
- return de_CommandError(output, context);
401
- }
402
- const contents = map({
403
- $metadata: deserializeMetadata(output),
404
- });
405
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
406
- const doc = take(data, {
407
- attributes: (_) => de_LinkAttributes(_, context),
408
- createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
409
- customerProvidedId: __expectString,
410
- direction: __expectString,
411
- flowModules: (_) => de_ModuleConfigurationList(_, context),
412
- gatewayId: __expectString,
413
- linkId: __expectString,
414
- peerGatewayId: __expectString,
415
- pendingFlowModules: (_) => de_ModuleConfigurationList(_, context),
416
- status: __expectString,
417
- updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
418
- });
419
- Object.assign(contents, doc);
420
- return contents;
421
- };
422
- export const de_CreateOutboundExternalLinkCommand = async (output, context) => {
423
- if (output.statusCode !== 200 && output.statusCode >= 300) {
424
- return de_CommandError(output, context);
425
- }
426
- const contents = map({
427
- $metadata: deserializeMetadata(output),
428
- });
429
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
430
- const doc = take(data, {
431
- gatewayId: __expectString,
432
- linkId: __expectString,
433
- status: __expectString,
434
- });
435
- Object.assign(contents, doc);
436
- return contents;
437
- };
438
- export const de_CreateRequesterGatewayCommand = async (output, context) => {
439
- if (output.statusCode !== 200 && output.statusCode >= 300) {
440
- return de_CommandError(output, context);
441
- }
442
- const contents = map({
443
- $metadata: deserializeMetadata(output),
444
- });
445
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
446
- const doc = take(data, {
447
- domainName: __expectString,
448
- gatewayId: __expectString,
449
- status: __expectString,
450
- });
451
- Object.assign(contents, doc);
452
- return contents;
453
- };
454
- export const de_CreateResponderGatewayCommand = async (output, context) => {
455
- if (output.statusCode !== 200 && output.statusCode >= 300) {
456
- return de_CommandError(output, context);
457
- }
458
- const contents = map({
459
- $metadata: deserializeMetadata(output),
460
- });
461
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
462
- const doc = take(data, {
463
- gatewayId: __expectString,
464
- status: __expectString,
465
- });
466
- Object.assign(contents, doc);
467
- return contents;
468
- };
469
- export const de_DeleteInboundExternalLinkCommand = async (output, context) => {
470
- if (output.statusCode !== 200 && output.statusCode >= 300) {
471
- return de_CommandError(output, context);
472
- }
473
- const contents = map({
474
- $metadata: deserializeMetadata(output),
475
- });
476
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
477
- const doc = take(data, {
478
- linkId: __expectString,
479
- status: __expectString,
480
- });
481
- Object.assign(contents, doc);
482
- return contents;
483
- };
484
- export const de_DeleteLinkCommand = async (output, context) => {
485
- if (output.statusCode !== 200 && output.statusCode >= 300) {
486
- return de_CommandError(output, context);
487
- }
488
- const contents = map({
489
- $metadata: deserializeMetadata(output),
490
- });
491
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
492
- const doc = take(data, {
493
- linkId: __expectString,
494
- status: __expectString,
495
- });
496
- Object.assign(contents, doc);
497
- return contents;
498
- };
499
- export const de_DeleteOutboundExternalLinkCommand = async (output, context) => {
500
- if (output.statusCode !== 200 && output.statusCode >= 300) {
501
- return de_CommandError(output, context);
502
- }
503
- const contents = map({
504
- $metadata: deserializeMetadata(output),
505
- });
506
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
507
- const doc = take(data, {
508
- linkId: __expectString,
509
- status: __expectString,
510
- });
511
- Object.assign(contents, doc);
512
- return contents;
513
- };
514
- export const de_DeleteRequesterGatewayCommand = async (output, context) => {
515
- if (output.statusCode !== 200 && output.statusCode >= 300) {
516
- return de_CommandError(output, context);
517
- }
518
- const contents = map({
519
- $metadata: deserializeMetadata(output),
520
- });
521
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
522
- const doc = take(data, {
523
- gatewayId: __expectString,
524
- status: __expectString,
525
- });
526
- Object.assign(contents, doc);
527
- return contents;
528
- };
529
- export const de_DeleteResponderGatewayCommand = async (output, context) => {
530
- if (output.statusCode !== 200 && output.statusCode >= 300) {
531
- return de_CommandError(output, context);
532
- }
533
- const contents = map({
534
- $metadata: deserializeMetadata(output),
535
- });
536
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
537
- const doc = take(data, {
538
- gatewayId: __expectString,
539
- status: __expectString,
540
- });
541
- Object.assign(contents, doc);
542
- return contents;
543
- };
544
- export const de_GetInboundExternalLinkCommand = async (output, context) => {
545
- if (output.statusCode !== 200 && output.statusCode >= 300) {
546
- return de_CommandError(output, context);
547
- }
548
- const contents = map({
549
- $metadata: deserializeMetadata(output),
550
- });
551
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
552
- const doc = take(data, {
553
- attributes: (_) => de_LinkAttributes(_, context),
554
- createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
555
- domainName: __expectString,
556
- flowModules: (_) => de_ModuleConfigurationList(_, context),
557
- gatewayId: __expectString,
558
- linkId: __expectString,
559
- pendingFlowModules: (_) => de_ModuleConfigurationList(_, context),
560
- status: __expectString,
561
- tags: _json,
562
- updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
563
- });
564
- Object.assign(contents, doc);
565
- return contents;
566
- };
567
- export const de_GetLinkCommand = async (output, context) => {
568
- if (output.statusCode !== 200 && output.statusCode >= 300) {
569
- return de_CommandError(output, context);
570
- }
571
- const contents = map({
572
- $metadata: deserializeMetadata(output),
573
- });
574
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
575
- const doc = take(data, {
576
- attributes: (_) => de_LinkAttributes(_, context),
577
- createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
578
- direction: __expectString,
579
- flowModules: (_) => de_ModuleConfigurationList(_, context),
580
- gatewayId: __expectString,
581
- linkId: __expectString,
582
- logSettings: (_) => de_LinkLogSettings(_, context),
583
- peerGatewayId: __expectString,
584
- pendingFlowModules: (_) => de_ModuleConfigurationList(_, context),
585
- status: __expectString,
586
- tags: _json,
587
- updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
588
- });
589
- Object.assign(contents, doc);
590
- return contents;
591
- };
592
- export const de_GetOutboundExternalLinkCommand = async (output, context) => {
593
- if (output.statusCode !== 200 && output.statusCode >= 300) {
594
- return de_CommandError(output, context);
595
- }
596
- const contents = map({
597
- $metadata: deserializeMetadata(output),
598
- });
599
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
600
- const doc = take(data, {
601
- createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
602
- gatewayId: __expectString,
603
- linkId: __expectString,
604
- publicEndpoint: __expectString,
605
- status: __expectString,
606
- tags: _json,
607
- updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
608
- });
609
- Object.assign(contents, doc);
610
- return contents;
611
- };
612
- export const de_GetRequesterGatewayCommand = async (output, context) => {
613
- if (output.statusCode !== 200 && output.statusCode >= 300) {
614
- return de_CommandError(output, context);
615
- }
616
- const contents = map({
617
- $metadata: deserializeMetadata(output),
618
- });
619
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
620
- const doc = take(data, {
621
- activeLinksCount: __expectInt32,
622
- createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
623
- description: __expectString,
624
- domainName: __expectString,
625
- gatewayId: __expectString,
626
- securityGroupIds: _json,
627
- status: __expectString,
628
- subnetIds: _json,
629
- tags: _json,
630
- totalLinksCount: __expectInt32,
631
- updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
632
- vpcId: __expectString,
633
- });
634
- Object.assign(contents, doc);
635
- return contents;
636
- };
637
- export const de_GetResponderGatewayCommand = async (output, context) => {
638
- if (output.statusCode !== 200 && output.statusCode >= 300) {
639
- return de_CommandError(output, context);
640
- }
641
- const contents = map({
642
- $metadata: deserializeMetadata(output),
643
- });
644
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
645
- const doc = take(data, {
646
- activeLinksCount: __expectInt32,
647
- createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
648
- description: __expectString,
649
- domainName: __expectString,
650
- gatewayId: __expectString,
651
- inboundLinksCount: __expectInt32,
652
- managedEndpointConfiguration: (_) => _json(__expectUnion(_)),
653
- port: __expectInt32,
654
- protocol: __expectString,
655
- securityGroupIds: _json,
656
- status: __expectString,
657
- subnetIds: _json,
658
- tags: _json,
659
- totalLinksCount: __expectInt32,
660
- trustStoreConfiguration: _json,
661
- updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
662
- vpcId: __expectString,
663
- });
664
- Object.assign(contents, doc);
665
- return contents;
666
- };
667
- export const de_ListLinksCommand = async (output, context) => {
668
- if (output.statusCode !== 200 && output.statusCode >= 300) {
669
- return de_CommandError(output, context);
670
- }
671
- const contents = map({
672
- $metadata: deserializeMetadata(output),
673
- });
674
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
675
- const doc = take(data, {
676
- links: (_) => de_LinkList(_, context),
677
- nextToken: __expectString,
678
- });
679
- Object.assign(contents, doc);
680
- return contents;
681
- };
682
- export const de_ListRequesterGatewaysCommand = async (output, context) => {
683
- if (output.statusCode !== 200 && output.statusCode >= 300) {
684
- return de_CommandError(output, context);
685
- }
686
- const contents = map({
687
- $metadata: deserializeMetadata(output),
688
- });
689
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
690
- const doc = take(data, {
691
- gatewayIds: _json,
692
- nextToken: __expectString,
693
- });
694
- Object.assign(contents, doc);
695
- return contents;
696
- };
697
- export const de_ListResponderGatewaysCommand = async (output, context) => {
698
- if (output.statusCode !== 200 && output.statusCode >= 300) {
699
- return de_CommandError(output, context);
700
- }
701
- const contents = map({
702
- $metadata: deserializeMetadata(output),
703
- });
704
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
705
- const doc = take(data, {
706
- gatewayIds: _json,
707
- nextToken: __expectString,
708
- });
709
- Object.assign(contents, doc);
710
- return contents;
711
- };
712
- export const de_ListTagsForResourceCommand = async (output, context) => {
713
- if (output.statusCode !== 200 && output.statusCode >= 300) {
714
- return de_CommandError(output, context);
715
- }
716
- const contents = map({
717
- $metadata: deserializeMetadata(output),
718
- });
719
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
720
- const doc = take(data, {
721
- tags: _json,
722
- });
723
- Object.assign(contents, doc);
724
- return contents;
725
- };
726
- export const de_RejectLinkCommand = async (output, context) => {
727
- if (output.statusCode !== 200 && output.statusCode >= 300) {
728
- return de_CommandError(output, context);
729
- }
730
- const contents = map({
731
- $metadata: deserializeMetadata(output),
732
- });
733
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
734
- const doc = take(data, {
735
- attributes: (_) => de_LinkAttributes(_, context),
736
- createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
737
- direction: __expectString,
738
- flowModules: (_) => de_ModuleConfigurationList(_, context),
739
- gatewayId: __expectString,
740
- linkId: __expectString,
741
- peerGatewayId: __expectString,
742
- pendingFlowModules: (_) => de_ModuleConfigurationList(_, context),
743
- status: __expectString,
744
- updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
745
- });
746
- Object.assign(contents, doc);
747
- return contents;
748
- };
749
- export const de_TagResourceCommand = async (output, context) => {
750
- if (output.statusCode !== 204 && output.statusCode >= 300) {
751
- return de_CommandError(output, context);
752
- }
753
- const contents = map({
754
- $metadata: deserializeMetadata(output),
755
- });
756
- await collectBody(output.body, context);
757
- return contents;
758
- };
759
- export const de_UntagResourceCommand = async (output, context) => {
760
- if (output.statusCode !== 204 && output.statusCode >= 300) {
761
- return de_CommandError(output, context);
762
- }
763
- const contents = map({
764
- $metadata: deserializeMetadata(output),
765
- });
766
- await collectBody(output.body, context);
767
- return contents;
768
- };
769
- export const de_UpdateLinkCommand = async (output, context) => {
770
- if (output.statusCode !== 200 && output.statusCode >= 300) {
771
- return de_CommandError(output, context);
772
- }
773
- const contents = map({
774
- $metadata: deserializeMetadata(output),
775
- });
776
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
777
- const doc = take(data, {
778
- linkId: __expectString,
779
- status: __expectString,
780
- });
781
- Object.assign(contents, doc);
782
- return contents;
783
- };
784
- export const de_UpdateLinkModuleFlowCommand = async (output, context) => {
785
- if (output.statusCode !== 200 && output.statusCode >= 300) {
786
- return de_CommandError(output, context);
787
- }
788
- const contents = map({
789
- $metadata: deserializeMetadata(output),
790
- });
791
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
792
- const doc = take(data, {
793
- gatewayId: __expectString,
794
- linkId: __expectString,
795
- status: __expectString,
796
- });
797
- Object.assign(contents, doc);
798
- return contents;
799
- };
800
- export const de_UpdateRequesterGatewayCommand = async (output, context) => {
801
- if (output.statusCode !== 200 && output.statusCode >= 300) {
802
- return de_CommandError(output, context);
803
- }
804
- const contents = map({
805
- $metadata: deserializeMetadata(output),
806
- });
807
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
808
- const doc = take(data, {
809
- gatewayId: __expectString,
810
- status: __expectString,
811
- });
812
- Object.assign(contents, doc);
813
- return contents;
814
- };
815
- export const de_UpdateResponderGatewayCommand = async (output, context) => {
816
- if (output.statusCode !== 200 && output.statusCode >= 300) {
817
- return de_CommandError(output, context);
818
- }
819
- const contents = map({
820
- $metadata: deserializeMetadata(output),
821
- });
822
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
823
- const doc = take(data, {
824
- gatewayId: __expectString,
825
- status: __expectString,
826
- });
827
- Object.assign(contents, doc);
828
- return contents;
829
- };
830
- const de_CommandError = async (output, context) => {
831
- const parsedOutput = {
832
- ...output,
833
- body: await parseErrorBody(output.body, context),
834
- };
835
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
836
- switch (errorCode) {
837
- case "AccessDeniedException":
838
- case "com.amazonaws.rtbfabric#AccessDeniedException":
839
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
840
- case "ConflictException":
841
- case "com.amazonaws.rtbfabric#ConflictException":
842
- throw await de_ConflictExceptionRes(parsedOutput, context);
843
- case "InternalServerException":
844
- case "com.amazonaws.rtbfabric#InternalServerException":
845
- throw await de_InternalServerExceptionRes(parsedOutput, context);
846
- case "ResourceNotFoundException":
847
- case "com.amazonaws.rtbfabric#ResourceNotFoundException":
848
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
849
- case "ThrottlingException":
850
- case "com.amazonaws.rtbfabric#ThrottlingException":
851
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
852
- case "ValidationException":
853
- case "com.amazonaws.rtbfabric#ValidationException":
854
- throw await de_ValidationExceptionRes(parsedOutput, context);
855
- case "ServiceQuotaExceededException":
856
- case "com.amazonaws.rtbfabric#ServiceQuotaExceededException":
857
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
858
- default:
859
- const parsedBody = parsedOutput.body;
860
- return throwDefaultError({
861
- output,
862
- parsedBody,
863
- errorCode,
864
- });
865
- }
866
- };
867
- const throwDefaultError = withBaseException(__BaseException);
868
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
869
- const contents = map({});
870
- const data = parsedOutput.body;
871
- const doc = take(data, {
872
- message: __expectString,
873
- });
874
- Object.assign(contents, doc);
875
- const exception = new AccessDeniedException({
876
- $metadata: deserializeMetadata(parsedOutput),
877
- ...contents,
878
- });
879
- return __decorateServiceException(exception, parsedOutput.body);
880
- };
881
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
882
- const contents = map({});
883
- const data = parsedOutput.body;
884
- const doc = take(data, {
885
- message: __expectString,
886
- });
887
- Object.assign(contents, doc);
888
- const exception = new ConflictException({
889
- $metadata: deserializeMetadata(parsedOutput),
890
- ...contents,
891
- });
892
- return __decorateServiceException(exception, parsedOutput.body);
893
- };
894
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
895
- const contents = map({});
896
- const data = parsedOutput.body;
897
- const doc = take(data, {
898
- message: __expectString,
899
- });
900
- Object.assign(contents, doc);
901
- const exception = new InternalServerException({
902
- $metadata: deserializeMetadata(parsedOutput),
903
- ...contents,
904
- });
905
- return __decorateServiceException(exception, parsedOutput.body);
906
- };
907
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
908
- const contents = map({});
909
- const data = parsedOutput.body;
910
- const doc = take(data, {
911
- message: __expectString,
912
- });
913
- Object.assign(contents, doc);
914
- const exception = new ResourceNotFoundException({
915
- $metadata: deserializeMetadata(parsedOutput),
916
- ...contents,
917
- });
918
- return __decorateServiceException(exception, parsedOutput.body);
919
- };
920
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
921
- const contents = map({});
922
- const data = parsedOutput.body;
923
- const doc = take(data, {
924
- message: __expectString,
925
- });
926
- Object.assign(contents, doc);
927
- const exception = new ServiceQuotaExceededException({
928
- $metadata: deserializeMetadata(parsedOutput),
929
- ...contents,
930
- });
931
- return __decorateServiceException(exception, parsedOutput.body);
932
- };
933
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
934
- const contents = map({});
935
- const data = parsedOutput.body;
936
- const doc = take(data, {
937
- message: __expectString,
938
- });
939
- Object.assign(contents, doc);
940
- const exception = new ThrottlingException({
941
- $metadata: deserializeMetadata(parsedOutput),
942
- ...contents,
943
- });
944
- return __decorateServiceException(exception, parsedOutput.body);
945
- };
946
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
947
- const contents = map({});
948
- const data = parsedOutput.body;
949
- const doc = take(data, {
950
- message: __expectString,
951
- });
952
- Object.assign(contents, doc);
953
- const exception = new ValidationException({
954
- $metadata: deserializeMetadata(parsedOutput),
955
- ...contents,
956
- });
957
- return __decorateServiceException(exception, parsedOutput.body);
958
- };
959
- const se_LinkApplicationLogConfiguration = (input, context) => {
960
- return take(input, {
961
- sampling: (_) => se_LinkApplicationLogSampling(_, context),
962
- });
963
- };
964
- const se_LinkApplicationLogSampling = (input, context) => {
965
- return take(input, {
966
- errorLog: __serializeFloat,
967
- filterLog: __serializeFloat,
968
- });
969
- };
970
- const se_LinkAttributes = (input, context) => {
971
- return take(input, {
972
- customerProvidedId: [],
973
- responderErrorMasking: (_) => se_ResponderErrorMasking(_, context),
974
- });
975
- };
976
- const se_LinkLogSettings = (input, context) => {
977
- return take(input, {
978
- applicationLogs: (_) => se_LinkApplicationLogConfiguration(_, context),
979
- });
980
- };
981
- const se_ModuleConfiguration = (input, context) => {
982
- return take(input, {
983
- dependsOn: _json,
984
- moduleParameters: (_) => se_ModuleParameters(_, context),
985
- name: [],
986
- version: [],
987
- });
988
- };
989
- const se_ModuleConfigurationList = (input, context) => {
990
- return input
991
- .filter((e) => e != null)
992
- .map((entry) => {
993
- return se_ModuleConfiguration(entry, context);
994
- });
995
- };
996
- const se_ModuleParameters = (input, context) => {
997
- return ModuleParameters.visit(input, {
998
- noBid: (value) => ({ noBid: se_NoBidModuleParameters(value, context) }),
999
- openRtbAttribute: (value) => ({ openRtbAttribute: se_OpenRtbAttributeModuleParameters(value, context) }),
1000
- rateLimiter: (value) => ({ rateLimiter: se_RateLimiterModuleParameters(value, context) }),
1001
- _: (name, value) => ({ [name]: value }),
1002
- });
1003
- };
1004
- const se_NoBidModuleParameters = (input, context) => {
1005
- return take(input, {
1006
- passThroughPercentage: __serializeFloat,
1007
- reason: [],
1008
- reasonCode: [],
1009
- });
1010
- };
1011
- const se_OpenRtbAttributeModuleParameters = (input, context) => {
1012
- return take(input, {
1013
- action: _json,
1014
- filterConfiguration: _json,
1015
- filterType: [],
1016
- holdbackPercentage: __serializeFloat,
1017
- });
1018
- };
1019
- const se_RateLimiterModuleParameters = (input, context) => {
1020
- return take(input, {
1021
- tps: __serializeFloat,
1022
- });
1023
- };
1024
- const se_ResponderErrorMasking = (input, context) => {
1025
- return input
1026
- .filter((e) => e != null)
1027
- .map((entry) => {
1028
- return se_ResponderErrorMaskingForHttpCode(entry, context);
1029
- });
1030
- };
1031
- const se_ResponderErrorMaskingForHttpCode = (input, context) => {
1032
- return take(input, {
1033
- action: [],
1034
- httpCode: [],
1035
- loggingTypes: _json,
1036
- responseLoggingPercentage: __serializeFloat,
1037
- });
1038
- };
1039
- const de_LinkApplicationLogConfiguration = (output, context) => {
1040
- return take(output, {
1041
- sampling: (_) => de_LinkApplicationLogSampling(_, context),
1042
- });
1043
- };
1044
- const de_LinkApplicationLogSampling = (output, context) => {
1045
- return take(output, {
1046
- errorLog: __limitedParseDouble,
1047
- filterLog: __limitedParseDouble,
1048
- });
1049
- };
1050
- const de_LinkAttributes = (output, context) => {
1051
- return take(output, {
1052
- customerProvidedId: __expectString,
1053
- responderErrorMasking: (_) => de_ResponderErrorMasking(_, context),
1054
- });
1055
- };
1056
- const de_LinkList = (output, context) => {
1057
- const retVal = (output || [])
1058
- .filter((e) => e != null)
1059
- .map((entry) => {
1060
- return de_ListLinksResponseStructure(entry, context);
1061
- });
1062
- return retVal;
1063
- };
1064
- const de_LinkLogSettings = (output, context) => {
1065
- return take(output, {
1066
- applicationLogs: (_) => de_LinkApplicationLogConfiguration(_, context),
1067
- });
1068
- };
1069
- const de_ListLinksResponseStructure = (output, context) => {
1070
- return take(output, {
1071
- attributes: (_) => de_LinkAttributes(_, context),
1072
- createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1073
- direction: __expectString,
1074
- flowModules: (_) => de_ModuleConfigurationList(_, context),
1075
- gatewayId: __expectString,
1076
- linkId: __expectString,
1077
- peerGatewayId: __expectString,
1078
- pendingFlowModules: (_) => de_ModuleConfigurationList(_, context),
1079
- status: __expectString,
1080
- tags: _json,
1081
- updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1082
- });
1083
- };
1084
- const de_ModuleConfiguration = (output, context) => {
1085
- return take(output, {
1086
- dependsOn: _json,
1087
- moduleParameters: (_) => de_ModuleParameters(__expectUnion(_), context),
1088
- name: __expectString,
1089
- version: __expectString,
1090
- });
1091
- };
1092
- const de_ModuleConfigurationList = (output, context) => {
1093
- const retVal = (output || [])
1094
- .filter((e) => e != null)
1095
- .map((entry) => {
1096
- return de_ModuleConfiguration(entry, context);
1097
- });
1098
- return retVal;
1099
- };
1100
- const de_ModuleParameters = (output, context) => {
1101
- if (output.noBid != null) {
1102
- return {
1103
- noBid: de_NoBidModuleParameters(output.noBid, context),
1104
- };
1105
- }
1106
- if (output.openRtbAttribute != null) {
1107
- return {
1108
- openRtbAttribute: de_OpenRtbAttributeModuleParameters(output.openRtbAttribute, context),
1109
- };
1110
- }
1111
- if (output.rateLimiter != null) {
1112
- return {
1113
- rateLimiter: de_RateLimiterModuleParameters(output.rateLimiter, context),
1114
- };
1115
- }
1116
- return { $unknown: Object.entries(output)[0] };
1117
- };
1118
- const de_NoBidModuleParameters = (output, context) => {
1119
- return take(output, {
1120
- passThroughPercentage: __limitedParseFloat32,
1121
- reason: __expectString,
1122
- reasonCode: __expectInt32,
1123
- });
1124
- };
1125
- const de_OpenRtbAttributeModuleParameters = (output, context) => {
1126
- return take(output, {
1127
- action: (_) => _json(__expectUnion(_)),
1128
- filterConfiguration: _json,
1129
- filterType: __expectString,
1130
- holdbackPercentage: __limitedParseFloat32,
1131
- });
1132
- };
1133
- const de_RateLimiterModuleParameters = (output, context) => {
1134
- return take(output, {
1135
- tps: __limitedParseFloat32,
1136
- });
1137
- };
1138
- const de_ResponderErrorMasking = (output, context) => {
1139
- const retVal = (output || [])
1140
- .filter((e) => e != null)
1141
- .map((entry) => {
1142
- return de_ResponderErrorMaskingForHttpCode(entry, context);
1143
- });
1144
- return retVal;
1145
- };
1146
- const de_ResponderErrorMaskingForHttpCode = (output, context) => {
1147
- return take(output, {
1148
- action: __expectString,
1149
- httpCode: __expectString,
1150
- loggingTypes: _json,
1151
- responseLoggingPercentage: __limitedParseFloat32,
1152
- });
1153
- };
1154
- const deserializeMetadata = (output) => ({
1155
- httpStatusCode: output.statusCode,
1156
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1157
- extendedRequestId: output.headers["x-amz-id-2"],
1158
- cfId: output.headers["x-amz-cf-id"],
1159
- });
1160
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1161
- const _mR = "maxResults";
1162
- const _nT = "nextToken";
1163
- const _tK = "tagKeys";