@aws-sdk/client-ram 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 (55) hide show
  1. package/dist-cjs/commands/AcceptResourceShareInvitationCommand.js +2 -2
  2. package/dist-cjs/commands/AssociateResourceShareCommand.js +2 -2
  3. package/dist-cjs/commands/AssociateResourceSharePermissionCommand.js +2 -2
  4. package/dist-cjs/commands/CreateResourceShareCommand.js +2 -2
  5. package/dist-cjs/commands/DeleteResourceShareCommand.js +2 -2
  6. package/dist-cjs/commands/DisassociateResourceShareCommand.js +2 -2
  7. package/dist-cjs/commands/DisassociateResourceSharePermissionCommand.js +2 -2
  8. package/dist-cjs/commands/EnableSharingWithAwsOrganizationCommand.js +2 -2
  9. package/dist-cjs/commands/GetPermissionCommand.js +2 -2
  10. package/dist-cjs/commands/GetResourcePoliciesCommand.js +2 -2
  11. package/dist-cjs/commands/GetResourceShareAssociationsCommand.js +2 -2
  12. package/dist-cjs/commands/GetResourceShareInvitationsCommand.js +2 -2
  13. package/dist-cjs/commands/GetResourceSharesCommand.js +2 -2
  14. package/dist-cjs/commands/ListPendingInvitationResourcesCommand.js +2 -2
  15. package/dist-cjs/commands/ListPermissionVersionsCommand.js +2 -2
  16. package/dist-cjs/commands/ListPermissionsCommand.js +2 -2
  17. package/dist-cjs/commands/ListPrincipalsCommand.js +2 -2
  18. package/dist-cjs/commands/ListResourceSharePermissionsCommand.js +2 -2
  19. package/dist-cjs/commands/ListResourceTypesCommand.js +2 -2
  20. package/dist-cjs/commands/ListResourcesCommand.js +2 -2
  21. package/dist-cjs/commands/PromoteResourceShareCreatedFromPolicyCommand.js +2 -2
  22. package/dist-cjs/commands/RejectResourceShareInvitationCommand.js +2 -2
  23. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  24. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  25. package/dist-cjs/commands/UpdateResourceShareCommand.js +2 -2
  26. package/dist-cjs/protocols/Aws_restJson1.js +438 -458
  27. package/dist-es/commands/AcceptResourceShareInvitationCommand.js +3 -3
  28. package/dist-es/commands/AssociateResourceShareCommand.js +3 -3
  29. package/dist-es/commands/AssociateResourceSharePermissionCommand.js +3 -3
  30. package/dist-es/commands/CreateResourceShareCommand.js +3 -3
  31. package/dist-es/commands/DeleteResourceShareCommand.js +3 -3
  32. package/dist-es/commands/DisassociateResourceShareCommand.js +3 -3
  33. package/dist-es/commands/DisassociateResourceSharePermissionCommand.js +3 -3
  34. package/dist-es/commands/EnableSharingWithAwsOrganizationCommand.js +3 -3
  35. package/dist-es/commands/GetPermissionCommand.js +3 -3
  36. package/dist-es/commands/GetResourcePoliciesCommand.js +3 -3
  37. package/dist-es/commands/GetResourceShareAssociationsCommand.js +3 -3
  38. package/dist-es/commands/GetResourceShareInvitationsCommand.js +3 -3
  39. package/dist-es/commands/GetResourceSharesCommand.js +3 -3
  40. package/dist-es/commands/ListPendingInvitationResourcesCommand.js +3 -3
  41. package/dist-es/commands/ListPermissionVersionsCommand.js +3 -3
  42. package/dist-es/commands/ListPermissionsCommand.js +3 -3
  43. package/dist-es/commands/ListPrincipalsCommand.js +3 -3
  44. package/dist-es/commands/ListResourceSharePermissionsCommand.js +3 -3
  45. package/dist-es/commands/ListResourceTypesCommand.js +3 -3
  46. package/dist-es/commands/ListResourcesCommand.js +3 -3
  47. package/dist-es/commands/PromoteResourceShareCreatedFromPolicyCommand.js +3 -3
  48. package/dist-es/commands/RejectResourceShareInvitationCommand.js +3 -3
  49. package/dist-es/commands/TagResourceCommand.js +3 -3
  50. package/dist-es/commands/UntagResourceCommand.js +3 -3
  51. package/dist-es/commands/UpdateResourceShareCommand.js +3 -3
  52. package/dist-es/protocols/Aws_restJson1.js +387 -407
  53. package/dist-types/protocols/Aws_restJson1.d.ts +200 -50
  54. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +50 -50
  55. 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, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { IdempotentParameterMismatchException, InvalidClientTokenException, InvalidMaxResultsException, InvalidNextTokenException, InvalidParameterException, InvalidResourceTypeException, InvalidStateTransitionException, MalformedArnException, MissingRequiredParameterException, OperationNotPermittedException, ResourceArnNotFoundException, ResourceShareInvitationAlreadyAcceptedException, ResourceShareInvitationAlreadyRejectedException, ResourceShareInvitationArnNotFoundException, ResourceShareInvitationExpiredException, ResourceShareLimitExceededException, ServerInternalException, ServiceUnavailableException, TagLimitExceededException, TagPolicyViolationException, ThrottlingException, UnknownResourceException, } from "../models/models_0";
4
4
  import { RAMServiceException as __BaseException } from "../models/RAMServiceException";
5
- export const serializeAws_restJson1AcceptResourceShareInvitationCommand = async (input, context) => {
5
+ export const se_AcceptResourceShareInvitationCommand = 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",
@@ -23,7 +23,7 @@ export const serializeAws_restJson1AcceptResourceShareInvitationCommand = async
23
23
  body,
24
24
  });
25
25
  };
