@aws-sdk/client-ssm-sap 3.303.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 (39) hide show
  1. package/dist-cjs/commands/DeleteResourcePermissionCommand.js +2 -2
  2. package/dist-cjs/commands/DeregisterApplicationCommand.js +2 -2
  3. package/dist-cjs/commands/GetApplicationCommand.js +2 -2
  4. package/dist-cjs/commands/GetComponentCommand.js +2 -2
  5. package/dist-cjs/commands/GetDatabaseCommand.js +2 -2
  6. package/dist-cjs/commands/GetOperationCommand.js +2 -2
  7. package/dist-cjs/commands/GetResourcePermissionCommand.js +2 -2
  8. package/dist-cjs/commands/ListApplicationsCommand.js +2 -2
  9. package/dist-cjs/commands/ListComponentsCommand.js +2 -2
  10. package/dist-cjs/commands/ListDatabasesCommand.js +2 -2
  11. package/dist-cjs/commands/ListOperationsCommand.js +2 -2
  12. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  13. package/dist-cjs/commands/PutResourcePermissionCommand.js +2 -2
  14. package/dist-cjs/commands/RegisterApplicationCommand.js +2 -2
  15. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  16. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  17. package/dist-cjs/commands/UpdateApplicationSettingsCommand.js +2 -2
  18. package/dist-cjs/protocols/Aws_restJson1.js +214 -218
  19. package/dist-es/commands/DeleteResourcePermissionCommand.js +3 -3
  20. package/dist-es/commands/DeregisterApplicationCommand.js +3 -3
  21. package/dist-es/commands/GetApplicationCommand.js +3 -3
  22. package/dist-es/commands/GetComponentCommand.js +3 -3
  23. package/dist-es/commands/GetDatabaseCommand.js +3 -3
  24. package/dist-es/commands/GetOperationCommand.js +3 -3
  25. package/dist-es/commands/GetResourcePermissionCommand.js +3 -3
  26. package/dist-es/commands/ListApplicationsCommand.js +3 -3
  27. package/dist-es/commands/ListComponentsCommand.js +3 -3
  28. package/dist-es/commands/ListDatabasesCommand.js +3 -3
  29. package/dist-es/commands/ListOperationsCommand.js +3 -3
  30. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  31. package/dist-es/commands/PutResourcePermissionCommand.js +3 -3
  32. package/dist-es/commands/RegisterApplicationCommand.js +3 -3
  33. package/dist-es/commands/TagResourceCommand.js +3 -3
  34. package/dist-es/commands/UntagResourceCommand.js +3 -3
  35. package/dist-es/commands/UpdateApplicationSettingsCommand.js +3 -3
  36. package/dist-es/protocols/Aws_restJson1.js +179 -183
  37. package/dist-types/protocols/Aws_restJson1.d.ts +136 -34
  38. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +34 -34
  39. package/package.json +29 -29
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { ConflictException, InternalServerException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
4
4
  import { SsmSapServiceException as __BaseException } from "../models/SsmSapServiceException";
5
- export const serializeAws_restJson1DeleteResourcePermissionCommand = async (input, context) => {
5
+ export const se_DeleteResourcePermissionCommand = 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",
@@ -24,7 +24,7 @@ export const serializeAws_restJson1DeleteResourcePermissionCommand = async (inpu
24
24
  body,
25
25
  });
26
26
  };
