@aws-sdk/client-oam 3.306.0 → 3.309.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 (35) hide show
  1. package/dist-cjs/commands/CreateLinkCommand.js +2 -2
  2. package/dist-cjs/commands/CreateSinkCommand.js +2 -2
  3. package/dist-cjs/commands/DeleteLinkCommand.js +2 -2
  4. package/dist-cjs/commands/DeleteSinkCommand.js +2 -2
  5. package/dist-cjs/commands/GetLinkCommand.js +2 -2
  6. package/dist-cjs/commands/GetSinkCommand.js +2 -2
  7. package/dist-cjs/commands/GetSinkPolicyCommand.js +2 -2
  8. package/dist-cjs/commands/ListAttachedLinksCommand.js +2 -2
  9. package/dist-cjs/commands/ListLinksCommand.js +2 -2
  10. package/dist-cjs/commands/ListSinksCommand.js +2 -2
  11. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  12. package/dist-cjs/commands/PutSinkPolicyCommand.js +2 -2
  13. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  14. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  15. package/dist-cjs/commands/UpdateLinkCommand.js +2 -2
  16. package/dist-cjs/protocols/Aws_restJson1.js +187 -195
  17. package/dist-es/commands/CreateLinkCommand.js +3 -3
  18. package/dist-es/commands/CreateSinkCommand.js +3 -3
  19. package/dist-es/commands/DeleteLinkCommand.js +3 -3
  20. package/dist-es/commands/DeleteSinkCommand.js +3 -3
  21. package/dist-es/commands/GetLinkCommand.js +3 -3
  22. package/dist-es/commands/GetSinkCommand.js +3 -3
  23. package/dist-es/commands/GetSinkPolicyCommand.js +3 -3
  24. package/dist-es/commands/ListAttachedLinksCommand.js +3 -3
  25. package/dist-es/commands/ListLinksCommand.js +3 -3
  26. package/dist-es/commands/ListSinksCommand.js +3 -3
  27. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  28. package/dist-es/commands/PutSinkPolicyCommand.js +3 -3
  29. package/dist-es/commands/TagResourceCommand.js +3 -3
  30. package/dist-es/commands/UntagResourceCommand.js +3 -3
  31. package/dist-es/commands/UpdateLinkCommand.js +3 -3
  32. package/dist-es/protocols/Aws_restJson1.js +156 -164
  33. package/dist-types/protocols/Aws_restJson1.d.ts +120 -30
  34. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +30 -30
  35. package/package.json +6 -6
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { ConflictException, InternalServiceFault, InvalidParameterException, MissingRequiredParameterException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyTagsException, ValidationException, } from "../models/models_0";
4
4
  import { OAMServiceException as __BaseException } from "../models/OAMServiceException";
5
- export const serializeAws_restJson1CreateLinkCommand = async (input, context) => {
5
+ export const se_CreateLinkCommand = async (input, context) => {
6
6
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
7
  const headers = {
8
8
  "content-type": "application/json",
@@ -11,11 +11,9 @@ export const serializeAws_restJson1CreateLinkCommand = async (input, context) =>
11
11
  let body;
12
12
  body = JSON.stringify({
13
13
  ...(input.LabelTemplate != null && { LabelTemplate: input.LabelTemplate }),
14
- ...(input.ResourceTypes != null && {
15
- ResourceTypes: serializeAws_restJson1ResourceTypesInput(input.ResourceTypes, context),
16
- }),
14
+ ...(input.ResourceTypes != null && { ResourceTypes: se_ResourceTypesInput(input.ResourceTypes, context) }),
17
15
  ...(input.SinkIdentifier != null && { SinkIdentifier: input.SinkIdentifier }),
18
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagMapInput(input.Tags, context) }),
16
+ ...(input.Tags != null && { Tags: se_TagMapInput(input.Tags, context) }),
19
17
  });
20
18
  return new __HttpRequest({
21
19
  protocol,
@@ -27,7 +25,7 @@ export const serializeAws_restJson1CreateLinkCommand = async (input, context) =>
27
25
  body,
28
26
  });
29
27
  };
30
- export const serializeAws_restJson1CreateSinkCommand = async (input, context) => {
28
+ export const se_CreateSinkCommand = async (input, context) => {
31
29
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
32
30
  const headers = {
33
31
  "content-type": "application/json",
@@ -36,7 +34,7 @@ export const serializeAws_restJson1CreateSinkCommand = async (input, context) =>
36
34
  let body;
37
35
  body = JSON.stringify({
38
36
  ...(input.Name != null && { Name: input.Name }),
39
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagMapInput(input.Tags, context) }),
37
+ ...(input.Tags != null && { Tags: se_TagMapInput(input.Tags, context) }),
40
38
  });
41
39
  return new __HttpRequest({
42
40
  protocol,
@@ -48,7 +46,7 @@ export const serializeAws_restJson1CreateSinkCommand = async (input, context) =>
48
46
  body,
49
47
  });
50
48
  };
51
- export const serializeAws_restJson1DeleteLinkCommand = async (input, context) => {
49
+ export const se_DeleteLinkCommand = async (input, context) => {
52
50
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
53
51
  const headers = {
54
52
  "content-type": "application/json",
@@ -68,7 +66,7 @@ export const serializeAws_restJson1DeleteLinkCommand = async (input, context) =>
68
66
  body,
69
67
  });
70
68
  };
71
- export const serializeAws_restJson1DeleteSinkCommand = async (input, context) => {
69
+ export const se_DeleteSinkCommand = async (input, context) => {
72
70
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
73
71
  const headers = {
74
72
  "content-type": "application/json",
@@ -88,7 +86,7 @@ export const serializeAws_restJson1DeleteSinkCommand = async (input, context) =>
88
86
  body,
89
87
  });
90
88
  };
