@aws-sdk/client-detective 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 (53) hide show
  1. package/dist-cjs/commands/AcceptInvitationCommand.js +2 -2
  2. package/dist-cjs/commands/BatchGetGraphMemberDatasourcesCommand.js +2 -2
  3. package/dist-cjs/commands/BatchGetMembershipDatasourcesCommand.js +2 -2
  4. package/dist-cjs/commands/CreateGraphCommand.js +2 -2
  5. package/dist-cjs/commands/CreateMembersCommand.js +2 -2
  6. package/dist-cjs/commands/DeleteGraphCommand.js +2 -2
  7. package/dist-cjs/commands/DeleteMembersCommand.js +2 -2
  8. package/dist-cjs/commands/DescribeOrganizationConfigurationCommand.js +2 -2
  9. package/dist-cjs/commands/DisableOrganizationAdminAccountCommand.js +2 -2
  10. package/dist-cjs/commands/DisassociateMembershipCommand.js +2 -2
  11. package/dist-cjs/commands/EnableOrganizationAdminAccountCommand.js +2 -2
  12. package/dist-cjs/commands/GetMembersCommand.js +2 -2
  13. package/dist-cjs/commands/ListDatasourcePackagesCommand.js +2 -2
  14. package/dist-cjs/commands/ListGraphsCommand.js +2 -2
  15. package/dist-cjs/commands/ListInvitationsCommand.js +2 -2
  16. package/dist-cjs/commands/ListMembersCommand.js +2 -2
  17. package/dist-cjs/commands/ListOrganizationAdminAccountsCommand.js +2 -2
  18. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  19. package/dist-cjs/commands/RejectInvitationCommand.js +2 -2
  20. package/dist-cjs/commands/StartMonitoringMemberCommand.js +2 -2
  21. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  22. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  23. package/dist-cjs/commands/UpdateDatasourcePackagesCommand.js +2 -2
  24. package/dist-cjs/commands/UpdateOrganizationConfigurationCommand.js +2 -2
  25. package/dist-cjs/protocols/Aws_restJson1.js +324 -326
  26. package/dist-es/commands/AcceptInvitationCommand.js +3 -3
  27. package/dist-es/commands/BatchGetGraphMemberDatasourcesCommand.js +3 -3
  28. package/dist-es/commands/BatchGetMembershipDatasourcesCommand.js +3 -3
  29. package/dist-es/commands/CreateGraphCommand.js +3 -3
  30. package/dist-es/commands/CreateMembersCommand.js +3 -3
  31. package/dist-es/commands/DeleteGraphCommand.js +3 -3
  32. package/dist-es/commands/DeleteMembersCommand.js +3 -3
  33. package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +3 -3
  34. package/dist-es/commands/DisableOrganizationAdminAccountCommand.js +3 -3
  35. package/dist-es/commands/DisassociateMembershipCommand.js +3 -3
  36. package/dist-es/commands/EnableOrganizationAdminAccountCommand.js +3 -3
  37. package/dist-es/commands/GetMembersCommand.js +3 -3
  38. package/dist-es/commands/ListDatasourcePackagesCommand.js +3 -3
  39. package/dist-es/commands/ListGraphsCommand.js +3 -3
  40. package/dist-es/commands/ListInvitationsCommand.js +3 -3
  41. package/dist-es/commands/ListMembersCommand.js +3 -3
  42. package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +3 -3
  43. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  44. package/dist-es/commands/RejectInvitationCommand.js +3 -3
  45. package/dist-es/commands/StartMonitoringMemberCommand.js +3 -3
  46. package/dist-es/commands/TagResourceCommand.js +3 -3
  47. package/dist-es/commands/UntagResourceCommand.js +3 -3
  48. package/dist-es/commands/UpdateDatasourcePackagesCommand.js +3 -3
  49. package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +3 -3
  50. package/dist-es/protocols/Aws_restJson1.js +275 -277
  51. package/dist-types/protocols/Aws_restJson1.d.ts +192 -48
  52. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -48
  53. package/package.json +29 -29
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { DetectiveServiceException as __BaseException } from "../models/DetectiveServiceException";
4
4
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyRequestsException, ValidationException, } from "../models/models_0";
5
- export const serializeAws_restJson1AcceptInvitationCommand = async (input, context) => {
5
+ export const se_AcceptInvitationCommand = 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",
@@ -22,7 +22,7 @@ export const serializeAws_restJson1AcceptInvitationCommand = async (input, conte
22
22
  body,
23
23
  });
24
24
  };