26
- export const serializeAws_restJson1AssociateResourceShareCommand = async (input, context) => {
26
+ export const se_AssociateResourceShareCommand = async (input, context) => {
27
27
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
28
28
  const headers = {
29
29
  "content-type": "application/json",
@@ -32,12 +32,8 @@ export const serializeAws_restJson1AssociateResourceShareCommand = async (input,
32
32
  let body;
33
33
  body = JSON.stringify({
34
34
  ...(input.clientToken != null && { clientToken: input.clientToken }),
35
- ...(input.principals != null && {
36
- principals: serializeAws_restJson1PrincipalArnOrIdList(input.principals, context),
37
- }),
38
- ...(input.resourceArns != null && {
39
- resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
40
- }),
35
+ ...(input.principals != null && { principals: se_PrincipalArnOrIdList(input.principals, context) }),
36
+ ...(input.resourceArns != null && { resourceArns: se_ResourceArnList(input.resourceArns, context) }),
41
37
  ...(input.resourceShareArn != null && { resourceShareArn: input.resourceShareArn }),
42
38
  });
43
39
  return new __HttpRequest({
@@ -50,7 +46,7 @@ export const serializeAws_restJson1AssociateResourceShareCommand = async (input,
50
46
  body,
51
47
  });
52
48
  };
53
- export const serializeAws_restJson1AssociateResourceSharePermissionCommand = async (input, context) => {
49
+ export const se_AssociateResourceSharePermissionCommand = async (input, context) => {
54
50
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
55
51
  const headers = {
56
52
  "content-type": "application/json",
@@ -74,7 +70,7 @@ export const serializeAws_restJson1AssociateResourceSharePermissionCommand = asy
74
70
  body,
75
71
  });
76
72
  };
77
- export const serializeAws_restJson1CreateResourceShareCommand = async (input, context) => {
73
+ export const se_CreateResourceShareCommand = async (input, context) => {
78
74
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
79
75
  const headers = {
80
76
  "content-type": "application/json",
@@ -85,16 +81,10 @@ export const serializeAws_restJson1CreateResourceShareCommand = async (input, co
85
81
  ...(input.allowExternalPrincipals != null && { allowExternalPrincipals: input.allowExternalPrincipals }),
86
82
  ...(input.clientToken != null && { clientToken: input.clientToken }),
87
83
  ...(input.name != null && { name: input.name }),
88
- ...(input.permissionArns != null && {
89
- permissionArns: serializeAws_restJson1PermissionArnList(input.permissionArns, context),
90
- }),
91
- ...(input.principals != null && {
92
- principals: serializeAws_restJson1PrincipalArnOrIdList(input.principals, context),
93
- }),
94
- ...(input.resourceArns != null && {
95
- resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
96
- }),
97
- ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
84
+ ...(input.permissionArns != null && { permissionArns: se_PermissionArnList(input.permissionArns, context) }),
85
+ ...(input.principals != null && { principals: se_PrincipalArnOrIdList(input.principals, context) }),
86
+ ...(input.resourceArns != null && { resourceArns: se_ResourceArnList(input.resourceArns, context) }),
87
+ ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
98
88
  });
99
89
  return new __HttpRequest({
100
90
  protocol,
@@ -106,7 +96,7 @@ export const serializeAws_restJson1CreateResourceShareCommand = async (input, co
106
96
  body,
107
97
  });
108
98
  };
109
- export const serializeAws_restJson1DeleteResourceShareCommand = async (input, context) => {
99
+ export const se_DeleteResourceShareCommand = async (input, context) => {
110
100
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
111
101
  const headers = {};
112
102
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteresourceshare";
@@ -126,7 +116,7 @@ export const serializeAws_restJson1DeleteResourceShareCommand = async (input, co
126
116
  body,
127
117
  });
128
118
  };
129
- export const serializeAws_restJson1DisassociateResourceShareCommand = async (input, context) => {
119
+ export const se_DisassociateResourceShareCommand = async (input, context) => {
130
120
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
131
121
  const headers = {
132
122
  "content-type": "application/json",
@@ -135,12 +125,8 @@ export const serializeAws_restJson1DisassociateResourceShareCommand = async (inp
135
125
  let body;
136
126
  body = JSON.stringify({
137
127
  ...(input.clientToken != null && { clientToken: input.clientToken }),
138
- ...(input.principals != null && {
139
- principals: serializeAws_restJson1PrincipalArnOrIdList(input.principals, context),
140
- }),
141
- ...(input.resourceArns != null && {
142
- resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
143
- }),
128
+ ...(input.principals != null && { principals: se_PrincipalArnOrIdList(input.principals, context) }),
129
+ ...(input.resourceArns != null && { resourceArns: se_ResourceArnList(input.resourceArns, context) }),
144
130
  ...(input.resourceShareArn != null && { resourceShareArn: input.resourceShareArn }),
145
131
  });
146
132
  return new __HttpRequest({
@@ -153,7 +139,7 @@ export const serializeAws_restJson1DisassociateResourceShareCommand = async (inp
153
139
  body,
154
140
  });
155
141
  };
156
- export const serializeAws_restJson1DisassociateResourceSharePermissionCommand = async (input, context) => {
142
+ export const se_DisassociateResourceSharePermissionCommand = async (input, context) => {
157
143
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
158
144
  const headers = {
159
145
  "content-type": "application/json",
@@ -175,7 +161,7 @@ export const serializeAws_restJson1DisassociateResourceSharePermissionCommand =
175
161
  body,
176
162
  });
177
163
  };
178
- export const serializeAws_restJson1EnableSharingWithAwsOrganizationCommand = async (input, context) => {
164
+ export const se_EnableSharingWithAwsOrganizationCommand = async (input, context) => {
179
165
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
180
166
  const headers = {
181
167
  "content-type": "application/json",
@@ -193,7 +179,7 @@ export const serializeAws_restJson1EnableSharingWithAwsOrganizationCommand = asy
193
179
  body,
194
180
  });
195
181
  };
196
- export const serializeAws_restJson1GetPermissionCommand = async (input, context) => {
182
+ export const se_GetPermissionCommand = async (input, context) => {
197
183
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
198
184
  const headers = {
199
185
  "content-type": "application/json",
@@ -214,7 +200,7 @@ export const serializeAws_restJson1GetPermissionCommand = async (input, context)
214
200
  body,
215
201
  });
216
202
  };
217
- export const serializeAws_restJson1GetResourcePoliciesCommand = async (input, context) => {
203
+ export const se_GetResourcePoliciesCommand = async (input, context) => {
218
204
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
219
205
  const headers = {
220
206
  "content-type": "application/json",
@@ -225,9 +211,7 @@ export const serializeAws_restJson1GetResourcePoliciesCommand = async (input, co
225
211
  ...(input.maxResults != null && { maxResults: input.maxResults }),
226
212
  ...(input.nextToken != null && { nextToken: input.nextToken }),
227
213
  ...(input.principal != null && { principal: input.principal }),
228
- ...(input.resourceArns != null && {
229
- resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
230
- }),
214
+ ...(input.resourceArns != null && { resourceArns: se_ResourceArnList(input.resourceArns, context) }),
231
215
  });
232
216
  return new __HttpRequest({
233
217
  protocol,
@@ -239,7 +223,7 @@ export const serializeAws_restJson1GetResourcePoliciesCommand = async (input, co
239
223
  body,
240
224
  });
241
225
  };
242
- export const serializeAws_restJson1GetResourceShareAssociationsCommand = async (input, context) => {
226
+ export const se_GetResourceShareAssociationsCommand = async (input, context) => {
243
227
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
244
228
  const headers = {
245
229
  "content-type": "application/json",
@@ -254,7 +238,7 @@ export const serializeAws_restJson1GetResourceShareAssociationsCommand = async (
254
238
  ...(input.principal != null && { principal: input.principal }),
255
239
  ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
256
240
  ...(input.resourceShareArns != null && {
257
- resourceShareArns: serializeAws_restJson1ResourceShareArnList(input.resourceShareArns, context),
241
+ resourceShareArns: se_ResourceShareArnList(input.resourceShareArns, context),
258
242
  }),
259
243
  });
260
244
  return new __HttpRequest({
@@ -267,7 +251,7 @@ export const serializeAws_restJson1GetResourceShareAssociationsCommand = async (
267
251
  body,
268
252
  });
269
253
  };
270
- export const serializeAws_restJson1GetResourceShareInvitationsCommand = async (input, context) => {
254
+ export const se_GetResourceShareInvitationsCommand = async (input, context) => {
271
255
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
272
256
  const headers = {
273
257
  "content-type": "application/json",
@@ -278,10 +262,10 @@ export const serializeAws_restJson1GetResourceShareInvitationsCommand = async (i
278
262
  ...(input.maxResults != null && { maxResults: input.maxResults }),
279
263
  ...(input.nextToken != null && { nextToken: input.nextToken }),
280
264
  ...(input.resourceShareArns != null && {
281
- resourceShareArns: serializeAws_restJson1ResourceShareArnList(input.resourceShareArns, context),
265
+ resourceShareArns: se_ResourceShareArnList(input.resourceShareArns, context),
282
266
  }),
283
267
  ...(input.resourceShareInvitationArns != null && {
284
- resourceShareInvitationArns: serializeAws_restJson1ResourceShareInvitationArnList(input.resourceShareInvitationArns, context),
268
+ resourceShareInvitationArns: se_ResourceShareInvitationArnList(input.resourceShareInvitationArns, context),
285
269
  }),
286
270
  });
287
271
  return new __HttpRequest({
@@ -294,7 +278,7 @@ export const serializeAws_restJson1GetResourceShareInvitationsCommand = async (i
294
278
  body,
295
279
  });
296
280
  };
297
- export const serializeAws_restJson1GetResourceSharesCommand = async (input, context) => {
281
+ export const se_GetResourceSharesCommand = async (input, context) => {
298
282
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
299
283
  const headers = {
300
284
  "content-type": "application/json",
@@ -308,10 +292,10 @@ export const serializeAws_restJson1GetResourceSharesCommand = async (input, cont
308
292
  ...(input.permissionArn != null && { permissionArn: input.permissionArn }),
309
293
  ...(input.resourceOwner != null && { resourceOwner: input.resourceOwner }),
310
294
  ...(input.resourceShareArns != null && {
311
- resourceShareArns: serializeAws_restJson1ResourceShareArnList(input.resourceShareArns, context),
295
+ resourceShareArns: se_ResourceShareArnList(input.resourceShareArns, context),
312
296
  }),
313
297
  ...(input.resourceShareStatus != null && { resourceShareStatus: input.resourceShareStatus }),
314
- ...(input.tagFilters != null && { tagFilters: serializeAws_restJson1TagFilters(input.tagFilters, context) }),
298
+ ...(input.tagFilters != null && { tagFilters: se_TagFilters(input.tagFilters, context) }),
315
299
  });
316
300
  return new __HttpRequest({
317
301
  protocol,
@@ -323,7 +307,7 @@ export const serializeAws_restJson1GetResourceSharesCommand = async (input, cont
323
307
  body,
324
308
  });
325
309
  };
326
- export const serializeAws_restJson1ListPendingInvitationResourcesCommand = async (input, context) => {
310
+ export const se_ListPendingInvitationResourcesCommand = async (input, context) => {
327
311
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
328
312
  const headers = {
329
313
  "content-type": "application/json",
@@ -346,7 +330,7 @@ export const serializeAws_restJson1ListPendingInvitationResourcesCommand = async
346
330
  body,
347
331
  });
348
332
  };
349
- export const serializeAws_restJson1ListPermissionsCommand = async (input, context) => {
333
+ export const se_ListPermissionsCommand = async (input, context) => {
350
334
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
351
335
  const headers = {
352
336
  "content-type": "application/json",
@@ -368,7 +352,7 @@ export const serializeAws_restJson1ListPermissionsCommand = async (input, contex
368
352
  body,
369
353
  });
370
354
  };
371
- export const serializeAws_restJson1ListPermissionVersionsCommand = async (input, context) => {
355
+ export const se_ListPermissionVersionsCommand = async (input, context) => {
372
356
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
373
357
  const headers = {
374
358
  "content-type": "application/json",
@@ -390,7 +374,7 @@ export const serializeAws_restJson1ListPermissionVersionsCommand = async (input,
390
374
  body,
391
375
  });
392
376
  };
393
- export const serializeAws_restJson1ListPrincipalsCommand = async (input, context) => {
377
+ export const se_ListPrincipalsCommand = async (input, context) => {
394
378
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
395
379
  const headers = {
396
380
  "content-type": "application/json",
@@ -400,13 +384,11 @@ export const serializeAws_restJson1ListPrincipalsCommand = async (input, context
400
384
  body = JSON.stringify({
401
385
  ...(input.maxResults != null && { maxResults: input.maxResults }),
402
386
  ...(input.nextToken != null && { nextToken: input.nextToken }),
403
- ...(input.principals != null && {
404
- principals: serializeAws_restJson1PrincipalArnOrIdList(input.principals, context),
405
- }),
387
+ ...(input.principals != null && { principals: se_PrincipalArnOrIdList(input.principals, context) }),
406
388
  ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
407
389
  ...(input.resourceOwner != null && { resourceOwner: input.resourceOwner }),
408
390
  ...(input.resourceShareArns != null && {
409
- resourceShareArns: serializeAws_restJson1ResourceShareArnList(input.resourceShareArns, context),
391
+ resourceShareArns: se_ResourceShareArnList(input.resourceShareArns, context),
410
392
  }),
411
393
  ...(input.resourceType != null && { resourceType: input.resourceType }),
412
394
  });
@@ -420,7 +402,7 @@ export const serializeAws_restJson1ListPrincipalsCommand = async (input, context
420
402
  body,
421
403
  });
422
404
  };
423
- export const serializeAws_restJson1ListResourcesCommand = async (input, context) => {
405
+ export const se_ListResourcesCommand = async (input, context) => {
424
406
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
425
407
  const headers = {
426
408
  "content-type": "application/json",
@@ -431,13 +413,11 @@ export const serializeAws_restJson1ListResourcesCommand = async (input, context)
431
413
  ...(input.maxResults != null && { maxResults: input.maxResults }),
432
414
  ...(input.nextToken != null && { nextToken: input.nextToken }),
433
415
  ...(input.principal != null && { principal: input.principal }),
434
- ...(input.resourceArns != null && {
435
- resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
436
- }),
416
+ ...(input.resourceArns != null && { resourceArns: se_ResourceArnList(input.resourceArns, context) }),
437
417
  ...(input.resourceOwner != null && { resourceOwner: input.resourceOwner }),
438
418
  ...(input.resourceRegionScope != null && { resourceRegionScope: input.resourceRegionScope }),
439
419
  ...(input.resourceShareArns != null && {
440
- resourceShareArns: serializeAws_restJson1ResourceShareArnList(input.resourceShareArns, context),
420
+ resourceShareArns: se_ResourceShareArnList(input.resourceShareArns, context),
441
421
  }),
442
422
  ...(input.resourceType != null && { resourceType: input.resourceType }),
443
423
  });
@@ -451,7 +431,7 @@ export const serializeAws_restJson1ListResourcesCommand = async (input, context)
451
431
  body,
452
432
  });
453
433
  };
454
- export const serializeAws_restJson1ListResourceSharePermissionsCommand = async (input, context) => {
434
+ export const se_ListResourceSharePermissionsCommand = async (input, context) => {
455
435
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
456
436
  const headers = {
457
437
  "content-type": "application/json",
@@ -473,7 +453,7 @@ export const serializeAws_restJson1ListResourceSharePermissionsCommand = async (
473
453
  body,
474
454
  });
475
455
  };
476
- export const serializeAws_restJson1ListResourceTypesCommand = async (input, context) => {
456
+ export const se_ListResourceTypesCommand = async (input, context) => {
477
457
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
478
458
  const headers = {
479
459
  "content-type": "application/json",
@@ -495,7 +475,7 @@ export const serializeAws_restJson1ListResourceTypesCommand = async (input, cont
495
475
  body,
496
476
  });
497
477
  };
498
- export const serializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommand = async (input, context) => {
478
+ export const se_PromoteResourceShareCreatedFromPolicyCommand = async (input, context) => {
499
479
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
500
480
  const headers = {};
501
481
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/promoteresourcesharecreatedfrompolicy";
@@ -514,7 +494,7 @@ export const serializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommand
514
494
  body,
515
495
  });
516
496
  };
517
- export const serializeAws_restJson1RejectResourceShareInvitationCommand = async (input, context) => {
497
+ export const se_RejectResourceShareInvitationCommand = async (input, context) => {
518
498
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
519
499
  const headers = {
520
500
  "content-type": "application/json",
@@ -535,7 +515,7 @@ export const serializeAws_restJson1RejectResourceShareInvitationCommand = async
535
515
  body,
536
516
  });
537
517
  };
538
- export const serializeAws_restJson1TagResourceCommand = async (input, context) => {
518
+ export const se_TagResourceCommand = async (input, context) => {
539
519
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
540
520
  const headers = {
541
521
  "content-type": "application/json",
@@ -544,7 +524,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
544
524
  let body;
545
525
  body = JSON.stringify({
546
526
  ...(input.resourceShareArn != null && { resourceShareArn: input.resourceShareArn }),
547
- ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
527
+ ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
548
528
  });
549
529
  return new __HttpRequest({
550
530
  protocol,
@@ -556,7 +536,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
556
536
  body,
557
537
  });
558
538
  };
559
- export const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
539
+ export const se_UntagResourceCommand = async (input, context) => {
560
540
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
561
541
  const headers = {
562
542
  "content-type": "application/json",
@@ -565,7 +545,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
565
545
  let body;
566
546
  body = JSON.stringify({
567
547
  ...(input.resourceShareArn != null && { resourceShareArn: input.resourceShareArn }),
568
- ...(input.tagKeys != null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) }),
548
+ ...(input.tagKeys != null && { tagKeys: se_TagKeyList(input.tagKeys, context) }),
569
549
  });
570
550
  return new __HttpRequest({
571
551
  protocol,
@@ -577,7 +557,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
577
557
  body,
578
558
  });
579
559
  };
580
- export const serializeAws_restJson1UpdateResourceShareCommand = async (input, context) => {
560
+ export const se_UpdateResourceShareCommand = async (input, context) => {
581
561
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
582
562
  const headers = {
583
563
  "content-type": "application/json",
@@ -600,9 +580,9 @@ export const serializeAws_restJson1UpdateResourceShareCommand = async (input, co
600
580
  body,
601
581
  });
602
582
  };
603
- export const deserializeAws_restJson1AcceptResourceShareInvitationCommand = async (output, context) => {
583
+ export const de_AcceptResourceShareInvitationCommand = async (output, context) => {
604
584
  if (output.statusCode !== 200 && output.statusCode >= 300) {
605
- return deserializeAws_restJson1AcceptResourceShareInvitationCommandError(output, context);
585
+ return de_AcceptResourceShareInvitationCommandError(output, context);
606
586
  }
607
587
  const contents = map({
608
588
  $metadata: deserializeMetadata(output),
@@ -612,11 +592,11 @@ export const deserializeAws_restJson1AcceptResourceShareInvitationCommand = asyn
612
592
  contents.clientToken = __expectString(data.clientToken);
613
593
  }
614
594
  if (data.resourceShareInvitation != null) {
615
- contents.resourceShareInvitation = deserializeAws_restJson1ResourceShareInvitation(data.resourceShareInvitation, context);
595
+ contents.resourceShareInvitation = de_ResourceShareInvitation(data.resourceShareInvitation, context);
616
596
  }
617
597
  return contents;
618
598
  };
619
- const deserializeAws_restJson1AcceptResourceShareInvitationCommandError = async (output, context) => {
599
+ const de_AcceptResourceShareInvitationCommandError = async (output, context) => {
620
600
  const parsedOutput = {
621
601
  ...output,
622
602
  body: await parseErrorBody(output.body, context),
@@ -625,34 +605,34 @@ const deserializeAws_restJson1AcceptResourceShareInvitationCommandError = async
625
605
  switch (errorCode) {
626
606
  case "IdempotentParameterMismatchException":
627
607
  case "com.amazonaws.ram#IdempotentParameterMismatchException":
628
- throw await deserializeAws_restJson1IdempotentParameterMismatchExceptionResponse(parsedOutput, context);
608
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
629
609
  case "InvalidClientTokenException":
630
610
  case "com.amazonaws.ram#InvalidClientTokenException":
631
- throw await deserializeAws_restJson1InvalidClientTokenExceptionResponse(parsedOutput, context);
611
+ throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
632
612
  case "MalformedArnException":
633
613
  case "com.amazonaws.ram#MalformedArnException":
634
- throw await deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context);
614
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
635
615
  case "OperationNotPermittedException":
636
616
  case "com.amazonaws.ram#OperationNotPermittedException":
637
- throw await deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context);
617
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
638
618
  case "ResourceShareInvitationAlreadyAcceptedException":
639
619
  case "com.amazonaws.ram#ResourceShareInvitationAlreadyAcceptedException":
640
- throw await deserializeAws_restJson1ResourceShareInvitationAlreadyAcceptedExceptionResponse(parsedOutput, context);
620
+ throw await de_ResourceShareInvitationAlreadyAcceptedExceptionRes(parsedOutput, context);
641
621
  case "ResourceShareInvitationAlreadyRejectedException":
642
622
  case "com.amazonaws.ram#ResourceShareInvitationAlreadyRejectedException":
643
- throw await deserializeAws_restJson1ResourceShareInvitationAlreadyRejectedExceptionResponse(parsedOutput, context);
623
+ throw await de_ResourceShareInvitationAlreadyRejectedExceptionRes(parsedOutput, context);
644
624
  case "ResourceShareInvitationArnNotFoundException":
645
625
  case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException":
646
- throw await deserializeAws_restJson1ResourceShareInvitationArnNotFoundExceptionResponse(parsedOutput, context);
626
+ throw await de_ResourceShareInvitationArnNotFoundExceptionRes(parsedOutput, context);
647
627
  case "ResourceShareInvitationExpiredException":
648
628
  case "com.amazonaws.ram#ResourceShareInvitationExpiredException":
649
- throw await deserializeAws_restJson1ResourceShareInvitationExpiredExceptionResponse(parsedOutput, context);
629
+ throw await de_ResourceShareInvitationExpiredExceptionRes(parsedOutput, context);
650
630
  case "ServerInternalException":
651
631
  case "com.amazonaws.ram#ServerInternalException":
652
- throw await deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context);
632
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
653
633
  case "ServiceUnavailableException":
654
634
  case "com.amazonaws.ram#ServiceUnavailableException":
655
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
635
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
656
636
  default:
657
637
  const parsedBody = parsedOutput.body;
658
638
  throwDefaultError({
@@ -663,9 +643,9 @@ const deserializeAws_restJson1AcceptResourceShareInvitationCommandError = async
663
643
  });
664
644
  }
665
645
  };
666
- export const deserializeAws_restJson1AssociateResourceShareCommand = async (output, context) => {
646
+ export const de_AssociateResourceShareCommand = async (output, context) => {
667
647
  if (output.statusCode !== 200 && output.statusCode >= 300) {
668
- return deserializeAws_restJson1AssociateResourceShareCommandError(output, context);
648
+ return de_AssociateResourceShareCommandError(output, context);
669
649
  }
670
650
  const contents = map({
671
651
  $metadata: deserializeMetadata(output),
@@ -675,11 +655,11 @@ export const deserializeAws_restJson1AssociateResourceShareCommand = async (outp
675
655
  contents.clientToken = __expectString(data.clientToken);
676
656
  }
677
657
  if (data.resourceShareAssociations != null) {
678
- contents.resourceShareAssociations = deserializeAws_restJson1ResourceShareAssociationList(data.resourceShareAssociations, context);
658
+ contents.resourceShareAssociations = de_ResourceShareAssociationList(data.resourceShareAssociations, context);
679
659
  }
680
660
  return contents;
681
661
  };
682
- const deserializeAws_restJson1AssociateResourceShareCommandError = async (output, context) => {
662
+ const de_AssociateResourceShareCommandError = async (output, context) => {
683
663
  const parsedOutput = {
684
664
  ...output,
685
665
  body: await parseErrorBody(output.body, context),
@@ -688,37 +668,37 @@ const deserializeAws_restJson1AssociateResourceShareCommandError = async (output
688
668
  switch (errorCode) {
689
669
  case "IdempotentParameterMismatchException":
690
670
  case "com.amazonaws.ram#IdempotentParameterMismatchException":
691
- throw await deserializeAws_restJson1IdempotentParameterMismatchExceptionResponse(parsedOutput, context);
671
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
692
672
  case "InvalidClientTokenException":
693
673
  case "com.amazonaws.ram#InvalidClientTokenException":
694
- throw await deserializeAws_restJson1InvalidClientTokenExceptionResponse(parsedOutput, context);
674
+ throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
695
675
  case "InvalidParameterException":
696
676
  case "com.amazonaws.ram#InvalidParameterException":
697
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
677
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
698
678
  case "InvalidStateTransitionException":
699
679
  case "com.amazonaws.ram#InvalidStateTransitionException":
700
- throw await deserializeAws_restJson1InvalidStateTransitionExceptionResponse(parsedOutput, context);
680
+ throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
701
681
  case "MalformedArnException":
702
682
  case "com.amazonaws.ram#MalformedArnException":
703
- throw await deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context);
683
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
704
684
  case "OperationNotPermittedException":
705
685
  case "com.amazonaws.ram#OperationNotPermittedException":
706
- throw await deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context);
686
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
707
687
  case "ResourceShareLimitExceededException":
708
688
  case "com.amazonaws.ram#ResourceShareLimitExceededException":
709
- throw await deserializeAws_restJson1ResourceShareLimitExceededExceptionResponse(parsedOutput, context);
689
+ throw await de_ResourceShareLimitExceededExceptionRes(parsedOutput, context);
710
690
  case "ServerInternalException":
711
691
  case "com.amazonaws.ram#ServerInternalException":
712
- throw await deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context);
692
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
713
693
  case "ServiceUnavailableException":
714
694
  case "com.amazonaws.ram#ServiceUnavailableException":
715
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
695
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
716
696
  case "ThrottlingException":
717
697
  case "com.amazonaws.ram#ThrottlingException":
718
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
698
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
719
699
  case "UnknownResourceException":
720
700
  case "com.amazonaws.ram#UnknownResourceException":
721
- throw await deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context);
701
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
722
702
  default:
723
703
  const parsedBody = parsedOutput.body;
724
704
  throwDefaultError({
@@ -729,9 +709,9 @@ const deserializeAws_restJson1AssociateResourceShareCommandError = async (output
729
709
  });
730
710
  }
731
711
  };
732
- export const deserializeAws_restJson1AssociateResourceSharePermissionCommand = async (output, context) => {
712
+ export const de_AssociateResourceSharePermissionCommand = async (output, context) => {
733
713
  if (output.statusCode !== 200 && output.statusCode >= 300) {
734
- return deserializeAws_restJson1AssociateResourceSharePermissionCommandError(output, context);
714
+ return de_AssociateResourceSharePermissionCommandError(output, context);
735
715
  }
736
716
  const contents = map({
737
717
  $metadata: deserializeMetadata(output),
@@ -745,7 +725,7 @@ export const deserializeAws_restJson1AssociateResourceSharePermissionCommand = a
745
725
  }
746
726
  return contents;
747
727
  };
748
- const deserializeAws_restJson1AssociateResourceSharePermissionCommandError = async (output, context) => {
728
+ const de_AssociateResourceSharePermissionCommandError = async (output, context) => {
749
729
  const parsedOutput = {
750
730
  ...output,
751
731
  body: await parseErrorBody(output.body, context),
@@ -754,25 +734,25 @@ const deserializeAws_restJson1AssociateResourceSharePermissionCommandError = asy
754
734
  switch (errorCode) {
755
735
  case "InvalidClientTokenException":
756
736
  case "com.amazonaws.ram#InvalidClientTokenException":
757
- throw await deserializeAws_restJson1InvalidClientTokenExceptionResponse(parsedOutput, context);
737
+ throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
758
738
  case "InvalidParameterException":
759
739
  case "com.amazonaws.ram#InvalidParameterException":
760
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
740
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
761
741
  case "MalformedArnException":
762
742
  case "com.amazonaws.ram#MalformedArnException":
763
- throw await deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context);
743
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
764
744
  case "OperationNotPermittedException":
765
745
  case "com.amazonaws.ram#OperationNotPermittedException":
766
- throw await deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context);
746
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
767
747
  case "ServerInternalException":
768
748
  case "com.amazonaws.ram#ServerInternalException":
769
- throw await deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context);
749
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
770
750
  case "ServiceUnavailableException":
771
751
  case "com.amazonaws.ram#ServiceUnavailableException":
772
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
752
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
773
753
  case "UnknownResourceException":
774
754
  case "com.amazonaws.ram#UnknownResourceException":
775
- throw await deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context);
755
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
776
756
  default:
777
757
  const parsedBody = parsedOutput.body;
778
758
  throwDefaultError({
@@ -783,9 +763,9 @@ const deserializeAws_restJson1AssociateResourceSharePermissionCommandError = asy
783
763
  });
784
764
  }
785
765
  };
786
- export const deserializeAws_restJson1CreateResourceShareCommand = async (output, context) => {
766
+ export const de_CreateResourceShareCommand = async (output, context) => {
787
767
  if (output.statusCode !== 200 && output.statusCode >= 300) {
788
- return deserializeAws_restJson1CreateResourceShareCommandError(output, context);
768
+ return de_CreateResourceShareCommandError(output, context);
789
769
  }
790
770
  const contents = map({
791
771
  $metadata: deserializeMetadata(output),
@@ -795,11 +775,11 @@ export const deserializeAws_restJson1CreateResourceShareCommand = async (output,
795
775
  contents.clientToken = __expectString(data.clientToken);
796
776
  }
797
777
  if (data.resourceShare != null) {
798
- contents.resourceShare = deserializeAws_restJson1ResourceShare(data.resourceShare, context);
778
+ contents.resourceShare = de_ResourceShare(data.resourceShare, context);
799
779
  }
800
780
  return contents;
801
781
  };
802
- const deserializeAws_restJson1CreateResourceShareCommandError = async (output, context) => {
782
+ const de_CreateResourceShareCommandError = async (output, context) => {
803
783
  const parsedOutput = {
804
784
  ...output,
805
785
  body: await parseErrorBody(output.body, context),
@@ -808,37 +788,37 @@ const deserializeAws_restJson1CreateResourceShareCommandError = async (output, c
808
788
  switch (errorCode) {
809
789
  case "IdempotentParameterMismatchException":
810
790
  case "com.amazonaws.ram#IdempotentParameterMismatchException":
811
- throw await deserializeAws_restJson1IdempotentParameterMismatchExceptionResponse(parsedOutput, context);
791
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
812
792
  case "InvalidClientTokenException":
813
793
  case "com.amazonaws.ram#InvalidClientTokenException":
814
- throw await deserializeAws_restJson1InvalidClientTokenExceptionResponse(parsedOutput, context);
794
+ throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
815
795
  case "InvalidParameterException":
816
796
  case "com.amazonaws.ram#InvalidParameterException":
817
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
797
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
818
798
  case "InvalidStateTransitionException":
819
799
  case "com.amazonaws.ram#InvalidStateTransitionException":
820
- throw await deserializeAws_restJson1InvalidStateTransitionExceptionResponse(parsedOutput, context);
800
+ throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
821
801
  case "MalformedArnException":
822
802
  case "com.amazonaws.ram#MalformedArnException":
823
- throw await deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context);
803
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
824
804
  case "OperationNotPermittedException":
825
805
  case "com.amazonaws.ram#OperationNotPermittedException":
826
- throw await deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context);
806
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
827
807
  case "ResourceShareLimitExceededException":
828
808
  case "com.amazonaws.ram#ResourceShareLimitExceededException":
829
- throw await deserializeAws_restJson1ResourceShareLimitExceededExceptionResponse(parsedOutput, context);
809
+ throw await de_ResourceShareLimitExceededExceptionRes(parsedOutput, context);
830
810
  case "ServerInternalException":
831
811
  case "com.amazonaws.ram#ServerInternalException":
832
- throw await deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context);
812
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
833
813
  case "ServiceUnavailableException":
834
814
  case "com.amazonaws.ram#ServiceUnavailableException":
835
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
815
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
836
816
  case "TagPolicyViolationException":
837
817
  case "com.amazonaws.ram#TagPolicyViolationException":
838
- throw await deserializeAws_restJson1TagPolicyViolationExceptionResponse(parsedOutput, context);
818
+ throw await de_TagPolicyViolationExceptionRes(parsedOutput, context);
839
819
  case "UnknownResourceException":
840
820
  case "com.amazonaws.ram#UnknownResourceException":
841
- throw await deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context);
821
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
842
822
  default:
843
823
  const parsedBody = parsedOutput.body;
844
824
  throwDefaultError({
@@ -849,9 +829,9 @@ const deserializeAws_restJson1CreateResourceShareCommandError = async (output, c
849
829
  });
850
830
  }
851
831
  };
852
- export const deserializeAws_restJson1DeleteResourceShareCommand = async (output, context) => {
832
+ export const de_DeleteResourceShareCommand = async (output, context) => {
853
833
  if (output.statusCode !== 200 && output.statusCode >= 300) {
854
- return deserializeAws_restJson1DeleteResourceShareCommandError(output, context);
834
+ return de_DeleteResourceShareCommandError(output, context);
855
835
  }
856
836
  const contents = map({
857
837
  $metadata: deserializeMetadata(output),
@@ -865,7 +845,7 @@ export const deserializeAws_restJson1DeleteResourceShareCommand = async (output,
865
845
  }
866
846
  return contents;
867
847
  };
868
- const deserializeAws_restJson1DeleteResourceShareCommandError = async (output, context) => {
848
+ const de_DeleteResourceShareCommandError = async (output, context) => {
869
849
  const parsedOutput = {
870
850
  ...output,
871
851
  body: await parseErrorBody(output.body, context),
@@ -874,31 +854,31 @@ const deserializeAws_restJson1DeleteResourceShareCommandError = async (output, c
874
854
  switch (errorCode) {
875
855
  case "IdempotentParameterMismatchException":
876
856
  case "com.amazonaws.ram#IdempotentParameterMismatchException":
877
- throw await deserializeAws_restJson1IdempotentParameterMismatchExceptionResponse(parsedOutput, context);
857
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
878
858
  case "InvalidClientTokenException":
879
859
  case "com.amazonaws.ram#InvalidClientTokenException":
880
- throw await deserializeAws_restJson1InvalidClientTokenExceptionResponse(parsedOutput, context);
860
+ throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
881
861
  case "InvalidParameterException":
882
862
  case "com.amazonaws.ram#InvalidParameterException":
883
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
863
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
884
864
  case "InvalidStateTransitionException":
885
865
  case "com.amazonaws.ram#InvalidStateTransitionException":
886
- throw await deserializeAws_restJson1InvalidStateTransitionExceptionResponse(parsedOutput, context);
866
+ throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
887
867
  case "MalformedArnException":
888
868
  case "com.amazonaws.ram#MalformedArnException":
889
- throw await deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context);
869
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
890
870
  case "OperationNotPermittedException":
891
871
  case "com.amazonaws.ram#OperationNotPermittedException":
892
- throw await deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context);
872
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
893
873
  case "ServerInternalException":
894
874
  case "com.amazonaws.ram#ServerInternalException":
895
- throw await deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context);
875
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
896
876
  case "ServiceUnavailableException":
897
877
  case "com.amazonaws.ram#ServiceUnavailableException":
898
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
878
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
899
879
  case "UnknownResourceException":
900
880
  case "com.amazonaws.ram#UnknownResourceException":
901
- throw await deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context);
881
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
902
882
  default:
903
883
  const parsedBody = parsedOutput.body;
904
884
  throwDefaultError({
@@ -909,9 +889,9 @@ const deserializeAws_restJson1DeleteResourceShareCommandError = async (output, c
909
889
  });
910
890
  }
911
891
  };
912
- export const deserializeAws_restJson1DisassociateResourceShareCommand = async (output, context) => {
892
+ export const de_DisassociateResourceShareCommand = async (output, context) => {
913
893
  if (output.statusCode !== 200 && output.statusCode >= 300) {
914
- return deserializeAws_restJson1DisassociateResourceShareCommandError(output, context);
894
+ return de_DisassociateResourceShareCommandError(output, context);
915
895
  }
916
896
  const contents = map({
917
897
  $metadata: deserializeMetadata(output),
@@ -921,11 +901,11 @@ export const deserializeAws_restJson1DisassociateResourceShareCommand = async (o
921
901
  contents.clientToken = __expectString(data.clientToken);
922
902
  }
923
903
  if (data.resourceShareAssociations != null) {
924
- contents.resourceShareAssociations = deserializeAws_restJson1ResourceShareAssociationList(data.resourceShareAssociations, context);
904
+ contents.resourceShareAssociations = de_ResourceShareAssociationList(data.resourceShareAssociations, context);
925
905
  }
926
906
  return contents;
927
907
  };
928
- const deserializeAws_restJson1DisassociateResourceShareCommandError = async (output, context) => {
908
+ const de_DisassociateResourceShareCommandError = async (output, context) => {
929
909
  const parsedOutput = {
930
910
  ...output,
931
911
  body: await parseErrorBody(output.body, context),
@@ -934,34 +914,34 @@ const deserializeAws_restJson1DisassociateResourceShareCommandError = async (out
934
914
  switch (errorCode) {
935
915
  case "IdempotentParameterMismatchException":
936
916
  case "com.amazonaws.ram#IdempotentParameterMismatchException":
937
- throw await deserializeAws_restJson1IdempotentParameterMismatchExceptionResponse(parsedOutput, context);
917
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
938
918
  case "InvalidClientTokenException":
939
919
  case "com.amazonaws.ram#InvalidClientTokenException":
940
- throw await deserializeAws_restJson1InvalidClientTokenExceptionResponse(parsedOutput, context);
920
+ throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
941
921
  case "InvalidParameterException":
942
922
  case "com.amazonaws.ram#InvalidParameterException":
943
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
923
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
944
924
  case "InvalidStateTransitionException":
945
925
  case "com.amazonaws.ram#InvalidStateTransitionException":
946
- throw await deserializeAws_restJson1InvalidStateTransitionExceptionResponse(parsedOutput, context);
926
+ throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
947
927
  case "MalformedArnException":
948
928
  case "com.amazonaws.ram#MalformedArnException":
949
- throw await deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context);
929
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
950
930
  case "OperationNotPermittedException":
951
931
  case "com.amazonaws.ram#OperationNotPermittedException":
952
- throw await deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context);
932
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
953
933
  case "ResourceShareLimitExceededException":
954
934
  case "com.amazonaws.ram#ResourceShareLimitExceededException":
955
- throw await deserializeAws_restJson1ResourceShareLimitExceededExceptionResponse(parsedOutput, context);
935
+ throw await de_ResourceShareLimitExceededExceptionRes(parsedOutput, context);
956
936
  case "ServerInternalException":
957
937
  case "com.amazonaws.ram#ServerInternalException":
958
- throw await deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context);
938
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
959
939
  case "ServiceUnavailableException":
960
940
  case "com.amazonaws.ram#ServiceUnavailableException":
961
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
941
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
962
942
  case "UnknownResourceException":
963
943
  case "com.amazonaws.ram#UnknownResourceException":
964
- throw await deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context);
944
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
965
945
  default:
966
946
  const parsedBody = parsedOutput.body;
967
947
  throwDefaultError({
@@ -972,9 +952,9 @@ const deserializeAws_restJson1DisassociateResourceShareCommandError = async (out
972
952
  });
973
953
  }
974
954
  };
975
- export const deserializeAws_restJson1DisassociateResourceSharePermissionCommand = async (output, context) => {
955
+ export const de_DisassociateResourceSharePermissionCommand = async (output, context) => {
976
956
  if (output.statusCode !== 200 && output.statusCode >= 300) {
977
- return deserializeAws_restJson1DisassociateResourceSharePermissionCommandError(output, context);
957
+ return de_DisassociateResourceSharePermissionCommandError(output, context);
978
958
  }
979
959
  const contents = map({
980
960
  $metadata: deserializeMetadata(output),
@@ -988,7 +968,7 @@ export const deserializeAws_restJson1DisassociateResourceSharePermissionCommand
988
968
  }
989
969
  return contents;
990
970
  };
991
- const deserializeAws_restJson1DisassociateResourceSharePermissionCommandError = async (output, context) => {
971
+ const de_DisassociateResourceSharePermissionCommandError = async (output, context) => {
992
972
  const parsedOutput = {
993
973
  ...output,
994
974
  body: await parseErrorBody(output.body, context),
@@ -997,28 +977,28 @@ const deserializeAws_restJson1DisassociateResourceSharePermissionCommandError =
997
977
  switch (errorCode) {
998
978
  case "InvalidClientTokenException":
999
979
  case "com.amazonaws.ram#InvalidClientTokenException":
1000
- throw await deserializeAws_restJson1InvalidClientTokenExceptionResponse(parsedOutput, context);
980
+ throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
1001
981
  case "InvalidParameterException":
1002
982
  case "com.amazonaws.ram#InvalidParameterException":
1003
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
983
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1004
984
  case "InvalidStateTransitionException":
1005
985
  case "com.amazonaws.ram#InvalidStateTransitionException":
1006
- throw await deserializeAws_restJson1InvalidStateTransitionExceptionResponse(parsedOutput, context);
986
+ throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
1007
987
  case "MalformedArnException":
1008
988
  case "com.amazonaws.ram#MalformedArnException":
1009
- throw await deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context);
989
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
1010
990
  case "OperationNotPermittedException":
1011
991
  case "com.amazonaws.ram#OperationNotPermittedException":
1012
- throw await deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context);
992
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1013
993
  case "ServerInternalException":
1014
994
  case "com.amazonaws.ram#ServerInternalException":
1015
- throw await deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context);
995
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1016
996
  case "ServiceUnavailableException":
1017
997
  case "com.amazonaws.ram#ServiceUnavailableException":
1018
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
998
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1019
999
  case "UnknownResourceException":
1020
1000
  case "com.amazonaws.ram#UnknownResourceException":
1021
- throw await deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context);
1001
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
1022
1002
  default:
1023
1003
  const parsedBody = parsedOutput.body;
1024
1004
  throwDefaultError({
@@ -1029,9 +1009,9 @@ const deserializeAws_restJson1DisassociateResourceSharePermissionCommandError =
1029
1009
  });
1030
1010
  }
1031
1011
  };
1032
- export const deserializeAws_restJson1EnableSharingWithAwsOrganizationCommand = async (output, context) => {
1012
+ export const de_EnableSharingWithAwsOrganizationCommand = async (output, context) => {
1033
1013
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1034
- return deserializeAws_restJson1EnableSharingWithAwsOrganizationCommandError(output, context);
1014
+ return de_EnableSharingWithAwsOrganizationCommandError(output, context);
1035
1015
  }
1036
1016
  const contents = map({
1037
1017
  $metadata: deserializeMetadata(output),
@@ -1042,7 +1022,7 @@ export const deserializeAws_restJson1EnableSharingWithAwsOrganizationCommand = a
1042
1022
  }
1043
1023
  return contents;
1044
1024
  };
1045
- const deserializeAws_restJson1EnableSharingWithAwsOrganizationCommandError = async (output, context) => {
1025
+ const de_EnableSharingWithAwsOrganizationCommandError = async (output, context) => {
1046
1026
  const parsedOutput = {
1047
1027
  ...output,
1048
1028
  body: await parseErrorBody(output.body, context),
@@ -1051,13 +1031,13 @@ const deserializeAws_restJson1EnableSharingWithAwsOrganizationCommandError = asy
1051
1031
  switch (errorCode) {
1052
1032
  case "OperationNotPermittedException":
1053
1033
  case "com.amazonaws.ram#OperationNotPermittedException":
1054
- throw await deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context);
1034
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1055
1035
  case "ServerInternalException":
1056
1036
  case "com.amazonaws.ram#ServerInternalException":
1057
- throw await deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context);
1037
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1058
1038
  case "ServiceUnavailableException":
1059
1039
  case "com.amazonaws.ram#ServiceUnavailableException":
1060
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1040
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1061
1041
  default:
1062
1042
  const parsedBody = parsedOutput.body;
1063
1043
  throwDefaultError({
@@ -1068,20 +1048,20 @@ const deserializeAws_restJson1EnableSharingWithAwsOrganizationCommandError = asy
1068
1048
  });
1069
1049
  }
1070
1050
  };
1071
- export const deserializeAws_restJson1GetPermissionCommand = async (output, context) => {
1051
+ export const de_GetPermissionCommand = async (output, context) => {
1072
1052
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1073
- return deserializeAws_restJson1GetPermissionCommandError(output, context);
1053
+ return de_GetPermissionCommandError(output, context);
1074
1054
  }
1075
1055
  const contents = map({
1076
1056
  $metadata: deserializeMetadata(output),
1077
1057
  });
1078
1058
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1079
1059
  if (data.permission != null) {
1080
- contents.permission = deserializeAws_restJson1ResourceSharePermissionDetail(data.permission, context);
1060
+ contents.permission = de_ResourceSharePermissionDetail(data.permission, context);
1081
1061
  }
1082
1062
  return contents;
1083
1063
  };
1084
- const deserializeAws_restJson1GetPermissionCommandError = async (output, context) => {
1064
+ const de_GetPermissionCommandError = async (output, context) => {
1085
1065
  const parsedOutput = {
1086
1066
  ...output,
1087
1067
  body: await parseErrorBody(output.body, context),
@@ -1090,22 +1070,22 @@ const deserializeAws_restJson1GetPermissionCommandError = async (output, context
1090
1070
  switch (errorCode) {
1091
1071
  case "InvalidParameterException":
1092
1072
  case "com.amazonaws.ram#InvalidParameterException":
1093
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1073
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1094
1074
  case "MalformedArnException":
1095
1075
  case "com.amazonaws.ram#MalformedArnException":
1096
- throw await deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context);
1076
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
1097
1077
  case "OperationNotPermittedException":
1098
1078
  case "com.amazonaws.ram#OperationNotPermittedException":
1099
- throw await deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context);
1079
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1100
1080
  case "ServerInternalException":
1101
1081
  case "com.amazonaws.ram#ServerInternalException":
1102
- throw await deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context);
1082
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1103
1083
  case "ServiceUnavailableException":
1104
1084
  case "com.amazonaws.ram#ServiceUnavailableException":
1105
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1085
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1106
1086
  case "UnknownResourceException":
1107
1087
  case "com.amazonaws.ram#UnknownResourceException":
1108
- throw await deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context);
1088
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
1109
1089
  default:
1110
1090
  const parsedBody = parsedOutput.body;
1111
1091
  throwDefaultError({
@@ -1116,9 +1096,9 @@ const deserializeAws_restJson1GetPermissionCommandError = async (output, context
1116
1096
  });
1117
1097
  }
1118
1098
  };
1119
- export const deserializeAws_restJson1GetResourcePoliciesCommand = async (output, context) => {
1099
+ export const de_GetResourcePoliciesCommand = async (output, context) => {
1120
1100
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1121
- return deserializeAws_restJson1GetResourcePoliciesCommandError(output, context);
1101
+ return de_GetResourcePoliciesCommandError(output, context);
1122
1102
  }
1123
1103
  const contents = map({
1124
1104
  $metadata: deserializeMetadata(output),
@@ -1128,11 +1108,11 @@ export const deserializeAws_restJson1GetResourcePoliciesCommand = async (output,
1128
1108
  contents.nextToken = __expectString(data.nextToken);
1129
1109
  }
1130
1110
  if (data.policies != null) {
1131
- contents.policies = deserializeAws_restJson1PolicyList(data.policies, context);
1111
+ contents.policies = de_PolicyList(data.policies, context);
1132
1112
  }
1133
1113
  return contents;
1134
1114
  };
1135
- const deserializeAws_restJson1GetResourcePoliciesCommandError = async (output, context) => {
1115
+ const de_GetResourcePoliciesCommandError = async (output, context) => {
1136
1116
  const parsedOutput = {
1137
1117
  ...output,
1138
1118
  body: await parseErrorBody(output.body, context),
@@ -1141,22 +1121,22 @@ const deserializeAws_restJson1GetResourcePoliciesCommandError = async (output, c
1141
1121
  switch (errorCode) {
1142
1122
  case "InvalidNextTokenException":
1143
1123
  case "com.amazonaws.ram#InvalidNextTokenException":
1144
- throw await deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context);
1124
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1145
1125
  case "InvalidParameterException":
1146
1126
  case "com.amazonaws.ram#InvalidParameterException":
1147
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1127
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1148
1128
  case "MalformedArnException":
1149
1129
  case "com.amazonaws.ram#MalformedArnException":
1150
- throw await deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context);
1130
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
1151
1131
  case "ResourceArnNotFoundException":
1152
1132
  case "com.amazonaws.ram#ResourceArnNotFoundException":
1153
- throw await deserializeAws_restJson1ResourceArnNotFoundExceptionResponse(parsedOutput, context);
1133
+ throw await de_ResourceArnNotFoundExceptionRes(parsedOutput, context);
1154
1134
  case "ServerInternalException":
1155
1135
  case "com.amazonaws.ram#ServerInternalException":
1156
- throw await deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context);
1136
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1157
1137
  case "ServiceUnavailableException":
1158
1138
  case "com.amazonaws.ram#ServiceUnavailableException":
1159
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1139
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1160
1140
  default:
1161
1141
  const parsedBody = parsedOutput.body;
1162
1142
  throwDefaultError({
@@ -1167,9 +1147,9 @@ const deserializeAws_restJson1GetResourcePoliciesCommandError = async (output, c
1167
1147
  });
1168
1148
  }
1169
1149
  };
1170
- export const deserializeAws_restJson1GetResourceShareAssociationsCommand = async (output, context) => {
1150
+ export const de_GetResourceShareAssociationsCommand = async (output, context) => {
1171
1151
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1172
- return deserializeAws_restJson1GetResourceShareAssociationsCommandError(output, context);
1152
+ return de_GetResourceShareAssociationsCommandError(output, context);
1173
1153
  }
1174
1154
  const contents = map({
1175
1155
  $metadata: deserializeMetadata(output),
@@ -1179,11 +1159,11 @@ export const deserializeAws_restJson1GetResourceShareAssociationsCommand = async
1179
1159
  contents.nextToken = __expectString(data.nextToken);
1180
1160
  }
1181
1161
  if (data.resourceShareAssociations != null) {
1182
- contents.resourceShareAssociations = deserializeAws_restJson1ResourceShareAssociationList(data.resourceShareAssociations, context);
1162
+ contents.resourceShareAssociations = de_ResourceShareAssociationList(data.resourceShareAssociations, context);
1183
1163
  }
1184
1164
  return contents;
1185
1165
  };
1186
- const deserializeAws_restJson1GetResourceShareAssociationsCommandError = async (output, context) => {
1166
+ const de_GetResourceShareAssociationsCommandError = async (output, context) => {
1187
1167
  const parsedOutput = {
1188
1168
  ...output,
1189
1169
  body: await parseErrorBody(output.body, context),
@@ -1192,25 +1172,25 @@ const deserializeAws_restJson1GetResourceShareAssociationsCommandError = async (
1192
1172
  switch (errorCode) {
1193
1173
  case "InvalidNextTokenException":
1194
1174
  case "com.amazonaws.ram#InvalidNextTokenException":
1195
- throw await deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context);
1175
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1196
1176
  case "InvalidParameterException":
1197
1177
  case "com.amazonaws.ram#InvalidParameterException":
1198
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1178
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1199
1179
  case "MalformedArnException":
1200
1180
  case "com.amazonaws.ram#MalformedArnException":
1201
- throw await deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context);
1181
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
1202
1182
  case "OperationNotPermittedException":
1203
1183
  case "com.amazonaws.ram#OperationNotPermittedException":
1204
- throw await deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context);
1184
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1205
1185
  case "ServerInternalException":
1206
1186
  case "com.amazonaws.ram#ServerInternalException":
1207
- throw await deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context);
1187
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1208
1188
  case "ServiceUnavailableException":
1209
1189
  case "com.amazonaws.ram#ServiceUnavailableException":
1210
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1190
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1211
1191
  case "UnknownResourceException":
1212
1192
  case "com.amazonaws.ram#UnknownResourceException":
1213
- throw await deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context);
1193
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
1214
1194
  default:
1215
1195
  const parsedBody = parsedOutput.body;
1216
1196
  throwDefaultError({
@@ -1221,9 +1201,9 @@ const deserializeAws_restJson1GetResourceShareAssociationsCommandError = async (
1221
1201
  });
1222
1202
  }
1223
1203
  };
1224
- export const deserializeAws_restJson1GetResourceShareInvitationsCommand = async (output, context) => {
1204
+ export const de_GetResourceShareInvitationsCommand = async (output, context) => {
1225
1205
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1226
- return deserializeAws_restJson1GetResourceShareInvitationsCommandError(output, context);
1206
+ return de_GetResourceShareInvitationsCommandError(output, context);
1227
1207
  }
1228
1208
  const contents = map({
1229
1209
  $metadata: deserializeMetadata(output),
@@ -1233,11 +1213,11 @@ export const deserializeAws_restJson1GetResourceShareInvitationsCommand = async
1233
1213
  contents.nextToken = __expectString(data.nextToken);
1234
1214
  }
1235
1215
  if (data.resourceShareInvitations != null) {
1236
- contents.resourceShareInvitations = deserializeAws_restJson1ResourceShareInvitationList(data.resourceShareInvitations, context);
1216
+ contents.resourceShareInvitations = de_ResourceShareInvitationList(data.resourceShareInvitations, context);
1237
1217
  }
1238
1218
  return contents;
1239
1219
  };
1240
- const deserializeAws_restJson1GetResourceShareInvitationsCommandError = async (output, context) => {
1220
+ const de_GetResourceShareInvitationsCommandError = async (output, context) => {
1241
1221
  const parsedOutput = {
1242
1222
  ...output,
1243
1223
  body: await parseErrorBody(output.body, context),
@@ -1246,28 +1226,28 @@ const deserializeAws_restJson1GetResourceShareInvitationsCommandError = async (o
1246
1226
  switch (errorCode) {
1247
1227
  case "InvalidMaxResultsException":
1248
1228
  case "com.amazonaws.ram#InvalidMaxResultsException":
1249
- throw await deserializeAws_restJson1InvalidMaxResultsExceptionResponse(parsedOutput, context);
1229
+ throw await de_InvalidMaxResultsExceptionRes(parsedOutput, context);
1250
1230
  case "InvalidNextTokenException":
1251
1231
  case "com.amazonaws.ram#InvalidNextTokenException":
1252
- throw await deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context);
1232
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1253
1233
  case "InvalidParameterException":
1254
1234
  case "com.amazonaws.ram#InvalidParameterException":
1255
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1235
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1256
1236
  case "MalformedArnException":
1257
1237
  case "com.amazonaws.ram#MalformedArnException":
1258
- throw await deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context);
1238
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
1259
1239
  case "ResourceShareInvitationArnNotFoundException":
1260
1240
  case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException":
1261
- throw await deserializeAws_restJson1ResourceShareInvitationArnNotFoundExceptionResponse(parsedOutput, context);
1241
+ throw await de_ResourceShareInvitationArnNotFoundExceptionRes(parsedOutput, context);
1262
1242
  case "ServerInternalException":
1263
1243
  case "com.amazonaws.ram#ServerInternalException":
1264
- throw await deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context);
1244
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1265
1245
  case "ServiceUnavailableException":
1266
1246
  case "com.amazonaws.ram#ServiceUnavailableException":
1267
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1247
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1268
1248
  case "UnknownResourceException":
1269
1249
  case "com.amazonaws.ram#UnknownResourceException":
1270
- throw await deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context);
1250
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
1271
1251
  default:
1272
1252
  const parsedBody = parsedOutput.body;
1273
1253
  throwDefaultError({
@@ -1278,9 +1258,9 @@ const deserializeAws_restJson1GetResourceShareInvitationsCommandError = async (o
1278
1258
  });
1279
1259
  }
1280
1260
  };
1281
- export const deserializeAws_restJson1GetResourceSharesCommand = async (output, context) => {
1261
+ export const de_GetResourceSharesCommand = async (output, context) => {
1282
1262
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1283
- return deserializeAws_restJson1GetResourceSharesCommandError(output, context);
1263
+ return de_GetResourceSharesCommandError(output, context);
1284
1264
  }
1285
1265
  const contents = map({
1286
1266
  $metadata: deserializeMetadata(output),
@@ -1290,11 +1270,11 @@ export const deserializeAws_restJson1GetResourceSharesCommand = async (output, c
1290
1270
  contents.nextToken = __expectString(data.nextToken);
1291
1271
  }
1292
1272
  if (data.resourceShares != null) {
1293
- contents.resourceShares = deserializeAws_restJson1ResourceShareList(data.resourceShares, context);
1273
+ contents.resourceShares = de_ResourceShareList(data.resourceShares, context);
1294
1274
  }
1295
1275
  return contents;
1296
1276
  };
1297
- const deserializeAws_restJson1GetResourceSharesCommandError = async (output, context) => {
1277
+ const de_GetResourceSharesCommandError = async (output, context) => {
1298
1278
  const parsedOutput = {
1299
1279
  ...output,
1300
1280
  body: await parseErrorBody(output.body, context),
@@ -1303,22 +1283,22 @@ const deserializeAws_restJson1GetResourceSharesCommandError = async (output, con
1303
1283
  switch (errorCode) {
1304
1284
  case "InvalidNextTokenException":
1305
1285
  case "com.amazonaws.ram#InvalidNextTokenException":
1306
- throw await deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context);
1286
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1307
1287
  case "InvalidParameterException":
1308
1288
  case "com.amazonaws.ram#InvalidParameterException":
1309
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1289
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1310
1290
  case "MalformedArnException":
1311
1291
  case "com.amazonaws.ram#MalformedArnException":
1312
- throw await deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context);
1292
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
1313
1293
  case "ServerInternalException":
1314
1294
  case "com.amazonaws.ram#ServerInternalException":
1315
- throw await deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context);
1295
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1316
1296
  case "ServiceUnavailableException":
1317
1297
  case "com.amazonaws.ram#ServiceUnavailableException":
1318
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1298
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1319
1299
  case "UnknownResourceException":
1320
1300
  case "com.amazonaws.ram#UnknownResourceException":
1321
- throw await deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context);
1301
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
1322
1302
  default:
1323
1303
  const parsedBody = parsedOutput.body;
1324
1304
  throwDefaultError({
@@ -1329,9 +1309,9 @@ const deserializeAws_restJson1GetResourceSharesCommandError = async (output, con
1329
1309
  });
1330
1310
  }
1331
1311
  };
1332
- export const deserializeAws_restJson1ListPendingInvitationResourcesCommand = async (output, context) => {
1312
+ export const de_ListPendingInvitationResourcesCommand = async (output, context) => {
1333
1313
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1334
- return deserializeAws_restJson1ListPendingInvitationResourcesCommandError(output, context);
1314
+ return de_ListPendingInvitationResourcesCommandError(output, context);
1335
1315
  }
1336
1316
  const contents = map({
1337
1317
  $metadata: deserializeMetadata(output),
@@ -1341,11 +1321,11 @@ export const deserializeAws_restJson1ListPendingInvitationResourcesCommand = asy
1341
1321
  contents.nextToken = __expectString(data.nextToken);
1342
1322
  }
1343
1323
  if (data.resources != null) {
1344
- contents.resources = deserializeAws_restJson1ResourceList(data.resources, context);
1324
+ contents.resources = de_ResourceList(data.resources, context);
1345
1325
  }
1346
1326
  return contents;
1347
1327
  };
1348
- const deserializeAws_restJson1ListPendingInvitationResourcesCommandError = async (output, context) => {
1328
+ const de_ListPendingInvitationResourcesCommandError = async (output, context) => {
1349
1329
  const parsedOutput = {
1350
1330
  ...output,
1351
1331
  body: await parseErrorBody(output.body, context),
@@ -1354,31 +1334,31 @@ const deserializeAws_restJson1ListPendingInvitationResourcesCommandError = async
1354
1334
  switch (errorCode) {
1355
1335
  case "InvalidNextTokenException":
1356
1336
  case "com.amazonaws.ram#InvalidNextTokenException":
1357
- throw await deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context);
1337
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1358
1338
  case "InvalidParameterException":
1359
1339
  case "com.amazonaws.ram#InvalidParameterException":
1360
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1340
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1361
1341
  case "MalformedArnException":
1362
1342
  case "com.amazonaws.ram#MalformedArnException":
1363
- throw await deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context);
1343
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
1364
1344
  case "MissingRequiredParameterException":
1365
1345
  case "com.amazonaws.ram#MissingRequiredParameterException":
1366
- throw await deserializeAws_restJson1MissingRequiredParameterExceptionResponse(parsedOutput, context);
1346
+ throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
1367
1347
  case "ResourceShareInvitationAlreadyRejectedException":
1368
1348
  case "com.amazonaws.ram#ResourceShareInvitationAlreadyRejectedException":
1369
- throw await deserializeAws_restJson1ResourceShareInvitationAlreadyRejectedExceptionResponse(parsedOutput, context);
1349
+ throw await de_ResourceShareInvitationAlreadyRejectedExceptionRes(parsedOutput, context);
1370
1350
  case "ResourceShareInvitationArnNotFoundException":
1371
1351
  case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException":
1372
- throw await deserializeAws_restJson1ResourceShareInvitationArnNotFoundExceptionResponse(parsedOutput, context);
1352
+ throw await de_ResourceShareInvitationArnNotFoundExceptionRes(parsedOutput, context);
1373
1353
  case "ResourceShareInvitationExpiredException":
1374
1354
  case "com.amazonaws.ram#ResourceShareInvitationExpiredException":
1375
- throw await deserializeAws_restJson1ResourceShareInvitationExpiredExceptionResponse(parsedOutput, context);
1355
+ throw await de_ResourceShareInvitationExpiredExceptionRes(parsedOutput, context);
1376
1356
  case "ServerInternalException":
1377
1357
  case "com.amazonaws.ram#ServerInternalException":
1378
- throw await deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context);
1358
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1379
1359
  case "ServiceUnavailableException":
1380
1360
  case "com.amazonaws.ram#ServiceUnavailableException":
1381
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1361
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1382
1362
  default:
1383
1363
  const parsedBody = parsedOutput.body;
1384
1364
  throwDefaultError({
@@ -1389,9 +1369,9 @@ const deserializeAws_restJson1ListPendingInvitationResourcesCommandError = async
1389
1369
  });
1390
1370
  }
1391
1371
  };
1392
- export const deserializeAws_restJson1ListPermissionsCommand = async (output, context) => {
1372
+ export const de_ListPermissionsCommand = async (output, context) => {
1393
1373
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1394
- return deserializeAws_restJson1ListPermissionsCommandError(output, context);
1374
+ return de_ListPermissionsCommandError(output, context);
1395
1375
  }
1396
1376
  const contents = map({
1397
1377
  $metadata: deserializeMetadata(output),
@@ -1401,11 +1381,11 @@ export const deserializeAws_restJson1ListPermissionsCommand = async (output, con
1401
1381
  contents.nextToken = __expectString(data.nextToken);
1402
1382
  }
1403
1383
  if (data.permissions != null) {
1404
- contents.permissions = deserializeAws_restJson1ResourceSharePermissionList(data.permissions, context);
1384
+ contents.permissions = de_ResourceSharePermissionList(data.permissions, context);
1405
1385
  }
1406
1386
  return contents;
1407
1387
  };
1408
- const deserializeAws_restJson1ListPermissionsCommandError = async (output, context) => {
1388
+ const de_ListPermissionsCommandError = async (output, context) => {
1409
1389
  const parsedOutput = {
1410
1390
  ...output,
1411
1391
  body: await parseErrorBody(output.body, context),
@@ -1414,19 +1394,19 @@ const deserializeAws_restJson1ListPermissionsCommandError = async (output, conte
1414
1394
  switch (errorCode) {
1415
1395
  case "InvalidNextTokenException":
1416
1396
  case "com.amazonaws.ram#InvalidNextTokenException":
1417
- throw await deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context);
1397
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1418
1398
  case "InvalidParameterException":
1419
1399
  case "com.amazonaws.ram#InvalidParameterException":
1420
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1400
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1421
1401
  case "OperationNotPermittedException":
1422
1402
  case "com.amazonaws.ram#OperationNotPermittedException":
1423
- throw await deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context);
1403
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1424
1404
  case "ServerInternalException":
1425
1405
  case "com.amazonaws.ram#ServerInternalException":
1426
- throw await deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context);
1406
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1427
1407
  case "ServiceUnavailableException":
1428
1408
  case "com.amazonaws.ram#ServiceUnavailableException":
1429
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1409
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1430
1410
  default:
1431
1411
  const parsedBody = parsedOutput.body;
1432
1412
  throwDefaultError({
@@ -1437,9 +1417,9 @@ const deserializeAws_restJson1ListPermissionsCommandError = async (output, conte
1437
1417
  });
1438
1418
  }
1439
1419
  };
1440
- export const deserializeAws_restJson1ListPermissionVersionsCommand = async (output, context) => {
1420
+ export const de_ListPermissionVersionsCommand = async (output, context) => {
1441
1421
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1442
- return deserializeAws_restJson1ListPermissionVersionsCommandError(output, context);
1422
+ return de_ListPermissionVersionsCommandError(output, context);
1443
1423
  }
1444
1424
  const contents = map({
1445
1425
  $metadata: deserializeMetadata(output),
@@ -1449,11 +1429,11 @@ export const deserializeAws_restJson1ListPermissionVersionsCommand = async (outp
1449
1429
  contents.nextToken = __expectString(data.nextToken);
1450
1430
  }
1451
1431
  if (data.permissions != null) {
1452
- contents.permissions = deserializeAws_restJson1ResourceSharePermissionList(data.permissions, context);
1432
+ contents.permissions = de_ResourceSharePermissionList(data.permissions, context);
1453
1433
  }
1454
1434
  return contents;
1455
1435
  };
1456
- const deserializeAws_restJson1ListPermissionVersionsCommandError = async (output, context) => {
1436
+ const de_ListPermissionVersionsCommandError = async (output, context) => {
1457
1437
  const parsedOutput = {
1458
1438
  ...output,
1459
1439
  body: await parseErrorBody(output.body, context),
@@ -1462,25 +1442,25 @@ const deserializeAws_restJson1ListPermissionVersionsCommandError = async (output
1462
1442
  switch (errorCode) {
1463
1443
  case "InvalidNextTokenException":
1464
1444
  case "com.amazonaws.ram#InvalidNextTokenException":
1465
- throw await deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context);
1445
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1466
1446
  case "InvalidParameterException":
1467
1447
  case "com.amazonaws.ram#InvalidParameterException":
1468
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1448
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1469
1449
  case "MalformedArnException":
1470
1450
  case "com.amazonaws.ram#MalformedArnException":
1471
- throw await deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context);
1451
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
1472
1452
  case "OperationNotPermittedException":
1473
1453
  case "com.amazonaws.ram#OperationNotPermittedException":
1474
- throw await deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context);
1454
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1475
1455
  case "ServerInternalException":
1476
1456
  case "com.amazonaws.ram#ServerInternalException":
1477
- throw await deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context);
1457
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1478
1458
  case "ServiceUnavailableException":
1479
1459
  case "com.amazonaws.ram#ServiceUnavailableException":
1480
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1460
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1481
1461
  case "UnknownResourceException":
1482
1462
  case "com.amazonaws.ram#UnknownResourceException":
1483
- throw await deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context);
1463
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
1484
1464
  default:
1485
1465
  const parsedBody = parsedOutput.body;
1486
1466
  throwDefaultError({
@@ -1491,9 +1471,9 @@ const deserializeAws_restJson1ListPermissionVersionsCommandError = async (output
1491
1471
  });
1492
1472
  }
1493
1473
  };
1494
- export const deserializeAws_restJson1ListPrincipalsCommand = async (output, context) => {
1474
+ export const de_ListPrincipalsCommand = async (output, context) => {
1495
1475
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1496
- return deserializeAws_restJson1ListPrincipalsCommandError(output, context);
1476
+ return de_ListPrincipalsCommandError(output, context);
1497
1477
  }
1498
1478
  const contents = map({
1499
1479
  $metadata: deserializeMetadata(output),
@@ -1503,11 +1483,11 @@ export const deserializeAws_restJson1ListPrincipalsCommand = async (output, cont
1503
1483
  contents.nextToken = __expectString(data.nextToken);
1504
1484
  }
1505
1485
  if (data.principals != null) {
1506
- contents.principals = deserializeAws_restJson1PrincipalList(data.principals, context);
1486
+ contents.principals = de_PrincipalList(data.principals, context);
1507
1487
  }
1508
1488
  return contents;
1509
1489
  };
1510
- const deserializeAws_restJson1ListPrincipalsCommandError = async (output, context) => {
1490
+ const de_ListPrincipalsCommandError = async (output, context) => {
1511
1491
  const parsedOutput = {
1512
1492
  ...output,
1513
1493
  body: await parseErrorBody(output.body, context),
@@ -1516,22 +1496,22 @@ const deserializeAws_restJson1ListPrincipalsCommandError = async (output, contex
1516
1496
  switch (errorCode) {
1517
1497
  case "InvalidNextTokenException":
1518
1498
  case "com.amazonaws.ram#InvalidNextTokenException":
1519
- throw await deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context);
1499
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1520
1500
  case "InvalidParameterException":
1521
1501
  case "com.amazonaws.ram#InvalidParameterException":
1522
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1502
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1523
1503
  case "MalformedArnException":
1524
1504
  case "com.amazonaws.ram#MalformedArnException":
1525
- throw await deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context);
1505
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
1526
1506
  case "ServerInternalException":
1527
1507
  case "com.amazonaws.ram#ServerInternalException":
1528
- throw await deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context);
1508
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1529
1509
  case "ServiceUnavailableException":
1530
1510
  case "com.amazonaws.ram#ServiceUnavailableException":
1531
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1511
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1532
1512
  case "UnknownResourceException":
1533
1513
  case "com.amazonaws.ram#UnknownResourceException":
1534
- throw await deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context);
1514
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
1535
1515
  default:
1536
1516
  const parsedBody = parsedOutput.body;
1537
1517
  throwDefaultError({
@@ -1542,9 +1522,9 @@ const deserializeAws_restJson1ListPrincipalsCommandError = async (output, contex
1542
1522
  });
1543
1523
  }
1544
1524
  };
1545
- export const deserializeAws_restJson1ListResourcesCommand = async (output, context) => {
1525
+ export const de_ListResourcesCommand = async (output, context) => {
1546
1526
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1547
- return deserializeAws_restJson1ListResourcesCommandError(output, context);
1527
+ return de_ListResourcesCommandError(output, context);
1548
1528
  }
1549
1529
  const contents = map({
1550
1530
  $metadata: deserializeMetadata(output),
@@ -1554,11 +1534,11 @@ export const deserializeAws_restJson1ListResourcesCommand = async (output, conte
1554
1534
  contents.nextToken = __expectString(data.nextToken);
1555
1535
  }
1556
1536
  if (data.resources != null) {
1557
- contents.resources = deserializeAws_restJson1ResourceList(data.resources, context);
1537
+ contents.resources = de_ResourceList(data.resources, context);
1558
1538
  }
1559
1539
  return contents;
1560
1540
  };
1561
- const deserializeAws_restJson1ListResourcesCommandError = async (output, context) => {
1541
+ const de_ListResourcesCommandError = async (output, context) => {
1562
1542
  const parsedOutput = {
1563
1543
  ...output,
1564
1544
  body: await parseErrorBody(output.body, context),
@@ -1567,25 +1547,25 @@ const deserializeAws_restJson1ListResourcesCommandError = async (output, context
1567
1547
  switch (errorCode) {
1568
1548
  case "InvalidNextTokenException":
1569
1549
  case "com.amazonaws.ram#InvalidNextTokenException":
1570
- throw await deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context);
1550
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1571
1551
  case "InvalidParameterException":
1572
1552
  case "com.amazonaws.ram#InvalidParameterException":
1573
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1553
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1574
1554
  case "InvalidResourceTypeException":
1575
1555
  case "com.amazonaws.ram#InvalidResourceTypeException":
1576
- throw await deserializeAws_restJson1InvalidResourceTypeExceptionResponse(parsedOutput, context);
1556
+ throw await de_InvalidResourceTypeExceptionRes(parsedOutput, context);
1577
1557
  case "MalformedArnException":
1578
1558
  case "com.amazonaws.ram#MalformedArnException":
1579
- throw await deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context);
1559
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
1580
1560
  case "ServerInternalException":
1581
1561
  case "com.amazonaws.ram#ServerInternalException":
1582
- throw await deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context);
1562
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1583
1563
  case "ServiceUnavailableException":
1584
1564
  case "com.amazonaws.ram#ServiceUnavailableException":
1585
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1565
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1586
1566
  case "UnknownResourceException":
1587
1567
  case "com.amazonaws.ram#UnknownResourceException":
1588
- throw await deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context);
1568
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
1589
1569
  default:
1590
1570
  const parsedBody = parsedOutput.body;
1591
1571
  throwDefaultError({
@@ -1596,9 +1576,9 @@ const deserializeAws_restJson1ListResourcesCommandError = async (output, context
1596
1576
  });
1597
1577
  }
1598
1578
  };
1599
- export const deserializeAws_restJson1ListResourceSharePermissionsCommand = async (output, context) => {
1579
+ export const de_ListResourceSharePermissionsCommand = async (output, context) => {
1600
1580
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1601
- return deserializeAws_restJson1ListResourceSharePermissionsCommandError(output, context);
1581
+ return de_ListResourceSharePermissionsCommandError(output, context);
1602
1582
  }
1603
1583
  const contents = map({
1604
1584
  $metadata: deserializeMetadata(output),
@@ -1608,11 +1588,11 @@ export const deserializeAws_restJson1ListResourceSharePermissionsCommand = async
1608
1588
  contents.nextToken = __expectString(data.nextToken);
1609
1589
  }
1610
1590
  if (data.permissions != null) {
1611
- contents.permissions = deserializeAws_restJson1ResourceSharePermissionList(data.permissions, context);
1591
+ contents.permissions = de_ResourceSharePermissionList(data.permissions, context);
1612
1592
  }
1613
1593
  return contents;
1614
1594
  };
1615
- const deserializeAws_restJson1ListResourceSharePermissionsCommandError = async (output, context) => {
1595
+ const de_ListResourceSharePermissionsCommandError = async (output, context) => {
1616
1596
  const parsedOutput = {
1617
1597
  ...output,
1618
1598
  body: await parseErrorBody(output.body, context),
@@ -1621,25 +1601,25 @@ const deserializeAws_restJson1ListResourceSharePermissionsCommandError = async (
1621
1601
  switch (errorCode) {
1622
1602
  case "InvalidNextTokenException":
1623
1603
  case "com.amazonaws.ram#InvalidNextTokenException":
1624
- throw await deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context);
1604
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1625
1605
  case "InvalidParameterException":
1626
1606
  case "com.amazonaws.ram#InvalidParameterException":
1627
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1607
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1628
1608
  case "MalformedArnException":
1629
1609
  case "com.amazonaws.ram#MalformedArnException":
1630
- throw await deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context);
1610
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
1631
1611
  case "OperationNotPermittedException":
1632
1612
  case "com.amazonaws.ram#OperationNotPermittedException":
1633
- throw await deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context);
1613
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1634
1614
  case "ServerInternalException":
1635
1615
  case "com.amazonaws.ram#ServerInternalException":
1636
- throw await deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context);
1616
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1637
1617
  case "ServiceUnavailableException":
1638
1618
  case "com.amazonaws.ram#ServiceUnavailableException":
1639
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1619
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1640
1620
  case "UnknownResourceException":
1641
1621
  case "com.amazonaws.ram#UnknownResourceException":
1642
- throw await deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context);
1622
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
1643
1623
  default:
1644
1624
  const parsedBody = parsedOutput.body;
1645
1625
  throwDefaultError({
@@ -1650,9 +1630,9 @@ const deserializeAws_restJson1ListResourceSharePermissionsCommandError = async (
1650
1630
  });
1651
1631
  }
1652
1632
  };
1653
- export const deserializeAws_restJson1ListResourceTypesCommand = async (output, context) => {
1633
+ export const de_ListResourceTypesCommand = async (output, context) => {
1654
1634
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1655
- return deserializeAws_restJson1ListResourceTypesCommandError(output, context);
1635
+ return de_ListResourceTypesCommandError(output, context);
1656
1636
  }
1657
1637
  const contents = map({
1658
1638
  $metadata: deserializeMetadata(output),
@@ -1662,11 +1642,11 @@ export const deserializeAws_restJson1ListResourceTypesCommand = async (output, c
1662
1642
  contents.nextToken = __expectString(data.nextToken);
1663
1643
  }
1664
1644
  if (data.resourceTypes != null) {
1665
- contents.resourceTypes = deserializeAws_restJson1ServiceNameAndResourceTypeList(data.resourceTypes, context);
1645
+ contents.resourceTypes = de_ServiceNameAndResourceTypeList(data.resourceTypes, context);
1666
1646
  }
1667
1647
  return contents;
1668
1648
  };
1669
- const deserializeAws_restJson1ListResourceTypesCommandError = async (output, context) => {
1649
+ const de_ListResourceTypesCommandError = async (output, context) => {
1670
1650
  const parsedOutput = {
1671
1651
  ...output,
1672
1652
  body: await parseErrorBody(output.body, context),
@@ -1675,16 +1655,16 @@ const deserializeAws_restJson1ListResourceTypesCommandError = async (output, con
1675
1655
  switch (errorCode) {
1676
1656
  case "InvalidNextTokenException":
1677
1657
  case "com.amazonaws.ram#InvalidNextTokenException":
1678
- throw await deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context);
1658
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1679
1659
  case "InvalidParameterException":
1680
1660
  case "com.amazonaws.ram#InvalidParameterException":
1681
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1661
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1682
1662
  case "ServerInternalException":
1683
1663
  case "com.amazonaws.ram#ServerInternalException":
1684
- throw await deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context);
1664
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1685
1665
  case "ServiceUnavailableException":
1686
1666
  case "com.amazonaws.ram#ServiceUnavailableException":
1687
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1667
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1688
1668
  default:
1689
1669
  const parsedBody = parsedOutput.body;
1690
1670
  throwDefaultError({
@@ -1695,9 +1675,9 @@ const deserializeAws_restJson1ListResourceTypesCommandError = async (output, con
1695
1675
  });
1696
1676
  }
1697
1677
  };
1698
- export const deserializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommand = async (output, context) => {
1678
+ export const de_PromoteResourceShareCreatedFromPolicyCommand = async (output, context) => {
1699
1679
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1700
- return deserializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommandError(output, context);
1680
+ return de_PromoteResourceShareCreatedFromPolicyCommandError(output, context);
1701
1681
  }
1702
1682
  const contents = map({
1703
1683
  $metadata: deserializeMetadata(output),
@@ -1708,7 +1688,7 @@ export const deserializeAws_restJson1PromoteResourceShareCreatedFromPolicyComman
1708
1688
  }
1709
1689
  return contents;
1710
1690
  };
1711
- const deserializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommandError = async (output, context) => {
1691
+ const de_PromoteResourceShareCreatedFromPolicyCommandError = async (output, context) => {
1712
1692
  const parsedOutput = {
1713
1693
  ...output,
1714
1694
  body: await parseErrorBody(output.body, context),
@@ -1717,28 +1697,28 @@ const deserializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommandError
1717
1697
  switch (errorCode) {
1718
1698
  case "InvalidParameterException":
1719
1699
  case "com.amazonaws.ram#InvalidParameterException":
1720
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1700
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1721
1701
  case "MalformedArnException":
1722
1702
  case "com.amazonaws.ram#MalformedArnException":
1723
- throw await deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context);
1703
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
1724
1704
  case "MissingRequiredParameterException":
1725
1705
  case "com.amazonaws.ram#MissingRequiredParameterException":
1726
- throw await deserializeAws_restJson1MissingRequiredParameterExceptionResponse(parsedOutput, context);
1706
+ throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
1727
1707
  case "OperationNotPermittedException":
1728
1708
  case "com.amazonaws.ram#OperationNotPermittedException":
1729
- throw await deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context);
1709
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1730
1710
  case "ResourceShareLimitExceededException":
1731
1711
  case "com.amazonaws.ram#ResourceShareLimitExceededException":
1732
- throw await deserializeAws_restJson1ResourceShareLimitExceededExceptionResponse(parsedOutput, context);
1712
+ throw await de_ResourceShareLimitExceededExceptionRes(parsedOutput, context);
1733
1713
  case "ServerInternalException":
1734
1714
  case "com.amazonaws.ram#ServerInternalException":
1735
- throw await deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context);
1715
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1736
1716
  case "ServiceUnavailableException":
1737
1717
  case "com.amazonaws.ram#ServiceUnavailableException":
1738
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1718
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1739
1719
  case "UnknownResourceException":
1740
1720
  case "com.amazonaws.ram#UnknownResourceException":
1741
- throw await deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context);
1721
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
1742
1722
  default:
1743
1723
  const parsedBody = parsedOutput.body;
1744
1724
  throwDefaultError({
@@ -1749,9 +1729,9 @@ const deserializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommandError
1749
1729
  });
1750
1730
  }
1751
1731
  };
1752
- export const deserializeAws_restJson1RejectResourceShareInvitationCommand = async (output, context) => {
1732
+ export const de_RejectResourceShareInvitationCommand = async (output, context) => {
1753
1733
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1754
- return deserializeAws_restJson1RejectResourceShareInvitationCommandError(output, context);
1734
+ return de_RejectResourceShareInvitationCommandError(output, context);
1755
1735
  }
1756
1736
  const contents = map({
1757
1737
  $metadata: deserializeMetadata(output),
@@ -1761,11 +1741,11 @@ export const deserializeAws_restJson1RejectResourceShareInvitationCommand = asyn
1761
1741
  contents.clientToken = __expectString(data.clientToken);
1762
1742
  }
1763
1743
  if (data.resourceShareInvitation != null) {
1764
- contents.resourceShareInvitation = deserializeAws_restJson1ResourceShareInvitation(data.resourceShareInvitation, context);
1744
+ contents.resourceShareInvitation = de_ResourceShareInvitation(data.resourceShareInvitation, context);
1765
1745
  }
1766
1746
  return contents;
1767
1747
  };
1768
- const deserializeAws_restJson1RejectResourceShareInvitationCommandError = async (output, context) => {
1748
+ const de_RejectResourceShareInvitationCommandError = async (output, context) => {
1769
1749
  const parsedOutput = {
1770
1750
  ...output,
1771
1751
  body: await parseErrorBody(output.body, context),
@@ -1774,34 +1754,34 @@ const deserializeAws_restJson1RejectResourceShareInvitationCommandError = async
1774
1754
  switch (errorCode) {
1775
1755
  case "IdempotentParameterMismatchException":
1776
1756
  case "com.amazonaws.ram#IdempotentParameterMismatchException":
1777
- throw await deserializeAws_restJson1IdempotentParameterMismatchExceptionResponse(parsedOutput, context);
1757
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
1778
1758
  case "InvalidClientTokenException":
1779
1759
  case "com.amazonaws.ram#InvalidClientTokenException":
1780
- throw await deserializeAws_restJson1InvalidClientTokenExceptionResponse(parsedOutput, context);
1760
+ throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
1781
1761
  case "MalformedArnException":
1782
1762
  case "com.amazonaws.ram#MalformedArnException":
1783
- throw await deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context);
1763
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
1784
1764
  case "OperationNotPermittedException":
1785
1765
  case "com.amazonaws.ram#OperationNotPermittedException":
1786
- throw await deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context);
1766
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1787
1767
  case "ResourceShareInvitationAlreadyAcceptedException":
1788
1768
  case "com.amazonaws.ram#ResourceShareInvitationAlreadyAcceptedException":
1789
- throw await deserializeAws_restJson1ResourceShareInvitationAlreadyAcceptedExceptionResponse(parsedOutput, context);
1769
+ throw await de_ResourceShareInvitationAlreadyAcceptedExceptionRes(parsedOutput, context);
1790
1770
  case "ResourceShareInvitationAlreadyRejectedException":
1791
1771
  case "com.amazonaws.ram#ResourceShareInvitationAlreadyRejectedException":
1792
- throw await deserializeAws_restJson1ResourceShareInvitationAlreadyRejectedExceptionResponse(parsedOutput, context);
1772
+ throw await de_ResourceShareInvitationAlreadyRejectedExceptionRes(parsedOutput, context);
1793
1773
  case "ResourceShareInvitationArnNotFoundException":
1794
1774
  case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException":
1795
- throw await deserializeAws_restJson1ResourceShareInvitationArnNotFoundExceptionResponse(parsedOutput, context);
1775
+ throw await de_ResourceShareInvitationArnNotFoundExceptionRes(parsedOutput, context);
1796
1776
  case "ResourceShareInvitationExpiredException":
1797
1777
  case "com.amazonaws.ram#ResourceShareInvitationExpiredException":
1798
- throw await deserializeAws_restJson1ResourceShareInvitationExpiredExceptionResponse(parsedOutput, context);
1778
+ throw await de_ResourceShareInvitationExpiredExceptionRes(parsedOutput, context);
1799
1779
  case "ServerInternalException":
1800
1780
  case "com.amazonaws.ram#ServerInternalException":
1801
- throw await deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context);
1781
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1802
1782
  case "ServiceUnavailableException":
1803
1783
  case "com.amazonaws.ram#ServiceUnavailableException":
1804
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1784
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1805
1785
  default:
1806
1786
  const parsedBody = parsedOutput.body;
1807
1787
  throwDefaultError({
@@ -1812,9 +1792,9 @@ const deserializeAws_restJson1RejectResourceShareInvitationCommandError = async
1812
1792
  });
1813
1793
  }
1814
1794
  };
1815
- export const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
1795
+ export const de_TagResourceCommand = async (output, context) => {
1816
1796
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1817
- return deserializeAws_restJson1TagResourceCommandError(output, context);
1797
+ return de_TagResourceCommandError(output, context);
1818
1798
  }
1819
1799
  const contents = map({
1820
1800
  $metadata: deserializeMetadata(output),
@@ -1822,7 +1802,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
1822
1802
  await collectBody(output.body, context);
1823
1803
  return contents;
1824
1804
  };
1825
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
1805
+ const de_TagResourceCommandError = async (output, context) => {
1826
1806
  const parsedOutput = {
1827
1807
  ...output,
1828
1808
  body: await parseErrorBody(output.body, context),
@@ -1831,28 +1811,28 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1831
1811
  switch (errorCode) {
1832
1812
  case "InvalidParameterException":
1833
1813
  case "com.amazonaws.ram#InvalidParameterException":
1834
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1814
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1835
1815
  case "MalformedArnException":
1836
1816
  case "com.amazonaws.ram#MalformedArnException":
1837
- throw await deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context);
1817
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
1838
1818
  case "ResourceArnNotFoundException":
1839
1819
  case "com.amazonaws.ram#ResourceArnNotFoundException":
1840
- throw await deserializeAws_restJson1ResourceArnNotFoundExceptionResponse(parsedOutput, context);
1820
+ throw await de_ResourceArnNotFoundExceptionRes(parsedOutput, context);
1841
1821
  case "ServerInternalException":
1842
1822
  case "com.amazonaws.ram#ServerInternalException":
1843
- throw await deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context);
1823
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1844
1824
  case "ServiceUnavailableException":
1845
1825
  case "com.amazonaws.ram#ServiceUnavailableException":
1846
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1826
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1847
1827
  case "TagLimitExceededException":
1848
1828
  case "com.amazonaws.ram#TagLimitExceededException":
1849
- throw await deserializeAws_restJson1TagLimitExceededExceptionResponse(parsedOutput, context);
1829
+ throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
1850
1830
  case "TagPolicyViolationException":
1851
1831
  case "com.amazonaws.ram#TagPolicyViolationException":
1852
- throw await deserializeAws_restJson1TagPolicyViolationExceptionResponse(parsedOutput, context);
1832
+ throw await de_TagPolicyViolationExceptionRes(parsedOutput, context);
1853
1833
  case "UnknownResourceException":
1854
1834
  case "com.amazonaws.ram#UnknownResourceException":
1855
- throw await deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context);
1835
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
1856
1836
  default:
1857
1837
  const parsedBody = parsedOutput.body;
1858
1838
  throwDefaultError({
@@ -1863,9 +1843,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1863
1843
  });
1864
1844
  }
1865
1845
  };
1866
- export const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
1846
+ export const de_UntagResourceCommand = async (output, context) => {
1867
1847
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1868
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
1848
+ return de_UntagResourceCommandError(output, context);
1869
1849
  }
1870
1850
  const contents = map({
1871
1851
  $metadata: deserializeMetadata(output),
@@ -1873,7 +1853,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
1873
1853
  await collectBody(output.body, context);
1874
1854
  return contents;
1875
1855
  };
1876
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
1856
+ const de_UntagResourceCommandError = async (output, context) => {
1877
1857
  const parsedOutput = {
1878
1858
  ...output,
1879
1859
  body: await parseErrorBody(output.body, context),
@@ -1882,13 +1862,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1882
1862
  switch (errorCode) {
1883
1863
  case "InvalidParameterException":
1884
1864
  case "com.amazonaws.ram#InvalidParameterException":
1885
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1865
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1886
1866
  case "ServerInternalException":
1887
1867
  case "com.amazonaws.ram#ServerInternalException":
1888
- throw await deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context);
1868
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1889
1869
  case "ServiceUnavailableException":
1890
1870
  case "com.amazonaws.ram#ServiceUnavailableException":
1891
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1871
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1892
1872
  default:
1893
1873
  const parsedBody = parsedOutput.body;
1894
1874
  throwDefaultError({
@@ -1899,9 +1879,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1899
1879
  });
1900
1880
  }
1901
1881
  };
1902
- export const deserializeAws_restJson1UpdateResourceShareCommand = async (output, context) => {
1882
+ export const de_UpdateResourceShareCommand = async (output, context) => {
1903
1883
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1904
- return deserializeAws_restJson1UpdateResourceShareCommandError(output, context);
1884
+ return de_UpdateResourceShareCommandError(output, context);
1905
1885
  }
1906
1886
  const contents = map({
1907
1887
  $metadata: deserializeMetadata(output),
@@ -1911,11 +1891,11 @@ export const deserializeAws_restJson1UpdateResourceShareCommand = async (output,
1911
1891
  contents.clientToken = __expectString(data.clientToken);
1912
1892
  }
1913
1893
  if (data.resourceShare != null) {
1914
- contents.resourceShare = deserializeAws_restJson1ResourceShare(data.resourceShare, context);
1894
+ contents.resourceShare = de_ResourceShare(data.resourceShare, context);
1915
1895
  }
1916
1896
  return contents;
1917
1897
  };
1918
- const deserializeAws_restJson1UpdateResourceShareCommandError = async (output, context) => {
1898
+ const de_UpdateResourceShareCommandError = async (output, context) => {
1919
1899
  const parsedOutput = {
1920
1900
  ...output,
1921
1901
  body: await parseErrorBody(output.body, context),
@@ -1924,31 +1904,31 @@ const deserializeAws_restJson1UpdateResourceShareCommandError = async (output, c
1924
1904
  switch (errorCode) {
1925
1905
  case "IdempotentParameterMismatchException":
1926
1906
  case "com.amazonaws.ram#IdempotentParameterMismatchException":
1927
- throw await deserializeAws_restJson1IdempotentParameterMismatchExceptionResponse(parsedOutput, context);
1907
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
1928
1908
  case "InvalidClientTokenException":
1929
1909
  case "com.amazonaws.ram#InvalidClientTokenException":
1930
- throw await deserializeAws_restJson1InvalidClientTokenExceptionResponse(parsedOutput, context);
1910
+ throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
1931
1911
  case "InvalidParameterException":
1932
1912
  case "com.amazonaws.ram#InvalidParameterException":
1933
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1913
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1934
1914
  case "MalformedArnException":
1935
1915
  case "com.amazonaws.ram#MalformedArnException":
1936
- throw await deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context);
1916
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
1937
1917
  case "MissingRequiredParameterException":
1938
1918
  case "com.amazonaws.ram#MissingRequiredParameterException":
1939
- throw await deserializeAws_restJson1MissingRequiredParameterExceptionResponse(parsedOutput, context);
1919
+ throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
1940
1920
  case "OperationNotPermittedException":
1941
1921
  case "com.amazonaws.ram#OperationNotPermittedException":
1942
- throw await deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context);
1922
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1943
1923
  case "ServerInternalException":
1944
1924
  case "com.amazonaws.ram#ServerInternalException":
1945
- throw await deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context);
1925
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1946
1926
  case "ServiceUnavailableException":
1947
1927
  case "com.amazonaws.ram#ServiceUnavailableException":
1948
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1928
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1949
1929
  case "UnknownResourceException":
1950
1930
  case "com.amazonaws.ram#UnknownResourceException":
1951
- throw await deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context);
1931
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
1952
1932
  default:
1953
1933
  const parsedBody = parsedOutput.body;
1954
1934
  throwDefaultError({
@@ -1960,7 +1940,7 @@ const deserializeAws_restJson1UpdateResourceShareCommandError = async (output, c
1960
1940
  }
1961
1941
  };
1962
1942
  const map = __map;
1963
- const deserializeAws_restJson1IdempotentParameterMismatchExceptionResponse = async (parsedOutput, context) => {
1943
+ const de_IdempotentParameterMismatchExceptionRes = async (parsedOutput, context) => {
1964
1944
  const contents = map({});
1965
1945
  const data = parsedOutput.body;
1966
1946
  if (data.message != null) {
@@ -1972,7 +1952,7 @@ const deserializeAws_restJson1IdempotentParameterMismatchExceptionResponse = asy
1972
1952
  });
1973
1953
  return __decorateServiceException(exception, parsedOutput.body);
1974
1954
  };
1975
- const deserializeAws_restJson1InvalidClientTokenExceptionResponse = async (parsedOutput, context) => {
1955
+ const de_InvalidClientTokenExceptionRes = async (parsedOutput, context) => {
1976
1956
  const contents = map({});
1977
1957
  const data = parsedOutput.body;
1978
1958
  if (data.message != null) {
@@ -1984,7 +1964,7 @@ const deserializeAws_restJson1InvalidClientTokenExceptionResponse = async (parse
1984
1964
  });
1985
1965
  return __decorateServiceException(exception, parsedOutput.body);
1986
1966
  };
1987
- const deserializeAws_restJson1InvalidMaxResultsExceptionResponse = async (parsedOutput, context) => {
1967
+ const de_InvalidMaxResultsExceptionRes = async (parsedOutput, context) => {
1988
1968
  const contents = map({});
1989
1969
  const data = parsedOutput.body;
1990
1970
  if (data.message != null) {
@@ -1996,7 +1976,7 @@ const deserializeAws_restJson1InvalidMaxResultsExceptionResponse = async (parsed
1996
1976
  });
1997
1977
  return __decorateServiceException(exception, parsedOutput.body);
1998
1978
  };
1999
- const deserializeAws_restJson1InvalidNextTokenExceptionResponse = async (parsedOutput, context) => {
1979
+ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
2000
1980
  const contents = map({});
2001
1981
  const data = parsedOutput.body;
2002
1982
  if (data.message != null) {
@@ -2008,7 +1988,7 @@ const deserializeAws_restJson1InvalidNextTokenExceptionResponse = async (parsedO
2008
1988
  });
2009
1989
  return __decorateServiceException(exception, parsedOutput.body);
2010
1990
  };
2011
- const deserializeAws_restJson1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
1991
+ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
2012
1992
  const contents = map({});
2013
1993
  const data = parsedOutput.body;
2014
1994
  if (data.message != null) {
@@ -2020,7 +2000,7 @@ const deserializeAws_restJson1InvalidParameterExceptionResponse = async (parsedO
2020
2000
  });
2021
2001
  return __decorateServiceException(exception, parsedOutput.body);
2022
2002
  };
2023
- const deserializeAws_restJson1InvalidResourceTypeExceptionResponse = async (parsedOutput, context) => {
2003
+ const de_InvalidResourceTypeExceptionRes = async (parsedOutput, context) => {
2024
2004
  const contents = map({});
2025
2005
  const data = parsedOutput.body;
2026
2006
  if (data.message != null) {
@@ -2032,7 +2012,7 @@ const deserializeAws_restJson1InvalidResourceTypeExceptionResponse = async (pars
2032
2012
  });
2033
2013
  return __decorateServiceException(exception, parsedOutput.body);
2034
2014
  };
2035
- const deserializeAws_restJson1InvalidStateTransitionExceptionResponse = async (parsedOutput, context) => {
2015
+ const de_InvalidStateTransitionExceptionRes = async (parsedOutput, context) => {
2036
2016
  const contents = map({});
2037
2017
  const data = parsedOutput.body;
2038
2018
  if (data.message != null) {
@@ -2044,7 +2024,7 @@ const deserializeAws_restJson1InvalidStateTransitionExceptionResponse = async (p
2044
2024
  });
2045
2025
  return __decorateServiceException(exception, parsedOutput.body);
2046
2026
  };
2047
- const deserializeAws_restJson1MalformedArnExceptionResponse = async (parsedOutput, context) => {
2027
+ const de_MalformedArnExceptionRes = async (parsedOutput, context) => {
2048
2028
  const contents = map({});
2049
2029
  const data = parsedOutput.body;
2050
2030
  if (data.message != null) {
@@ -2056,7 +2036,7 @@ const deserializeAws_restJson1MalformedArnExceptionResponse = async (parsedOutpu
2056
2036
  });
2057
2037
  return __decorateServiceException(exception, parsedOutput.body);
2058
2038
  };
2059
- const deserializeAws_restJson1MissingRequiredParameterExceptionResponse = async (parsedOutput, context) => {
2039
+ const de_MissingRequiredParameterExceptionRes = async (parsedOutput, context) => {
2060
2040
  const contents = map({});
2061
2041
  const data = parsedOutput.body;
2062
2042
  if (data.message != null) {
@@ -2068,7 +2048,7 @@ const deserializeAws_restJson1MissingRequiredParameterExceptionResponse = async
2068
2048
  });
2069
2049
  return __decorateServiceException(exception, parsedOutput.body);
2070
2050
  };
2071
- const deserializeAws_restJson1OperationNotPermittedExceptionResponse = async (parsedOutput, context) => {
2051
+ const de_OperationNotPermittedExceptionRes = async (parsedOutput, context) => {
2072
2052
  const contents = map({});
2073
2053
  const data = parsedOutput.body;
2074
2054
  if (data.message != null) {
@@ -2080,7 +2060,7 @@ const deserializeAws_restJson1OperationNotPermittedExceptionResponse = async (pa
2080
2060
  });
2081
2061
  return __decorateServiceException(exception, parsedOutput.body);
2082
2062
  };
2083
- const deserializeAws_restJson1ResourceArnNotFoundExceptionResponse = async (parsedOutput, context) => {
2063
+ const de_ResourceArnNotFoundExceptionRes = async (parsedOutput, context) => {
2084
2064
  const contents = map({});
2085
2065
  const data = parsedOutput.body;
2086
2066
  if (data.message != null) {
@@ -2092,7 +2072,7 @@ const deserializeAws_restJson1ResourceArnNotFoundExceptionResponse = async (pars
2092
2072
  });
2093
2073
  return __decorateServiceException(exception, parsedOutput.body);
2094
2074
  };
2095
- const deserializeAws_restJson1ResourceShareInvitationAlreadyAcceptedExceptionResponse = async (parsedOutput, context) => {
2075
+ const de_ResourceShareInvitationAlreadyAcceptedExceptionRes = async (parsedOutput, context) => {
2096
2076
  const contents = map({});
2097
2077
  const data = parsedOutput.body;
2098
2078
  if (data.message != null) {
@@ -2104,7 +2084,7 @@ const deserializeAws_restJson1ResourceShareInvitationAlreadyAcceptedExceptionRes
2104
2084
  });
2105
2085
  return __decorateServiceException(exception, parsedOutput.body);
2106
2086
  };
2107
- const deserializeAws_restJson1ResourceShareInvitationAlreadyRejectedExceptionResponse = async (parsedOutput, context) => {
2087
+ const de_ResourceShareInvitationAlreadyRejectedExceptionRes = async (parsedOutput, context) => {
2108
2088
  const contents = map({});
2109
2089
  const data = parsedOutput.body;
2110
2090
  if (data.message != null) {
@@ -2116,7 +2096,7 @@ const deserializeAws_restJson1ResourceShareInvitationAlreadyRejectedExceptionRes
2116
2096
  });
2117
2097
  return __decorateServiceException(exception, parsedOutput.body);
2118
2098
  };
2119
- const deserializeAws_restJson1ResourceShareInvitationArnNotFoundExceptionResponse = async (parsedOutput, context) => {
2099
+ const de_ResourceShareInvitationArnNotFoundExceptionRes = async (parsedOutput, context) => {
2120
2100
  const contents = map({});
2121
2101
  const data = parsedOutput.body;
2122
2102
  if (data.message != null) {
@@ -2128,7 +2108,7 @@ const deserializeAws_restJson1ResourceShareInvitationArnNotFoundExceptionRespons
2128
2108
  });
2129
2109
  return __decorateServiceException(exception, parsedOutput.body);
2130
2110
  };
2131
- const deserializeAws_restJson1ResourceShareInvitationExpiredExceptionResponse = async (parsedOutput, context) => {
2111
+ const de_ResourceShareInvitationExpiredExceptionRes = async (parsedOutput, context) => {
2132
2112
  const contents = map({});
2133
2113
  const data = parsedOutput.body;
2134
2114
  if (data.message != null) {
@@ -2140,7 +2120,7 @@ const deserializeAws_restJson1ResourceShareInvitationExpiredExceptionResponse =
2140
2120
  });
2141
2121
  return __decorateServiceException(exception, parsedOutput.body);
2142
2122
  };
2143
- const deserializeAws_restJson1ResourceShareLimitExceededExceptionResponse = async (parsedOutput, context) => {
2123
+ const de_ResourceShareLimitExceededExceptionRes = async (parsedOutput, context) => {
2144
2124
  const contents = map({});
2145
2125
  const data = parsedOutput.body;
2146
2126
  if (data.message != null) {
@@ -2152,7 +2132,7 @@ const deserializeAws_restJson1ResourceShareLimitExceededExceptionResponse = asyn
2152
2132
  });
2153
2133
  return __decorateServiceException(exception, parsedOutput.body);
2154
2134
  };
2155
- const deserializeAws_restJson1ServerInternalExceptionResponse = async (parsedOutput, context) => {
2135
+ const de_ServerInternalExceptionRes = async (parsedOutput, context) => {
2156
2136
  const contents = map({});
2157
2137
  const data = parsedOutput.body;
2158
2138
  if (data.message != null) {
@@ -2164,7 +2144,7 @@ const deserializeAws_restJson1ServerInternalExceptionResponse = async (parsedOut
2164
2144
  });
2165
2145
  return __decorateServiceException(exception, parsedOutput.body);
2166
2146
  };
2167
- const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
2147
+ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
2168
2148
  const contents = map({});
2169
2149
  const data = parsedOutput.body;
2170
2150
  if (data.message != null) {
@@ -2176,7 +2156,7 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
2176
2156
  });
2177
2157
  return __decorateServiceException(exception, parsedOutput.body);
2178
2158
  };
2179
- const deserializeAws_restJson1TagLimitExceededExceptionResponse = async (parsedOutput, context) => {
2159
+ const de_TagLimitExceededExceptionRes = async (parsedOutput, context) => {
2180
2160
  const contents = map({});
2181
2161
  const data = parsedOutput.body;
2182
2162
  if (data.message != null) {
@@ -2188,7 +2168,7 @@ const deserializeAws_restJson1TagLimitExceededExceptionResponse = async (parsedO
2188
2168
  });
2189
2169
  return __decorateServiceException(exception, parsedOutput.body);
2190
2170
  };
2191
- const deserializeAws_restJson1TagPolicyViolationExceptionResponse = async (parsedOutput, context) => {
2171
+ const de_TagPolicyViolationExceptionRes = async (parsedOutput, context) => {
2192
2172
  const contents = map({});
2193
2173
  const data = parsedOutput.body;
2194
2174
  if (data.message != null) {
@@ -2200,7 +2180,7 @@ const deserializeAws_restJson1TagPolicyViolationExceptionResponse = async (parse
2200
2180
  });
2201
2181
  return __decorateServiceException(exception, parsedOutput.body);
2202
2182
  };
2203
- const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
2183
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
2204
2184
  const contents = map({});
2205
2185
  const data = parsedOutput.body;
2206
2186
  if (data.message != null) {
@@ -2212,7 +2192,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
2212
2192
  });
2213
2193
  return __decorateServiceException(exception, parsedOutput.body);
2214
2194
  };
2215
- const deserializeAws_restJson1UnknownResourceExceptionResponse = async (parsedOutput, context) => {
2195
+ const de_UnknownResourceExceptionRes = async (parsedOutput, context) => {
2216
2196
  const contents = map({});
2217
2197
  const data = parsedOutput.body;
2218
2198
  if (data.message != null) {
@@ -2224,82 +2204,82 @@ const deserializeAws_restJson1UnknownResourceExceptionResponse = async (parsedOu
2224
2204
  });
2225
2205
  return __decorateServiceException(exception, parsedOutput.body);
2226
2206
  };
2227
- const serializeAws_restJson1PermissionArnList = (input, context) => {
2207
+ const se_PermissionArnList = (input, context) => {
2228
2208
  return input
2229
2209
  .filter((e) => e != null)
2230
2210
  .map((entry) => {
2231
2211
  return entry;
2232
2212
  });
2233
2213
  };
2234
- const serializeAws_restJson1PrincipalArnOrIdList = (input, context) => {
2214
+ const se_PrincipalArnOrIdList = (input, context) => {
2235
2215
  return input
2236
2216
  .filter((e) => e != null)
2237
2217
  .map((entry) => {
2238
2218
  return entry;
2239
2219
  });
2240
2220
  };
2241
- const serializeAws_restJson1ResourceArnList = (input, context) => {
2221
+ const se_ResourceArnList = (input, context) => {
2242
2222
  return input
2243
2223
  .filter((e) => e != null)
2244
2224
  .map((entry) => {
2245
2225
  return entry;
2246
2226
  });
2247
2227
  };
2248
- const serializeAws_restJson1ResourceShareArnList = (input, context) => {
2228
+ const se_ResourceShareArnList = (input, context) => {
2249
2229
  return input
2250
2230
  .filter((e) => e != null)
2251
2231
  .map((entry) => {
2252
2232
  return entry;
2253
2233
  });
2254
2234
  };
2255
- const serializeAws_restJson1ResourceShareInvitationArnList = (input, context) => {
2235
+ const se_ResourceShareInvitationArnList = (input, context) => {
2256
2236
  return input
2257
2237
  .filter((e) => e != null)
2258
2238
  .map((entry) => {
2259
2239
  return entry;
2260
2240
  });
2261
2241
  };
2262
- const serializeAws_restJson1Tag = (input, context) => {
2242
+ const se_Tag = (input, context) => {
2263
2243
  return {
2264
2244
  ...(input.key != null && { key: input.key }),
2265
2245
  ...(input.value != null && { value: input.value }),
2266
2246
  };
2267
2247
  };
2268
- const serializeAws_restJson1TagFilter = (input, context) => {
2248
+ const se_TagFilter = (input, context) => {
2269
2249
  return {
2270
2250
  ...(input.tagKey != null && { tagKey: input.tagKey }),
2271
- ...(input.tagValues != null && { tagValues: serializeAws_restJson1TagValueList(input.tagValues, context) }),
2251
+ ...(input.tagValues != null && { tagValues: se_TagValueList(input.tagValues, context) }),
2272
2252
  };
2273
2253
  };
2274
- const serializeAws_restJson1TagFilters = (input, context) => {
2254
+ const se_TagFilters = (input, context) => {
2275
2255
  return input
2276
2256
  .filter((e) => e != null)
2277
2257
  .map((entry) => {
2278
- return serializeAws_restJson1TagFilter(entry, context);
2258
+ return se_TagFilter(entry, context);
2279
2259
  });
2280
2260
  };
2281
- const serializeAws_restJson1TagKeyList = (input, context) => {
2261
+ const se_TagKeyList = (input, context) => {
2282
2262
  return input
2283
2263
  .filter((e) => e != null)
2284
2264
  .map((entry) => {
2285
2265
  return entry;
2286
2266
  });
2287
2267
  };
2288
- const serializeAws_restJson1TagList = (input, context) => {
2268
+ const se_TagList = (input, context) => {
2289
2269
  return input
2290
2270
  .filter((e) => e != null)
2291
2271
  .map((entry) => {
2292
- return serializeAws_restJson1Tag(entry, context);
2272
+ return se_Tag(entry, context);
2293
2273
  });
2294
2274
  };
2295
- const serializeAws_restJson1TagValueList = (input, context) => {
2275
+ const se_TagValueList = (input, context) => {
2296
2276
  return input
2297
2277
  .filter((e) => e != null)
2298
2278
  .map((entry) => {
2299
2279
  return entry;
2300
2280
  });
2301
2281
  };
2302
- const deserializeAws_restJson1PolicyList = (output, context) => {
2282
+ const de_PolicyList = (output, context) => {
2303
2283
  const retVal = (output || [])
2304
2284
  .filter((e) => e != null)
2305
2285
  .map((entry) => {
@@ -2310,7 +2290,7 @@ const deserializeAws_restJson1PolicyList = (output, context) => {
2310
2290
  });
2311
2291
  return retVal;
2312
2292
  };
2313
- const deserializeAws_restJson1Principal = (output, context) => {
2293
+ const de_Principal = (output, context) => {
2314
2294
  return {
2315
2295
  creationTime: output.creationTime != null
2316
2296
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
@@ -2323,18 +2303,18 @@ const deserializeAws_restJson1Principal = (output, context) => {
2323
2303
  resourceShareArn: __expectString(output.resourceShareArn),
2324
2304
  };
2325
2305
  };
2326
- const deserializeAws_restJson1PrincipalList = (output, context) => {
2306
+ const de_PrincipalList = (output, context) => {
2327
2307
  const retVal = (output || [])
2328
2308
  .filter((e) => e != null)
2329
2309
  .map((entry) => {
2330
2310
  if (entry === null) {
2331
2311
  return null;
2332
2312
  }
2333
- return deserializeAws_restJson1Principal(entry, context);
2313
+ return de_Principal(entry, context);
2334
2314
  });
2335
2315
  return retVal;
2336
2316
  };
2337
- const deserializeAws_restJson1Resource = (output, context) => {
2317
+ const de_Resource = (output, context) => {
2338
2318
  return {
2339
2319
  arn: __expectString(output.arn),
2340
2320
  creationTime: output.creationTime != null
@@ -2351,18 +2331,18 @@ const deserializeAws_restJson1Resource = (output, context) => {
2351
2331
  type: __expectString(output.type),
2352
2332
  };
2353
2333
  };
2354
- const deserializeAws_restJson1ResourceList = (output, context) => {
2334
+ const de_ResourceList = (output, context) => {
2355
2335
  const retVal = (output || [])
2356
2336
  .filter((e) => e != null)
2357
2337
  .map((entry) => {
2358
2338
  if (entry === null) {
2359
2339
  return null;
2360
2340
  }
2361
- return deserializeAws_restJson1Resource(entry, context);
2341
+ return de_Resource(entry, context);
2362
2342
  });
2363
2343
  return retVal;
2364
2344
  };
2365
- const deserializeAws_restJson1ResourceShare = (output, context) => {
2345
+ const de_ResourceShare = (output, context) => {
2366
2346
  return {
2367
2347
  allowExternalPrincipals: __expectBoolean(output.allowExternalPrincipals),
2368
2348
  creationTime: output.creationTime != null
@@ -2377,10 +2357,10 @@ const deserializeAws_restJson1ResourceShare = (output, context) => {
2377
2357
  resourceShareArn: __expectString(output.resourceShareArn),
2378
2358
  status: __expectString(output.status),
2379
2359
  statusMessage: __expectString(output.statusMessage),
2380
- tags: output.tags != null ? deserializeAws_restJson1TagList(output.tags, context) : undefined,
2360
+ tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
2381
2361
  };
2382
2362
  };
2383
- const deserializeAws_restJson1ResourceShareAssociation = (output, context) => {
2363
+ const de_ResourceShareAssociation = (output, context) => {
2384
2364
  return {
2385
2365
  associatedEntity: __expectString(output.associatedEntity),
2386
2366
  associationType: __expectString(output.associationType),
@@ -2397,18 +2377,18 @@ const deserializeAws_restJson1ResourceShareAssociation = (output, context) => {
2397
2377
  statusMessage: __expectString(output.statusMessage),
2398
2378
  };
2399
2379
  };
2400
- const deserializeAws_restJson1ResourceShareAssociationList = (output, context) => {
2380
+ const de_ResourceShareAssociationList = (output, context) => {
2401
2381
  const retVal = (output || [])
2402
2382
  .filter((e) => e != null)
2403
2383
  .map((entry) => {
2404
2384
  if (entry === null) {
2405
2385
  return null;
2406
2386
  }
2407
- return deserializeAws_restJson1ResourceShareAssociation(entry, context);
2387
+ return de_ResourceShareAssociation(entry, context);
2408
2388
  });
2409
2389
  return retVal;
2410
2390
  };
2411
- const deserializeAws_restJson1ResourceShareInvitation = (output, context) => {
2391
+ const de_ResourceShareInvitation = (output, context) => {
2412
2392
  return {
2413
2393
  invitationTimestamp: output.invitationTimestamp != null
2414
2394
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.invitationTimestamp)))
@@ -2417,7 +2397,7 @@ const deserializeAws_restJson1ResourceShareInvitation = (output, context) => {
2417
2397
  receiverArn: __expectString(output.receiverArn),
2418
2398
  resourceShareArn: __expectString(output.resourceShareArn),
2419
2399
  resourceShareAssociations: output.resourceShareAssociations != null
2420
- ? deserializeAws_restJson1ResourceShareAssociationList(output.resourceShareAssociations, context)
2400
+ ? de_ResourceShareAssociationList(output.resourceShareAssociations, context)
2421
2401
  : undefined,
2422
2402
  resourceShareInvitationArn: __expectString(output.resourceShareInvitationArn),
2423
2403
  resourceShareName: __expectString(output.resourceShareName),
@@ -2425,29 +2405,29 @@ const deserializeAws_restJson1ResourceShareInvitation = (output, context) => {
2425
2405
  status: __expectString(output.status),
2426
2406
  };
2427
2407
  };
2428
- const deserializeAws_restJson1ResourceShareInvitationList = (output, context) => {
2408
+ const de_ResourceShareInvitationList = (output, context) => {
2429
2409
  const retVal = (output || [])
2430
2410
  .filter((e) => e != null)
2431
2411
  .map((entry) => {
2432
2412
  if (entry === null) {
2433
2413
  return null;
2434
2414
  }
2435
- return deserializeAws_restJson1ResourceShareInvitation(entry, context);
2415
+ return de_ResourceShareInvitation(entry, context);
2436
2416
  });
2437
2417
  return retVal;
2438
2418
  };
2439
- const deserializeAws_restJson1ResourceShareList = (output, context) => {
2419
+ const de_ResourceShareList = (output, context) => {
2440
2420
  const retVal = (output || [])
2441
2421
  .filter((e) => e != null)
2442
2422
  .map((entry) => {
2443
2423
  if (entry === null) {
2444
2424
  return null;
2445
2425
  }
2446
- return deserializeAws_restJson1ResourceShare(entry, context);
2426
+ return de_ResourceShare(entry, context);
2447
2427
  });
2448
2428
  return retVal;
2449
2429
  };
2450
- const deserializeAws_restJson1ResourceSharePermissionDetail = (output, context) => {
2430
+ const de_ResourceSharePermissionDetail = (output, context) => {
2451
2431
  return {
2452
2432
  arn: __expectString(output.arn),
2453
2433
  creationTime: output.creationTime != null
@@ -2464,18 +2444,18 @@ const deserializeAws_restJson1ResourceSharePermissionDetail = (output, context)
2464
2444
  version: __expectString(output.version),
2465
2445
  };
2466
2446
  };
2467
- const deserializeAws_restJson1ResourceSharePermissionList = (output, context) => {
2447
+ const de_ResourceSharePermissionList = (output, context) => {
2468
2448
  const retVal = (output || [])
2469
2449
  .filter((e) => e != null)
2470
2450
  .map((entry) => {
2471
2451
  if (entry === null) {
2472
2452
  return null;
2473
2453
  }
2474
- return deserializeAws_restJson1ResourceSharePermissionSummary(entry, context);
2454
+ return de_ResourceSharePermissionSummary(entry, context);
2475
2455
  });
2476
2456
  return retVal;
2477
2457
  };
2478
- const deserializeAws_restJson1ResourceSharePermissionSummary = (output, context) => {
2458
+ const de_ResourceSharePermissionSummary = (output, context) => {
2479
2459
  return {
2480
2460
  arn: __expectString(output.arn),
2481
2461
  creationTime: output.creationTime != null
@@ -2492,38 +2472,38 @@ const deserializeAws_restJson1ResourceSharePermissionSummary = (output, context)
2492
2472
  version: __expectString(output.version),
2493
2473
  };
2494
2474
  };
2495
- const deserializeAws_restJson1ServiceNameAndResourceType = (output, context) => {
2475
+ const de_ServiceNameAndResourceType = (output, context) => {
2496
2476
  return {
2497
2477
  resourceRegionScope: __expectString(output.resourceRegionScope),
2498
2478
  resourceType: __expectString(output.resourceType),
2499
2479
  serviceName: __expectString(output.serviceName),
2500
2480
  };
2501
2481
  };
2502
- const deserializeAws_restJson1ServiceNameAndResourceTypeList = (output, context) => {
2482
+ const de_ServiceNameAndResourceTypeList = (output, context) => {
2503
2483
  const retVal = (output || [])
2504
2484
  .filter((e) => e != null)
2505
2485
  .map((entry) => {
2506
2486
  if (entry === null) {
2507
2487
  return null;
2508
2488
  }
2509
- return deserializeAws_restJson1ServiceNameAndResourceType(entry, context);
2489
+ return de_ServiceNameAndResourceType(entry, context);
2510
2490
  });
2511
2491
  return retVal;
2512
2492
  };
2513
- const deserializeAws_restJson1Tag = (output, context) => {
2493
+ const de_Tag = (output, context) => {
2514
2494
  return {
2515
2495
  key: __expectString(output.key),
2516
2496
  value: __expectString(output.value),
2517
2497
  };
2518
2498
  };
2519
- const deserializeAws_restJson1TagList = (output, context) => {
2499
+ const de_TagList = (output, context) => {
2520
2500
  const retVal = (output || [])
2521
2501
  .filter((e) => e != null)
2522
2502
  .map((entry) => {
2523
2503
  if (entry === null) {
2524
2504
  return null;
2525
2505
  }
2526
- return deserializeAws_restJson1Tag(entry, context);
2506
+ return de_Tag(entry, context);
2527
2507
  });
2528
2508
  return retVal;
2529
2509
  };