91
- export const serializeAws_restJson1GetLinkCommand = async (input, context) => {
89
+ export const se_GetLinkCommand = async (input, context) => {
92
90
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
93
91
  const headers = {
94
92
  "content-type": "application/json",
@@ -108,7 +106,7 @@ export const serializeAws_restJson1GetLinkCommand = async (input, context) => {
108
106
  body,
109
107
  });
110
108
  };
111
- export const serializeAws_restJson1GetSinkCommand = async (input, context) => {
109
+ export const se_GetSinkCommand = async (input, context) => {
112
110
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
113
111
  const headers = {
114
112
  "content-type": "application/json",
@@ -128,7 +126,7 @@ export const serializeAws_restJson1GetSinkCommand = async (input, context) => {
128
126
  body,
129
127
  });
130
128
  };
131
- export const serializeAws_restJson1GetSinkPolicyCommand = async (input, context) => {
129
+ export const se_GetSinkPolicyCommand = async (input, context) => {
132
130
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
133
131
  const headers = {
134
132
  "content-type": "application/json",
@@ -148,7 +146,7 @@ export const serializeAws_restJson1GetSinkPolicyCommand = async (input, context)
148
146
  body,
149
147
  });
150
148
  };
151
- export const serializeAws_restJson1ListAttachedLinksCommand = async (input, context) => {
149
+ export const se_ListAttachedLinksCommand = async (input, context) => {
152
150
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
153
151
  const headers = {
154
152
  "content-type": "application/json",
@@ -170,7 +168,7 @@ export const serializeAws_restJson1ListAttachedLinksCommand = async (input, cont
170
168
  body,
171
169
  });
172
170
  };
173
- export const serializeAws_restJson1ListLinksCommand = async (input, context) => {
171
+ export const se_ListLinksCommand = async (input, context) => {
174
172
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
175
173
  const headers = {
176
174
  "content-type": "application/json",
@@ -191,7 +189,7 @@ export const serializeAws_restJson1ListLinksCommand = async (input, context) =>
191
189
  body,
192
190
  });
193
191
  };
194
- export const serializeAws_restJson1ListSinksCommand = async (input, context) => {
192
+ export const se_ListSinksCommand = async (input, context) => {
195
193
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
196
194
  const headers = {
197
195
  "content-type": "application/json",
@@ -212,7 +210,7 @@ export const serializeAws_restJson1ListSinksCommand = async (input, context) =>
212
210
  body,
213
211
  });
214
212
  };
215
- export const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
213
+ export const se_ListTagsForResourceCommand = async (input, context) => {
216
214
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
217
215
  const headers = {};
218
216
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
@@ -228,7 +226,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
228
226
  body,
229
227
  });
230
228
  };
231
- export const serializeAws_restJson1PutSinkPolicyCommand = async (input, context) => {
229
+ export const se_PutSinkPolicyCommand = async (input, context) => {
232
230
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
233
231
  const headers = {
234
232
  "content-type": "application/json",
@@ -249,7 +247,7 @@ export const serializeAws_restJson1PutSinkPolicyCommand = async (input, context)
249
247
  body,
250
248
  });
251
249
  };
252
- export const serializeAws_restJson1TagResourceCommand = async (input, context) => {
250
+ export const se_TagResourceCommand = async (input, context) => {
253
251
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
254
252
  const headers = {
255
253
  "content-type": "application/json",
@@ -258,7 +256,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
258
256
  resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
259
257
  let body;
260
258
  body = JSON.stringify({
261
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagMapInput(input.Tags, context) }),
259
+ ...(input.Tags != null && { Tags: se_TagMapInput(input.Tags, context) }),
262
260
  });
263
261
  return new __HttpRequest({
264
262
  protocol,
@@ -270,7 +268,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
270
268
  body,
271
269
  });
272
270
  };
273
- export const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
271
+ export const se_UntagResourceCommand = async (input, context) => {
274
272
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
275
273
  const headers = {};
276
274
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
@@ -293,7 +291,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
293
291
  body,
294
292
  });
295
293
  };