25
- export const serializeAws_restJson1BatchGetGraphMemberDatasourcesCommand = async (input, context) => {
25
+ export const se_BatchGetGraphMemberDatasourcesCommand = async (input, context) => {
26
26
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
27
27
  const headers = {
28
28
  "content-type": "application/json",
@@ -30,9 +30,7 @@ export const serializeAws_restJson1BatchGetGraphMemberDatasourcesCommand = async
30
30
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/datasources/get";
31
31
  let body;
32
32
  body = JSON.stringify({
33
- ...(input.AccountIds != null && {
34
- AccountIds: serializeAws_restJson1AccountIdExtendedList(input.AccountIds, context),
35
- }),
33
+ ...(input.AccountIds != null && { AccountIds: se_AccountIdExtendedList(input.AccountIds, context) }),
36
34
  ...(input.GraphArn != null && { GraphArn: input.GraphArn }),
37
35
  });
38
36
  return new __HttpRequest({
@@ -45,7 +43,7 @@ export const serializeAws_restJson1BatchGetGraphMemberDatasourcesCommand = async
45
43
  body,
46
44
  });
47
45
  };
48
- export const serializeAws_restJson1BatchGetMembershipDatasourcesCommand = async (input, context) => {
46
+ export const se_BatchGetMembershipDatasourcesCommand = async (input, context) => {
49
47
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
50
48
  const headers = {
51
49
  "content-type": "application/json",
@@ -53,7 +51,7 @@ export const serializeAws_restJson1BatchGetMembershipDatasourcesCommand = async
53
51
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/membership/datasources/get";
54
52
  let body;
55
53
  body = JSON.stringify({
56
- ...(input.GraphArns != null && { GraphArns: serializeAws_restJson1GraphArnList(input.GraphArns, context) }),
54
+ ...(input.GraphArns != null && { GraphArns: se_GraphArnList(input.GraphArns, context) }),
57
55
  });
58
56
  return new __HttpRequest({
59
57
  protocol,
@@ -65,7 +63,7 @@ export const serializeAws_restJson1BatchGetMembershipDatasourcesCommand = async
65
63
  body,
66
64
  });
67
65
  };
68
- export const serializeAws_restJson1CreateGraphCommand = async (input, context) => {
66
+ export const se_CreateGraphCommand = async (input, context) => {
69
67
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
70
68
  const headers = {
71
69
  "content-type": "application/json",
@@ -73,7 +71,7 @@ export const serializeAws_restJson1CreateGraphCommand = async (input, context) =
73
71
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph";
74
72
  let body;
75
73
  body = JSON.stringify({
76
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
74
+ ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
77
75
  });
78
76
  return new __HttpRequest({
79
77
  protocol,
@@ -85,7 +83,7 @@ export const serializeAws_restJson1CreateGraphCommand = async (input, context) =
85
83
  body,
86
84
  });
87
85
  };
88
- export const serializeAws_restJson1CreateMembersCommand = async (input, context) => {
86
+ export const se_CreateMembersCommand = async (input, context) => {
89
87
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
90
88
  const headers = {
91
89
  "content-type": "application/json",
@@ -93,7 +91,7 @@ export const serializeAws_restJson1CreateMembersCommand = async (input, context)
93
91
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/members";
94
92
  let body;
95
93
  body = JSON.stringify({
96
- ...(input.Accounts != null && { Accounts: serializeAws_restJson1AccountList(input.Accounts, context) }),
94
+ ...(input.Accounts != null && { Accounts: se_AccountList(input.Accounts, context) }),
97
95
  ...(input.DisableEmailNotification != null && { DisableEmailNotification: input.DisableEmailNotification }),
98
96
  ...(input.GraphArn != null && { GraphArn: input.GraphArn }),
99
97
  ...(input.Message != null && { Message: input.Message }),
@@ -108,7 +106,7 @@ export const serializeAws_restJson1CreateMembersCommand = async (input, context)
108
106
  body,
109
107
  });
110
108
  };
111
- export const serializeAws_restJson1DeleteGraphCommand = async (input, context) => {
109
+ export const se_DeleteGraphCommand = 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_restJson1DeleteGraphCommand = async (input, context) =
128
126
  body,
129
127
  });
130
128
  };
131
- export const serializeAws_restJson1DeleteMembersCommand = async (input, context) => {
129
+ export const se_DeleteMembersCommand = 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",
@@ -136,7 +134,7 @@ export const serializeAws_restJson1DeleteMembersCommand = async (input, context)
136
134
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/members/removal";
137
135
  let body;
138
136
  body = JSON.stringify({
139
- ...(input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) }),
137
+ ...(input.AccountIds != null && { AccountIds: se_AccountIdList(input.AccountIds, context) }),
140
138
  ...(input.GraphArn != null && { GraphArn: input.GraphArn }),
141
139
  });
142
140
  return new __HttpRequest({
@@ -149,7 +147,7 @@ export const serializeAws_restJson1DeleteMembersCommand = async (input, context)
149
147
  body,
150
148
  });
151
149
  };
152
- export const serializeAws_restJson1DescribeOrganizationConfigurationCommand = async (input, context) => {
150
+ export const se_DescribeOrganizationConfigurationCommand = async (input, context) => {
153
151
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
154
152
  const headers = {
155
153
  "content-type": "application/json",
@@ -169,7 +167,7 @@ export const serializeAws_restJson1DescribeOrganizationConfigurationCommand = as
169
167
  body,
170
168
  });
171
169
  };
172
- export const serializeAws_restJson1DisableOrganizationAdminAccountCommand = async (input, context) => {
170
+ export const se_DisableOrganizationAdminAccountCommand = async (input, context) => {
173
171
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
174
172
  const headers = {
175
173
  "content-type": "application/json",
@@ -187,7 +185,7 @@ export const serializeAws_restJson1DisableOrganizationAdminAccountCommand = asyn
187
185
  body,
188
186
  });
189
187
  };
190
- export const serializeAws_restJson1DisassociateMembershipCommand = async (input, context) => {
188
+ export const se_DisassociateMembershipCommand = async (input, context) => {
191
189
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
192
190
  const headers = {
193
191
  "content-type": "application/json",
@@ -207,7 +205,7 @@ export const serializeAws_restJson1DisassociateMembershipCommand = async (input,
207
205
  body,
208
206
  });
209
207
  };
210
- export const serializeAws_restJson1EnableOrganizationAdminAccountCommand = async (input, context) => {
208
+ export const se_EnableOrganizationAdminAccountCommand = async (input, context) => {
211
209
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
212
210
  const headers = {
213
211
  "content-type": "application/json",
@@ -227,7 +225,7 @@ export const serializeAws_restJson1EnableOrganizationAdminAccountCommand = async
227
225
  body,
228
226
  });
229
227
  };
230
- export const serializeAws_restJson1GetMembersCommand = async (input, context) => {
228
+ export const se_GetMembersCommand = async (input, context) => {
231
229
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
232
230
  const headers = {
233
231
  "content-type": "application/json",
@@ -235,7 +233,7 @@ export const serializeAws_restJson1GetMembersCommand = async (input, context) =>
235
233
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/members/get";
236
234
  let body;
237
235
  body = JSON.stringify({
238
- ...(input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) }),
236
+ ...(input.AccountIds != null && { AccountIds: se_AccountIdList(input.AccountIds, context) }),
239
237
  ...(input.GraphArn != null && { GraphArn: input.GraphArn }),
240
238
  });
241
239
  return new __HttpRequest({
@@ -248,7 +246,7 @@ export const serializeAws_restJson1GetMembersCommand = async (input, context) =>
248
246
  body,
249
247
  });
250
248
  };
251
- export const serializeAws_restJson1ListDatasourcePackagesCommand = async (input, context) => {
249
+ export const se_ListDatasourcePackagesCommand = async (input, context) => {
252
250
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
253
251
  const headers = {
254
252
  "content-type": "application/json",
@@ -270,7 +268,7 @@ export const serializeAws_restJson1ListDatasourcePackagesCommand = async (input,
270
268
  body,
271
269
  });
272
270
  };
273
- export const serializeAws_restJson1ListGraphsCommand = async (input, context) => {
271
+ export const se_ListGraphsCommand = async (input, context) => {
274
272
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
275
273
  const headers = {
276
274
  "content-type": "application/json",
@@ -291,7 +289,7 @@ export const serializeAws_restJson1ListGraphsCommand = async (input, context) =>
291
289
  body,
292
290
  });
293
291
  };
294
- export const serializeAws_restJson1ListInvitationsCommand = async (input, context) => {
292
+ export const se_ListInvitationsCommand = async (input, context) => {
295
293
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
296
294
  const headers = {
297
295
  "content-type": "application/json",
@@ -312,7 +310,7 @@ export const serializeAws_restJson1ListInvitationsCommand = async (input, contex
312
310
  body,
313
311
  });
314
312
  };
315
- export const serializeAws_restJson1ListMembersCommand = async (input, context) => {
313
+ export const se_ListMembersCommand = async (input, context) => {
316
314
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
317
315
  const headers = {
318
316
  "content-type": "application/json",
@@ -334,7 +332,7 @@ export const serializeAws_restJson1ListMembersCommand = async (input, context) =
334
332
  body,
335
333
  });
336
334
  };
337
- export const serializeAws_restJson1ListOrganizationAdminAccountsCommand = async (input, context) => {
335
+ export const se_ListOrganizationAdminAccountsCommand = async (input, context) => {
338
336
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
339
337
  const headers = {
340
338
  "content-type": "application/json",
@@ -355,7 +353,7 @@ export const serializeAws_restJson1ListOrganizationAdminAccountsCommand = async
355
353
  body,
356
354
  });
357
355
  };
358
- export const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
356
+ export const se_ListTagsForResourceCommand = async (input, context) => {
359
357
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
360
358
  const headers = {};
361
359
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
@@ -371,7 +369,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
371
369
  body,
372
370
  });
373
371
  };
374
- export const serializeAws_restJson1RejectInvitationCommand = async (input, context) => {
372
+ export const se_RejectInvitationCommand = async (input, context) => {
375
373
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
376
374
  const headers = {
377
375
  "content-type": "application/json",
@@ -391,7 +389,7 @@ export const serializeAws_restJson1RejectInvitationCommand = async (input, conte
391
389
  body,
392
390
  });
393
391
  };
394
- export const serializeAws_restJson1StartMonitoringMemberCommand = async (input, context) => {
392
+ export const se_StartMonitoringMemberCommand = async (input, context) => {
395
393
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
396
394
  const headers = {
397
395
  "content-type": "application/json",
@@ -412,7 +410,7 @@ export const serializeAws_restJson1StartMonitoringMemberCommand = async (input,
412
410
  body,
413
411
  });
414
412
  };
415
- export const serializeAws_restJson1TagResourceCommand = async (input, context) => {
413
+ export const se_TagResourceCommand = async (input, context) => {
416
414
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
417
415
  const headers = {
418
416
  "content-type": "application/json",
@@ -421,7 +419,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
421
419
  resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
422
420
  let body;
423
421
  body = JSON.stringify({
424
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
422
+ ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
425
423
  });
426
424
  return new __HttpRequest({
427
425
  protocol,
@@ -433,7 +431,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
433
431
  body,
434
432
  });
435
433
  };
436
- export const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
434
+ export const se_UntagResourceCommand = async (input, context) => {
437
435
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
438
436
  const headers = {};
439
437
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
@@ -456,7 +454,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
456
454
  body,
457
455
  });
458
456
  };
459
- export const serializeAws_restJson1UpdateDatasourcePackagesCommand = async (input, context) => {
457
+ export const se_UpdateDatasourcePackagesCommand = async (input, context) => {
460
458
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
461
459
  const headers = {
462
460
  "content-type": "application/json",
@@ -465,7 +463,7 @@ export const serializeAws_restJson1UpdateDatasourcePackagesCommand = async (inpu
465
463
  let body;
466
464
  body = JSON.stringify({
467
465
  ...(input.DatasourcePackages != null && {
468
- DatasourcePackages: serializeAws_restJson1DatasourcePackageList(input.DatasourcePackages, context),
466
+ DatasourcePackages: se_DatasourcePackageList(input.DatasourcePackages, context),
469
467
  }),
470
468
  ...(input.GraphArn != null && { GraphArn: input.GraphArn }),
471
469
  });
@@ -479,7 +477,7 @@ export const serializeAws_restJson1UpdateDatasourcePackagesCommand = async (inpu
479
477
  body,
480
478
  });
481
479
  };
482
- export const serializeAws_restJson1UpdateOrganizationConfigurationCommand = async (input, context) => {
480
+ export const se_UpdateOrganizationConfigurationCommand = async (input, context) => {
483
481
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
484
482
  const headers = {
485
483
  "content-type": "application/json",
@@ -500,9 +498,9 @@ export const serializeAws_restJson1UpdateOrganizationConfigurationCommand = asyn
500
498
  body,
501
499
  });
502
500
  };
503
- export const deserializeAws_restJson1AcceptInvitationCommand = async (output, context) => {
501
+ export const de_AcceptInvitationCommand = async (output, context) => {
504
502
  if (output.statusCode !== 200 && output.statusCode >= 300) {
505
- return deserializeAws_restJson1AcceptInvitationCommandError(output, context);
503
+ return de_AcceptInvitationCommandError(output, context);
506
504
  }
507
505
  const contents = map({
508
506
  $metadata: deserializeMetadata(output),
@@ -510,7 +508,7 @@ export const deserializeAws_restJson1AcceptInvitationCommand = async (output, co
510
508
  await collectBody(output.body, context);
511
509
  return contents;
512
510
  };
513
- const deserializeAws_restJson1AcceptInvitationCommandError = async (output, context) => {
511
+ const de_AcceptInvitationCommandError = async (output, context) => {
514
512
  const parsedOutput = {
515
513
  ...output,
516
514
  body: await parseErrorBody(output.body, context),
@@ -519,19 +517,19 @@ const deserializeAws_restJson1AcceptInvitationCommandError = async (output, cont
519
517
  switch (errorCode) {
520
518
  case "AccessDeniedException":
521
519
  case "com.amazonaws.detective#AccessDeniedException":
522
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
520
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
523
521
  case "ConflictException":
524
522
  case "com.amazonaws.detective#ConflictException":
525
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
523
+ throw await de_ConflictExceptionRes(parsedOutput, context);
526
524
  case "InternalServerException":
527
525
  case "com.amazonaws.detective#InternalServerException":
528
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
526
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
529
527
  case "ResourceNotFoundException":
530
528
  case "com.amazonaws.detective#ResourceNotFoundException":
531
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
529
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
532
530
  case "ValidationException":
533
531
  case "com.amazonaws.detective#ValidationException":
534
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
532
+ throw await de_ValidationExceptionRes(parsedOutput, context);
535
533
  default:
536
534
  const parsedBody = parsedOutput.body;
537
535
  throwDefaultError({
@@ -542,23 +540,23 @@ const deserializeAws_restJson1AcceptInvitationCommandError = async (output, cont
542
540
  });
543
541
  }
544
542
  };
545
- export const deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommand = async (output, context) => {
543
+ export const de_BatchGetGraphMemberDatasourcesCommand = async (output, context) => {
546
544
  if (output.statusCode !== 200 && output.statusCode >= 300) {
547
- return deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommandError(output, context);
545
+ return de_BatchGetGraphMemberDatasourcesCommandError(output, context);
548
546
  }
549
547
  const contents = map({
550
548
  $metadata: deserializeMetadata(output),
551
549
  });
552
550
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
553
551
  if (data.MemberDatasources != null) {
554
- contents.MemberDatasources = deserializeAws_restJson1MembershipDatasourcesList(data.MemberDatasources, context);
552
+ contents.MemberDatasources = de_MembershipDatasourcesList(data.MemberDatasources, context);
555
553
  }
556
554
  if (data.UnprocessedAccounts != null) {
557
- contents.UnprocessedAccounts = deserializeAws_restJson1UnprocessedAccountList(data.UnprocessedAccounts, context);
555
+ contents.UnprocessedAccounts = de_UnprocessedAccountList(data.UnprocessedAccounts, context);
558
556
  }
559
557
  return contents;
560
558
  };
561
- const deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommandError = async (output, context) => {
559
+ const de_BatchGetGraphMemberDatasourcesCommandError = async (output, context) => {
562
560
  const parsedOutput = {
563
561
  ...output,
564
562
  body: await parseErrorBody(output.body, context),
@@ -567,16 +565,16 @@ const deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommandError = async
567
565
  switch (errorCode) {
568
566
  case "AccessDeniedException":
569
567
  case "com.amazonaws.detective#AccessDeniedException":
570
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
568
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
571
569
  case "InternalServerException":
572
570
  case "com.amazonaws.detective#InternalServerException":
573
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
571
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
574
572
  case "ResourceNotFoundException":
575
573
  case "com.amazonaws.detective#ResourceNotFoundException":
576
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
574
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
577
575
  case "ValidationException":
578
576
  case "com.amazonaws.detective#ValidationException":
579
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
577
+ throw await de_ValidationExceptionRes(parsedOutput, context);
580
578
  default:
581
579
  const parsedBody = parsedOutput.body;
582
580
  throwDefaultError({
@@ -587,23 +585,23 @@ const deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommandError = async
587
585
  });
588
586
  }
589
587
  };
590
- export const deserializeAws_restJson1BatchGetMembershipDatasourcesCommand = async (output, context) => {
588
+ export const de_BatchGetMembershipDatasourcesCommand = async (output, context) => {
591
589
  if (output.statusCode !== 200 && output.statusCode >= 300) {
592
- return deserializeAws_restJson1BatchGetMembershipDatasourcesCommandError(output, context);
590
+ return de_BatchGetMembershipDatasourcesCommandError(output, context);
593
591
  }
594
592
  const contents = map({
595
593
  $metadata: deserializeMetadata(output),
596
594
  });
597
595
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
598
596
  if (data.MembershipDatasources != null) {
599
- contents.MembershipDatasources = deserializeAws_restJson1MembershipDatasourcesList(data.MembershipDatasources, context);
597
+ contents.MembershipDatasources = de_MembershipDatasourcesList(data.MembershipDatasources, context);
600
598
  }
601
599
  if (data.UnprocessedGraphs != null) {
602
- contents.UnprocessedGraphs = deserializeAws_restJson1UnprocessedGraphList(data.UnprocessedGraphs, context);
600
+ contents.UnprocessedGraphs = de_UnprocessedGraphList(data.UnprocessedGraphs, context);
603
601
  }
604
602
  return contents;
605
603
  };
606
- const deserializeAws_restJson1BatchGetMembershipDatasourcesCommandError = async (output, context) => {
604
+ const de_BatchGetMembershipDatasourcesCommandError = async (output, context) => {
607
605
  const parsedOutput = {
608
606
  ...output,
609
607
  body: await parseErrorBody(output.body, context),
@@ -612,16 +610,16 @@ const deserializeAws_restJson1BatchGetMembershipDatasourcesCommandError = async
612
610
  switch (errorCode) {
613
611
  case "AccessDeniedException":
614
612
  case "com.amazonaws.detective#AccessDeniedException":
615
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
613
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
616
614
  case "InternalServerException":
617
615
  case "com.amazonaws.detective#InternalServerException":
618
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
616
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
619
617
  case "ResourceNotFoundException":
620
618
  case "com.amazonaws.detective#ResourceNotFoundException":
621
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
619
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
622
620
  case "ValidationException":
623
621
  case "com.amazonaws.detective#ValidationException":
624
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
622
+ throw await de_ValidationExceptionRes(parsedOutput, context);
625
623
  default:
626
624
  const parsedBody = parsedOutput.body;
627
625
  throwDefaultError({
@@ -632,9 +630,9 @@ const deserializeAws_restJson1BatchGetMembershipDatasourcesCommandError = async
632
630
  });
633
631
  }
634
632
  };
635
- export const deserializeAws_restJson1CreateGraphCommand = async (output, context) => {
633
+ export const de_CreateGraphCommand = async (output, context) => {
636
634
  if (output.statusCode !== 200 && output.statusCode >= 300) {
637
- return deserializeAws_restJson1CreateGraphCommandError(output, context);
635
+ return de_CreateGraphCommandError(output, context);
638
636
  }
639
637
  const contents = map({
640
638
  $metadata: deserializeMetadata(output),
@@ -645,7 +643,7 @@ export const deserializeAws_restJson1CreateGraphCommand = async (output, context
645
643
  }
646
644
  return contents;
647
645
  };
648
- const deserializeAws_restJson1CreateGraphCommandError = async (output, context) => {
646
+ const de_CreateGraphCommandError = async (output, context) => {
649
647
  const parsedOutput = {
650
648
  ...output,
651
649
  body: await parseErrorBody(output.body, context),
@@ -654,16 +652,16 @@ const deserializeAws_restJson1CreateGraphCommandError = async (output, context)
654
652
  switch (errorCode) {
655
653
  case "AccessDeniedException":
656
654
  case "com.amazonaws.detective#AccessDeniedException":
657
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
655
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
658
656
  case "ConflictException":
659
657
  case "com.amazonaws.detective#ConflictException":
660
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
658
+ throw await de_ConflictExceptionRes(parsedOutput, context);
661
659
  case "InternalServerException":
662
660
  case "com.amazonaws.detective#InternalServerException":
663
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
661
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
664
662
  case "ServiceQuotaExceededException":
665
663
  case "com.amazonaws.detective#ServiceQuotaExceededException":
666
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
664
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
667
665
  default:
668
666
  const parsedBody = parsedOutput.body;
669
667
  throwDefaultError({
@@ -674,23 +672,23 @@ const deserializeAws_restJson1CreateGraphCommandError = async (output, context)
674
672
  });
675
673
  }
676
674
  };
677
- export const deserializeAws_restJson1CreateMembersCommand = async (output, context) => {
675
+ export const de_CreateMembersCommand = async (output, context) => {
678
676
  if (output.statusCode !== 200 && output.statusCode >= 300) {
679
- return deserializeAws_restJson1CreateMembersCommandError(output, context);
677
+ return de_CreateMembersCommandError(output, context);
680
678
  }
681
679
  const contents = map({
682
680
  $metadata: deserializeMetadata(output),
683
681
  });
684
682
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
685
683
  if (data.Members != null) {
686
- contents.Members = deserializeAws_restJson1MemberDetailList(data.Members, context);
684
+ contents.Members = de_MemberDetailList(data.Members, context);
687
685
  }
688
686
  if (data.UnprocessedAccounts != null) {
689
- contents.UnprocessedAccounts = deserializeAws_restJson1UnprocessedAccountList(data.UnprocessedAccounts, context);
687
+ contents.UnprocessedAccounts = de_UnprocessedAccountList(data.UnprocessedAccounts, context);
690
688
  }
691
689
  return contents;
692
690
  };
693
- const deserializeAws_restJson1CreateMembersCommandError = async (output, context) => {
691
+ const de_CreateMembersCommandError = async (output, context) => {
694
692
  const parsedOutput = {
695
693
  ...output,
696
694
  body: await parseErrorBody(output.body, context),
@@ -699,19 +697,19 @@ const deserializeAws_restJson1CreateMembersCommandError = async (output, context
699
697
  switch (errorCode) {
700
698
  case "AccessDeniedException":
701
699
  case "com.amazonaws.detective#AccessDeniedException":
702
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
700
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
703
701
  case "InternalServerException":
704
702
  case "com.amazonaws.detective#InternalServerException":
705
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
703
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
706
704
  case "ResourceNotFoundException":
707
705
  case "com.amazonaws.detective#ResourceNotFoundException":
708
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
706
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
709
707
  case "ServiceQuotaExceededException":
710
708
  case "com.amazonaws.detective#ServiceQuotaExceededException":
711
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
709
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
712
710
  case "ValidationException":
713
711
  case "com.amazonaws.detective#ValidationException":
714
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
712
+ throw await de_ValidationExceptionRes(parsedOutput, context);
715
713
  default:
716
714
  const parsedBody = parsedOutput.body;
717
715
  throwDefaultError({
@@ -722,9 +720,9 @@ const deserializeAws_restJson1CreateMembersCommandError = async (output, context
722
720
  });
723
721
  }
724
722
  };
725
- export const deserializeAws_restJson1DeleteGraphCommand = async (output, context) => {
723
+ export const de_DeleteGraphCommand = async (output, context) => {
726
724
  if (output.statusCode !== 200 && output.statusCode >= 300) {
727
- return deserializeAws_restJson1DeleteGraphCommandError(output, context);
725
+ return de_DeleteGraphCommandError(output, context);
728
726
  }
729
727
  const contents = map({
730
728
  $metadata: deserializeMetadata(output),
@@ -732,7 +730,7 @@ export const deserializeAws_restJson1DeleteGraphCommand = async (output, context
732
730
  await collectBody(output.body, context);
733
731
  return contents;
734
732
  };
735
- const deserializeAws_restJson1DeleteGraphCommandError = async (output, context) => {
733
+ const de_DeleteGraphCommandError = async (output, context) => {
736
734
  const parsedOutput = {
737
735
  ...output,
738
736
  body: await parseErrorBody(output.body, context),
@@ -741,16 +739,16 @@ const deserializeAws_restJson1DeleteGraphCommandError = async (output, context)
741
739
  switch (errorCode) {
742
740
  case "AccessDeniedException":
743
741
  case "com.amazonaws.detective#AccessDeniedException":
744
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
742
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
745
743
  case "InternalServerException":
746
744
  case "com.amazonaws.detective#InternalServerException":
747
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
745
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
748
746
  case "ResourceNotFoundException":
749
747
  case "com.amazonaws.detective#ResourceNotFoundException":
750
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
748
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
751
749
  case "ValidationException":
752
750
  case "com.amazonaws.detective#ValidationException":
753
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
751
+ throw await de_ValidationExceptionRes(parsedOutput, context);
754
752
  default:
755
753
  const parsedBody = parsedOutput.body;
756
754
  throwDefaultError({
@@ -761,23 +759,23 @@ const deserializeAws_restJson1DeleteGraphCommandError = async (output, context)
761
759
  });
762
760
  }
763
761
  };
764
- export const deserializeAws_restJson1DeleteMembersCommand = async (output, context) => {
762
+ export const de_DeleteMembersCommand = async (output, context) => {
765
763
  if (output.statusCode !== 200 && output.statusCode >= 300) {
766
- return deserializeAws_restJson1DeleteMembersCommandError(output, context);
764
+ return de_DeleteMembersCommandError(output, context);
767
765
  }
768
766
  const contents = map({
769
767
  $metadata: deserializeMetadata(output),
770
768
  });
771
769
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
772
770
  if (data.AccountIds != null) {
773
- contents.AccountIds = deserializeAws_restJson1AccountIdList(data.AccountIds, context);
771
+ contents.AccountIds = de_AccountIdList(data.AccountIds, context);
774
772
  }
775
773
  if (data.UnprocessedAccounts != null) {
776
- contents.UnprocessedAccounts = deserializeAws_restJson1UnprocessedAccountList(data.UnprocessedAccounts, context);
774
+ contents.UnprocessedAccounts = de_UnprocessedAccountList(data.UnprocessedAccounts, context);
777
775
  }
778
776
  return contents;
779
777
  };
780
- const deserializeAws_restJson1DeleteMembersCommandError = async (output, context) => {
778
+ const de_DeleteMembersCommandError = async (output, context) => {
781
779
  const parsedOutput = {
782
780
  ...output,
783
781
  body: await parseErrorBody(output.body, context),
@@ -786,19 +784,19 @@ const deserializeAws_restJson1DeleteMembersCommandError = async (output, context
786
784
  switch (errorCode) {
787
785
  case "AccessDeniedException":
788
786
  case "com.amazonaws.detective#AccessDeniedException":
789
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
787
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
790
788
  case "ConflictException":
791
789
  case "com.amazonaws.detective#ConflictException":
792
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
790
+ throw await de_ConflictExceptionRes(parsedOutput, context);
793
791
  case "InternalServerException":
794
792
  case "com.amazonaws.detective#InternalServerException":
795
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
793
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
796
794
  case "ResourceNotFoundException":
797
795
  case "com.amazonaws.detective#ResourceNotFoundException":
798
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
796
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
799
797
  case "ValidationException":
800
798
  case "com.amazonaws.detective#ValidationException":
801
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
799
+ throw await de_ValidationExceptionRes(parsedOutput, context);
802
800
  default:
803
801
  const parsedBody = parsedOutput.body;
804
802
  throwDefaultError({
@@ -809,9 +807,9 @@ const deserializeAws_restJson1DeleteMembersCommandError = async (output, context
809
807
  });
810
808
  }
811
809
  };
812
- export const deserializeAws_restJson1DescribeOrganizationConfigurationCommand = async (output, context) => {
810
+ export const de_DescribeOrganizationConfigurationCommand = async (output, context) => {
813
811
  if (output.statusCode !== 200 && output.statusCode >= 300) {
814
- return deserializeAws_restJson1DescribeOrganizationConfigurationCommandError(output, context);
812
+ return de_DescribeOrganizationConfigurationCommandError(output, context);
815
813
  }
816
814
  const contents = map({
817
815
  $metadata: deserializeMetadata(output),
@@ -822,7 +820,7 @@ export const deserializeAws_restJson1DescribeOrganizationConfigurationCommand =
822
820
  }
823
821
  return contents;
824
822
  };
825
- const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = async (output, context) => {
823
+ const de_DescribeOrganizationConfigurationCommandError = async (output, context) => {
826
824
  const parsedOutput = {
827
825
  ...output,
828
826
  body: await parseErrorBody(output.body, context),
@@ -831,16 +829,16 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = as
831
829
  switch (errorCode) {
832
830
  case "AccessDeniedException":
833
831
  case "com.amazonaws.detective#AccessDeniedException":
834
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
832
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
835
833
  case "InternalServerException":
836
834
  case "com.amazonaws.detective#InternalServerException":
837
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
835
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
838
836
  case "TooManyRequestsException":
839
837
  case "com.amazonaws.detective#TooManyRequestsException":
840
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
838
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
841
839
  case "ValidationException":
842
840
  case "com.amazonaws.detective#ValidationException":
843
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
841
+ throw await de_ValidationExceptionRes(parsedOutput, context);
844
842
  default:
845
843
  const parsedBody = parsedOutput.body;
846
844
  throwDefaultError({
@@ -851,9 +849,9 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = as
851
849
  });
852
850
  }
853
851
  };
854
- export const deserializeAws_restJson1DisableOrganizationAdminAccountCommand = async (output, context) => {
852
+ export const de_DisableOrganizationAdminAccountCommand = async (output, context) => {
855
853
  if (output.statusCode !== 200 && output.statusCode >= 300) {
856
- return deserializeAws_restJson1DisableOrganizationAdminAccountCommandError(output, context);
854
+ return de_DisableOrganizationAdminAccountCommandError(output, context);
857
855
  }
858
856
  const contents = map({
859
857
  $metadata: deserializeMetadata(output),
@@ -861,7 +859,7 @@ export const deserializeAws_restJson1DisableOrganizationAdminAccountCommand = as
861
859
  await collectBody(output.body, context);
862
860
  return contents;
863
861
  };
864
- const deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = async (output, context) => {
862
+ const de_DisableOrganizationAdminAccountCommandError = async (output, context) => {
865
863
  const parsedOutput = {
866
864
  ...output,
867
865
  body: await parseErrorBody(output.body, context),
@@ -870,16 +868,16 @@ const deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = asyn
870
868
  switch (errorCode) {
871
869
  case "AccessDeniedException":
872
870
  case "com.amazonaws.detective#AccessDeniedException":
873
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
871
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
874
872
  case "InternalServerException":
875
873
  case "com.amazonaws.detective#InternalServerException":
876
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
874
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
877
875
  case "TooManyRequestsException":
878
876
  case "com.amazonaws.detective#TooManyRequestsException":
879
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
877
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
880
878
  case "ValidationException":
881
879
  case "com.amazonaws.detective#ValidationException":
882
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
880
+ throw await de_ValidationExceptionRes(parsedOutput, context);
883
881
  default:
884
882
  const parsedBody = parsedOutput.body;
885
883
  throwDefaultError({
@@ -890,9 +888,9 @@ const deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = asyn
890
888
  });
891
889
  }
892
890
  };
893
- export const deserializeAws_restJson1DisassociateMembershipCommand = async (output, context) => {
891
+ export const de_DisassociateMembershipCommand = async (output, context) => {
894
892
  if (output.statusCode !== 200 && output.statusCode >= 300) {
895
- return deserializeAws_restJson1DisassociateMembershipCommandError(output, context);
893
+ return de_DisassociateMembershipCommandError(output, context);
896
894
  }
897
895
  const contents = map({
898
896
  $metadata: deserializeMetadata(output),
@@ -900,7 +898,7 @@ export const deserializeAws_restJson1DisassociateMembershipCommand = async (outp
900
898
  await collectBody(output.body, context);
901
899
  return contents;
902
900
  };
903
- const deserializeAws_restJson1DisassociateMembershipCommandError = async (output, context) => {
901
+ const de_DisassociateMembershipCommandError = async (output, context) => {
904
902
  const parsedOutput = {
905
903
  ...output,
906
904
  body: await parseErrorBody(output.body, context),
@@ -909,19 +907,19 @@ const deserializeAws_restJson1DisassociateMembershipCommandError = async (output
909
907
  switch (errorCode) {
910
908
  case "AccessDeniedException":
911
909
  case "com.amazonaws.detective#AccessDeniedException":
912
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
910
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
913
911
  case "ConflictException":
914
912
  case "com.amazonaws.detective#ConflictException":
915
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
913
+ throw await de_ConflictExceptionRes(parsedOutput, context);
916
914
  case "InternalServerException":
917
915
  case "com.amazonaws.detective#InternalServerException":
918
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
916
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
919
917
  case "ResourceNotFoundException":
920
918
  case "com.amazonaws.detective#ResourceNotFoundException":
921
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
919
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
922
920
  case "ValidationException":
923
921
  case "com.amazonaws.detective#ValidationException":
924
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
922
+ throw await de_ValidationExceptionRes(parsedOutput, context);
925
923
  default:
926
924
  const parsedBody = parsedOutput.body;
927
925
  throwDefaultError({
@@ -932,9 +930,9 @@ const deserializeAws_restJson1DisassociateMembershipCommandError = async (output
932
930
  });
933
931
  }
934
932
  };
935
- export const deserializeAws_restJson1EnableOrganizationAdminAccountCommand = async (output, context) => {
933
+ export const de_EnableOrganizationAdminAccountCommand = async (output, context) => {
936
934
  if (output.statusCode !== 200 && output.statusCode >= 300) {
937
- return deserializeAws_restJson1EnableOrganizationAdminAccountCommandError(output, context);
935
+ return de_EnableOrganizationAdminAccountCommandError(output, context);
938
936
  }
939
937
  const contents = map({
940
938
  $metadata: deserializeMetadata(output),
@@ -942,7 +940,7 @@ export const deserializeAws_restJson1EnableOrganizationAdminAccountCommand = asy
942
940
  await collectBody(output.body, context);
943
941
  return contents;
944
942
  };
945
- const deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = async (output, context) => {
943
+ const de_EnableOrganizationAdminAccountCommandError = async (output, context) => {
946
944
  const parsedOutput = {
947
945
  ...output,
948
946
  body: await parseErrorBody(output.body, context),
@@ -951,16 +949,16 @@ const deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = async
951
949
  switch (errorCode) {
952
950
  case "AccessDeniedException":
953
951
  case "com.amazonaws.detective#AccessDeniedException":
954
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
952
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
955
953
  case "InternalServerException":
956
954
  case "com.amazonaws.detective#InternalServerException":
957
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
955
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
958
956
  case "TooManyRequestsException":
959
957
  case "com.amazonaws.detective#TooManyRequestsException":
960
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
958
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
961
959
  case "ValidationException":
962
960
  case "com.amazonaws.detective#ValidationException":
963
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
961
+ throw await de_ValidationExceptionRes(parsedOutput, context);
964
962
  default:
965
963
  const parsedBody = parsedOutput.body;
966
964
  throwDefaultError({
@@ -971,23 +969,23 @@ const deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = async
971
969
  });
972
970
  }
973
971
  };
974
- export const deserializeAws_restJson1GetMembersCommand = async (output, context) => {
972
+ export const de_GetMembersCommand = async (output, context) => {
975
973
  if (output.statusCode !== 200 && output.statusCode >= 300) {
976
- return deserializeAws_restJson1GetMembersCommandError(output, context);
974
+ return de_GetMembersCommandError(output, context);
977
975
  }
978
976
  const contents = map({
979
977
  $metadata: deserializeMetadata(output),
980
978
  });
981
979
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
982
980
  if (data.MemberDetails != null) {
983
- contents.MemberDetails = deserializeAws_restJson1MemberDetailList(data.MemberDetails, context);
981
+ contents.MemberDetails = de_MemberDetailList(data.MemberDetails, context);
984
982
  }
985
983
  if (data.UnprocessedAccounts != null) {
986
- contents.UnprocessedAccounts = deserializeAws_restJson1UnprocessedAccountList(data.UnprocessedAccounts, context);
984
+ contents.UnprocessedAccounts = de_UnprocessedAccountList(data.UnprocessedAccounts, context);
987
985
  }
988
986
  return contents;
989
987
  };
990
- const deserializeAws_restJson1GetMembersCommandError = async (output, context) => {
988
+ const de_GetMembersCommandError = async (output, context) => {
991
989
  const parsedOutput = {
992
990
  ...output,
993
991
  body: await parseErrorBody(output.body, context),
@@ -996,16 +994,16 @@ const deserializeAws_restJson1GetMembersCommandError = async (output, context) =
996
994
  switch (errorCode) {
997
995
  case "AccessDeniedException":
998
996
  case "com.amazonaws.detective#AccessDeniedException":
999
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
997
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1000
998
  case "InternalServerException":
1001
999
  case "com.amazonaws.detective#InternalServerException":
1002
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1000
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1003
1001
  case "ResourceNotFoundException":
1004
1002
  case "com.amazonaws.detective#ResourceNotFoundException":
1005
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1003
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1006
1004
  case "ValidationException":
1007
1005
  case "com.amazonaws.detective#ValidationException":
1008
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1006
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1009
1007
  default:
1010
1008
  const parsedBody = parsedOutput.body;
1011
1009
  throwDefaultError({
@@ -1016,23 +1014,23 @@ const deserializeAws_restJson1GetMembersCommandError = async (output, context) =
1016
1014
  });
1017
1015
  }
1018
1016
  };
1019
- export const deserializeAws_restJson1ListDatasourcePackagesCommand = async (output, context) => {
1017
+ export const de_ListDatasourcePackagesCommand = async (output, context) => {
1020
1018
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1021
- return deserializeAws_restJson1ListDatasourcePackagesCommandError(output, context);
1019
+ return de_ListDatasourcePackagesCommandError(output, context);
1022
1020
  }
1023
1021
  const contents = map({
1024
1022
  $metadata: deserializeMetadata(output),
1025
1023
  });
1026
1024
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1027
1025
  if (data.DatasourcePackages != null) {
1028
- contents.DatasourcePackages = deserializeAws_restJson1DatasourcePackageIngestDetails(data.DatasourcePackages, context);
1026
+ contents.DatasourcePackages = de_DatasourcePackageIngestDetails(data.DatasourcePackages, context);
1029
1027
  }
1030
1028
  if (data.NextToken != null) {
1031
1029
  contents.NextToken = __expectString(data.NextToken);
1032
1030
  }
1033
1031
  return contents;
1034
1032
  };
1035
- const deserializeAws_restJson1ListDatasourcePackagesCommandError = async (output, context) => {
1033
+ const de_ListDatasourcePackagesCommandError = async (output, context) => {
1036
1034
  const parsedOutput = {
1037
1035
  ...output,
1038
1036
  body: await parseErrorBody(output.body, context),
@@ -1041,16 +1039,16 @@ const deserializeAws_restJson1ListDatasourcePackagesCommandError = async (output
1041
1039
  switch (errorCode) {
1042
1040
  case "AccessDeniedException":
1043
1041
  case "com.amazonaws.detective#AccessDeniedException":
1044
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1042
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1045
1043
  case "InternalServerException":
1046
1044
  case "com.amazonaws.detective#InternalServerException":
1047
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1045
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1048
1046
  case "ResourceNotFoundException":
1049
1047
  case "com.amazonaws.detective#ResourceNotFoundException":
1050
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1048
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1051
1049
  case "ValidationException":
1052
1050
  case "com.amazonaws.detective#ValidationException":
1053
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1051
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1054
1052
  default:
1055
1053
  const parsedBody = parsedOutput.body;
1056
1054
  throwDefaultError({
@@ -1061,23 +1059,23 @@ const deserializeAws_restJson1ListDatasourcePackagesCommandError = async (output
1061
1059
  });
1062
1060
  }
1063
1061
  };
1064
- export const deserializeAws_restJson1ListGraphsCommand = async (output, context) => {
1062
+ export const de_ListGraphsCommand = async (output, context) => {
1065
1063
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1066
- return deserializeAws_restJson1ListGraphsCommandError(output, context);
1064
+ return de_ListGraphsCommandError(output, context);
1067
1065
  }
1068
1066
  const contents = map({
1069
1067
  $metadata: deserializeMetadata(output),
1070
1068
  });
1071
1069
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1072
1070
  if (data.GraphList != null) {
1073
- contents.GraphList = deserializeAws_restJson1GraphList(data.GraphList, context);
1071
+ contents.GraphList = de_GraphList(data.GraphList, context);
1074
1072
  }
1075
1073
  if (data.NextToken != null) {
1076
1074
  contents.NextToken = __expectString(data.NextToken);
1077
1075
  }
1078
1076
  return contents;
1079
1077
  };
1080
- const deserializeAws_restJson1ListGraphsCommandError = async (output, context) => {
1078
+ const de_ListGraphsCommandError = async (output, context) => {
1081
1079
  const parsedOutput = {
1082
1080
  ...output,
1083
1081
  body: await parseErrorBody(output.body, context),
@@ -1086,13 +1084,13 @@ const deserializeAws_restJson1ListGraphsCommandError = async (output, context) =
1086
1084
  switch (errorCode) {
1087
1085
  case "AccessDeniedException":
1088
1086
  case "com.amazonaws.detective#AccessDeniedException":
1089
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1087
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1090
1088
  case "InternalServerException":
1091
1089
  case "com.amazonaws.detective#InternalServerException":
1092
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1090
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1093
1091
  case "ValidationException":
1094
1092
  case "com.amazonaws.detective#ValidationException":
1095
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1093
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1096
1094
  default:
1097
1095
  const parsedBody = parsedOutput.body;
1098
1096
  throwDefaultError({
@@ -1103,23 +1101,23 @@ const deserializeAws_restJson1ListGraphsCommandError = async (output, context) =
1103
1101
  });
1104
1102
  }
1105
1103
  };
1106
- export const deserializeAws_restJson1ListInvitationsCommand = async (output, context) => {
1104
+ export const de_ListInvitationsCommand = async (output, context) => {
1107
1105
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1108
- return deserializeAws_restJson1ListInvitationsCommandError(output, context);
1106
+ return de_ListInvitationsCommandError(output, context);
1109
1107
  }
1110
1108
  const contents = map({
1111
1109
  $metadata: deserializeMetadata(output),
1112
1110
  });
1113
1111
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1114
1112
  if (data.Invitations != null) {
1115
- contents.Invitations = deserializeAws_restJson1MemberDetailList(data.Invitations, context);
1113
+ contents.Invitations = de_MemberDetailList(data.Invitations, context);
1116
1114
  }
1117
1115
  if (data.NextToken != null) {
1118
1116
  contents.NextToken = __expectString(data.NextToken);
1119
1117
  }
1120
1118
  return contents;
1121
1119
  };
1122
- const deserializeAws_restJson1ListInvitationsCommandError = async (output, context) => {
1120
+ const de_ListInvitationsCommandError = async (output, context) => {
1123
1121
  const parsedOutput = {
1124
1122
  ...output,
1125
1123
  body: await parseErrorBody(output.body, context),
@@ -1128,13 +1126,13 @@ const deserializeAws_restJson1ListInvitationsCommandError = async (output, conte
1128
1126
  switch (errorCode) {
1129
1127
  case "AccessDeniedException":
1130
1128
  case "com.amazonaws.detective#AccessDeniedException":
1131
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1129
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1132
1130
  case "InternalServerException":
1133
1131
  case "com.amazonaws.detective#InternalServerException":
1134
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1132
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1135
1133
  case "ValidationException":
1136
1134
  case "com.amazonaws.detective#ValidationException":
1137
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1135
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1138
1136
  default:
1139
1137
  const parsedBody = parsedOutput.body;
1140
1138
  throwDefaultError({
@@ -1145,23 +1143,23 @@ const deserializeAws_restJson1ListInvitationsCommandError = async (output, conte
1145
1143
  });
1146
1144
  }
1147
1145
  };
1148
- export const deserializeAws_restJson1ListMembersCommand = async (output, context) => {
1146
+ export const de_ListMembersCommand = async (output, context) => {
1149
1147
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1150
- return deserializeAws_restJson1ListMembersCommandError(output, context);
1148
+ return de_ListMembersCommandError(output, context);
1151
1149
  }
1152
1150
  const contents = map({
1153
1151
  $metadata: deserializeMetadata(output),
1154
1152
  });
1155
1153
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1156
1154
  if (data.MemberDetails != null) {
1157
- contents.MemberDetails = deserializeAws_restJson1MemberDetailList(data.MemberDetails, context);
1155
+ contents.MemberDetails = de_MemberDetailList(data.MemberDetails, context);
1158
1156
  }
1159
1157
  if (data.NextToken != null) {
1160
1158
  contents.NextToken = __expectString(data.NextToken);
1161
1159
  }
1162
1160
  return contents;
1163
1161
  };
1164
- const deserializeAws_restJson1ListMembersCommandError = async (output, context) => {
1162
+ const de_ListMembersCommandError = async (output, context) => {
1165
1163
  const parsedOutput = {
1166
1164
  ...output,
1167
1165
  body: await parseErrorBody(output.body, context),
@@ -1170,16 +1168,16 @@ const deserializeAws_restJson1ListMembersCommandError = async (output, context)
1170
1168
  switch (errorCode) {
1171
1169
  case "AccessDeniedException":
1172
1170
  case "com.amazonaws.detective#AccessDeniedException":
1173
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1171
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1174
1172
  case "InternalServerException":
1175
1173
  case "com.amazonaws.detective#InternalServerException":
1176
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1174
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1177
1175
  case "ResourceNotFoundException":
1178
1176
  case "com.amazonaws.detective#ResourceNotFoundException":
1179
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1177
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1180
1178
  case "ValidationException":
1181
1179
  case "com.amazonaws.detective#ValidationException":
1182
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1180
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1183
1181
  default:
1184
1182
  const parsedBody = parsedOutput.body;
1185
1183
  throwDefaultError({
@@ -1190,23 +1188,23 @@ const deserializeAws_restJson1ListMembersCommandError = async (output, context)
1190
1188
  });
1191
1189
  }
1192
1190
  };
1193
- export const deserializeAws_restJson1ListOrganizationAdminAccountsCommand = async (output, context) => {
1191
+ export const de_ListOrganizationAdminAccountsCommand = async (output, context) => {
1194
1192
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1195
- return deserializeAws_restJson1ListOrganizationAdminAccountsCommandError(output, context);
1193
+ return de_ListOrganizationAdminAccountsCommandError(output, context);
1196
1194
  }
1197
1195
  const contents = map({
1198
1196
  $metadata: deserializeMetadata(output),
1199
1197
  });
1200
1198
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1201
1199
  if (data.Administrators != null) {
1202
- contents.Administrators = deserializeAws_restJson1AdministratorList(data.Administrators, context);
1200
+ contents.Administrators = de_AdministratorList(data.Administrators, context);
1203
1201
  }
1204
1202
  if (data.NextToken != null) {
1205
1203
  contents.NextToken = __expectString(data.NextToken);
1206
1204
  }
1207
1205
  return contents;
1208
1206
  };
1209
- const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async (output, context) => {
1207
+ const de_ListOrganizationAdminAccountsCommandError = async (output, context) => {
1210
1208
  const parsedOutput = {
1211
1209
  ...output,
1212
1210
  body: await parseErrorBody(output.body, context),
@@ -1215,16 +1213,16 @@ const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async
1215
1213
  switch (errorCode) {
1216
1214
  case "AccessDeniedException":
1217
1215
  case "com.amazonaws.detective#AccessDeniedException":
1218
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1216
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1219
1217
  case "InternalServerException":
1220
1218
  case "com.amazonaws.detective#InternalServerException":
1221
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1219
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1222
1220
  case "TooManyRequestsException":
1223
1221
  case "com.amazonaws.detective#TooManyRequestsException":
1224
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1222
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1225
1223
  case "ValidationException":
1226
1224
  case "com.amazonaws.detective#ValidationException":
1227
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1225
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1228
1226
  default:
1229
1227
  const parsedBody = parsedOutput.body;
1230
1228
  throwDefaultError({
@@ -1235,20 +1233,20 @@ const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async
1235
1233
  });
1236
1234
  }
1237
1235
  };
1238
- export const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
1236
+ export const de_ListTagsForResourceCommand = async (output, context) => {
1239
1237
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1240
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
1238
+ return de_ListTagsForResourceCommandError(output, context);
1241
1239
  }
1242
1240
  const contents = map({
1243
1241
  $metadata: deserializeMetadata(output),
1244
1242
  });
1245
1243
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1246
1244
  if (data.Tags != null) {
1247
- contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
1245
+ contents.Tags = de_TagMap(data.Tags, context);
1248
1246
  }
1249
1247
  return contents;
1250
1248
  };
1251
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
1249
+ const de_ListTagsForResourceCommandError = async (output, context) => {
1252
1250
  const parsedOutput = {
1253
1251
  ...output,
1254
1252
  body: await parseErrorBody(output.body, context),
@@ -1257,16 +1255,16 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1257
1255
  switch (errorCode) {
1258
1256
  case "AccessDeniedException":
1259
1257
  case "com.amazonaws.detective#AccessDeniedException":
1260
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1258
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1261
1259
  case "InternalServerException":
1262
1260
  case "com.amazonaws.detective#InternalServerException":
1263
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1261
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1264
1262
  case "ResourceNotFoundException":
1265
1263
  case "com.amazonaws.detective#ResourceNotFoundException":
1266
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1264
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1267
1265
  case "ValidationException":
1268
1266
  case "com.amazonaws.detective#ValidationException":
1269
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1267
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1270
1268
  default:
1271
1269
  const parsedBody = parsedOutput.body;
1272
1270
  throwDefaultError({
@@ -1277,9 +1275,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1277
1275
  });
1278
1276
  }
1279
1277
  };
1280
- export const deserializeAws_restJson1RejectInvitationCommand = async (output, context) => {
1278
+ export const de_RejectInvitationCommand = async (output, context) => {
1281
1279
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1282
- return deserializeAws_restJson1RejectInvitationCommandError(output, context);
1280
+ return de_RejectInvitationCommandError(output, context);
1283
1281
  }
1284
1282
  const contents = map({
1285
1283
  $metadata: deserializeMetadata(output),
@@ -1287,7 +1285,7 @@ export const deserializeAws_restJson1RejectInvitationCommand = async (output, co
1287
1285
  await collectBody(output.body, context);
1288
1286
  return contents;
1289
1287
  };
1290
- const deserializeAws_restJson1RejectInvitationCommandError = async (output, context) => {
1288
+ const de_RejectInvitationCommandError = async (output, context) => {
1291
1289
  const parsedOutput = {
1292
1290
  ...output,
1293
1291
  body: await parseErrorBody(output.body, context),
@@ -1296,19 +1294,19 @@ const deserializeAws_restJson1RejectInvitationCommandError = async (output, cont
1296
1294
  switch (errorCode) {
1297
1295
  case "AccessDeniedException":
1298
1296
  case "com.amazonaws.detective#AccessDeniedException":
1299
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1297
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1300
1298
  case "ConflictException":
1301
1299
  case "com.amazonaws.detective#ConflictException":
1302
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1300
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1303
1301
  case "InternalServerException":
1304
1302
  case "com.amazonaws.detective#InternalServerException":
1305
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1303
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1306
1304
  case "ResourceNotFoundException":
1307
1305
  case "com.amazonaws.detective#ResourceNotFoundException":
1308
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1306
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1309
1307
  case "ValidationException":
1310
1308
  case "com.amazonaws.detective#ValidationException":
1311
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1309
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1312
1310
  default:
1313
1311
  const parsedBody = parsedOutput.body;
1314
1312
  throwDefaultError({
@@ -1319,9 +1317,9 @@ const deserializeAws_restJson1RejectInvitationCommandError = async (output, cont
1319
1317
  });
1320
1318
  }
1321
1319
  };
1322
- export const deserializeAws_restJson1StartMonitoringMemberCommand = async (output, context) => {
1320
+ export const de_StartMonitoringMemberCommand = async (output, context) => {
1323
1321
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1324
- return deserializeAws_restJson1StartMonitoringMemberCommandError(output, context);
1322
+ return de_StartMonitoringMemberCommandError(output, context);
1325
1323
  }
1326
1324
  const contents = map({
1327
1325
  $metadata: deserializeMetadata(output),
@@ -1329,7 +1327,7 @@ export const deserializeAws_restJson1StartMonitoringMemberCommand = async (outpu
1329
1327
  await collectBody(output.body, context);
1330
1328
  return contents;
1331
1329
  };
1332
- const deserializeAws_restJson1StartMonitoringMemberCommandError = async (output, context) => {
1330
+ const de_StartMonitoringMemberCommandError = async (output, context) => {
1333
1331
  const parsedOutput = {
1334
1332
  ...output,
1335
1333
  body: await parseErrorBody(output.body, context),
@@ -1338,22 +1336,22 @@ const deserializeAws_restJson1StartMonitoringMemberCommandError = async (output,
1338
1336
  switch (errorCode) {
1339
1337
  case "AccessDeniedException":
1340
1338
  case "com.amazonaws.detective#AccessDeniedException":
1341
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1339
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1342
1340
  case "ConflictException":
1343
1341
  case "com.amazonaws.detective#ConflictException":
1344
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1342
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1345
1343
  case "InternalServerException":
1346
1344
  case "com.amazonaws.detective#InternalServerException":
1347
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1345
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1348
1346
  case "ResourceNotFoundException":
1349
1347
  case "com.amazonaws.detective#ResourceNotFoundException":
1350
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1348
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1351
1349
  case "ServiceQuotaExceededException":
1352
1350
  case "com.amazonaws.detective#ServiceQuotaExceededException":
1353
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1351
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1354
1352
  case "ValidationException":
1355
1353
  case "com.amazonaws.detective#ValidationException":
1356
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1354
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1357
1355
  default:
1358
1356
  const parsedBody = parsedOutput.body;
1359
1357
  throwDefaultError({
@@ -1364,9 +1362,9 @@ const deserializeAws_restJson1StartMonitoringMemberCommandError = async (output,
1364
1362
  });
1365
1363
  }
1366
1364
  };
1367
- export const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
1365
+ export const de_TagResourceCommand = async (output, context) => {
1368
1366
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1369
- return deserializeAws_restJson1TagResourceCommandError(output, context);
1367
+ return de_TagResourceCommandError(output, context);
1370
1368
  }
1371
1369
  const contents = map({
1372
1370
  $metadata: deserializeMetadata(output),
@@ -1374,7 +1372,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
1374
1372
  await collectBody(output.body, context);
1375
1373
  return contents;
1376
1374
  };
1377
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
1375
+ const de_TagResourceCommandError = async (output, context) => {
1378
1376
  const parsedOutput = {
1379
1377
  ...output,
1380
1378
  body: await parseErrorBody(output.body, context),
@@ -1383,16 +1381,16 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1383
1381
  switch (errorCode) {
1384
1382
  case "AccessDeniedException":
1385
1383
  case "com.amazonaws.detective#AccessDeniedException":
1386
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1384
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1387
1385
  case "InternalServerException":
1388
1386
  case "com.amazonaws.detective#InternalServerException":
1389
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1387
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1390
1388
  case "ResourceNotFoundException":
1391
1389
  case "com.amazonaws.detective#ResourceNotFoundException":
1392
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1390
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1393
1391
  case "ValidationException":
1394
1392
  case "com.amazonaws.detective#ValidationException":
1395
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1393
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1396
1394
  default:
1397
1395
  const parsedBody = parsedOutput.body;
1398
1396
  throwDefaultError({
@@ -1403,9 +1401,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1403
1401
  });
1404
1402
  }
1405
1403
  };
1406
- export const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
1404
+ export const de_UntagResourceCommand = async (output, context) => {
1407
1405
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1408
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
1406
+ return de_UntagResourceCommandError(output, context);
1409
1407
  }
1410
1408
  const contents = map({
1411
1409
  $metadata: deserializeMetadata(output),
@@ -1413,7 +1411,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
1413
1411
  await collectBody(output.body, context);
1414
1412
  return contents;
1415
1413
  };
1416
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
1414
+ const de_UntagResourceCommandError = async (output, context) => {
1417
1415
  const parsedOutput = {
1418
1416
  ...output,
1419
1417
  body: await parseErrorBody(output.body, context),
@@ -1422,16 +1420,16 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1422
1420
  switch (errorCode) {
1423
1421
  case "AccessDeniedException":
1424
1422
  case "com.amazonaws.detective#AccessDeniedException":
1425
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1423
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1426
1424
  case "InternalServerException":
1427
1425
  case "com.amazonaws.detective#InternalServerException":
1428
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1426
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1429
1427
  case "ResourceNotFoundException":
1430
1428
  case "com.amazonaws.detective#ResourceNotFoundException":
1431
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1429
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1432
1430
  case "ValidationException":
1433
1431
  case "com.amazonaws.detective#ValidationException":
1434
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1432
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1435
1433
  default:
1436
1434
  const parsedBody = parsedOutput.body;
1437
1435
  throwDefaultError({
@@ -1442,9 +1440,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1442
1440
  });
1443
1441
  }
1444
1442
  };
1445
- export const deserializeAws_restJson1UpdateDatasourcePackagesCommand = async (output, context) => {
1443
+ export const de_UpdateDatasourcePackagesCommand = async (output, context) => {
1446
1444
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1447
- return deserializeAws_restJson1UpdateDatasourcePackagesCommandError(output, context);
1445
+ return de_UpdateDatasourcePackagesCommandError(output, context);
1448
1446
  }
1449
1447
  const contents = map({
1450
1448
  $metadata: deserializeMetadata(output),
@@ -1452,7 +1450,7 @@ export const deserializeAws_restJson1UpdateDatasourcePackagesCommand = async (ou
1452
1450
  await collectBody(output.body, context);
1453
1451
  return contents;
1454
1452
  };
1455
- const deserializeAws_restJson1UpdateDatasourcePackagesCommandError = async (output, context) => {
1453
+ const de_UpdateDatasourcePackagesCommandError = async (output, context) => {
1456
1454
  const parsedOutput = {
1457
1455
  ...output,
1458
1456
  body: await parseErrorBody(output.body, context),
@@ -1461,19 +1459,19 @@ const deserializeAws_restJson1UpdateDatasourcePackagesCommandError = async (outp
1461
1459
  switch (errorCode) {
1462
1460
  case "AccessDeniedException":
1463
1461
  case "com.amazonaws.detective#AccessDeniedException":
1464
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1462
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1465
1463
  case "InternalServerException":
1466
1464
  case "com.amazonaws.detective#InternalServerException":
1467
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1465
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1468
1466
  case "ResourceNotFoundException":
1469
1467
  case "com.amazonaws.detective#ResourceNotFoundException":
1470
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1468
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1471
1469
  case "ServiceQuotaExceededException":
1472
1470
  case "com.amazonaws.detective#ServiceQuotaExceededException":
1473
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1471
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1474
1472
  case "ValidationException":
1475
1473
  case "com.amazonaws.detective#ValidationException":
1476
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1474
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1477
1475
  default:
1478
1476
  const parsedBody = parsedOutput.body;
1479
1477
  throwDefaultError({
@@ -1484,9 +1482,9 @@ const deserializeAws_restJson1UpdateDatasourcePackagesCommandError = async (outp
1484
1482
  });
1485
1483
  }
1486
1484
  };
1487
- export const deserializeAws_restJson1UpdateOrganizationConfigurationCommand = async (output, context) => {
1485
+ export const de_UpdateOrganizationConfigurationCommand = async (output, context) => {
1488
1486
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1489
- return deserializeAws_restJson1UpdateOrganizationConfigurationCommandError(output, context);
1487
+ return de_UpdateOrganizationConfigurationCommandError(output, context);
1490
1488
  }
1491
1489
  const contents = map({
1492
1490
  $metadata: deserializeMetadata(output),
@@ -1494,7 +1492,7 @@ export const deserializeAws_restJson1UpdateOrganizationConfigurationCommand = as
1494
1492
  await collectBody(output.body, context);
1495
1493
  return contents;
1496
1494
  };
1497
- const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = async (output, context) => {
1495
+ const de_UpdateOrganizationConfigurationCommandError = async (output, context) => {
1498
1496
  const parsedOutput = {
1499
1497
  ...output,
1500
1498
  body: await parseErrorBody(output.body, context),
@@ -1503,16 +1501,16 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
1503
1501
  switch (errorCode) {
1504
1502
  case "AccessDeniedException":
1505
1503
  case "com.amazonaws.detective#AccessDeniedException":
1506
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1504
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1507
1505
  case "InternalServerException":
1508
1506
  case "com.amazonaws.detective#InternalServerException":
1509
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1507
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1510
1508
  case "TooManyRequestsException":
1511
1509
  case "com.amazonaws.detective#TooManyRequestsException":
1512
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1510
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1513
1511
  case "ValidationException":
1514
1512
  case "com.amazonaws.detective#ValidationException":
1515
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1513
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1516
1514
  default:
1517
1515
  const parsedBody = parsedOutput.body;
1518
1516
  throwDefaultError({
@@ -1524,7 +1522,7 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
1524
1522
  }
1525
1523
  };
1526
1524
  const map = __map;
1527
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
1525
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1528
1526
  const contents = map({});
1529
1527
  const data = parsedOutput.body;
1530
1528
  if (data.ErrorCode != null) {
@@ -1548,7 +1546,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
1548
1546
  });
1549
1547
  return __decorateServiceException(exception, parsedOutput.body);
1550
1548
  };
1551
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
1549
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1552
1550
  const contents = map({});
1553
1551
  const data = parsedOutput.body;
1554
1552
  if (data.Message != null) {
@@ -1560,7 +1558,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
1560
1558
  });
1561
1559
  return __decorateServiceException(exception, parsedOutput.body);
1562
1560
  };
1563
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
1561
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1564
1562
  const contents = map({});
1565
1563
  const data = parsedOutput.body;
1566
1564
  if (data.Message != null) {
@@ -1572,7 +1570,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
1572
1570
  });
1573
1571
  return __decorateServiceException(exception, parsedOutput.body);
1574
1572
  };
1575
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
1573
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1576
1574
  const contents = map({});
1577
1575
  const data = parsedOutput.body;
1578
1576
  if (data.Message != null) {
@@ -1584,14 +1582,14 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
1584
1582
  });
1585
1583
  return __decorateServiceException(exception, parsedOutput.body);
1586
1584
  };
1587
- const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
1585
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1588
1586
  const contents = map({});
1589
1587
  const data = parsedOutput.body;
1590
1588
  if (data.Message != null) {
1591
1589
  contents.Message = __expectString(data.Message);
1592
1590
  }
1593
1591
  if (data.Resources != null) {
1594
- contents.Resources = deserializeAws_restJson1ResourceList(data.Resources, context);
1592
+ contents.Resources = de_ResourceList(data.Resources, context);
1595
1593
  }
1596
1594
  const exception = new ServiceQuotaExceededException({
1597
1595
  $metadata: deserializeMetadata(parsedOutput),
@@ -1599,7 +1597,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
1599
1597
  });
1600
1598
  return __decorateServiceException(exception, parsedOutput.body);
1601
1599
  };
1602
- const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
1600
+ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
1603
1601
  const contents = map({});
1604
1602
  const data = parsedOutput.body;
1605
1603
  if (data.Message != null) {
@@ -1611,7 +1609,7 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
1611
1609
  });
1612
1610
  return __decorateServiceException(exception, parsedOutput.body);
1613
1611
  };
1614
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
1612
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1615
1613
  const contents = map({});
1616
1614
  const data = parsedOutput.body;
1617
1615
  if (data.ErrorCode != null) {
@@ -1629,48 +1627,48 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
1629
1627
  });
1630
1628
  return __decorateServiceException(exception, parsedOutput.body);
1631
1629
  };
1632
- const serializeAws_restJson1Account = (input, context) => {
1630
+ const se_Account = (input, context) => {
1633
1631
  return {
1634
1632
  ...(input.AccountId != null && { AccountId: input.AccountId }),
1635
1633
  ...(input.EmailAddress != null && { EmailAddress: input.EmailAddress }),
1636
1634
  };
1637
1635
  };
1638
- const serializeAws_restJson1AccountIdExtendedList = (input, context) => {
1636
+ const se_AccountIdExtendedList = (input, context) => {
1639
1637
  return input
1640
1638
  .filter((e) => e != null)
1641
1639
  .map((entry) => {
1642
1640
  return entry;
1643
1641
  });
1644
1642
  };
1645
- const serializeAws_restJson1AccountIdList = (input, context) => {
1643
+ const se_AccountIdList = (input, context) => {
1646
1644
  return input
1647
1645
  .filter((e) => e != null)
1648
1646
  .map((entry) => {
1649
1647
  return entry;
1650
1648
  });
1651
1649
  };
1652
- const serializeAws_restJson1AccountList = (input, context) => {
1650
+ const se_AccountList = (input, context) => {
1653
1651
  return input
1654
1652
  .filter((e) => e != null)
1655
1653
  .map((entry) => {
1656
- return serializeAws_restJson1Account(entry, context);
1654
+ return se_Account(entry, context);
1657
1655
  });
1658
1656
  };
1659
- const serializeAws_restJson1DatasourcePackageList = (input, context) => {
1657
+ const se_DatasourcePackageList = (input, context) => {
1660
1658
  return input
1661
1659
  .filter((e) => e != null)
1662
1660
  .map((entry) => {
1663
1661
  return entry;
1664
1662
  });
1665
1663
  };
1666
- const serializeAws_restJson1GraphArnList = (input, context) => {
1664
+ const se_GraphArnList = (input, context) => {
1667
1665
  return input
1668
1666
  .filter((e) => e != null)
1669
1667
  .map((entry) => {
1670
1668
  return entry;
1671
1669
  });
1672
1670
  };
1673
- const serializeAws_restJson1TagMap = (input, context) => {
1671
+ const se_TagMap = (input, context) => {
1674
1672
  return Object.entries(input).reduce((acc, [key, value]) => {
1675
1673
  if (value === null) {
1676
1674
  return acc;
@@ -1679,7 +1677,7 @@ const serializeAws_restJson1TagMap = (input, context) => {
1679
1677
  return acc;
1680
1678
  }, {});
1681
1679
  };
1682
- const deserializeAws_restJson1AccountIdList = (output, context) => {
1680
+ const de_AccountIdList = (output, context) => {
1683
1681
  const retVal = (output || [])
1684
1682
  .filter((e) => e != null)
1685
1683
  .map((entry) => {
@@ -1690,7 +1688,7 @@ const deserializeAws_restJson1AccountIdList = (output, context) => {
1690
1688
  });
1691
1689
  return retVal;
1692
1690
  };
1693
- const deserializeAws_restJson1Administrator = (output, context) => {
1691
+ const de_Administrator = (output, context) => {
1694
1692
  return {
1695
1693
  AccountId: __expectString(output.AccountId),
1696
1694
  DelegationTime: output.DelegationTime != null
@@ -1699,44 +1697,44 @@ const deserializeAws_restJson1Administrator = (output, context) => {
1699
1697
  GraphArn: __expectString(output.GraphArn),
1700
1698
  };
1701
1699
  };
1702
- const deserializeAws_restJson1AdministratorList = (output, context) => {
1700
+ const de_AdministratorList = (output, context) => {
1703
1701
  const retVal = (output || [])
1704
1702
  .filter((e) => e != null)
1705
1703
  .map((entry) => {
1706
1704
  if (entry === null) {
1707
1705
  return null;
1708
1706
  }
1709
- return deserializeAws_restJson1Administrator(entry, context);
1707
+ return de_Administrator(entry, context);
1710
1708
  });
1711
1709
  return retVal;
1712
1710
  };
1713
- const deserializeAws_restJson1DatasourcePackageIngestDetail = (output, context) => {
1711
+ const de_DatasourcePackageIngestDetail = (output, context) => {
1714
1712
  return {
1715
1713
  DatasourcePackageIngestState: __expectString(output.DatasourcePackageIngestState),
1716
1714
  LastIngestStateChange: output.LastIngestStateChange != null
1717
- ? deserializeAws_restJson1LastIngestStateChangeDates(output.LastIngestStateChange, context)
1715
+ ? de_LastIngestStateChangeDates(output.LastIngestStateChange, context)
1718
1716
  : undefined,
1719
1717
  };
1720
1718
  };
1721
- const deserializeAws_restJson1DatasourcePackageIngestDetails = (output, context) => {
1719
+ const de_DatasourcePackageIngestDetails = (output, context) => {
1722
1720
  return Object.entries(output).reduce((acc, [key, value]) => {
1723
1721
  if (value === null) {
1724
1722
  return acc;
1725
1723
  }
1726
- acc[key] = deserializeAws_restJson1DatasourcePackageIngestDetail(value, context);
1724
+ acc[key] = de_DatasourcePackageIngestDetail(value, context);
1727
1725
  return acc;
1728
1726
  }, {});
1729
1727
  };
1730
- const deserializeAws_restJson1DatasourcePackageIngestHistory = (output, context) => {
1728
+ const de_DatasourcePackageIngestHistory = (output, context) => {
1731
1729
  return Object.entries(output).reduce((acc, [key, value]) => {
1732
1730
  if (value === null) {
1733
1731
  return acc;
1734
1732
  }
1735
- acc[key] = deserializeAws_restJson1LastIngestStateChangeDates(value, context);
1733
+ acc[key] = de_LastIngestStateChangeDates(value, context);
1736
1734
  return acc;
1737
1735
  }, {});
1738
1736
  };
1739
- const deserializeAws_restJson1DatasourcePackageIngestStates = (output, context) => {
1737
+ const de_DatasourcePackageIngestStates = (output, context) => {
1740
1738
  return Object.entries(output).reduce((acc, [key, value]) => {
1741
1739
  if (value === null) {
1742
1740
  return acc;
@@ -1745,7 +1743,7 @@ const deserializeAws_restJson1DatasourcePackageIngestStates = (output, context)
1745
1743
  return acc;
1746
1744
  }, {});
1747
1745
  };
1748
- const deserializeAws_restJson1DatasourcePackageUsageInfo = (output, context) => {
1746
+ const de_DatasourcePackageUsageInfo = (output, context) => {
1749
1747
  return {
1750
1748
  VolumeUsageInBytes: __expectLong(output.VolumeUsageInBytes),
1751
1749
  VolumeUsageUpdateTime: output.VolumeUsageUpdateTime != null
@@ -1753,38 +1751,38 @@ const deserializeAws_restJson1DatasourcePackageUsageInfo = (output, context) =>
1753
1751
  : undefined,
1754
1752
  };
1755
1753
  };
1756
- const deserializeAws_restJson1Graph = (output, context) => {
1754
+ const de_Graph = (output, context) => {
1757
1755
  return {
1758
1756
  Arn: __expectString(output.Arn),
1759
1757
  CreatedTime: output.CreatedTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.CreatedTime)) : undefined,
1760
1758
  };
1761
1759
  };
1762
- const deserializeAws_restJson1GraphList = (output, context) => {
1760
+ const de_GraphList = (output, context) => {
1763
1761
  const retVal = (output || [])
1764
1762
  .filter((e) => e != null)
1765
1763
  .map((entry) => {
1766
1764
  if (entry === null) {
1767
1765
  return null;
1768
1766
  }
1769
- return deserializeAws_restJson1Graph(entry, context);
1767
+ return de_Graph(entry, context);
1770
1768
  });
1771
1769
  return retVal;
1772
1770
  };
1773
- const deserializeAws_restJson1LastIngestStateChangeDates = (output, context) => {
1771
+ const de_LastIngestStateChangeDates = (output, context) => {
1774
1772
  return Object.entries(output).reduce((acc, [key, value]) => {
1775
1773
  if (value === null) {
1776
1774
  return acc;
1777
1775
  }
1778
- acc[key] = deserializeAws_restJson1TimestampForCollection(value, context);
1776
+ acc[key] = de_TimestampForCollection(value, context);
1779
1777
  return acc;
1780
1778
  }, {});
1781
1779
  };
1782
- const deserializeAws_restJson1MemberDetail = (output, context) => {
1780
+ const de_MemberDetail = (output, context) => {
1783
1781
  return {
1784
1782
  AccountId: __expectString(output.AccountId),
1785
1783
  AdministratorId: __expectString(output.AdministratorId),
1786
1784
  DatasourcePackageIngestStates: output.DatasourcePackageIngestStates != null
1787
- ? deserializeAws_restJson1DatasourcePackageIngestStates(output.DatasourcePackageIngestStates, context)
1785
+ ? de_DatasourcePackageIngestStates(output.DatasourcePackageIngestStates, context)
1788
1786
  : undefined,
1789
1787
  DisabledReason: __expectString(output.DisabledReason),
1790
1788
  EmailAddress: __expectString(output.EmailAddress),
@@ -1799,7 +1797,7 @@ const deserializeAws_restJson1MemberDetail = (output, context) => {
1799
1797
  Status: __expectString(output.Status),
1800
1798
  UpdatedTime: output.UpdatedTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.UpdatedTime)) : undefined,
1801
1799
  VolumeUsageByDatasourcePackage: output.VolumeUsageByDatasourcePackage != null
1802
- ? deserializeAws_restJson1VolumeUsageByDatasourcePackage(output.VolumeUsageByDatasourcePackage, context)
1800
+ ? de_VolumeUsageByDatasourcePackage(output.VolumeUsageByDatasourcePackage, context)
1803
1801
  : undefined,
1804
1802
  VolumeUsageInBytes: __expectLong(output.VolumeUsageInBytes),
1805
1803
  VolumeUsageUpdatedTime: output.VolumeUsageUpdatedTime != null
@@ -1807,38 +1805,38 @@ const deserializeAws_restJson1MemberDetail = (output, context) => {
1807
1805
  : undefined,
1808
1806
  };
1809
1807
  };
1810
- const deserializeAws_restJson1MemberDetailList = (output, context) => {
1808
+ const de_MemberDetailList = (output, context) => {
1811
1809
  const retVal = (output || [])
1812
1810
  .filter((e) => e != null)
1813
1811
  .map((entry) => {
1814
1812
  if (entry === null) {
1815
1813
  return null;
1816
1814
  }
1817
- return deserializeAws_restJson1MemberDetail(entry, context);
1815
+ return de_MemberDetail(entry, context);
1818
1816
  });
1819
1817
  return retVal;
1820
1818
  };
1821
- const deserializeAws_restJson1MembershipDatasources = (output, context) => {
1819
+ const de_MembershipDatasources = (output, context) => {
1822
1820
  return {
1823
1821
  AccountId: __expectString(output.AccountId),
1824
1822
  DatasourcePackageIngestHistory: output.DatasourcePackageIngestHistory != null
1825
- ? deserializeAws_restJson1DatasourcePackageIngestHistory(output.DatasourcePackageIngestHistory, context)
1823
+ ? de_DatasourcePackageIngestHistory(output.DatasourcePackageIngestHistory, context)
1826
1824
  : undefined,
1827
1825
  GraphArn: __expectString(output.GraphArn),
1828
1826
  };
1829
1827
  };
1830
- const deserializeAws_restJson1MembershipDatasourcesList = (output, context) => {
1828
+ const de_MembershipDatasourcesList = (output, context) => {
1831
1829
  const retVal = (output || [])
1832
1830
  .filter((e) => e != null)
1833
1831
  .map((entry) => {
1834
1832
  if (entry === null) {
1835
1833
  return null;
1836
1834
  }
1837
- return deserializeAws_restJson1MembershipDatasources(entry, context);
1835
+ return de_MembershipDatasources(entry, context);
1838
1836
  });
1839
1837
  return retVal;
1840
1838
  };
1841
- const deserializeAws_restJson1ResourceList = (output, context) => {
1839
+ const de_ResourceList = (output, context) => {
1842
1840
  const retVal = (output || [])
1843
1841
  .filter((e) => e != null)
1844
1842
  .map((entry) => {
@@ -1849,7 +1847,7 @@ const deserializeAws_restJson1ResourceList = (output, context) => {
1849
1847
  });
1850
1848
  return retVal;
1851
1849
  };
1852
- const deserializeAws_restJson1TagMap = (output, context) => {
1850
+ const de_TagMap = (output, context) => {
1853
1851
  return Object.entries(output).reduce((acc, [key, value]) => {
1854
1852
  if (value === null) {
1855
1853
  return acc;
@@ -1858,51 +1856,51 @@ const deserializeAws_restJson1TagMap = (output, context) => {
1858
1856
  return acc;
1859
1857
  }, {});
1860
1858
  };
1861
- const deserializeAws_restJson1TimestampForCollection = (output, context) => {
1859
+ const de_TimestampForCollection = (output, context) => {
1862
1860
  return {
1863
1861
  Timestamp: output.Timestamp != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.Timestamp)) : undefined,
1864
1862
  };
1865
1863
  };
1866
- const deserializeAws_restJson1UnprocessedAccount = (output, context) => {
1864
+ const de_UnprocessedAccount = (output, context) => {
1867
1865
  return {
1868
1866
  AccountId: __expectString(output.AccountId),
1869
1867
  Reason: __expectString(output.Reason),
1870
1868
  };
1871
1869
  };
1872
- const deserializeAws_restJson1UnprocessedAccountList = (output, context) => {
1870
+ const de_UnprocessedAccountList = (output, context) => {
1873
1871
  const retVal = (output || [])
1874
1872
  .filter((e) => e != null)
1875
1873
  .map((entry) => {
1876
1874
  if (entry === null) {
1877
1875
  return null;
1878
1876
  }
1879
- return deserializeAws_restJson1UnprocessedAccount(entry, context);
1877
+ return de_UnprocessedAccount(entry, context);
1880
1878
  });
1881
1879
  return retVal;
1882
1880
  };
1883
- const deserializeAws_restJson1UnprocessedGraph = (output, context) => {
1881
+ const de_UnprocessedGraph = (output, context) => {
1884
1882
  return {
1885
1883
  GraphArn: __expectString(output.GraphArn),
1886
1884
  Reason: __expectString(output.Reason),
1887
1885
  };
1888
1886
  };
1889
- const deserializeAws_restJson1UnprocessedGraphList = (output, context) => {
1887
+ const de_UnprocessedGraphList = (output, context) => {
1890
1888
  const retVal = (output || [])
1891
1889
  .filter((e) => e != null)
1892
1890
  .map((entry) => {
1893
1891
  if (entry === null) {
1894
1892
  return null;
1895
1893
  }
1896
- return deserializeAws_restJson1UnprocessedGraph(entry, context);
1894
+ return de_UnprocessedGraph(entry, context);
1897
1895
  });
1898
1896
  return retVal;
1899
1897
  };
1900
- const deserializeAws_restJson1VolumeUsageByDatasourcePackage = (output, context) => {
1898
+ const de_VolumeUsageByDatasourcePackage = (output, context) => {
1901
1899
  return Object.entries(output).reduce((acc, [key, value]) => {
1902
1900
  if (value === null) {
1903
1901
  return acc;
1904
1902
  }
1905
- acc[key] = deserializeAws_restJson1DatasourcePackageUsageInfo(value, context);
1903
+ acc[key] = de_DatasourcePackageUsageInfo(value, context);
1906
1904
  return acc;
1907
1905
  }, {});
1908
1906
  };