27
- export const serializeAws_restJson1DeregisterApplicationCommand = async (input, context) => {
27
+ export const se_DeregisterApplicationCommand = async (input, context) => {
28
28
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
29
29
  const headers = {
30
30
  "content-type": "application/json",
@@ -44,7 +44,7 @@ export const serializeAws_restJson1DeregisterApplicationCommand = async (input,
44
44
  body,
45
45
  });
46
46
  };
47
- export const serializeAws_restJson1GetApplicationCommand = async (input, context) => {
47
+ export const se_GetApplicationCommand = async (input, context) => {
48
48
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
49
49
  const headers = {
50
50
  "content-type": "application/json",
@@ -66,7 +66,7 @@ export const serializeAws_restJson1GetApplicationCommand = async (input, context
66
66
  body,
67
67
  });
68
68
  };
69
- export const serializeAws_restJson1GetComponentCommand = async (input, context) => {
69
+ export const se_GetComponentCommand = async (input, context) => {
70
70
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
71
71
  const headers = {
72
72
  "content-type": "application/json",
@@ -87,7 +87,7 @@ export const serializeAws_restJson1GetComponentCommand = async (input, context)
87
87
  body,
88
88
  });
89
89
  };
90
- export const serializeAws_restJson1GetDatabaseCommand = async (input, context) => {
90
+ export const se_GetDatabaseCommand = async (input, context) => {
91
91
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
92
92
  const headers = {
93
93
  "content-type": "application/json",
@@ -110,7 +110,7 @@ export const serializeAws_restJson1GetDatabaseCommand = async (input, context) =
110
110
  body,
111
111
  });
112
112
  };
113
- export const serializeAws_restJson1GetOperationCommand = async (input, context) => {
113
+ export const se_GetOperationCommand = async (input, context) => {
114
114
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
115
115
  const headers = {
116
116
  "content-type": "application/json",
@@ -130,7 +130,7 @@ export const serializeAws_restJson1GetOperationCommand = async (input, context)
130
130
  body,
131
131
  });
132
132
  };
133
- export const serializeAws_restJson1GetResourcePermissionCommand = async (input, context) => {
133
+ export const se_GetResourcePermissionCommand = async (input, context) => {
134
134
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
135
135
  const headers = {
136
136
  "content-type": "application/json",
@@ -151,7 +151,7 @@ export const serializeAws_restJson1GetResourcePermissionCommand = async (input,
151
151
  body,
152
152
  });
153
153
  };
154
- export const serializeAws_restJson1ListApplicationsCommand = async (input, context) => {
154
+ export const se_ListApplicationsCommand = async (input, context) => {
155
155
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
156
156
  const headers = {
157
157
  "content-type": "application/json",
@@ -172,7 +172,7 @@ export const serializeAws_restJson1ListApplicationsCommand = async (input, conte
172
172
  body,
173
173
  });
174
174
  };
175
- export const serializeAws_restJson1ListComponentsCommand = async (input, context) => {
175
+ export const se_ListComponentsCommand = async (input, context) => {
176
176
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
177
177
  const headers = {
178
178
  "content-type": "application/json",
@@ -194,7 +194,7 @@ export const serializeAws_restJson1ListComponentsCommand = async (input, context
194
194
  body,
195
195
  });
196
196
  };
197
- export const serializeAws_restJson1ListDatabasesCommand = async (input, context) => {
197
+ export const se_ListDatabasesCommand = async (input, context) => {
198
198
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
199
199
  const headers = {
200
200
  "content-type": "application/json",
@@ -217,7 +217,7 @@ export const serializeAws_restJson1ListDatabasesCommand = async (input, context)
217
217
  body,
218
218
  });
219
219
  };
220
- export const serializeAws_restJson1ListOperationsCommand = async (input, context) => {
220
+ export const se_ListOperationsCommand = async (input, context) => {
221
221
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
222
222
  const headers = {
223
223
  "content-type": "application/json",
@@ -226,7 +226,7 @@ export const serializeAws_restJson1ListOperationsCommand = async (input, context
226
226
  let body;
227
227
  body = JSON.stringify({
228
228
  ...(input.ApplicationId != null && { ApplicationId: input.ApplicationId }),
229
- ...(input.Filters != null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) }),
229
+ ...(input.Filters != null && { Filters: se_FilterList(input.Filters, context) }),
230
230
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
231
231
  ...(input.NextToken != null && { NextToken: input.NextToken }),
232
232
  });
@@ -240,7 +240,7 @@ export const serializeAws_restJson1ListOperationsCommand = async (input, context
240
240
  body,
241
241
  });
242
242
  };
243
- export const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
243
+ export const se_ListTagsForResourceCommand = async (input, context) => {
244
244
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
245
245
  const headers = {};
246
246
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -256,7 +256,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
256
256
  body,
257
257
  });
258
258
  };
259
- export const serializeAws_restJson1PutResourcePermissionCommand = async (input, context) => {
259
+ export const se_PutResourcePermissionCommand = async (input, context) => {
260
260
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
261
261
  const headers = {
262
262
  "content-type": "application/json",
@@ -278,7 +278,7 @@ export const serializeAws_restJson1PutResourcePermissionCommand = async (input,
278
278
  body,
279
279
  });
280
280
  };
281
- export const serializeAws_restJson1RegisterApplicationCommand = async (input, context) => {
281
+ export const se_RegisterApplicationCommand = async (input, context) => {
282
282
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
283
283
  const headers = {
284
284
  "content-type": "application/json",
@@ -288,13 +288,11 @@ export const serializeAws_restJson1RegisterApplicationCommand = async (input, co
288
288
  body = JSON.stringify({
289
289
  ...(input.ApplicationId != null && { ApplicationId: input.ApplicationId }),
290
290
  ...(input.ApplicationType != null && { ApplicationType: input.ApplicationType }),
291
- ...(input.Credentials != null && {
292
- Credentials: serializeAws_restJson1ApplicationCredentialList(input.Credentials, context),
293
- }),
294
- ...(input.Instances != null && { Instances: serializeAws_restJson1InstanceList(input.Instances, context) }),
291
+ ...(input.Credentials != null && { Credentials: se_ApplicationCredentialList(input.Credentials, context) }),
292
+ ...(input.Instances != null && { Instances: se_InstanceList(input.Instances, context) }),
295
293
  ...(input.SapInstanceNumber != null && { SapInstanceNumber: input.SapInstanceNumber }),
296
294
  ...(input.Sid != null && { Sid: input.Sid }),
297
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
295
+ ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
298
296
  });
299
297
  return new __HttpRequest({
300
298
  protocol,
@@ -306,7 +304,7 @@ export const serializeAws_restJson1RegisterApplicationCommand = async (input, co
306
304
  body,
307
305
  });
308
306
  };
309
- export const serializeAws_restJson1TagResourceCommand = async (input, context) => {
307
+ export const se_TagResourceCommand = async (input, context) => {
310
308
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
311
309
  const headers = {
312
310
  "content-type": "application/json",
@@ -315,7 +313,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
315
313
  resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
316
314
  let body;
317
315
  body = JSON.stringify({
318
- ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
316
+ ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
319
317
  });
320
318
  return new __HttpRequest({
321
319
  protocol,
@@ -327,7 +325,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
327
325
  body,
328
326
  });
329
327
  };
330
- export const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
328
+ export const se_UntagResourceCommand = async (input, context) => {
331
329
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
332
330
  const headers = {};
333
331
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -350,7 +348,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
350
348
  body,
351
349
  });
352
350
  };
353
- export const serializeAws_restJson1UpdateApplicationSettingsCommand = async (input, context) => {
351
+ export const se_UpdateApplicationSettingsCommand = async (input, context) => {
354
352
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
355
353
  const headers = {
356
354
  "content-type": "application/json",
@@ -360,10 +358,10 @@ export const serializeAws_restJson1UpdateApplicationSettingsCommand = async (inp
360
358
  body = JSON.stringify({
361
359
  ...(input.ApplicationId != null && { ApplicationId: input.ApplicationId }),
362
360
  ...(input.CredentialsToAddOrUpdate != null && {
363
- CredentialsToAddOrUpdate: serializeAws_restJson1ApplicationCredentialList(input.CredentialsToAddOrUpdate, context),
361
+ CredentialsToAddOrUpdate: se_ApplicationCredentialList(input.CredentialsToAddOrUpdate, context),
364
362
  }),
365
363
  ...(input.CredentialsToRemove != null && {
366
- CredentialsToRemove: serializeAws_restJson1ApplicationCredentialList(input.CredentialsToRemove, context),
364
+ CredentialsToRemove: se_ApplicationCredentialList(input.CredentialsToRemove, context),
367
365
  }),
368
366
  });
369
367
  return new __HttpRequest({
@@ -376,9 +374,9 @@ export const serializeAws_restJson1UpdateApplicationSettingsCommand = async (inp
376
374
  body,
377
375
  });
378
376
  };
379
- export const deserializeAws_restJson1DeleteResourcePermissionCommand = async (output, context) => {
377
+ export const de_DeleteResourcePermissionCommand = async (output, context) => {
380
378
  if (output.statusCode !== 200 && output.statusCode >= 300) {
381
- return deserializeAws_restJson1DeleteResourcePermissionCommandError(output, context);
379
+ return de_DeleteResourcePermissionCommandError(output, context);
382
380
  }
383
381
  const contents = map({
384
382
  $metadata: deserializeMetadata(output),
@@ -389,7 +387,7 @@ export const deserializeAws_restJson1DeleteResourcePermissionCommand = async (ou
389
387
  }
390
388
  return contents;
391
389
  };
392
- const deserializeAws_restJson1DeleteResourcePermissionCommandError = async (output, context) => {
390
+ const de_DeleteResourcePermissionCommandError = async (output, context) => {
393
391
  const parsedOutput = {
394
392
  ...output,
395
393
  body: await parseErrorBody(output.body, context),
@@ -398,13 +396,13 @@ const deserializeAws_restJson1DeleteResourcePermissionCommandError = async (outp
398
396
  switch (errorCode) {
399
397
  case "InternalServerException":
400
398
  case "com.amazonaws.ssmsap#InternalServerException":
401
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
399
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
402
400
  case "ResourceNotFoundException":
403
401
  case "com.amazonaws.ssmsap#ResourceNotFoundException":
404
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
402
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
405
403
  case "ValidationException":
406
404
  case "com.amazonaws.ssmsap#ValidationException":
407
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
405
+ throw await de_ValidationExceptionRes(parsedOutput, context);
408
406
  default:
409
407
  const parsedBody = parsedOutput.body;
410
408
  throwDefaultError({
@@ -415,9 +413,9 @@ const deserializeAws_restJson1DeleteResourcePermissionCommandError = async (outp
415
413
  });
416
414
  }
417
415
  };
418
- export const deserializeAws_restJson1DeregisterApplicationCommand = async (output, context) => {
416
+ export const de_DeregisterApplicationCommand = async (output, context) => {
419
417
  if (output.statusCode !== 200 && output.statusCode >= 300) {
420
- return deserializeAws_restJson1DeregisterApplicationCommandError(output, context);
418
+ return de_DeregisterApplicationCommandError(output, context);
421
419
  }
422
420
  const contents = map({
423
421
  $metadata: deserializeMetadata(output),
@@ -425,7 +423,7 @@ export const deserializeAws_restJson1DeregisterApplicationCommand = async (outpu
425
423
  await collectBody(output.body, context);
426
424
  return contents;
427
425
  };
428
- const deserializeAws_restJson1DeregisterApplicationCommandError = async (output, context) => {
426
+ const de_DeregisterApplicationCommandError = async (output, context) => {
429
427
  const parsedOutput = {
430
428
  ...output,
431
429
  body: await parseErrorBody(output.body, context),
@@ -434,10 +432,10 @@ const deserializeAws_restJson1DeregisterApplicationCommandError = async (output,
434
432
  switch (errorCode) {
435
433
  case "InternalServerException":
436
434
  case "com.amazonaws.ssmsap#InternalServerException":
437
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
435
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
438
436
  case "ValidationException":
439
437
  case "com.amazonaws.ssmsap#ValidationException":
440
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
438
+ throw await de_ValidationExceptionRes(parsedOutput, context);
441
439
  default:
442
440
  const parsedBody = parsedOutput.body;
443
441
  throwDefaultError({
@@ -448,23 +446,23 @@ const deserializeAws_restJson1DeregisterApplicationCommandError = async (output,
448
446
  });
449
447
  }
450
448
  };
451
- export const deserializeAws_restJson1GetApplicationCommand = async (output, context) => {
449
+ export const de_GetApplicationCommand = async (output, context) => {
452
450
  if (output.statusCode !== 200 && output.statusCode >= 300) {
453
- return deserializeAws_restJson1GetApplicationCommandError(output, context);
451
+ return de_GetApplicationCommandError(output, context);
454
452
  }
455
453
  const contents = map({
456
454
  $metadata: deserializeMetadata(output),
457
455
  });
458
456
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
459
457
  if (data.Application != null) {
460
- contents.Application = deserializeAws_restJson1Application(data.Application, context);
458
+ contents.Application = de_Application(data.Application, context);
461
459
  }
462
460
  if (data.Tags != null) {
463
- contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
461
+ contents.Tags = de_TagMap(data.Tags, context);
464
462
  }
465
463
  return contents;
466
464
  };
467
- const deserializeAws_restJson1GetApplicationCommandError = async (output, context) => {
465
+ const de_GetApplicationCommandError = async (output, context) => {
468
466
  const parsedOutput = {
469
467
  ...output,
470
468
  body: await parseErrorBody(output.body, context),
@@ -473,10 +471,10 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
473
471
  switch (errorCode) {
474
472
  case "InternalServerException":
475
473
  case "com.amazonaws.ssmsap#InternalServerException":
476
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
474
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
477
475
  case "ValidationException":
478
476
  case "com.amazonaws.ssmsap#ValidationException":
479
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
477
+ throw await de_ValidationExceptionRes(parsedOutput, context);
480
478
  default:
481
479
  const parsedBody = parsedOutput.body;
482
480
  throwDefaultError({
@@ -487,20 +485,20 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
487
485
  });
488
486
  }
489
487
  };
490
- export const deserializeAws_restJson1GetComponentCommand = async (output, context) => {
488
+ export const de_GetComponentCommand = async (output, context) => {
491
489
  if (output.statusCode !== 200 && output.statusCode >= 300) {
492
- return deserializeAws_restJson1GetComponentCommandError(output, context);
490
+ return de_GetComponentCommandError(output, context);
493
491
  }
494
492
  const contents = map({
495
493
  $metadata: deserializeMetadata(output),
496
494
  });
497
495
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
498
496
  if (data.Component != null) {
499
- contents.Component = deserializeAws_restJson1Component(data.Component, context);
497
+ contents.Component = de_Component(data.Component, context);
500
498
  }
501
499
  return contents;
502
500
  };
503
- const deserializeAws_restJson1GetComponentCommandError = async (output, context) => {
501
+ const de_GetComponentCommandError = async (output, context) => {
504
502
  const parsedOutput = {
505
503
  ...output,
506
504
  body: await parseErrorBody(output.body, context),
@@ -509,10 +507,10 @@ const deserializeAws_restJson1GetComponentCommandError = async (output, context)
509
507
  switch (errorCode) {
510
508
  case "InternalServerException":
511
509
  case "com.amazonaws.ssmsap#InternalServerException":
512
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
510
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
513
511
  case "ValidationException":
514
512
  case "com.amazonaws.ssmsap#ValidationException":
515
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
513
+ throw await de_ValidationExceptionRes(parsedOutput, context);
516
514
  default:
517
515
  const parsedBody = parsedOutput.body;
518
516
  throwDefaultError({
@@ -523,23 +521,23 @@ const deserializeAws_restJson1GetComponentCommandError = async (output, context)
523
521
  });
524
522
  }
525
523
  };
526
- export const deserializeAws_restJson1GetDatabaseCommand = async (output, context) => {
524
+ export const de_GetDatabaseCommand = async (output, context) => {
527
525
  if (output.statusCode !== 200 && output.statusCode >= 300) {
528
- return deserializeAws_restJson1GetDatabaseCommandError(output, context);
526
+ return de_GetDatabaseCommandError(output, context);
529
527
  }
530
528
  const contents = map({
531
529
  $metadata: deserializeMetadata(output),
532
530
  });
533
531
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
534
532
  if (data.Database != null) {
535
- contents.Database = deserializeAws_restJson1Database(data.Database, context);
533
+ contents.Database = de_Database(data.Database, context);
536
534
  }
537
535
  if (data.Tags != null) {
538
- contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
536
+ contents.Tags = de_TagMap(data.Tags, context);
539
537
  }
540
538
  return contents;
541
539
  };
542
- const deserializeAws_restJson1GetDatabaseCommandError = async (output, context) => {
540
+ const de_GetDatabaseCommandError = async (output, context) => {
543
541
  const parsedOutput = {
544
542
  ...output,
545
543
  body: await parseErrorBody(output.body, context),
@@ -548,10 +546,10 @@ const deserializeAws_restJson1GetDatabaseCommandError = async (output, context)
548
546
  switch (errorCode) {
549
547
  case "InternalServerException":
550
548
  case "com.amazonaws.ssmsap#InternalServerException":
551
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
549
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
552
550
  case "ValidationException":
553
551
  case "com.amazonaws.ssmsap#ValidationException":
554
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
552
+ throw await de_ValidationExceptionRes(parsedOutput, context);
555
553
  default:
556
554
  const parsedBody = parsedOutput.body;
557
555
  throwDefaultError({
@@ -562,20 +560,20 @@ const deserializeAws_restJson1GetDatabaseCommandError = async (output, context)
562
560
  });
563
561
  }
564
562
  };
565
- export const deserializeAws_restJson1GetOperationCommand = async (output, context) => {
563
+ export const de_GetOperationCommand = async (output, context) => {
566
564
  if (output.statusCode !== 200 && output.statusCode >= 300) {
567
- return deserializeAws_restJson1GetOperationCommandError(output, context);
565
+ return de_GetOperationCommandError(output, context);
568
566
  }
569
567
  const contents = map({
570
568
  $metadata: deserializeMetadata(output),
571
569
  });
572
570
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
573
571
  if (data.Operation != null) {
574
- contents.Operation = deserializeAws_restJson1Operation(data.Operation, context);
572
+ contents.Operation = de_Operation(data.Operation, context);
575
573
  }
576
574
  return contents;
577
575
  };
578
- const deserializeAws_restJson1GetOperationCommandError = async (output, context) => {
576
+ const de_GetOperationCommandError = async (output, context) => {
579
577
  const parsedOutput = {
580
578
  ...output,
581
579
  body: await parseErrorBody(output.body, context),
@@ -584,10 +582,10 @@ const deserializeAws_restJson1GetOperationCommandError = async (output, context)
584
582
  switch (errorCode) {
585
583
  case "InternalServerException":
586
584
  case "com.amazonaws.ssmsap#InternalServerException":
587
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
585
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
588
586
  case "ValidationException":
589
587
  case "com.amazonaws.ssmsap#ValidationException":
590
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
588
+ throw await de_ValidationExceptionRes(parsedOutput, context);
591
589
  default:
592
590
  const parsedBody = parsedOutput.body;
593
591
  throwDefaultError({
@@ -598,9 +596,9 @@ const deserializeAws_restJson1GetOperationCommandError = async (output, context)
598
596
  });
599
597
  }
600
598
  };
601
- export const deserializeAws_restJson1GetResourcePermissionCommand = async (output, context) => {
599
+ export const de_GetResourcePermissionCommand = async (output, context) => {
602
600
  if (output.statusCode !== 200 && output.statusCode >= 300) {
603
- return deserializeAws_restJson1GetResourcePermissionCommandError(output, context);
601
+ return de_GetResourcePermissionCommandError(output, context);
604
602
  }
605
603
  const contents = map({
606
604
  $metadata: deserializeMetadata(output),
@@ -611,7 +609,7 @@ export const deserializeAws_restJson1GetResourcePermissionCommand = async (outpu
611
609
  }
612
610
  return contents;
613
611
  };
614
- const deserializeAws_restJson1GetResourcePermissionCommandError = async (output, context) => {
612
+ const de_GetResourcePermissionCommandError = async (output, context) => {
615
613
  const parsedOutput = {
616
614
  ...output,
617
615
  body: await parseErrorBody(output.body, context),
@@ -620,13 +618,13 @@ const deserializeAws_restJson1GetResourcePermissionCommandError = async (output,
620
618
  switch (errorCode) {
621
619
  case "InternalServerException":
622
620
  case "com.amazonaws.ssmsap#InternalServerException":
623
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
621
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
624
622
  case "ResourceNotFoundException":
625
623
  case "com.amazonaws.ssmsap#ResourceNotFoundException":
626
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
624
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
627
625
  case "ValidationException":
628
626
  case "com.amazonaws.ssmsap#ValidationException":
629
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
627
+ throw await de_ValidationExceptionRes(parsedOutput, context);
630
628
  default:
631
629
  const parsedBody = parsedOutput.body;
632
630
  throwDefaultError({
@@ -637,23 +635,23 @@ const deserializeAws_restJson1GetResourcePermissionCommandError = async (output,
637
635
  });
638
636
  }
639
637
  };
640
- export const deserializeAws_restJson1ListApplicationsCommand = async (output, context) => {
638
+ export const de_ListApplicationsCommand = async (output, context) => {
641
639
  if (output.statusCode !== 200 && output.statusCode >= 300) {
642
- return deserializeAws_restJson1ListApplicationsCommandError(output, context);
640
+ return de_ListApplicationsCommandError(output, context);
643
641
  }
644
642
  const contents = map({
645
643
  $metadata: deserializeMetadata(output),
646
644
  });
647
645
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
648
646
  if (data.Applications != null) {
649
- contents.Applications = deserializeAws_restJson1ApplicationSummaryList(data.Applications, context);
647
+ contents.Applications = de_ApplicationSummaryList(data.Applications, context);
650
648
  }
651
649
  if (data.NextToken != null) {
652
650
  contents.NextToken = __expectString(data.NextToken);
653
651
  }
654
652
  return contents;
655
653
  };
656
- const deserializeAws_restJson1ListApplicationsCommandError = async (output, context) => {
654
+ const de_ListApplicationsCommandError = async (output, context) => {
657
655
  const parsedOutput = {
658
656
  ...output,
659
657
  body: await parseErrorBody(output.body, context),
@@ -662,13 +660,13 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
662
660
  switch (errorCode) {
663
661
  case "InternalServerException":
664
662
  case "com.amazonaws.ssmsap#InternalServerException":
665
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
663
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
666
664
  case "ResourceNotFoundException":
667
665
  case "com.amazonaws.ssmsap#ResourceNotFoundException":
668
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
666
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
669
667
  case "ValidationException":
670
668
  case "com.amazonaws.ssmsap#ValidationException":
671
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
669
+ throw await de_ValidationExceptionRes(parsedOutput, context);
672
670
  default:
673
671
  const parsedBody = parsedOutput.body;
674
672
  throwDefaultError({
@@ -679,23 +677,23 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
679
677
  });
680
678
  }
681
679
  };
682
- export const deserializeAws_restJson1ListComponentsCommand = async (output, context) => {
680
+ export const de_ListComponentsCommand = async (output, context) => {
683
681
  if (output.statusCode !== 200 && output.statusCode >= 300) {
684
- return deserializeAws_restJson1ListComponentsCommandError(output, context);
682
+ return de_ListComponentsCommandError(output, context);
685
683
  }
686
684
  const contents = map({
687
685
  $metadata: deserializeMetadata(output),
688
686
  });
689
687
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
690
688
  if (data.Components != null) {
691
- contents.Components = deserializeAws_restJson1ComponentSummaryList(data.Components, context);
689
+ contents.Components = de_ComponentSummaryList(data.Components, context);
692
690
  }
693
691
  if (data.NextToken != null) {
694
692
  contents.NextToken = __expectString(data.NextToken);
695
693
  }
696
694
  return contents;
697
695
  };
698
- const deserializeAws_restJson1ListComponentsCommandError = async (output, context) => {
696
+ const de_ListComponentsCommandError = async (output, context) => {
699
697
  const parsedOutput = {
700
698
  ...output,
701
699
  body: await parseErrorBody(output.body, context),
@@ -704,13 +702,13 @@ const deserializeAws_restJson1ListComponentsCommandError = async (output, contex
704
702
  switch (errorCode) {
705
703
  case "InternalServerException":
706
704
  case "com.amazonaws.ssmsap#InternalServerException":
707
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
705
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
708
706
  case "ResourceNotFoundException":
709
707
  case "com.amazonaws.ssmsap#ResourceNotFoundException":
710
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
708
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
711
709
  case "ValidationException":
712
710
  case "com.amazonaws.ssmsap#ValidationException":
713
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
711
+ throw await de_ValidationExceptionRes(parsedOutput, context);
714
712
  default:
715
713
  const parsedBody = parsedOutput.body;
716
714
  throwDefaultError({
@@ -721,23 +719,23 @@ const deserializeAws_restJson1ListComponentsCommandError = async (output, contex
721
719
  });
722
720
  }
723
721
  };
724
- export const deserializeAws_restJson1ListDatabasesCommand = async (output, context) => {
722
+ export const de_ListDatabasesCommand = async (output, context) => {
725
723
  if (output.statusCode !== 200 && output.statusCode >= 300) {
726
- return deserializeAws_restJson1ListDatabasesCommandError(output, context);
724
+ return de_ListDatabasesCommandError(output, context);
727
725
  }
728
726
  const contents = map({
729
727
  $metadata: deserializeMetadata(output),
730
728
  });
731
729
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
732
730
  if (data.Databases != null) {
733
- contents.Databases = deserializeAws_restJson1DatabaseSummaryList(data.Databases, context);
731
+ contents.Databases = de_DatabaseSummaryList(data.Databases, context);
734
732
  }
735
733
  if (data.NextToken != null) {
736
734
  contents.NextToken = __expectString(data.NextToken);
737
735
  }
738
736
  return contents;
739
737
  };
740
- const deserializeAws_restJson1ListDatabasesCommandError = async (output, context) => {
738
+ const de_ListDatabasesCommandError = async (output, context) => {
741
739
  const parsedOutput = {
742
740
  ...output,
743
741
  body: await parseErrorBody(output.body, context),
@@ -746,13 +744,13 @@ const deserializeAws_restJson1ListDatabasesCommandError = async (output, context
746
744
  switch (errorCode) {
747
745
  case "InternalServerException":
748
746
  case "com.amazonaws.ssmsap#InternalServerException":
749
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
747
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
750
748
  case "ResourceNotFoundException":
751
749
  case "com.amazonaws.ssmsap#ResourceNotFoundException":
752
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
750
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
753
751
  case "ValidationException":
754
752
  case "com.amazonaws.ssmsap#ValidationException":
755
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
753
+ throw await de_ValidationExceptionRes(parsedOutput, context);
756
754
  default:
757
755
  const parsedBody = parsedOutput.body;
758
756
  throwDefaultError({
@@ -763,9 +761,9 @@ const deserializeAws_restJson1ListDatabasesCommandError = async (output, context
763
761
  });
764
762
  }
765
763
  };
766
- export const deserializeAws_restJson1ListOperationsCommand = async (output, context) => {
764
+ export const de_ListOperationsCommand = async (output, context) => {
767
765
  if (output.statusCode !== 200 && output.statusCode >= 300) {
768
- return deserializeAws_restJson1ListOperationsCommandError(output, context);
766
+ return de_ListOperationsCommandError(output, context);
769
767
  }
770
768
  const contents = map({
771
769
  $metadata: deserializeMetadata(output),
@@ -775,11 +773,11 @@ export const deserializeAws_restJson1ListOperationsCommand = async (output, cont
775
773
  contents.NextToken = __expectString(data.NextToken);
776
774
  }
777
775
  if (data.Operations != null) {
778
- contents.Operations = deserializeAws_restJson1OperationList(data.Operations, context);
776
+ contents.Operations = de_OperationList(data.Operations, context);
779
777
  }
780
778
  return contents;
781
779
  };
782
- const deserializeAws_restJson1ListOperationsCommandError = async (output, context) => {
780
+ const de_ListOperationsCommandError = async (output, context) => {
783
781
  const parsedOutput = {
784
782
  ...output,
785
783
  body: await parseErrorBody(output.body, context),
@@ -788,10 +786,10 @@ const deserializeAws_restJson1ListOperationsCommandError = async (output, contex
788
786
  switch (errorCode) {
789
787
  case "InternalServerException":
790
788
  case "com.amazonaws.ssmsap#InternalServerException":
791
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
789
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
792
790
  case "ValidationException":
793
791
  case "com.amazonaws.ssmsap#ValidationException":
794
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
792
+ throw await de_ValidationExceptionRes(parsedOutput, context);
795
793
  default:
796
794
  const parsedBody = parsedOutput.body;
797
795
  throwDefaultError({
@@ -802,20 +800,20 @@ const deserializeAws_restJson1ListOperationsCommandError = async (output, contex
802
800
  });
803
801
  }
804
802
  };
805
- export const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
803
+ export const de_ListTagsForResourceCommand = async (output, context) => {
806
804
  if (output.statusCode !== 200 && output.statusCode >= 300) {
807
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
805
+ return de_ListTagsForResourceCommandError(output, context);
808
806
  }
809
807
  const contents = map({
810
808
  $metadata: deserializeMetadata(output),
811
809
  });
812
810
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
813
811
  if (data.tags != null) {
814
- contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
812
+ contents.tags = de_TagMap(data.tags, context);
815
813
  }
816
814
  return contents;
817
815
  };
818
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
816
+ const de_ListTagsForResourceCommandError = async (output, context) => {
819
817
  const parsedOutput = {
820
818
  ...output,
821
819
  body: await parseErrorBody(output.body, context),
@@ -824,13 +822,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
824
822
  switch (errorCode) {
825
823
  case "ConflictException":
826
824
  case "com.amazonaws.ssmsap#ConflictException":
827
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
825
+ throw await de_ConflictExceptionRes(parsedOutput, context);
828
826
  case "ResourceNotFoundException":
829
827
  case "com.amazonaws.ssmsap#ResourceNotFoundException":
830
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
828
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
831
829
  case "ValidationException":
832
830
  case "com.amazonaws.ssmsap#ValidationException":
833
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
831
+ throw await de_ValidationExceptionRes(parsedOutput, context);
834
832
  default:
835
833
  const parsedBody = parsedOutput.body;
836
834
  throwDefaultError({
@@ -841,9 +839,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
841
839
  });
842
840
  }
843
841
  };
844
- export const deserializeAws_restJson1PutResourcePermissionCommand = async (output, context) => {
842
+ export const de_PutResourcePermissionCommand = async (output, context) => {
845
843
  if (output.statusCode !== 200 && output.statusCode >= 300) {
846
- return deserializeAws_restJson1PutResourcePermissionCommandError(output, context);
844
+ return de_PutResourcePermissionCommandError(output, context);
847
845
  }
848
846
  const contents = map({
849
847
  $metadata: deserializeMetadata(output),
@@ -854,7 +852,7 @@ export const deserializeAws_restJson1PutResourcePermissionCommand = async (outpu
854
852
  }
855
853
  return contents;
856
854
  };
857
- const deserializeAws_restJson1PutResourcePermissionCommandError = async (output, context) => {
855
+ const de_PutResourcePermissionCommandError = async (output, context) => {
858
856
  const parsedOutput = {
859
857
  ...output,
860
858
  body: await parseErrorBody(output.body, context),
@@ -863,13 +861,13 @@ const deserializeAws_restJson1PutResourcePermissionCommandError = async (output,
863
861
  switch (errorCode) {
864
862
  case "InternalServerException":
865
863
  case "com.amazonaws.ssmsap#InternalServerException":
866
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
864
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
867
865
  case "ResourceNotFoundException":
868
866
  case "com.amazonaws.ssmsap#ResourceNotFoundException":
869
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
867
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
870
868
  case "ValidationException":
871
869
  case "com.amazonaws.ssmsap#ValidationException":
872
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
870
+ throw await de_ValidationExceptionRes(parsedOutput, context);
873
871
  default:
874
872
  const parsedBody = parsedOutput.body;
875
873
  throwDefaultError({
@@ -880,23 +878,23 @@ const deserializeAws_restJson1PutResourcePermissionCommandError = async (output,
880
878
  });
881
879
  }
882
880
  };
883
- export const deserializeAws_restJson1RegisterApplicationCommand = async (output, context) => {
881
+ export const de_RegisterApplicationCommand = async (output, context) => {
884
882
  if (output.statusCode !== 200 && output.statusCode >= 300) {
885
- return deserializeAws_restJson1RegisterApplicationCommandError(output, context);
883
+ return de_RegisterApplicationCommandError(output, context);
886
884
  }
887
885
  const contents = map({
888
886
  $metadata: deserializeMetadata(output),
889
887
  });
890
888
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
891
889
  if (data.Application != null) {
892
- contents.Application = deserializeAws_restJson1Application(data.Application, context);
890
+ contents.Application = de_Application(data.Application, context);
893
891
  }
894
892
  if (data.OperationId != null) {
895
893
  contents.OperationId = __expectString(data.OperationId);
896
894
  }
897
895
  return contents;
898
896
  };
899
- const deserializeAws_restJson1RegisterApplicationCommandError = async (output, context) => {
897
+ const de_RegisterApplicationCommandError = async (output, context) => {
900
898
  const parsedOutput = {
901
899
  ...output,
902
900
  body: await parseErrorBody(output.body, context),
@@ -905,13 +903,13 @@ const deserializeAws_restJson1RegisterApplicationCommandError = async (output, c
905
903
  switch (errorCode) {
906
904
  case "ConflictException":
907
905
  case "com.amazonaws.ssmsap#ConflictException":
908
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
906
+ throw await de_ConflictExceptionRes(parsedOutput, context);
909
907
  case "InternalServerException":
910
908
  case "com.amazonaws.ssmsap#InternalServerException":
911
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
909
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
912
910
  case "ValidationException":
913
911
  case "com.amazonaws.ssmsap#ValidationException":
914
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
912
+ throw await de_ValidationExceptionRes(parsedOutput, context);
915
913
  default:
916
914
  const parsedBody = parsedOutput.body;
917
915
  throwDefaultError({
@@ -922,9 +920,9 @@ const deserializeAws_restJson1RegisterApplicationCommandError = async (output, c
922
920
  });
923
921
  }
924
922
  };
925
- export const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
923
+ export const de_TagResourceCommand = async (output, context) => {
926
924
  if (output.statusCode !== 200 && output.statusCode >= 300) {
927
- return deserializeAws_restJson1TagResourceCommandError(output, context);
925
+ return de_TagResourceCommandError(output, context);
928
926
  }
929
927
  const contents = map({
930
928
  $metadata: deserializeMetadata(output),
@@ -932,7 +930,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
932
930
  await collectBody(output.body, context);
933
931
  return contents;
934
932
  };
935
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
933
+ const de_TagResourceCommandError = async (output, context) => {
936
934
  const parsedOutput = {
937
935
  ...output,
938
936
  body: await parseErrorBody(output.body, context),
@@ -941,13 +939,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
941
939
  switch (errorCode) {
942
940
  case "ConflictException":
943
941
  case "com.amazonaws.ssmsap#ConflictException":
944
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
942
+ throw await de_ConflictExceptionRes(parsedOutput, context);
945
943
  case "ResourceNotFoundException":
946
944
  case "com.amazonaws.ssmsap#ResourceNotFoundException":
947
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
945
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
948
946
  case "ValidationException":
949
947
  case "com.amazonaws.ssmsap#ValidationException":
950
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
948
+ throw await de_ValidationExceptionRes(parsedOutput, context);
951
949
  default:
952
950
  const parsedBody = parsedOutput.body;
953
951
  throwDefaultError({
@@ -958,9 +956,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
958
956
  });
959
957
  }
960
958
  };
961
- export const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
959
+ export const de_UntagResourceCommand = async (output, context) => {
962
960
  if (output.statusCode !== 200 && output.statusCode >= 300) {
963
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
961
+ return de_UntagResourceCommandError(output, context);
964
962
  }
965
963
  const contents = map({
966
964
  $metadata: deserializeMetadata(output),
@@ -968,7 +966,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
968
966
  await collectBody(output.body, context);
969
967
  return contents;
970
968
  };
971
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
969
+ const de_UntagResourceCommandError = async (output, context) => {
972
970
  const parsedOutput = {
973
971
  ...output,
974
972
  body: await parseErrorBody(output.body, context),
@@ -977,13 +975,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
977
975
  switch (errorCode) {
978
976
  case "ConflictException":
979
977
  case "com.amazonaws.ssmsap#ConflictException":
980
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
978
+ throw await de_ConflictExceptionRes(parsedOutput, context);
981
979
  case "ResourceNotFoundException":
982
980
  case "com.amazonaws.ssmsap#ResourceNotFoundException":
983
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
981
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
984
982
  case "ValidationException":
985
983
  case "com.amazonaws.ssmsap#ValidationException":
986
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
984
+ throw await de_ValidationExceptionRes(parsedOutput, context);
987
985
  default:
988
986
  const parsedBody = parsedOutput.body;
989
987
  throwDefaultError({
@@ -994,9 +992,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
994
992
  });
995
993
  }
996
994
  };
997
- export const deserializeAws_restJson1UpdateApplicationSettingsCommand = async (output, context) => {
995
+ export const de_UpdateApplicationSettingsCommand = async (output, context) => {
998
996
  if (output.statusCode !== 200 && output.statusCode >= 300) {
999
- return deserializeAws_restJson1UpdateApplicationSettingsCommandError(output, context);
997
+ return de_UpdateApplicationSettingsCommandError(output, context);
1000
998
  }
1001
999
  const contents = map({
1002
1000
  $metadata: deserializeMetadata(output),
@@ -1006,11 +1004,11 @@ export const deserializeAws_restJson1UpdateApplicationSettingsCommand = async (o
1006
1004
  contents.Message = __expectString(data.Message);
1007
1005
  }
1008
1006
  if (data.OperationIds != null) {
1009
- contents.OperationIds = deserializeAws_restJson1OperationIdList(data.OperationIds, context);
1007
+ contents.OperationIds = de_OperationIdList(data.OperationIds, context);
1010
1008
  }
1011
1009
  return contents;
1012
1010
  };
1013
- const deserializeAws_restJson1UpdateApplicationSettingsCommandError = async (output, context) => {
1011
+ const de_UpdateApplicationSettingsCommandError = async (output, context) => {
1014
1012
  const parsedOutput = {
1015
1013
  ...output,
1016
1014
  body: await parseErrorBody(output.body, context),
@@ -1019,13 +1017,13 @@ const deserializeAws_restJson1UpdateApplicationSettingsCommandError = async (out
1019
1017
  switch (errorCode) {
1020
1018
  case "InternalServerException":
1021
1019
  case "com.amazonaws.ssmsap#InternalServerException":
1022
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1020
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1023
1021
  case "ResourceNotFoundException":
1024
1022
  case "com.amazonaws.ssmsap#ResourceNotFoundException":
1025
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1023
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1026
1024
  case "ValidationException":
1027
1025
  case "com.amazonaws.ssmsap#ValidationException":
1028
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1026
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1029
1027
  default:
1030
1028
  const parsedBody = parsedOutput.body;
1031
1029
  throwDefaultError({
@@ -1037,7 +1035,7 @@ const deserializeAws_restJson1UpdateApplicationSettingsCommandError = async (out
1037
1035
  }
1038
1036
  };
1039
1037
  const map = __map;
1040
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
1038
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1041
1039
  const contents = map({});
1042
1040
  const data = parsedOutput.body;
1043
1041
  if (data.Message != null) {
@@ -1049,7 +1047,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
1049
1047
  });
1050
1048
  return __decorateServiceException(exception, parsedOutput.body);
1051
1049
  };
1052
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
1050
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1053
1051
  const contents = map({});
1054
1052
  const data = parsedOutput.body;
1055
1053
  if (data.Message != null) {
@@ -1061,7 +1059,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
1061
1059
  });
1062
1060
  return __decorateServiceException(exception, parsedOutput.body);
1063
1061
  };
1064
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
1062
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1065
1063
  const contents = map({});
1066
1064
  const data = parsedOutput.body;
1067
1065
  if (data.Message != null) {
@@ -1073,7 +1071,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
1073
1071
  });
1074
1072
  return __decorateServiceException(exception, parsedOutput.body);
1075
1073
  };
1076
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
1074
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1077
1075
  const contents = map({});
1078
1076
  const data = parsedOutput.body;
1079
1077
  if (data.Message != null) {
@@ -1085,42 +1083,42 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
1085
1083
  });
1086
1084
  return __decorateServiceException(exception, parsedOutput.body);
1087
1085
  };
1088
- const serializeAws_restJson1ApplicationCredential = (input, context) => {
1086
+ const se_ApplicationCredential = (input, context) => {
1089
1087
  return {
1090
1088
  ...(input.CredentialType != null && { CredentialType: input.CredentialType }),
1091
1089
  ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
1092
1090
  ...(input.SecretId != null && { SecretId: input.SecretId }),
1093
1091
  };
1094
1092
  };
1095
- const serializeAws_restJson1ApplicationCredentialList = (input, context) => {
1093
+ const se_ApplicationCredentialList = (input, context) => {
1096
1094
  return input
1097
1095
  .filter((e) => e != null)
1098
1096
  .map((entry) => {
1099
- return serializeAws_restJson1ApplicationCredential(entry, context);
1097
+ return se_ApplicationCredential(entry, context);
1100
1098
  });
1101
1099
  };
1102
- const serializeAws_restJson1Filter = (input, context) => {
1100
+ const se_Filter = (input, context) => {
1103
1101
  return {
1104
1102
  ...(input.Name != null && { Name: input.Name }),
1105
1103
  ...(input.Operator != null && { Operator: input.Operator }),
1106
1104
  ...(input.Value != null && { Value: input.Value }),
1107
1105
  };
1108
1106
  };
1109
- const serializeAws_restJson1FilterList = (input, context) => {
1107
+ const se_FilterList = (input, context) => {
1110
1108
  return input
1111
1109
  .filter((e) => e != null)
1112
1110
  .map((entry) => {
1113
- return serializeAws_restJson1Filter(entry, context);
1111
+ return se_Filter(entry, context);
1114
1112
  });
1115
1113
  };
1116
- const serializeAws_restJson1InstanceList = (input, context) => {
1114
+ const se_InstanceList = (input, context) => {
1117
1115
  return input
1118
1116
  .filter((e) => e != null)
1119
1117
  .map((entry) => {
1120
1118
  return entry;
1121
1119
  });
1122
1120
  };
1123
- const serializeAws_restJson1TagMap = (input, context) => {
1121
+ const se_TagMap = (input, context) => {
1124
1122
  return Object.entries(input).reduce((acc, [key, value]) => {
1125
1123
  if (value === null) {
1126
1124
  return acc;
@@ -1129,11 +1127,11 @@ const serializeAws_restJson1TagMap = (input, context) => {
1129
1127
  return acc;
1130
1128
  }, {});
1131
1129
  };
1132
- const deserializeAws_restJson1Application = (output, context) => {
1130
+ const de_Application = (output, context) => {
1133
1131
  return {
1134
1132
  AppRegistryArn: __expectString(output.AppRegistryArn),
1135
1133
  Arn: __expectString(output.Arn),
1136
- Components: output.Components != null ? deserializeAws_restJson1ComponentIdList(output.Components, context) : undefined,
1134
+ Components: output.Components != null ? de_ComponentIdList(output.Components, context) : undefined,
1137
1135
  Id: __expectString(output.Id),
1138
1136
  LastUpdated: output.LastUpdated != null
1139
1137
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdated)))
@@ -1143,50 +1141,50 @@ const deserializeAws_restJson1Application = (output, context) => {
1143
1141
  Type: __expectString(output.Type),
1144
1142
  };
1145
1143
  };
1146
- const deserializeAws_restJson1ApplicationCredential = (output, context) => {
1144
+ const de_ApplicationCredential = (output, context) => {
1147
1145
  return {
1148
1146
  CredentialType: __expectString(output.CredentialType),
1149
1147
  DatabaseName: __expectString(output.DatabaseName),
1150
1148
  SecretId: __expectString(output.SecretId),
1151
1149
  };
1152
1150
  };
1153
- const deserializeAws_restJson1ApplicationCredentialList = (output, context) => {
1151
+ const de_ApplicationCredentialList = (output, context) => {
1154
1152
  const retVal = (output || [])
1155
1153
  .filter((e) => e != null)
1156
1154
  .map((entry) => {
1157
1155
  if (entry === null) {
1158
1156
  return null;
1159
1157
  }
1160
- return deserializeAws_restJson1ApplicationCredential(entry, context);
1158
+ return de_ApplicationCredential(entry, context);
1161
1159
  });
1162
1160
  return retVal;
1163
1161
  };
1164
- const deserializeAws_restJson1ApplicationSummary = (output, context) => {
1162
+ const de_ApplicationSummary = (output, context) => {
1165
1163
  return {
1166
1164
  Arn: __expectString(output.Arn),
1167
1165
  Id: __expectString(output.Id),
1168
- Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
1166
+ Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
1169
1167
  Type: __expectString(output.Type),
1170
1168
  };
1171
1169
  };
1172
- const deserializeAws_restJson1ApplicationSummaryList = (output, context) => {
1170
+ const de_ApplicationSummaryList = (output, context) => {
1173
1171
  const retVal = (output || [])
1174
1172
  .filter((e) => e != null)
1175
1173
  .map((entry) => {
1176
1174
  if (entry === null) {
1177
1175
  return null;
1178
1176
  }
1179
- return deserializeAws_restJson1ApplicationSummary(entry, context);
1177
+ return de_ApplicationSummary(entry, context);
1180
1178
  });
1181
1179
  return retVal;
1182
1180
  };
1183
- const deserializeAws_restJson1Component = (output, context) => {
1181
+ const de_Component = (output, context) => {
1184
1182
  return {
1185
1183
  ApplicationId: __expectString(output.ApplicationId),
1186
1184
  ComponentId: __expectString(output.ComponentId),
1187
1185
  ComponentType: __expectString(output.ComponentType),
1188
- Databases: output.Databases != null ? deserializeAws_restJson1DatabaseIdList(output.Databases, context) : undefined,
1189
- Hosts: output.Hosts != null ? deserializeAws_restJson1HostList(output.Hosts, context) : undefined,
1186
+ Databases: output.Databases != null ? de_DatabaseIdList(output.Databases, context) : undefined,
1187
+ Hosts: output.Hosts != null ? de_HostList(output.Hosts, context) : undefined,
1190
1188
  LastUpdated: output.LastUpdated != null
1191
1189
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdated)))
1192
1190
  : undefined,
@@ -1194,7 +1192,7 @@ const deserializeAws_restJson1Component = (output, context) => {
1194
1192
  Status: __expectString(output.Status),
1195
1193
  };
1196
1194
  };
1197
- const deserializeAws_restJson1ComponentIdList = (output, context) => {
1195
+ const de_ComponentIdList = (output, context) => {
1198
1196
  const retVal = (output || [])
1199
1197
  .filter((e) => e != null)
1200
1198
  .map((entry) => {
@@ -1205,33 +1203,31 @@ const deserializeAws_restJson1ComponentIdList = (output, context) => {
1205
1203
  });
1206
1204
  return retVal;
1207
1205
  };
1208
- const deserializeAws_restJson1ComponentSummary = (output, context) => {
1206
+ const de_ComponentSummary = (output, context) => {
1209
1207
  return {
1210
1208
  ApplicationId: __expectString(output.ApplicationId),
1211
1209
  ComponentId: __expectString(output.ComponentId),
1212
1210
  ComponentType: __expectString(output.ComponentType),
1213
- Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
1211
+ Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
1214
1212
  };
1215
1213
  };
1216
- const deserializeAws_restJson1ComponentSummaryList = (output, context) => {
1214
+ const de_ComponentSummaryList = (output, context) => {
1217
1215
  const retVal = (output || [])
1218
1216
  .filter((e) => e != null)
1219
1217
  .map((entry) => {
1220
1218
  if (entry === null) {
1221
1219
  return null;
1222
1220
  }
1223
- return deserializeAws_restJson1ComponentSummary(entry, context);
1221
+ return de_ComponentSummary(entry, context);
1224
1222
  });
1225
1223
  return retVal;
1226
1224
  };
1227
- const deserializeAws_restJson1Database = (output, context) => {
1225
+ const de_Database = (output, context) => {
1228
1226
  return {
1229
1227
  ApplicationId: __expectString(output.ApplicationId),
1230
1228
  Arn: __expectString(output.Arn),
1231
1229
  ComponentId: __expectString(output.ComponentId),
1232
- Credentials: output.Credentials != null
1233
- ? deserializeAws_restJson1ApplicationCredentialList(output.Credentials, context)
1234
- : undefined,
1230
+ Credentials: output.Credentials != null ? de_ApplicationCredentialList(output.Credentials, context) : undefined,
1235
1231
  DatabaseId: __expectString(output.DatabaseId),
1236
1232
  DatabaseName: __expectString(output.DatabaseName),
1237
1233
  DatabaseType: __expectString(output.DatabaseType),
@@ -1243,7 +1239,7 @@ const deserializeAws_restJson1Database = (output, context) => {
1243
1239
  Status: __expectString(output.Status),
1244
1240
  };
1245
1241
  };
1246
- const deserializeAws_restJson1DatabaseIdList = (output, context) => {
1242
+ const de_DatabaseIdList = (output, context) => {
1247
1243
  const retVal = (output || [])
1248
1244
  .filter((e) => e != null)
1249
1245
  .map((entry) => {
@@ -1254,28 +1250,28 @@ const deserializeAws_restJson1DatabaseIdList = (output, context) => {
1254
1250
  });
1255
1251
  return retVal;
1256
1252
  };
1257
- const deserializeAws_restJson1DatabaseSummary = (output, context) => {
1253
+ const de_DatabaseSummary = (output, context) => {
1258
1254
  return {
1259
1255
  ApplicationId: __expectString(output.ApplicationId),
1260
1256
  Arn: __expectString(output.Arn),
1261
1257
  ComponentId: __expectString(output.ComponentId),
1262
1258
  DatabaseId: __expectString(output.DatabaseId),
1263
1259
  DatabaseType: __expectString(output.DatabaseType),
1264
- Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
1260
+ Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
1265
1261
  };
1266
1262
  };
1267
- const deserializeAws_restJson1DatabaseSummaryList = (output, context) => {
1263
+ const de_DatabaseSummaryList = (output, context) => {
1268
1264
  const retVal = (output || [])
1269
1265
  .filter((e) => e != null)
1270
1266
  .map((entry) => {
1271
1267
  if (entry === null) {
1272
1268
  return null;
1273
1269
  }
1274
- return deserializeAws_restJson1DatabaseSummary(entry, context);
1270
+ return de_DatabaseSummary(entry, context);
1275
1271
  });
1276
1272
  return retVal;
1277
1273
  };
1278
- const deserializeAws_restJson1Host = (output, context) => {
1274
+ const de_Host = (output, context) => {
1279
1275
  return {
1280
1276
  HostIp: __expectString(output.HostIp),
1281
1277
  HostName: __expectString(output.HostName),
@@ -1283,25 +1279,25 @@ const deserializeAws_restJson1Host = (output, context) => {
1283
1279
  InstanceId: __expectString(output.InstanceId),
1284
1280
  };
1285
1281
  };
1286
- const deserializeAws_restJson1HostList = (output, context) => {
1282
+ const de_HostList = (output, context) => {
1287
1283
  const retVal = (output || [])
1288
1284
  .filter((e) => e != null)
1289
1285
  .map((entry) => {
1290
1286
  if (entry === null) {
1291
1287
  return null;
1292
1288
  }
1293
- return deserializeAws_restJson1Host(entry, context);
1289
+ return de_Host(entry, context);
1294
1290
  });
1295
1291
  return retVal;
1296
1292
  };
1297
- const deserializeAws_restJson1Operation = (output, context) => {
1293
+ const de_Operation = (output, context) => {
1298
1294
  return {
1299
1295
  EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
1300
1296
  Id: __expectString(output.Id),
1301
1297
  LastUpdatedTime: output.LastUpdatedTime != null
1302
1298
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTime)))
1303
1299
  : undefined,
1304
- Properties: output.Properties != null ? deserializeAws_restJson1OperationProperties(output.Properties, context) : undefined,
1300
+ Properties: output.Properties != null ? de_OperationProperties(output.Properties, context) : undefined,
1305
1301
  ResourceArn: __expectString(output.ResourceArn),
1306
1302
  ResourceId: __expectString(output.ResourceId),
1307
1303
  ResourceType: __expectString(output.ResourceType),
@@ -1311,7 +1307,7 @@ const deserializeAws_restJson1Operation = (output, context) => {
1311
1307
  Type: __expectString(output.Type),
1312
1308
  };
1313
1309
  };
1314
- const deserializeAws_restJson1OperationIdList = (output, context) => {
1310
+ const de_OperationIdList = (output, context) => {
1315
1311
  const retVal = (output || [])
1316
1312
  .filter((e) => e != null)
1317
1313
  .map((entry) => {
@@ -1322,18 +1318,18 @@ const deserializeAws_restJson1OperationIdList = (output, context) => {
1322
1318
  });
1323
1319
  return retVal;
1324
1320
  };
1325
- const deserializeAws_restJson1OperationList = (output, context) => {
1321
+ const de_OperationList = (output, context) => {
1326
1322
  const retVal = (output || [])
1327
1323
  .filter((e) => e != null)
1328
1324
  .map((entry) => {
1329
1325
  if (entry === null) {
1330
1326
  return null;
1331
1327
  }
1332
- return deserializeAws_restJson1Operation(entry, context);
1328
+ return de_Operation(entry, context);
1333
1329
  });
1334
1330
  return retVal;
1335
1331
  };
1336
- const deserializeAws_restJson1OperationProperties = (output, context) => {
1332
+ const de_OperationProperties = (output, context) => {
1337
1333
  return Object.entries(output).reduce((acc, [key, value]) => {
1338
1334
  if (value === null) {
1339
1335
  acc[key] = null;
@@ -1343,7 +1339,7 @@ const deserializeAws_restJson1OperationProperties = (output, context) => {
1343
1339
  return acc;
1344
1340
  }, {});
1345
1341
  };
1346
- const deserializeAws_restJson1TagMap = (output, context) => {
1342
+ const de_TagMap = (output, context) => {
1347
1343
  return Object.entries(output).reduce((acc, [key, value]) => {
1348
1344
  if (value === null) {
1349
1345
  return acc;