296
- export const serializeAws_restJson1UpdateLinkCommand = async (input, context) => {
294
+ export const se_UpdateLinkCommand = async (input, context) => {
297
295
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
298
296
  const headers = {
299
297
  "content-type": "application/json",
@@ -302,9 +300,7 @@ export const serializeAws_restJson1UpdateLinkCommand = async (input, context) =>
302
300
  let body;
303
301
  body = JSON.stringify({
304
302
  ...(input.Identifier != null && { Identifier: input.Identifier }),
305
- ...(input.ResourceTypes != null && {
306
- ResourceTypes: serializeAws_restJson1ResourceTypesInput(input.ResourceTypes, context),
307
- }),
303
+ ...(input.ResourceTypes != null && { ResourceTypes: se_ResourceTypesInput(input.ResourceTypes, context) }),
308
304
  });
309
305
  return new __HttpRequest({
310
306
  protocol,
@@ -316,9 +312,9 @@ export const serializeAws_restJson1UpdateLinkCommand = async (input, context) =>
316
312
  body,
317
313
  });
318
314
  };
319
- export const deserializeAws_restJson1CreateLinkCommand = async (output, context) => {
315
+ export const de_CreateLinkCommand = async (output, context) => {
320
316
  if (output.statusCode !== 200 && output.statusCode >= 300) {
321
- return deserializeAws_restJson1CreateLinkCommandError(output, context);
317
+ return de_CreateLinkCommandError(output, context);
322
318
  }
323
319
  const contents = map({
324
320
  $metadata: deserializeMetadata(output),
@@ -337,17 +333,17 @@ export const deserializeAws_restJson1CreateLinkCommand = async (output, context)
337
333
  contents.LabelTemplate = __expectString(data.LabelTemplate);
338
334
  }
339
335
  if (data.ResourceTypes != null) {
340
- contents.ResourceTypes = deserializeAws_restJson1ResourceTypesOutput(data.ResourceTypes, context);
336
+ contents.ResourceTypes = de_ResourceTypesOutput(data.ResourceTypes, context);
341
337
  }
342
338
  if (data.SinkArn != null) {
343
339
  contents.SinkArn = __expectString(data.SinkArn);
344
340
  }
345
341
  if (data.Tags != null) {
346
- contents.Tags = deserializeAws_restJson1TagMapOutput(data.Tags, context);
342
+ contents.Tags = de_TagMapOutput(data.Tags, context);
347
343
  }
348
344
  return contents;
349
345
  };
350
- const deserializeAws_restJson1CreateLinkCommandError = async (output, context) => {
346
+ const de_CreateLinkCommandError = async (output, context) => {
351
347
  const parsedOutput = {
352
348
  ...output,
353
349
  body: await parseErrorBody(output.body, context),
@@ -356,19 +352,19 @@ const deserializeAws_restJson1CreateLinkCommandError = async (output, context) =
356
352
  switch (errorCode) {
357
353
  case "ConflictException":
358
354
  case "com.amazonaws.oam#ConflictException":
359
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
355
+ throw await de_ConflictExceptionRes(parsedOutput, context);
360
356
  case "InternalServiceFault":
361
357
  case "com.amazonaws.oam#InternalServiceFault":
362
- throw await deserializeAws_restJson1InternalServiceFaultResponse(parsedOutput, context);
358
+ throw await de_InternalServiceFaultRes(parsedOutput, context);
363
359
  case "InvalidParameterException":
364
360
  case "com.amazonaws.oam#InvalidParameterException":
365
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
361
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
366
362
  case "MissingRequiredParameterException":
367
363
  case "com.amazonaws.oam#MissingRequiredParameterException":
368
- throw await deserializeAws_restJson1MissingRequiredParameterExceptionResponse(parsedOutput, context);
364
+ throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
369
365
  case "ServiceQuotaExceededException":
370
366
  case "com.amazonaws.oam#ServiceQuotaExceededException":
371
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
367
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
372
368
  default:
373
369
  const parsedBody = parsedOutput.body;
374
370
  throwDefaultError({
@@ -379,9 +375,9 @@ const deserializeAws_restJson1CreateLinkCommandError = async (output, context) =
379
375
  });
380
376
  }
381
377
  };
382
- export const deserializeAws_restJson1CreateSinkCommand = async (output, context) => {
378
+ export const de_CreateSinkCommand = async (output, context) => {
383
379
  if (output.statusCode !== 200 && output.statusCode >= 300) {
384
- return deserializeAws_restJson1CreateSinkCommandError(output, context);
380
+ return de_CreateSinkCommandError(output, context);
385
381
  }
386
382
  const contents = map({
387
383
  $metadata: deserializeMetadata(output),
@@ -397,11 +393,11 @@ export const deserializeAws_restJson1CreateSinkCommand = async (output, context)
397
393
  contents.Name = __expectString(data.Name);
398
394
  }
399
395
  if (data.Tags != null) {
400
- contents.Tags = deserializeAws_restJson1TagMapOutput(data.Tags, context);
396
+ contents.Tags = de_TagMapOutput(data.Tags, context);
401
397
  }
402
398
  return contents;
403
399
  };
404
- const deserializeAws_restJson1CreateSinkCommandError = async (output, context) => {
400
+ const de_CreateSinkCommandError = async (output, context) => {
405
401
  const parsedOutput = {
406
402
  ...output,
407
403
  body: await parseErrorBody(output.body, context),
@@ -410,19 +406,19 @@ const deserializeAws_restJson1CreateSinkCommandError = async (output, context) =
410
406
  switch (errorCode) {
411
407
  case "ConflictException":
412
408
  case "com.amazonaws.oam#ConflictException":
413
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
409
+ throw await de_ConflictExceptionRes(parsedOutput, context);
414
410
  case "InternalServiceFault":
415
411
  case "com.amazonaws.oam#InternalServiceFault":
416
- throw await deserializeAws_restJson1InternalServiceFaultResponse(parsedOutput, context);
412
+ throw await de_InternalServiceFaultRes(parsedOutput, context);
417
413
  case "InvalidParameterException":
418
414
  case "com.amazonaws.oam#InvalidParameterException":
419
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
415
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
420
416
  case "MissingRequiredParameterException":
421
417
  case "com.amazonaws.oam#MissingRequiredParameterException":
422
- throw await deserializeAws_restJson1MissingRequiredParameterExceptionResponse(parsedOutput, context);
418
+ throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
423
419
  case "ServiceQuotaExceededException":
424
420
  case "com.amazonaws.oam#ServiceQuotaExceededException":
425
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
421
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
426
422
  default:
427
423
  const parsedBody = parsedOutput.body;
428
424
  throwDefaultError({
@@ -433,9 +429,9 @@ const deserializeAws_restJson1CreateSinkCommandError = async (output, context) =
433
429
  });
434
430
  }
435
431
  };
436
- export const deserializeAws_restJson1DeleteLinkCommand = async (output, context) => {
432
+ export const de_DeleteLinkCommand = async (output, context) => {
437
433
  if (output.statusCode !== 200 && output.statusCode >= 300) {
438
- return deserializeAws_restJson1DeleteLinkCommandError(output, context);
434
+ return de_DeleteLinkCommandError(output, context);
439
435
  }
440
436
  const contents = map({
441
437
  $metadata: deserializeMetadata(output),
@@ -443,7 +439,7 @@ export const deserializeAws_restJson1DeleteLinkCommand = async (output, context)
443
439
  await collectBody(output.body, context);
444
440
  return contents;
445
441
  };
446
- const deserializeAws_restJson1DeleteLinkCommandError = async (output, context) => {
442
+ const de_DeleteLinkCommandError = async (output, context) => {
447
443
  const parsedOutput = {
448
444
  ...output,
449
445
  body: await parseErrorBody(output.body, context),
@@ -452,16 +448,16 @@ const deserializeAws_restJson1DeleteLinkCommandError = async (output, context) =
452
448
  switch (errorCode) {
453
449
  case "InternalServiceFault":
454
450
  case "com.amazonaws.oam#InternalServiceFault":
455
- throw await deserializeAws_restJson1InternalServiceFaultResponse(parsedOutput, context);
451
+ throw await de_InternalServiceFaultRes(parsedOutput, context);
456
452
  case "InvalidParameterException":
457
453
  case "com.amazonaws.oam#InvalidParameterException":
458
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
454
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
459
455
  case "MissingRequiredParameterException":
460
456
  case "com.amazonaws.oam#MissingRequiredParameterException":
461
- throw await deserializeAws_restJson1MissingRequiredParameterExceptionResponse(parsedOutput, context);
457
+ throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
462
458
  case "ResourceNotFoundException":
463
459
  case "com.amazonaws.oam#ResourceNotFoundException":
464
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
460
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
465
461
  default:
466
462
  const parsedBody = parsedOutput.body;
467
463
  throwDefaultError({
@@ -472,9 +468,9 @@ const deserializeAws_restJson1DeleteLinkCommandError = async (output, context) =
472
468
  });
473
469
  }
474
470
  };
475
- export const deserializeAws_restJson1DeleteSinkCommand = async (output, context) => {
471
+ export const de_DeleteSinkCommand = async (output, context) => {
476
472
  if (output.statusCode !== 200 && output.statusCode >= 300) {
477
- return deserializeAws_restJson1DeleteSinkCommandError(output, context);
473
+ return de_DeleteSinkCommandError(output, context);
478
474
  }
479
475
  const contents = map({
480
476
  $metadata: deserializeMetadata(output),
@@ -482,7 +478,7 @@ export const deserializeAws_restJson1DeleteSinkCommand = async (output, context)
482
478
  await collectBody(output.body, context);
483
479
  return contents;
484
480
  };
485
- const deserializeAws_restJson1DeleteSinkCommandError = async (output, context) => {
481
+ const de_DeleteSinkCommandError = async (output, context) => {
486
482
  const parsedOutput = {
487
483
  ...output,
488
484
  body: await parseErrorBody(output.body, context),
@@ -491,19 +487,19 @@ const deserializeAws_restJson1DeleteSinkCommandError = async (output, context) =
491
487
  switch (errorCode) {
492
488
  case "ConflictException":
493
489
  case "com.amazonaws.oam#ConflictException":
494
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
490
+ throw await de_ConflictExceptionRes(parsedOutput, context);
495
491
  case "InternalServiceFault":
496
492
  case "com.amazonaws.oam#InternalServiceFault":
497
- throw await deserializeAws_restJson1InternalServiceFaultResponse(parsedOutput, context);
493
+ throw await de_InternalServiceFaultRes(parsedOutput, context);
498
494
  case "InvalidParameterException":
499
495
  case "com.amazonaws.oam#InvalidParameterException":
500
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
496
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
501
497
  case "MissingRequiredParameterException":
502
498
  case "com.amazonaws.oam#MissingRequiredParameterException":
503
- throw await deserializeAws_restJson1MissingRequiredParameterExceptionResponse(parsedOutput, context);
499
+ throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
504
500
  case "ResourceNotFoundException":
505
501
  case "com.amazonaws.oam#ResourceNotFoundException":
506
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
502
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
507
503
  default:
508
504
  const parsedBody = parsedOutput.body;
509
505
  throwDefaultError({
@@ -514,9 +510,9 @@ const deserializeAws_restJson1DeleteSinkCommandError = async (output, context) =
514
510
  });
515
511
  }
516
512
  };
517
- export const deserializeAws_restJson1GetLinkCommand = async (output, context) => {
513
+ export const de_GetLinkCommand = async (output, context) => {
518
514
  if (output.statusCode !== 200 && output.statusCode >= 300) {
519
- return deserializeAws_restJson1GetLinkCommandError(output, context);
515
+ return de_GetLinkCommandError(output, context);
520
516
  }
521
517
  const contents = map({
522
518
  $metadata: deserializeMetadata(output),
@@ -535,17 +531,17 @@ export const deserializeAws_restJson1GetLinkCommand = async (output, context) =>
535
531
  contents.LabelTemplate = __expectString(data.LabelTemplate);
536
532
  }
537
533
  if (data.ResourceTypes != null) {
538
- contents.ResourceTypes = deserializeAws_restJson1ResourceTypesOutput(data.ResourceTypes, context);
534
+ contents.ResourceTypes = de_ResourceTypesOutput(data.ResourceTypes, context);
539
535
  }
540
536
  if (data.SinkArn != null) {
541
537
  contents.SinkArn = __expectString(data.SinkArn);
542
538
  }
543
539
  if (data.Tags != null) {
544
- contents.Tags = deserializeAws_restJson1TagMapOutput(data.Tags, context);
540
+ contents.Tags = de_TagMapOutput(data.Tags, context);
545
541
  }
546
542
  return contents;
547
543
  };
548
- const deserializeAws_restJson1GetLinkCommandError = async (output, context) => {
544
+ const de_GetLinkCommandError = async (output, context) => {
549
545
  const parsedOutput = {
550
546
  ...output,
551
547
  body: await parseErrorBody(output.body, context),
@@ -554,16 +550,16 @@ const deserializeAws_restJson1GetLinkCommandError = async (output, context) => {
554
550
  switch (errorCode) {
555
551
  case "InternalServiceFault":
556
552
  case "com.amazonaws.oam#InternalServiceFault":
557
- throw await deserializeAws_restJson1InternalServiceFaultResponse(parsedOutput, context);
553
+ throw await de_InternalServiceFaultRes(parsedOutput, context);
558
554
  case "InvalidParameterException":
559
555
  case "com.amazonaws.oam#InvalidParameterException":
560
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
556
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
561
557
  case "MissingRequiredParameterException":
562
558
  case "com.amazonaws.oam#MissingRequiredParameterException":
563
- throw await deserializeAws_restJson1MissingRequiredParameterExceptionResponse(parsedOutput, context);
559
+ throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
564
560
  case "ResourceNotFoundException":
565
561
  case "com.amazonaws.oam#ResourceNotFoundException":
566
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
562
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
567
563
  default:
568
564
  const parsedBody = parsedOutput.body;
569
565
  throwDefaultError({
@@ -574,9 +570,9 @@ const deserializeAws_restJson1GetLinkCommandError = async (output, context) => {
574
570
  });
575
571
  }
576
572
  };
577
- export const deserializeAws_restJson1GetSinkCommand = async (output, context) => {
573
+ export const de_GetSinkCommand = async (output, context) => {
578
574
  if (output.statusCode !== 200 && output.statusCode >= 300) {
579
- return deserializeAws_restJson1GetSinkCommandError(output, context);
575
+ return de_GetSinkCommandError(output, context);
580
576
  }
581
577
  const contents = map({
582
578
  $metadata: deserializeMetadata(output),
@@ -592,11 +588,11 @@ export const deserializeAws_restJson1GetSinkCommand = async (output, context) =>
592
588
  contents.Name = __expectString(data.Name);
593
589
  }
594
590
  if (data.Tags != null) {
595
- contents.Tags = deserializeAws_restJson1TagMapOutput(data.Tags, context);
591
+ contents.Tags = de_TagMapOutput(data.Tags, context);
596
592
  }
597
593
  return contents;
598
594
  };
599
- const deserializeAws_restJson1GetSinkCommandError = async (output, context) => {
595
+ const de_GetSinkCommandError = async (output, context) => {
600
596
  const parsedOutput = {
601
597
  ...output,
602
598
  body: await parseErrorBody(output.body, context),
@@ -605,16 +601,16 @@ const deserializeAws_restJson1GetSinkCommandError = async (output, context) => {
605
601
  switch (errorCode) {
606
602
  case "InternalServiceFault":
607
603
  case "com.amazonaws.oam#InternalServiceFault":
608
- throw await deserializeAws_restJson1InternalServiceFaultResponse(parsedOutput, context);
604
+ throw await de_InternalServiceFaultRes(parsedOutput, context);
609
605
  case "InvalidParameterException":
610
606
  case "com.amazonaws.oam#InvalidParameterException":
611
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
607
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
612
608
  case "MissingRequiredParameterException":
613
609
  case "com.amazonaws.oam#MissingRequiredParameterException":
614
- throw await deserializeAws_restJson1MissingRequiredParameterExceptionResponse(parsedOutput, context);
610
+ throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
615
611
  case "ResourceNotFoundException":
616
612
  case "com.amazonaws.oam#ResourceNotFoundException":
617
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
613
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
618
614
  default:
619
615
  const parsedBody = parsedOutput.body;
620
616
  throwDefaultError({
@@ -625,9 +621,9 @@ const deserializeAws_restJson1GetSinkCommandError = async (output, context) => {
625
621
  });
626
622
  }
627
623
  };
628
- export const deserializeAws_restJson1GetSinkPolicyCommand = async (output, context) => {
624
+ export const de_GetSinkPolicyCommand = async (output, context) => {
629
625
  if (output.statusCode !== 200 && output.statusCode >= 300) {
630
- return deserializeAws_restJson1GetSinkPolicyCommandError(output, context);
626
+ return de_GetSinkPolicyCommandError(output, context);
631
627
  }
632
628
  const contents = map({
633
629
  $metadata: deserializeMetadata(output),
@@ -644,7 +640,7 @@ export const deserializeAws_restJson1GetSinkPolicyCommand = async (output, conte
644
640
  }
645
641
  return contents;
646
642
  };
647
- const deserializeAws_restJson1GetSinkPolicyCommandError = async (output, context) => {
643
+ const de_GetSinkPolicyCommandError = async (output, context) => {
648
644
  const parsedOutput = {
649
645
  ...output,
650
646
  body: await parseErrorBody(output.body, context),
@@ -653,16 +649,16 @@ const deserializeAws_restJson1GetSinkPolicyCommandError = async (output, context
653
649
  switch (errorCode) {
654
650
  case "InternalServiceFault":
655
651
  case "com.amazonaws.oam#InternalServiceFault":
656
- throw await deserializeAws_restJson1InternalServiceFaultResponse(parsedOutput, context);
652
+ throw await de_InternalServiceFaultRes(parsedOutput, context);
657
653
  case "InvalidParameterException":
658
654
  case "com.amazonaws.oam#InvalidParameterException":
659
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
655
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
660
656
  case "MissingRequiredParameterException":
661
657
  case "com.amazonaws.oam#MissingRequiredParameterException":
662
- throw await deserializeAws_restJson1MissingRequiredParameterExceptionResponse(parsedOutput, context);
658
+ throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
663
659
  case "ResourceNotFoundException":
664
660
  case "com.amazonaws.oam#ResourceNotFoundException":
665
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
661
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
666
662
  default:
667
663
  const parsedBody = parsedOutput.body;
668
664
  throwDefaultError({
@@ -673,23 +669,23 @@ const deserializeAws_restJson1GetSinkPolicyCommandError = async (output, context
673
669
  });
674
670
  }
675
671
  };
676
- export const deserializeAws_restJson1ListAttachedLinksCommand = async (output, context) => {
672
+ export const de_ListAttachedLinksCommand = async (output, context) => {
677
673
  if (output.statusCode !== 200 && output.statusCode >= 300) {
678
- return deserializeAws_restJson1ListAttachedLinksCommandError(output, context);
674
+ return de_ListAttachedLinksCommandError(output, context);
679
675
  }
680
676
  const contents = map({
681
677
  $metadata: deserializeMetadata(output),
682
678
  });
683
679
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
684
680
  if (data.Items != null) {
685
- contents.Items = deserializeAws_restJson1ListAttachedLinksItems(data.Items, context);
681
+ contents.Items = de_ListAttachedLinksItems(data.Items, context);
686
682
  }
687
683
  if (data.NextToken != null) {
688
684
  contents.NextToken = __expectString(data.NextToken);
689
685
  }
690
686
  return contents;
691
687
  };
692
- const deserializeAws_restJson1ListAttachedLinksCommandError = async (output, context) => {
688
+ const de_ListAttachedLinksCommandError = async (output, context) => {
693
689
  const parsedOutput = {
694
690
  ...output,
695
691
  body: await parseErrorBody(output.body, context),
@@ -698,16 +694,16 @@ const deserializeAws_restJson1ListAttachedLinksCommandError = async (output, con
698
694
  switch (errorCode) {
699
695
  case "InternalServiceFault":
700
696
  case "com.amazonaws.oam#InternalServiceFault":
701
- throw await deserializeAws_restJson1InternalServiceFaultResponse(parsedOutput, context);
697
+ throw await de_InternalServiceFaultRes(parsedOutput, context);
702
698
  case "InvalidParameterException":
703
699
  case "com.amazonaws.oam#InvalidParameterException":
704
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
700
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
705
701
  case "MissingRequiredParameterException":
706
702
  case "com.amazonaws.oam#MissingRequiredParameterException":
707
- throw await deserializeAws_restJson1MissingRequiredParameterExceptionResponse(parsedOutput, context);
703
+ throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
708
704
  case "ResourceNotFoundException":
709
705
  case "com.amazonaws.oam#ResourceNotFoundException":
710
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
706
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
711
707
  default:
712
708
  const parsedBody = parsedOutput.body;
713
709
  throwDefaultError({
@@ -718,23 +714,23 @@ const deserializeAws_restJson1ListAttachedLinksCommandError = async (output, con
718
714
  });
719
715
  }
720
716
  };
721
- export const deserializeAws_restJson1ListLinksCommand = async (output, context) => {
717
+ export const de_ListLinksCommand = async (output, context) => {
722
718
  if (output.statusCode !== 200 && output.statusCode >= 300) {
723
- return deserializeAws_restJson1ListLinksCommandError(output, context);
719
+ return de_ListLinksCommandError(output, context);
724
720
  }
725
721
  const contents = map({
726
722
  $metadata: deserializeMetadata(output),
727
723
  });
728
724
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
729
725
  if (data.Items != null) {
730
- contents.Items = deserializeAws_restJson1ListLinksItems(data.Items, context);
726
+ contents.Items = de_ListLinksItems(data.Items, context);
731
727
  }
732
728
  if (data.NextToken != null) {
733
729
  contents.NextToken = __expectString(data.NextToken);
734
730
  }
735
731
  return contents;
736
732
  };
737
- const deserializeAws_restJson1ListLinksCommandError = async (output, context) => {
733
+ const de_ListLinksCommandError = async (output, context) => {
738
734
  const parsedOutput = {
739
735
  ...output,
740
736
  body: await parseErrorBody(output.body, context),
@@ -743,13 +739,13 @@ const deserializeAws_restJson1ListLinksCommandError = async (output, context) =>
743
739
  switch (errorCode) {
744
740
  case "InternalServiceFault":
745
741
  case "com.amazonaws.oam#InternalServiceFault":
746
- throw await deserializeAws_restJson1InternalServiceFaultResponse(parsedOutput, context);
742
+ throw await de_InternalServiceFaultRes(parsedOutput, context);
747
743
  case "InvalidParameterException":
748
744
  case "com.amazonaws.oam#InvalidParameterException":
749
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
745
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
750
746
  case "ResourceNotFoundException":
751
747
  case "com.amazonaws.oam#ResourceNotFoundException":
752
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
748
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
753
749
  default:
754
750
  const parsedBody = parsedOutput.body;
755
751
  throwDefaultError({
@@ -760,23 +756,23 @@ const deserializeAws_restJson1ListLinksCommandError = async (output, context) =>
760
756
  });
761
757
  }
762
758
  };
763
- export const deserializeAws_restJson1ListSinksCommand = async (output, context) => {
759
+ export const de_ListSinksCommand = async (output, context) => {
764
760
  if (output.statusCode !== 200 && output.statusCode >= 300) {
765
- return deserializeAws_restJson1ListSinksCommandError(output, context);
761
+ return de_ListSinksCommandError(output, context);
766
762
  }
767
763
  const contents = map({
768
764
  $metadata: deserializeMetadata(output),
769
765
  });
770
766
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
771
767
  if (data.Items != null) {
772
- contents.Items = deserializeAws_restJson1ListSinksItems(data.Items, context);
768
+ contents.Items = de_ListSinksItems(data.Items, context);
773
769
  }
774
770
  if (data.NextToken != null) {
775
771
  contents.NextToken = __expectString(data.NextToken);
776
772
  }
777
773
  return contents;
778
774
  };
779
- const deserializeAws_restJson1ListSinksCommandError = async (output, context) => {
775
+ const de_ListSinksCommandError = async (output, context) => {
780
776
  const parsedOutput = {
781
777
  ...output,
782
778
  body: await parseErrorBody(output.body, context),
@@ -785,13 +781,13 @@ const deserializeAws_restJson1ListSinksCommandError = async (output, context) =>
785
781
  switch (errorCode) {
786
782
  case "InternalServiceFault":
787
783
  case "com.amazonaws.oam#InternalServiceFault":
788
- throw await deserializeAws_restJson1InternalServiceFaultResponse(parsedOutput, context);
784
+ throw await de_InternalServiceFaultRes(parsedOutput, context);
789
785
  case "InvalidParameterException":
790
786
  case "com.amazonaws.oam#InvalidParameterException":
791
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
787
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
792
788
  case "ResourceNotFoundException":
793
789
  case "com.amazonaws.oam#ResourceNotFoundException":
794
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
790
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
795
791
  default:
796
792
  const parsedBody = parsedOutput.body;
797
793
  throwDefaultError({
@@ -802,20 +798,20 @@ const deserializeAws_restJson1ListSinksCommandError = async (output, context) =>
802
798
  });
803
799
  }
804
800
  };
805
- export const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
801
+ export const de_ListTagsForResourceCommand = async (output, context) => {
806
802
  if (output.statusCode !== 200 && output.statusCode >= 300) {
807
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
803
+ return de_ListTagsForResourceCommandError(output, context);
808
804
  }
809
805
  const contents = map({
810
806
  $metadata: deserializeMetadata(output),
811
807
  });
812
808
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
813
809
  if (data.Tags != null) {
814
- contents.Tags = deserializeAws_restJson1TagMapOutput(data.Tags, context);
810
+ contents.Tags = de_TagMapOutput(data.Tags, context);
815
811
  }
816
812
  return contents;
817
813
  };
818
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
814
+ const de_ListTagsForResourceCommandError = async (output, context) => {
819
815
  const parsedOutput = {
820
816
  ...output,
821
817
  body: await parseErrorBody(output.body, context),
@@ -824,10 +820,10 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
824
820
  switch (errorCode) {
825
821
  case "ResourceNotFoundException":
826
822
  case "com.amazonaws.oam#ResourceNotFoundException":
827
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
823
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
828
824
  case "ValidationException":
829
825
  case "com.amazonaws.oam#ValidationException":
830
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
826
+ throw await de_ValidationExceptionRes(parsedOutput, context);
831
827
  default:
832
828
  const parsedBody = parsedOutput.body;
833
829
  throwDefaultError({
@@ -838,9 +834,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
838
834
  });
839
835
  }
840
836
  };
841
- export const deserializeAws_restJson1PutSinkPolicyCommand = async (output, context) => {
837
+ export const de_PutSinkPolicyCommand = async (output, context) => {
842
838
  if (output.statusCode !== 200 && output.statusCode >= 300) {
843
- return deserializeAws_restJson1PutSinkPolicyCommandError(output, context);
839
+ return de_PutSinkPolicyCommandError(output, context);
844
840
  }
845
841
  const contents = map({
846
842
  $metadata: deserializeMetadata(output),
@@ -857,7 +853,7 @@ export const deserializeAws_restJson1PutSinkPolicyCommand = async (output, conte
857
853
  }
858
854
  return contents;
859
855
  };
860
- const deserializeAws_restJson1PutSinkPolicyCommandError = async (output, context) => {
856
+ const de_PutSinkPolicyCommandError = async (output, context) => {
861
857
  const parsedOutput = {
862
858
  ...output,
863
859
  body: await parseErrorBody(output.body, context),
@@ -866,16 +862,16 @@ const deserializeAws_restJson1PutSinkPolicyCommandError = async (output, context
866
862
  switch (errorCode) {
867
863
  case "InternalServiceFault":
868
864
  case "com.amazonaws.oam#InternalServiceFault":
869
- throw await deserializeAws_restJson1InternalServiceFaultResponse(parsedOutput, context);
865
+ throw await de_InternalServiceFaultRes(parsedOutput, context);
870
866
  case "InvalidParameterException":
871
867
  case "com.amazonaws.oam#InvalidParameterException":
872
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
868
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
873
869
  case "MissingRequiredParameterException":
874
870
  case "com.amazonaws.oam#MissingRequiredParameterException":
875
- throw await deserializeAws_restJson1MissingRequiredParameterExceptionResponse(parsedOutput, context);
871
+ throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
876
872
  case "ResourceNotFoundException":
877
873
  case "com.amazonaws.oam#ResourceNotFoundException":
878
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
874
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
879
875
  default:
880
876
  const parsedBody = parsedOutput.body;
881
877
  throwDefaultError({
@@ -886,9 +882,9 @@ const deserializeAws_restJson1PutSinkPolicyCommandError = async (output, context
886
882
  });
887
883
  }
888
884
  };
889
- export const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
885
+ export const de_TagResourceCommand = async (output, context) => {
890
886
  if (output.statusCode !== 200 && output.statusCode >= 300) {
891
- return deserializeAws_restJson1TagResourceCommandError(output, context);
887
+ return de_TagResourceCommandError(output, context);
892
888
  }
893
889
  const contents = map({
894
890
  $metadata: deserializeMetadata(output),
@@ -896,7 +892,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
896
892
  await collectBody(output.body, context);
897
893
  return contents;
898
894
  };
899
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
895
+ const de_TagResourceCommandError = async (output, context) => {
900
896
  const parsedOutput = {
901
897
  ...output,
902
898
  body: await parseErrorBody(output.body, context),
@@ -905,13 +901,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
905
901
  switch (errorCode) {
906
902
  case "ResourceNotFoundException":
907
903
  case "com.amazonaws.oam#ResourceNotFoundException":
908
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
904
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
909
905
  case "TooManyTagsException":
910
906
  case "com.amazonaws.oam#TooManyTagsException":
911
- throw await deserializeAws_restJson1TooManyTagsExceptionResponse(parsedOutput, context);
907
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
912
908
  case "ValidationException":
913
909
  case "com.amazonaws.oam#ValidationException":
914
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
910
+ throw await de_ValidationExceptionRes(parsedOutput, context);
915
911
  default:
916
912
  const parsedBody = parsedOutput.body;
917
913
  throwDefaultError({
@@ -922,9 +918,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
922
918
  });
923
919
  }
924
920
  };
925
- export const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
921
+ export const de_UntagResourceCommand = async (output, context) => {
926
922
  if (output.statusCode !== 200 && output.statusCode >= 300) {
927
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
923
+ return de_UntagResourceCommandError(output, context);
928
924
  }
929
925
  const contents = map({
930
926
  $metadata: deserializeMetadata(output),
@@ -932,7 +928,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
932
928
  await collectBody(output.body, context);
933
929
  return contents;
934
930
  };
935
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
931
+ const de_UntagResourceCommandError = async (output, context) => {
936
932
  const parsedOutput = {
937
933
  ...output,
938
934
  body: await parseErrorBody(output.body, context),
@@ -941,10 +937,10 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
941
937
  switch (errorCode) {
942
938
  case "ResourceNotFoundException":
943
939
  case "com.amazonaws.oam#ResourceNotFoundException":
944
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
940
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
945
941
  case "ValidationException":
946
942
  case "com.amazonaws.oam#ValidationException":
947
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
943
+ throw await de_ValidationExceptionRes(parsedOutput, context);
948
944
  default:
949
945
  const parsedBody = parsedOutput.body;
950
946
  throwDefaultError({
@@ -955,9 +951,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
955
951
  });
956
952
  }
957
953
  };
958
- export const deserializeAws_restJson1UpdateLinkCommand = async (output, context) => {
954
+ export const de_UpdateLinkCommand = async (output, context) => {
959
955
  if (output.statusCode !== 200 && output.statusCode >= 300) {
960
- return deserializeAws_restJson1UpdateLinkCommandError(output, context);
956
+ return de_UpdateLinkCommandError(output, context);
961
957
  }
962
958
  const contents = map({
963
959
  $metadata: deserializeMetadata(output),
@@ -976,17 +972,17 @@ export const deserializeAws_restJson1UpdateLinkCommand = async (output, context)
976
972
  contents.LabelTemplate = __expectString(data.LabelTemplate);
977
973
  }
978
974
  if (data.ResourceTypes != null) {
979
- contents.ResourceTypes = deserializeAws_restJson1ResourceTypesOutput(data.ResourceTypes, context);
975
+ contents.ResourceTypes = de_ResourceTypesOutput(data.ResourceTypes, context);
980
976
  }
981
977
  if (data.SinkArn != null) {
982
978
  contents.SinkArn = __expectString(data.SinkArn);
983
979
  }
984
980
  if (data.Tags != null) {
985
- contents.Tags = deserializeAws_restJson1TagMapOutput(data.Tags, context);
981
+ contents.Tags = de_TagMapOutput(data.Tags, context);
986
982
  }
987
983
  return contents;
988
984
  };
989
- const deserializeAws_restJson1UpdateLinkCommandError = async (output, context) => {
985
+ const de_UpdateLinkCommandError = async (output, context) => {
990
986
  const parsedOutput = {
991
987
  ...output,
992
988
  body: await parseErrorBody(output.body, context),
@@ -995,16 +991,16 @@ const deserializeAws_restJson1UpdateLinkCommandError = async (output, context) =
995
991
  switch (errorCode) {
996
992
  case "InternalServiceFault":
997
993
  case "com.amazonaws.oam#InternalServiceFault":
998
- throw await deserializeAws_restJson1InternalServiceFaultResponse(parsedOutput, context);
994
+ throw await de_InternalServiceFaultRes(parsedOutput, context);
999
995
  case "InvalidParameterException":
1000
996
  case "com.amazonaws.oam#InvalidParameterException":
1001
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
997
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1002
998
  case "MissingRequiredParameterException":
1003
999
  case "com.amazonaws.oam#MissingRequiredParameterException":
1004
- throw await deserializeAws_restJson1MissingRequiredParameterExceptionResponse(parsedOutput, context);
1000
+ throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
1005
1001
  case "ResourceNotFoundException":
1006
1002
  case "com.amazonaws.oam#ResourceNotFoundException":
1007
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1003
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1008
1004
  default:
1009
1005
  const parsedBody = parsedOutput.body;
1010
1006
  throwDefaultError({
@@ -1016,7 +1012,7 @@ const deserializeAws_restJson1UpdateLinkCommandError = async (output, context) =
1016
1012
  }
1017
1013
  };
1018
1014
  const map = __map;
1019
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
1015
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1020
1016
  const contents = map({
1021
1017
  amznErrorType: [, parsedOutput.headers["x-amzn-errortype"]],
1022
1018
  });
@@ -1030,7 +1026,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
1030
1026
  });
1031
1027
  return __decorateServiceException(exception, parsedOutput.body);
1032
1028
  };
1033
- const deserializeAws_restJson1InternalServiceFaultResponse = async (parsedOutput, context) => {
1029
+ const de_InternalServiceFaultRes = async (parsedOutput, context) => {
1034
1030
  const contents = map({
1035
1031
  amznErrorType: [, parsedOutput.headers["x-amzn-errortype"]],
1036
1032
  });
@@ -1044,7 +1040,7 @@ const deserializeAws_restJson1InternalServiceFaultResponse = async (parsedOutput
1044
1040
  });
1045
1041
  return __decorateServiceException(exception, parsedOutput.body);
1046
1042
  };
1047
- const deserializeAws_restJson1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
1043
+ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
1048
1044
  const contents = map({
1049
1045
  amznErrorType: [, parsedOutput.headers["x-amzn-errortype"]],
1050
1046
  });
@@ -1058,7 +1054,7 @@ const deserializeAws_restJson1InvalidParameterExceptionResponse = async (parsedO
1058
1054
  });
1059
1055
  return __decorateServiceException(exception, parsedOutput.body);
1060
1056
  };
1061
- const deserializeAws_restJson1MissingRequiredParameterExceptionResponse = async (parsedOutput, context) => {
1057
+ const de_MissingRequiredParameterExceptionRes = async (parsedOutput, context) => {
1062
1058
  const contents = map({
1063
1059
  amznErrorType: [, parsedOutput.headers["x-amzn-errortype"]],
1064
1060
  });
@@ -1072,7 +1068,7 @@ const deserializeAws_restJson1MissingRequiredParameterExceptionResponse = async
1072
1068
  });
1073
1069
  return __decorateServiceException(exception, parsedOutput.body);
1074
1070
  };
1075
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
1071
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1076
1072
  const contents = map({
1077
1073
  amznErrorType: [, parsedOutput.headers["x-amzn-errortype"]],
1078
1074
  });
@@ -1086,7 +1082,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
1086
1082
  });
1087
1083
  return __decorateServiceException(exception, parsedOutput.body);
1088
1084
  };
1089
- const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
1085
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1090
1086
  const contents = map({
1091
1087
  amznErrorType: [, parsedOutput.headers["x-amzn-errortype"]],
1092
1088
  });
@@ -1100,7 +1096,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
1100
1096
  });
1101
1097
  return __decorateServiceException(exception, parsedOutput.body);
1102
1098
  };
1103
- const deserializeAws_restJson1TooManyTagsExceptionResponse = async (parsedOutput, context) => {
1099
+ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
1104
1100
  const contents = map({});
1105
1101
  const data = parsedOutput.body;
1106
1102
  if (data.Message != null) {
@@ -1112,7 +1108,7 @@ const deserializeAws_restJson1TooManyTagsExceptionResponse = async (parsedOutput
1112
1108
  });
1113
1109
  return __decorateServiceException(exception, parsedOutput.body);
1114
1110
  };
1115
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
1111
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1116
1112
  const contents = map({});
1117
1113
  const data = parsedOutput.body;
1118
1114
  if (data.Message != null) {
@@ -1124,14 +1120,14 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
1124
1120
  });
1125
1121
  return __decorateServiceException(exception, parsedOutput.body);
1126
1122
  };
1127
- const serializeAws_restJson1ResourceTypesInput = (input, context) => {
1123
+ const se_ResourceTypesInput = (input, context) => {
1128
1124
  return input
1129
1125
  .filter((e) => e != null)
1130
1126
  .map((entry) => {
1131
1127
  return entry;
1132
1128
  });
1133
1129
  };
1134
- const serializeAws_restJson1TagMapInput = (input, context) => {
1130
+ const se_TagMapInput = (input, context) => {
1135
1131
  return Object.entries(input).reduce((acc, [key, value]) => {
1136
1132
  if (value === null) {
1137
1133
  return acc;
@@ -1140,67 +1136,63 @@ const serializeAws_restJson1TagMapInput = (input, context) => {
1140
1136
  return acc;
1141
1137
  }, {});
1142
1138
  };
1143
- const deserializeAws_restJson1ListAttachedLinksItem = (output, context) => {
1139
+ const de_ListAttachedLinksItem = (output, context) => {
1144
1140
  return {
1145
1141
  Label: __expectString(output.Label),
1146
1142
  LinkArn: __expectString(output.LinkArn),
1147
- ResourceTypes: output.ResourceTypes != null
1148
- ? deserializeAws_restJson1ResourceTypesOutput(output.ResourceTypes, context)
1149
- : undefined,
1143
+ ResourceTypes: output.ResourceTypes != null ? de_ResourceTypesOutput(output.ResourceTypes, context) : undefined,
1150
1144
  };
1151
1145
  };
1152
- const deserializeAws_restJson1ListAttachedLinksItems = (output, context) => {
1146
+ const de_ListAttachedLinksItems = (output, context) => {
1153
1147
  const retVal = (output || [])
1154
1148
  .filter((e) => e != null)
1155
1149
  .map((entry) => {
1156
1150
  if (entry === null) {
1157
1151
  return null;
1158
1152
  }
1159
- return deserializeAws_restJson1ListAttachedLinksItem(entry, context);
1153
+ return de_ListAttachedLinksItem(entry, context);
1160
1154
  });
1161
1155
  return retVal;
1162
1156
  };
1163
- const deserializeAws_restJson1ListLinksItem = (output, context) => {
1157
+ const de_ListLinksItem = (output, context) => {
1164
1158
  return {
1165
1159
  Arn: __expectString(output.Arn),
1166
1160
  Id: __expectString(output.Id),
1167
1161
  Label: __expectString(output.Label),
1168
- ResourceTypes: output.ResourceTypes != null
1169
- ? deserializeAws_restJson1ResourceTypesOutput(output.ResourceTypes, context)
1170
- : undefined,
1162
+ ResourceTypes: output.ResourceTypes != null ? de_ResourceTypesOutput(output.ResourceTypes, context) : undefined,
1171
1163
  SinkArn: __expectString(output.SinkArn),
1172
1164
  };
1173
1165
  };
1174
- const deserializeAws_restJson1ListLinksItems = (output, context) => {
1166
+ const de_ListLinksItems = (output, context) => {
1175
1167
  const retVal = (output || [])
1176
1168
  .filter((e) => e != null)
1177
1169
  .map((entry) => {
1178
1170
  if (entry === null) {
1179
1171
  return null;
1180
1172
  }
1181
- return deserializeAws_restJson1ListLinksItem(entry, context);
1173
+ return de_ListLinksItem(entry, context);
1182
1174
  });
1183
1175
  return retVal;
1184
1176
  };
1185
- const deserializeAws_restJson1ListSinksItem = (output, context) => {
1177
+ const de_ListSinksItem = (output, context) => {
1186
1178
  return {
1187
1179
  Arn: __expectString(output.Arn),
1188
1180
  Id: __expectString(output.Id),
1189
1181
  Name: __expectString(output.Name),
1190
1182
  };
1191
1183
  };
1192
- const deserializeAws_restJson1ListSinksItems = (output, context) => {
1184
+ const de_ListSinksItems = (output, context) => {
1193
1185
  const retVal = (output || [])
1194
1186
  .filter((e) => e != null)
1195
1187
  .map((entry) => {
1196
1188
  if (entry === null) {
1197
1189
  return null;
1198
1190
  }
1199
- return deserializeAws_restJson1ListSinksItem(entry, context);
1191
+ return de_ListSinksItem(entry, context);
1200
1192
  });
1201
1193
  return retVal;
1202
1194
  };
1203
- const deserializeAws_restJson1ResourceTypesOutput = (output, context) => {
1195
+ const de_ResourceTypesOutput = (output, context) => {
1204
1196
  const retVal = (output || [])
1205
1197
  .filter((e) => e != null)
1206
1198
  .map((entry) => {
@@ -1211,7 +1203,7 @@ const deserializeAws_restJson1ResourceTypesOutput = (output, context) => {
1211
1203
  });
1212
1204
  return retVal;
1213
1205
  };
1214
- const deserializeAws_restJson1TagMapOutput = (output, context) => {
1206
+ const de_TagMapOutput = (output, context) => {
1215
1207
  return Object.entries(output).reduce((acc, [key, value]) => {
1216
1208
  if (value === null) {
1217
1209
  return acc;