@aws-sdk/client-ram 3.315.0 → 3.316.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.
- package/README.md +76 -5
- package/dist-cjs/RAM.js +47 -350
- package/dist-cjs/commands/CreatePermissionCommand.js +45 -0
- package/dist-cjs/commands/CreatePermissionVersionCommand.js +45 -0
- package/dist-cjs/commands/DeletePermissionCommand.js +45 -0
- package/dist-cjs/commands/DeletePermissionVersionCommand.js +45 -0
- package/dist-cjs/commands/ListPermissionAssociationsCommand.js +45 -0
- package/dist-cjs/commands/ListReplacePermissionAssociationsWorkCommand.js +45 -0
- package/dist-cjs/commands/PromotePermissionCreatedFromPolicyCommand.js +45 -0
- package/dist-cjs/commands/ReplacePermissionAssociationsCommand.js +45 -0
- package/dist-cjs/commands/SetDefaultPermissionVersionCommand.js +45 -0
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +104 -1
- package/dist-cjs/pagination/ListPermissionAssociationsPaginator.js +29 -0
- package/dist-cjs/pagination/ListReplacePermissionAssociationsWorkPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +976 -129
- package/dist-es/RAM.js +47 -350
- package/dist-es/commands/CreatePermissionCommand.js +41 -0
- package/dist-es/commands/CreatePermissionVersionCommand.js +41 -0
- package/dist-es/commands/DeletePermissionCommand.js +41 -0
- package/dist-es/commands/DeletePermissionVersionCommand.js +41 -0
- package/dist-es/commands/ListPermissionAssociationsCommand.js +41 -0
- package/dist-es/commands/ListReplacePermissionAssociationsWorkCommand.js +41 -0
- package/dist-es/commands/PromotePermissionCreatedFromPolicyCommand.js +41 -0
- package/dist-es/commands/ReplacePermissionAssociationsCommand.js +41 -0
- package/dist-es/commands/SetDefaultPermissionVersionCommand.js +41 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +97 -0
- package/dist-es/pagination/ListPermissionAssociationsPaginator.js +25 -0
- package/dist-es/pagination/ListReplacePermissionAssociationsWorkPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +949 -121
- package/dist-types/RAM.d.ts +114 -113
- package/dist-types/RAMClient.d.ts +15 -7
- package/dist-types/commands/AcceptResourceShareInvitationCommand.d.ts +16 -12
- package/dist-types/commands/AssociateResourceShareCommand.d.ts +19 -14
- package/dist-types/commands/AssociateResourceSharePermissionCommand.d.ts +9 -7
- package/dist-types/commands/CreatePermissionCommand.d.ts +109 -0
- package/dist-types/commands/CreatePermissionVersionCommand.d.ts +106 -0
- package/dist-types/commands/CreateResourceShareCommand.d.ts +19 -13
- package/dist-types/commands/DeletePermissionCommand.d.ts +91 -0
- package/dist-types/commands/DeletePermissionVersionCommand.d.ts +96 -0
- package/dist-types/commands/DeleteResourceShareCommand.d.ts +19 -14
- package/dist-types/commands/DisassociateResourceShareCommand.d.ts +19 -13
- package/dist-types/commands/DisassociateResourceSharePermissionCommand.d.ts +14 -11
- package/dist-types/commands/EnableSharingWithAwsOrganizationCommand.d.ts +14 -11
- package/dist-types/commands/GetPermissionCommand.d.ts +9 -7
- package/dist-types/commands/GetResourcePoliciesCommand.d.ts +10 -6
- package/dist-types/commands/GetResourceShareAssociationsCommand.d.ts +13 -8
- package/dist-types/commands/GetResourceShareInvitationsCommand.d.ts +14 -8
- package/dist-types/commands/GetResourceSharesCommand.d.ts +11 -6
- package/dist-types/commands/ListPendingInvitationResourcesCommand.d.ts +15 -9
- package/dist-types/commands/ListPermissionAssociationsCommand.d.ts +91 -0
- package/dist-types/commands/ListPermissionVersionsCommand.d.ts +11 -7
- package/dist-types/commands/ListPermissionsCommand.d.ts +9 -5
- package/dist-types/commands/ListPrincipalsCommand.d.ts +10 -6
- package/dist-types/commands/ListReplacePermissionAssociationsWorkCommand.d.ts +84 -0
- package/dist-types/commands/ListResourceSharePermissionsCommand.d.ts +11 -7
- package/dist-types/commands/ListResourceTypesCommand.d.ts +7 -4
- package/dist-types/commands/ListResourcesCommand.d.ts +11 -7
- package/dist-types/commands/PromotePermissionCreatedFromPolicyCommand.d.ts +119 -0
- package/dist-types/commands/PromoteResourceShareCreatedFromPolicyCommand.d.ts +34 -14
- package/dist-types/commands/RejectResourceShareInvitationCommand.d.ts +16 -12
- package/dist-types/commands/ReplacePermissionAssociationsCommand.d.ts +108 -0
- package/dist-types/commands/SetDefaultPermissionVersionCommand.d.ts +92 -0
- package/dist-types/commands/TagResourceCommand.d.ts +17 -11
- package/dist-types/commands/UntagResourceCommand.d.ts +14 -5
- package/dist-types/commands/UpdateResourceShareCommand.d.ts +13 -11
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +1286 -195
- package/dist-types/pagination/ListPermissionAssociationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListReplacePermissionAssociationsWorkPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
- package/dist-types/ts3.4/RAM.d.ts +167 -1
- package/dist-types/ts3.4/RAMClient.d.ts +54 -0
- package/dist-types/ts3.4/commands/CreatePermissionCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/CreatePermissionVersionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeletePermissionCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeletePermissionVersionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListPermissionAssociationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListReplacePermissionAssociationsWorkCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/PromotePermissionCreatedFromPolicyCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ReplacePermissionAssociationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/SetDefaultPermissionVersionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +234 -19
- package/dist-types/ts3.4/pagination/ListPermissionAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListReplacePermissionAssociationsWorkPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
2
|
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
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";
|
|
3
|
+
import { IdempotentParameterMismatchException, InvalidClientTokenException, InvalidMaxResultsException, InvalidNextTokenException, InvalidParameterException, InvalidPolicyException, InvalidResourceTypeException, InvalidStateTransitionException, MalformedArnException, MalformedPolicyTemplateException, MissingRequiredParameterException, OperationNotPermittedException, PermissionAlreadyExistsException, PermissionLimitExceededException, PermissionVersionsLimitExceededException, ResourceArnNotFoundException, ResourceShareInvitationAlreadyAcceptedException, ResourceShareInvitationAlreadyRejectedException, ResourceShareInvitationArnNotFoundException, ResourceShareInvitationExpiredException, ResourceShareLimitExceededException, ServerInternalException, ServiceUnavailableException, TagLimitExceededException, TagPolicyViolationException, ThrottlingException, UnknownResourceException, UnmatchedPolicyPermissionException, } from "../models/models_0";
|
|
4
4
|
import { RAMServiceException as __BaseException } from "../models/RAMServiceException";
|
|
5
5
|
export const se_AcceptResourceShareInvitationCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -70,6 +70,52 @@ export const se_AssociateResourceSharePermissionCommand = async (input, context)
|
|
|
70
70
|
body,
|
|
71
71
|
});
|
|
72
72
|
};
|
|
73
|
+
export const se_CreatePermissionCommand = async (input, context) => {
|
|
74
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
75
|
+
const headers = {
|
|
76
|
+
"content-type": "application/json",
|
|
77
|
+
};
|
|
78
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createpermission";
|
|
79
|
+
let body;
|
|
80
|
+
body = JSON.stringify(take(input, {
|
|
81
|
+
clientToken: [],
|
|
82
|
+
name: [],
|
|
83
|
+
policyTemplate: [],
|
|
84
|
+
resourceType: [],
|
|
85
|
+
tags: (_) => _json(_),
|
|
86
|
+
}));
|
|
87
|
+
return new __HttpRequest({
|
|
88
|
+
protocol,
|
|
89
|
+
hostname,
|
|
90
|
+
port,
|
|
91
|
+
method: "POST",
|
|
92
|
+
headers,
|
|
93
|
+
path: resolvedPath,
|
|
94
|
+
body,
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
export const se_CreatePermissionVersionCommand = async (input, context) => {
|
|
98
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
99
|
+
const headers = {
|
|
100
|
+
"content-type": "application/json",
|
|
101
|
+
};
|
|
102
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createpermissionversion";
|
|
103
|
+
let body;
|
|
104
|
+
body = JSON.stringify(take(input, {
|
|
105
|
+
clientToken: [],
|
|
106
|
+
permissionArn: [],
|
|
107
|
+
policyTemplate: [],
|
|
108
|
+
}));
|
|
109
|
+
return new __HttpRequest({
|
|
110
|
+
protocol,
|
|
111
|
+
hostname,
|
|
112
|
+
port,
|
|
113
|
+
method: "POST",
|
|
114
|
+
headers,
|
|
115
|
+
path: resolvedPath,
|
|
116
|
+
body,
|
|
117
|
+
});
|
|
118
|
+
};
|
|
73
119
|
export const se_CreateResourceShareCommand = async (input, context) => {
|
|
74
120
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
75
121
|
const headers = {
|
|
@@ -96,6 +142,50 @@ export const se_CreateResourceShareCommand = async (input, context) => {
|
|
|
96
142
|
body,
|
|
97
143
|
});
|
|
98
144
|
};
|
|
145
|
+
export const se_DeletePermissionCommand = async (input, context) => {
|
|
146
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
147
|
+
const headers = {};
|
|
148
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deletepermission";
|
|
149
|
+
const query = map({
|
|
150
|
+
permissionArn: [, __expectNonNull(input.permissionArn, `permissionArn`)],
|
|
151
|
+
clientToken: [, input.clientToken],
|
|
152
|
+
});
|
|
153
|
+
let body;
|
|
154
|
+
return new __HttpRequest({
|
|
155
|
+
protocol,
|
|
156
|
+
hostname,
|
|
157
|
+
port,
|
|
158
|
+
method: "DELETE",
|
|
159
|
+
headers,
|
|
160
|
+
path: resolvedPath,
|
|
161
|
+
query,
|
|
162
|
+
body,
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
export const se_DeletePermissionVersionCommand = async (input, context) => {
|
|
166
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
167
|
+
const headers = {};
|
|
168
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deletepermissionversion";
|
|
169
|
+
const query = map({
|
|
170
|
+
permissionArn: [, __expectNonNull(input.permissionArn, `permissionArn`)],
|
|
171
|
+
permissionVersion: [
|
|
172
|
+
__expectNonNull(input.permissionVersion, `permissionVersion`) != null,
|
|
173
|
+
() => input.permissionVersion.toString(),
|
|
174
|
+
],
|
|
175
|
+
clientToken: [, input.clientToken],
|
|
176
|
+
});
|
|
177
|
+
let body;
|
|
178
|
+
return new __HttpRequest({
|
|
179
|
+
protocol,
|
|
180
|
+
hostname,
|
|
181
|
+
port,
|
|
182
|
+
method: "DELETE",
|
|
183
|
+
headers,
|
|
184
|
+
path: resolvedPath,
|
|
185
|
+
query,
|
|
186
|
+
body,
|
|
187
|
+
});
|
|
188
|
+
};
|
|
99
189
|
export const se_DeleteResourceShareCommand = async (input, context) => {
|
|
100
190
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
101
191
|
const headers = {};
|
|
@@ -284,6 +374,7 @@ export const se_GetResourceSharesCommand = async (input, context) => {
|
|
|
284
374
|
name: [],
|
|
285
375
|
nextToken: [],
|
|
286
376
|
permissionArn: [],
|
|
377
|
+
permissionVersion: [],
|
|
287
378
|
resourceOwner: [],
|
|
288
379
|
resourceShareArns: (_) => _json(_),
|
|
289
380
|
resourceShareStatus: [],
|
|
@@ -322,6 +413,33 @@ export const se_ListPendingInvitationResourcesCommand = async (input, context) =
|
|
|
322
413
|
body,
|
|
323
414
|
});
|
|
324
415
|
};
|
|
416
|
+
export const se_ListPermissionAssociationsCommand = async (input, context) => {
|
|
417
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
418
|
+
const headers = {
|
|
419
|
+
"content-type": "application/json",
|
|
420
|
+
};
|
|
421
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listpermissionassociations";
|
|
422
|
+
let body;
|
|
423
|
+
body = JSON.stringify(take(input, {
|
|
424
|
+
associationStatus: [],
|
|
425
|
+
defaultVersion: [],
|
|
426
|
+
featureSet: [],
|
|
427
|
+
maxResults: [],
|
|
428
|
+
nextToken: [],
|
|
429
|
+
permissionArn: [],
|
|
430
|
+
permissionVersion: [],
|
|
431
|
+
resourceType: [],
|
|
432
|
+
}));
|
|
433
|
+
return new __HttpRequest({
|
|
434
|
+
protocol,
|
|
435
|
+
hostname,
|
|
436
|
+
port,
|
|
437
|
+
method: "POST",
|
|
438
|
+
headers,
|
|
439
|
+
path: resolvedPath,
|
|
440
|
+
body,
|
|
441
|
+
});
|
|
442
|
+
};
|
|
325
443
|
export const se_ListPermissionsCommand = async (input, context) => {
|
|
326
444
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
327
445
|
const headers = {
|
|
@@ -332,6 +450,7 @@ export const se_ListPermissionsCommand = async (input, context) => {
|
|
|
332
450
|
body = JSON.stringify(take(input, {
|
|
333
451
|
maxResults: [],
|
|
334
452
|
nextToken: [],
|
|
453
|
+
permissionType: [],
|
|
335
454
|
resourceType: [],
|
|
336
455
|
}));
|
|
337
456
|
return new __HttpRequest({
|
|
@@ -392,6 +511,29 @@ export const se_ListPrincipalsCommand = async (input, context) => {
|
|
|
392
511
|
body,
|
|
393
512
|
});
|
|
394
513
|
};
|
|
514
|
+
export const se_ListReplacePermissionAssociationsWorkCommand = async (input, context) => {
|
|
515
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
516
|
+
const headers = {
|
|
517
|
+
"content-type": "application/json",
|
|
518
|
+
};
|
|
519
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listreplacepermissionassociationswork";
|
|
520
|
+
let body;
|
|
521
|
+
body = JSON.stringify(take(input, {
|
|
522
|
+
maxResults: [],
|
|
523
|
+
nextToken: [],
|
|
524
|
+
status: [],
|
|
525
|
+
workIds: (_) => _json(_),
|
|
526
|
+
}));
|
|
527
|
+
return new __HttpRequest({
|
|
528
|
+
protocol,
|
|
529
|
+
hostname,
|
|
530
|
+
port,
|
|
531
|
+
method: "POST",
|
|
532
|
+
headers,
|
|
533
|
+
path: resolvedPath,
|
|
534
|
+
body,
|
|
535
|
+
});
|
|
536
|
+
};
|
|
395
537
|
export const se_ListResourcesCommand = async (input, context) => {
|
|
396
538
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
397
539
|
const headers = {
|
|
@@ -463,6 +605,28 @@ export const se_ListResourceTypesCommand = async (input, context) => {
|
|
|
463
605
|
body,
|
|
464
606
|
});
|
|
465
607
|
};
|
|
608
|
+
export const se_PromotePermissionCreatedFromPolicyCommand = async (input, context) => {
|
|
609
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
610
|
+
const headers = {
|
|
611
|
+
"content-type": "application/json",
|
|
612
|
+
};
|
|
613
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/promotepermissioncreatedfrompolicy";
|
|
614
|
+
let body;
|
|
615
|
+
body = JSON.stringify(take(input, {
|
|
616
|
+
clientToken: [],
|
|
617
|
+
name: [],
|
|
618
|
+
permissionArn: [],
|
|
619
|
+
}));
|
|
620
|
+
return new __HttpRequest({
|
|
621
|
+
protocol,
|
|
622
|
+
hostname,
|
|
623
|
+
port,
|
|
624
|
+
method: "POST",
|
|
625
|
+
headers,
|
|
626
|
+
path: resolvedPath,
|
|
627
|
+
body,
|
|
628
|
+
});
|
|
629
|
+
};
|
|
466
630
|
export const se_PromoteResourceShareCreatedFromPolicyCommand = async (input, context) => {
|
|
467
631
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
468
632
|
const headers = {};
|
|
@@ -503,6 +667,51 @@ export const se_RejectResourceShareInvitationCommand = async (input, context) =>
|
|
|
503
667
|
body,
|
|
504
668
|
});
|
|
505
669
|
};
|
|
670
|
+
export const se_ReplacePermissionAssociationsCommand = async (input, context) => {
|
|
671
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
672
|
+
const headers = {
|
|
673
|
+
"content-type": "application/json",
|
|
674
|
+
};
|
|
675
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/replacepermissionassociations";
|
|
676
|
+
let body;
|
|
677
|
+
body = JSON.stringify(take(input, {
|
|
678
|
+
clientToken: [],
|
|
679
|
+
fromPermissionArn: [],
|
|
680
|
+
fromPermissionVersion: [],
|
|
681
|
+
toPermissionArn: [],
|
|
682
|
+
}));
|
|
683
|
+
return new __HttpRequest({
|
|
684
|
+
protocol,
|
|
685
|
+
hostname,
|
|
686
|
+
port,
|
|
687
|
+
method: "POST",
|
|
688
|
+
headers,
|
|
689
|
+
path: resolvedPath,
|
|
690
|
+
body,
|
|
691
|
+
});
|
|
692
|
+
};
|
|
693
|
+
export const se_SetDefaultPermissionVersionCommand = async (input, context) => {
|
|
694
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
695
|
+
const headers = {
|
|
696
|
+
"content-type": "application/json",
|
|
697
|
+
};
|
|
698
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/setdefaultpermissionversion";
|
|
699
|
+
let body;
|
|
700
|
+
body = JSON.stringify(take(input, {
|
|
701
|
+
clientToken: [],
|
|
702
|
+
permissionArn: [],
|
|
703
|
+
permissionVersion: [],
|
|
704
|
+
}));
|
|
705
|
+
return new __HttpRequest({
|
|
706
|
+
protocol,
|
|
707
|
+
hostname,
|
|
708
|
+
port,
|
|
709
|
+
method: "POST",
|
|
710
|
+
headers,
|
|
711
|
+
path: resolvedPath,
|
|
712
|
+
body,
|
|
713
|
+
});
|
|
714
|
+
};
|
|
506
715
|
export const se_TagResourceCommand = async (input, context) => {
|
|
507
716
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
508
717
|
const headers = {
|
|
@@ -511,6 +720,7 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
511
720
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tagresource";
|
|
512
721
|
let body;
|
|
513
722
|
body = JSON.stringify(take(input, {
|
|
723
|
+
resourceArn: [],
|
|
514
724
|
resourceShareArn: [],
|
|
515
725
|
tags: (_) => _json(_),
|
|
516
726
|
}));
|
|
@@ -532,6 +742,7 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
532
742
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/untagresource";
|
|
533
743
|
let body;
|
|
534
744
|
body = JSON.stringify(take(input, {
|
|
745
|
+
resourceArn: [],
|
|
535
746
|
resourceShareArn: [],
|
|
536
747
|
tagKeys: (_) => _json(_),
|
|
537
748
|
}));
|
|
@@ -745,9 +956,9 @@ const de_AssociateResourceSharePermissionCommandError = async (output, context)
|
|
|
745
956
|
});
|
|
746
957
|
}
|
|
747
958
|
};
|
|
748
|
-
export const
|
|
959
|
+
export const de_CreatePermissionCommand = async (output, context) => {
|
|
749
960
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
750
|
-
return
|
|
961
|
+
return de_CreatePermissionCommandError(output, context);
|
|
751
962
|
}
|
|
752
963
|
const contents = map({
|
|
753
964
|
$metadata: deserializeMetadata(output),
|
|
@@ -755,12 +966,12 @@ export const de_CreateResourceShareCommand = async (output, context) => {
|
|
|
755
966
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
756
967
|
const doc = take(data, {
|
|
757
968
|
clientToken: __expectString,
|
|
758
|
-
|
|
969
|
+
permission: (_) => de_ResourceSharePermissionSummary(_, context),
|
|
759
970
|
});
|
|
760
971
|
Object.assign(contents, doc);
|
|
761
972
|
return contents;
|
|
762
973
|
};
|
|
763
|
-
const
|
|
974
|
+
const de_CreatePermissionCommandError = async (output, context) => {
|
|
764
975
|
const parsedOutput = {
|
|
765
976
|
...output,
|
|
766
977
|
body: await parseErrorBody(output.body, context),
|
|
@@ -776,30 +987,27 @@ const de_CreateResourceShareCommandError = async (output, context) => {
|
|
|
776
987
|
case "InvalidParameterException":
|
|
777
988
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
778
989
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
779
|
-
case "
|
|
780
|
-
case "com.amazonaws.ram#
|
|
781
|
-
throw await
|
|
782
|
-
case "
|
|
783
|
-
case "com.amazonaws.ram#
|
|
784
|
-
throw await
|
|
990
|
+
case "InvalidPolicyException":
|
|
991
|
+
case "com.amazonaws.ram#InvalidPolicyException":
|
|
992
|
+
throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
|
|
993
|
+
case "MalformedPolicyTemplateException":
|
|
994
|
+
case "com.amazonaws.ram#MalformedPolicyTemplateException":
|
|
995
|
+
throw await de_MalformedPolicyTemplateExceptionRes(parsedOutput, context);
|
|
785
996
|
case "OperationNotPermittedException":
|
|
786
997
|
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
787
998
|
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
788
|
-
case "
|
|
789
|
-
case "com.amazonaws.ram#
|
|
790
|
-
throw await
|
|
999
|
+
case "PermissionAlreadyExistsException":
|
|
1000
|
+
case "com.amazonaws.ram#PermissionAlreadyExistsException":
|
|
1001
|
+
throw await de_PermissionAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1002
|
+
case "PermissionLimitExceededException":
|
|
1003
|
+
case "com.amazonaws.ram#PermissionLimitExceededException":
|
|
1004
|
+
throw await de_PermissionLimitExceededExceptionRes(parsedOutput, context);
|
|
791
1005
|
case "ServerInternalException":
|
|
792
1006
|
case "com.amazonaws.ram#ServerInternalException":
|
|
793
1007
|
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
794
1008
|
case "ServiceUnavailableException":
|
|
795
1009
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
796
1010
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
797
|
-
case "TagPolicyViolationException":
|
|
798
|
-
case "com.amazonaws.ram#TagPolicyViolationException":
|
|
799
|
-
throw await de_TagPolicyViolationExceptionRes(parsedOutput, context);
|
|
800
|
-
case "UnknownResourceException":
|
|
801
|
-
case "com.amazonaws.ram#UnknownResourceException":
|
|
802
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
803
1011
|
default:
|
|
804
1012
|
const parsedBody = parsedOutput.body;
|
|
805
1013
|
return throwDefaultError({
|
|
@@ -809,9 +1017,9 @@ const de_CreateResourceShareCommandError = async (output, context) => {
|
|
|
809
1017
|
});
|
|
810
1018
|
}
|
|
811
1019
|
};
|
|
812
|
-
export const
|
|
1020
|
+
export const de_CreatePermissionVersionCommand = async (output, context) => {
|
|
813
1021
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
814
|
-
return
|
|
1022
|
+
return de_CreatePermissionVersionCommandError(output, context);
|
|
815
1023
|
}
|
|
816
1024
|
const contents = map({
|
|
817
1025
|
$metadata: deserializeMetadata(output),
|
|
@@ -819,12 +1027,12 @@ export const de_DeleteResourceShareCommand = async (output, context) => {
|
|
|
819
1027
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
820
1028
|
const doc = take(data, {
|
|
821
1029
|
clientToken: __expectString,
|
|
822
|
-
|
|
1030
|
+
permission: (_) => de_ResourceSharePermissionDetail(_, context),
|
|
823
1031
|
});
|
|
824
1032
|
Object.assign(contents, doc);
|
|
825
1033
|
return contents;
|
|
826
1034
|
};
|
|
827
|
-
const
|
|
1035
|
+
const de_CreatePermissionVersionCommandError = async (output, context) => {
|
|
828
1036
|
const parsedOutput = {
|
|
829
1037
|
...output,
|
|
830
1038
|
body: await parseErrorBody(output.body, context),
|
|
@@ -840,15 +1048,18 @@ const de_DeleteResourceShareCommandError = async (output, context) => {
|
|
|
840
1048
|
case "InvalidParameterException":
|
|
841
1049
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
842
1050
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
843
|
-
case "
|
|
844
|
-
case "com.amazonaws.ram#
|
|
845
|
-
throw await
|
|
1051
|
+
case "InvalidPolicyException":
|
|
1052
|
+
case "com.amazonaws.ram#InvalidPolicyException":
|
|
1053
|
+
throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
|
|
846
1054
|
case "MalformedArnException":
|
|
847
1055
|
case "com.amazonaws.ram#MalformedArnException":
|
|
848
1056
|
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
849
|
-
case "
|
|
850
|
-
case "com.amazonaws.ram#
|
|
851
|
-
throw await
|
|
1057
|
+
case "MalformedPolicyTemplateException":
|
|
1058
|
+
case "com.amazonaws.ram#MalformedPolicyTemplateException":
|
|
1059
|
+
throw await de_MalformedPolicyTemplateExceptionRes(parsedOutput, context);
|
|
1060
|
+
case "PermissionVersionsLimitExceededException":
|
|
1061
|
+
case "com.amazonaws.ram#PermissionVersionsLimitExceededException":
|
|
1062
|
+
throw await de_PermissionVersionsLimitExceededExceptionRes(parsedOutput, context);
|
|
852
1063
|
case "ServerInternalException":
|
|
853
1064
|
case "com.amazonaws.ram#ServerInternalException":
|
|
854
1065
|
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
@@ -867,9 +1078,9 @@ const de_DeleteResourceShareCommandError = async (output, context) => {
|
|
|
867
1078
|
});
|
|
868
1079
|
}
|
|
869
1080
|
};
|
|
870
|
-
export const
|
|
1081
|
+
export const de_CreateResourceShareCommand = async (output, context) => {
|
|
871
1082
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
872
|
-
return
|
|
1083
|
+
return de_CreateResourceShareCommandError(output, context);
|
|
873
1084
|
}
|
|
874
1085
|
const contents = map({
|
|
875
1086
|
$metadata: deserializeMetadata(output),
|
|
@@ -877,12 +1088,12 @@ export const de_DisassociateResourceShareCommand = async (output, context) => {
|
|
|
877
1088
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
878
1089
|
const doc = take(data, {
|
|
879
1090
|
clientToken: __expectString,
|
|
880
|
-
|
|
1091
|
+
resourceShare: (_) => de_ResourceShare(_, context),
|
|
881
1092
|
});
|
|
882
1093
|
Object.assign(contents, doc);
|
|
883
1094
|
return contents;
|
|
884
1095
|
};
|
|
885
|
-
const
|
|
1096
|
+
const de_CreateResourceShareCommandError = async (output, context) => {
|
|
886
1097
|
const parsedOutput = {
|
|
887
1098
|
...output,
|
|
888
1099
|
body: await parseErrorBody(output.body, context),
|
|
@@ -916,6 +1127,9 @@ const de_DisassociateResourceShareCommandError = async (output, context) => {
|
|
|
916
1127
|
case "ServiceUnavailableException":
|
|
917
1128
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
918
1129
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1130
|
+
case "TagPolicyViolationException":
|
|
1131
|
+
case "com.amazonaws.ram#TagPolicyViolationException":
|
|
1132
|
+
throw await de_TagPolicyViolationExceptionRes(parsedOutput, context);
|
|
919
1133
|
case "UnknownResourceException":
|
|
920
1134
|
case "com.amazonaws.ram#UnknownResourceException":
|
|
921
1135
|
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
@@ -928,9 +1142,9 @@ const de_DisassociateResourceShareCommandError = async (output, context) => {
|
|
|
928
1142
|
});
|
|
929
1143
|
}
|
|
930
1144
|
};
|
|
931
|
-
export const
|
|
1145
|
+
export const de_DeletePermissionCommand = async (output, context) => {
|
|
932
1146
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
933
|
-
return
|
|
1147
|
+
return de_DeletePermissionCommandError(output, context);
|
|
934
1148
|
}
|
|
935
1149
|
const contents = map({
|
|
936
1150
|
$metadata: deserializeMetadata(output),
|
|
@@ -938,27 +1152,25 @@ export const de_DisassociateResourceSharePermissionCommand = async (output, cont
|
|
|
938
1152
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
939
1153
|
const doc = take(data, {
|
|
940
1154
|
clientToken: __expectString,
|
|
1155
|
+
permissionStatus: __expectString,
|
|
941
1156
|
returnValue: __expectBoolean,
|
|
942
1157
|
});
|
|
943
1158
|
Object.assign(contents, doc);
|
|
944
1159
|
return contents;
|
|
945
1160
|
};
|
|
946
|
-
const
|
|
1161
|
+
const de_DeletePermissionCommandError = async (output, context) => {
|
|
947
1162
|
const parsedOutput = {
|
|
948
1163
|
...output,
|
|
949
1164
|
body: await parseErrorBody(output.body, context),
|
|
950
1165
|
};
|
|
951
1166
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
952
1167
|
switch (errorCode) {
|
|
1168
|
+
case "IdempotentParameterMismatchException":
|
|
1169
|
+
case "com.amazonaws.ram#IdempotentParameterMismatchException":
|
|
1170
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
953
1171
|
case "InvalidClientTokenException":
|
|
954
1172
|
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
955
1173
|
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
956
|
-
case "InvalidParameterException":
|
|
957
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
958
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
959
|
-
case "InvalidStateTransitionException":
|
|
960
|
-
case "com.amazonaws.ram#InvalidStateTransitionException":
|
|
961
|
-
throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
|
|
962
1174
|
case "MalformedArnException":
|
|
963
1175
|
case "com.amazonaws.ram#MalformedArnException":
|
|
964
1176
|
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
@@ -983,27 +1195,41 @@ const de_DisassociateResourceSharePermissionCommandError = async (output, contex
|
|
|
983
1195
|
});
|
|
984
1196
|
}
|
|
985
1197
|
};
|
|
986
|
-
export const
|
|
1198
|
+
export const de_DeletePermissionVersionCommand = async (output, context) => {
|
|
987
1199
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
988
|
-
return
|
|
1200
|
+
return de_DeletePermissionVersionCommandError(output, context);
|
|
989
1201
|
}
|
|
990
1202
|
const contents = map({
|
|
991
1203
|
$metadata: deserializeMetadata(output),
|
|
992
1204
|
});
|
|
993
1205
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
994
1206
|
const doc = take(data, {
|
|
1207
|
+
clientToken: __expectString,
|
|
1208
|
+
permissionStatus: __expectString,
|
|
995
1209
|
returnValue: __expectBoolean,
|
|
996
1210
|
});
|
|
997
1211
|
Object.assign(contents, doc);
|
|
998
1212
|
return contents;
|
|
999
1213
|
};
|
|
1000
|
-
const
|
|
1214
|
+
const de_DeletePermissionVersionCommandError = async (output, context) => {
|
|
1001
1215
|
const parsedOutput = {
|
|
1002
1216
|
...output,
|
|
1003
1217
|
body: await parseErrorBody(output.body, context),
|
|
1004
1218
|
};
|
|
1005
1219
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1006
1220
|
switch (errorCode) {
|
|
1221
|
+
case "IdempotentParameterMismatchException":
|
|
1222
|
+
case "com.amazonaws.ram#IdempotentParameterMismatchException":
|
|
1223
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1224
|
+
case "InvalidClientTokenException":
|
|
1225
|
+
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
1226
|
+
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
1227
|
+
case "InvalidParameterException":
|
|
1228
|
+
case "com.amazonaws.ram#InvalidParameterException":
|
|
1229
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1230
|
+
case "MalformedArnException":
|
|
1231
|
+
case "com.amazonaws.ram#MalformedArnException":
|
|
1232
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1007
1233
|
case "OperationNotPermittedException":
|
|
1008
1234
|
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1009
1235
|
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
@@ -1013,6 +1239,9 @@ const de_EnableSharingWithAwsOrganizationCommandError = async (output, context)
|
|
|
1013
1239
|
case "ServiceUnavailableException":
|
|
1014
1240
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1015
1241
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1242
|
+
case "UnknownResourceException":
|
|
1243
|
+
case "com.amazonaws.ram#UnknownResourceException":
|
|
1244
|
+
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1016
1245
|
default:
|
|
1017
1246
|
const parsedBody = parsedOutput.body;
|
|
1018
1247
|
return throwDefaultError({
|
|
@@ -1022,16 +1251,229 @@ const de_EnableSharingWithAwsOrganizationCommandError = async (output, context)
|
|
|
1022
1251
|
});
|
|
1023
1252
|
}
|
|
1024
1253
|
};
|
|
1025
|
-
export const
|
|
1254
|
+
export const de_DeleteResourceShareCommand = async (output, context) => {
|
|
1026
1255
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1027
|
-
return
|
|
1256
|
+
return de_DeleteResourceShareCommandError(output, context);
|
|
1028
1257
|
}
|
|
1029
1258
|
const contents = map({
|
|
1030
1259
|
$metadata: deserializeMetadata(output),
|
|
1031
1260
|
});
|
|
1032
1261
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1033
1262
|
const doc = take(data, {
|
|
1034
|
-
|
|
1263
|
+
clientToken: __expectString,
|
|
1264
|
+
returnValue: __expectBoolean,
|
|
1265
|
+
});
|
|
1266
|
+
Object.assign(contents, doc);
|
|
1267
|
+
return contents;
|
|
1268
|
+
};
|
|
1269
|
+
const de_DeleteResourceShareCommandError = async (output, context) => {
|
|
1270
|
+
const parsedOutput = {
|
|
1271
|
+
...output,
|
|
1272
|
+
body: await parseErrorBody(output.body, context),
|
|
1273
|
+
};
|
|
1274
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1275
|
+
switch (errorCode) {
|
|
1276
|
+
case "IdempotentParameterMismatchException":
|
|
1277
|
+
case "com.amazonaws.ram#IdempotentParameterMismatchException":
|
|
1278
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1279
|
+
case "InvalidClientTokenException":
|
|
1280
|
+
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
1281
|
+
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
1282
|
+
case "InvalidParameterException":
|
|
1283
|
+
case "com.amazonaws.ram#InvalidParameterException":
|
|
1284
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1285
|
+
case "InvalidStateTransitionException":
|
|
1286
|
+
case "com.amazonaws.ram#InvalidStateTransitionException":
|
|
1287
|
+
throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
|
|
1288
|
+
case "MalformedArnException":
|
|
1289
|
+
case "com.amazonaws.ram#MalformedArnException":
|
|
1290
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1291
|
+
case "OperationNotPermittedException":
|
|
1292
|
+
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1293
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1294
|
+
case "ServerInternalException":
|
|
1295
|
+
case "com.amazonaws.ram#ServerInternalException":
|
|
1296
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1297
|
+
case "ServiceUnavailableException":
|
|
1298
|
+
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1299
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1300
|
+
case "UnknownResourceException":
|
|
1301
|
+
case "com.amazonaws.ram#UnknownResourceException":
|
|
1302
|
+
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1303
|
+
default:
|
|
1304
|
+
const parsedBody = parsedOutput.body;
|
|
1305
|
+
return throwDefaultError({
|
|
1306
|
+
output,
|
|
1307
|
+
parsedBody,
|
|
1308
|
+
errorCode,
|
|
1309
|
+
});
|
|
1310
|
+
}
|
|
1311
|
+
};
|
|
1312
|
+
export const de_DisassociateResourceShareCommand = async (output, context) => {
|
|
1313
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1314
|
+
return de_DisassociateResourceShareCommandError(output, context);
|
|
1315
|
+
}
|
|
1316
|
+
const contents = map({
|
|
1317
|
+
$metadata: deserializeMetadata(output),
|
|
1318
|
+
});
|
|
1319
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1320
|
+
const doc = take(data, {
|
|
1321
|
+
clientToken: __expectString,
|
|
1322
|
+
resourceShareAssociations: (_) => de_ResourceShareAssociationList(_, context),
|
|
1323
|
+
});
|
|
1324
|
+
Object.assign(contents, doc);
|
|
1325
|
+
return contents;
|
|
1326
|
+
};
|
|
1327
|
+
const de_DisassociateResourceShareCommandError = async (output, context) => {
|
|
1328
|
+
const parsedOutput = {
|
|
1329
|
+
...output,
|
|
1330
|
+
body: await parseErrorBody(output.body, context),
|
|
1331
|
+
};
|
|
1332
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1333
|
+
switch (errorCode) {
|
|
1334
|
+
case "IdempotentParameterMismatchException":
|
|
1335
|
+
case "com.amazonaws.ram#IdempotentParameterMismatchException":
|
|
1336
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1337
|
+
case "InvalidClientTokenException":
|
|
1338
|
+
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
1339
|
+
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
1340
|
+
case "InvalidParameterException":
|
|
1341
|
+
case "com.amazonaws.ram#InvalidParameterException":
|
|
1342
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1343
|
+
case "InvalidStateTransitionException":
|
|
1344
|
+
case "com.amazonaws.ram#InvalidStateTransitionException":
|
|
1345
|
+
throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
|
|
1346
|
+
case "MalformedArnException":
|
|
1347
|
+
case "com.amazonaws.ram#MalformedArnException":
|
|
1348
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1349
|
+
case "OperationNotPermittedException":
|
|
1350
|
+
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1351
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1352
|
+
case "ResourceShareLimitExceededException":
|
|
1353
|
+
case "com.amazonaws.ram#ResourceShareLimitExceededException":
|
|
1354
|
+
throw await de_ResourceShareLimitExceededExceptionRes(parsedOutput, context);
|
|
1355
|
+
case "ServerInternalException":
|
|
1356
|
+
case "com.amazonaws.ram#ServerInternalException":
|
|
1357
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1358
|
+
case "ServiceUnavailableException":
|
|
1359
|
+
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1360
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1361
|
+
case "UnknownResourceException":
|
|
1362
|
+
case "com.amazonaws.ram#UnknownResourceException":
|
|
1363
|
+
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1364
|
+
default:
|
|
1365
|
+
const parsedBody = parsedOutput.body;
|
|
1366
|
+
return throwDefaultError({
|
|
1367
|
+
output,
|
|
1368
|
+
parsedBody,
|
|
1369
|
+
errorCode,
|
|
1370
|
+
});
|
|
1371
|
+
}
|
|
1372
|
+
};
|
|
1373
|
+
export const de_DisassociateResourceSharePermissionCommand = async (output, context) => {
|
|
1374
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1375
|
+
return de_DisassociateResourceSharePermissionCommandError(output, context);
|
|
1376
|
+
}
|
|
1377
|
+
const contents = map({
|
|
1378
|
+
$metadata: deserializeMetadata(output),
|
|
1379
|
+
});
|
|
1380
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1381
|
+
const doc = take(data, {
|
|
1382
|
+
clientToken: __expectString,
|
|
1383
|
+
returnValue: __expectBoolean,
|
|
1384
|
+
});
|
|
1385
|
+
Object.assign(contents, doc);
|
|
1386
|
+
return contents;
|
|
1387
|
+
};
|
|
1388
|
+
const de_DisassociateResourceSharePermissionCommandError = async (output, context) => {
|
|
1389
|
+
const parsedOutput = {
|
|
1390
|
+
...output,
|
|
1391
|
+
body: await parseErrorBody(output.body, context),
|
|
1392
|
+
};
|
|
1393
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1394
|
+
switch (errorCode) {
|
|
1395
|
+
case "InvalidClientTokenException":
|
|
1396
|
+
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
1397
|
+
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
1398
|
+
case "InvalidParameterException":
|
|
1399
|
+
case "com.amazonaws.ram#InvalidParameterException":
|
|
1400
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1401
|
+
case "InvalidStateTransitionException":
|
|
1402
|
+
case "com.amazonaws.ram#InvalidStateTransitionException":
|
|
1403
|
+
throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
|
|
1404
|
+
case "MalformedArnException":
|
|
1405
|
+
case "com.amazonaws.ram#MalformedArnException":
|
|
1406
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1407
|
+
case "OperationNotPermittedException":
|
|
1408
|
+
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1409
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1410
|
+
case "ServerInternalException":
|
|
1411
|
+
case "com.amazonaws.ram#ServerInternalException":
|
|
1412
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1413
|
+
case "ServiceUnavailableException":
|
|
1414
|
+
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1415
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1416
|
+
case "UnknownResourceException":
|
|
1417
|
+
case "com.amazonaws.ram#UnknownResourceException":
|
|
1418
|
+
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1419
|
+
default:
|
|
1420
|
+
const parsedBody = parsedOutput.body;
|
|
1421
|
+
return throwDefaultError({
|
|
1422
|
+
output,
|
|
1423
|
+
parsedBody,
|
|
1424
|
+
errorCode,
|
|
1425
|
+
});
|
|
1426
|
+
}
|
|
1427
|
+
};
|
|
1428
|
+
export const de_EnableSharingWithAwsOrganizationCommand = async (output, context) => {
|
|
1429
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1430
|
+
return de_EnableSharingWithAwsOrganizationCommandError(output, context);
|
|
1431
|
+
}
|
|
1432
|
+
const contents = map({
|
|
1433
|
+
$metadata: deserializeMetadata(output),
|
|
1434
|
+
});
|
|
1435
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1436
|
+
const doc = take(data, {
|
|
1437
|
+
returnValue: __expectBoolean,
|
|
1438
|
+
});
|
|
1439
|
+
Object.assign(contents, doc);
|
|
1440
|
+
return contents;
|
|
1441
|
+
};
|
|
1442
|
+
const de_EnableSharingWithAwsOrganizationCommandError = async (output, context) => {
|
|
1443
|
+
const parsedOutput = {
|
|
1444
|
+
...output,
|
|
1445
|
+
body: await parseErrorBody(output.body, context),
|
|
1446
|
+
};
|
|
1447
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1448
|
+
switch (errorCode) {
|
|
1449
|
+
case "OperationNotPermittedException":
|
|
1450
|
+
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1451
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1452
|
+
case "ServerInternalException":
|
|
1453
|
+
case "com.amazonaws.ram#ServerInternalException":
|
|
1454
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1455
|
+
case "ServiceUnavailableException":
|
|
1456
|
+
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1457
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1458
|
+
default:
|
|
1459
|
+
const parsedBody = parsedOutput.body;
|
|
1460
|
+
return throwDefaultError({
|
|
1461
|
+
output,
|
|
1462
|
+
parsedBody,
|
|
1463
|
+
errorCode,
|
|
1464
|
+
});
|
|
1465
|
+
}
|
|
1466
|
+
};
|
|
1467
|
+
export const de_GetPermissionCommand = async (output, context) => {
|
|
1468
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1469
|
+
return de_GetPermissionCommandError(output, context);
|
|
1470
|
+
}
|
|
1471
|
+
const contents = map({
|
|
1472
|
+
$metadata: deserializeMetadata(output),
|
|
1473
|
+
});
|
|
1474
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1475
|
+
const doc = take(data, {
|
|
1476
|
+
permission: (_) => de_ResourceSharePermissionDetail(_, context),
|
|
1035
1477
|
});
|
|
1036
1478
|
Object.assign(contents, doc);
|
|
1037
1479
|
return contents;
|
|
@@ -1333,6 +1775,52 @@ const de_ListPendingInvitationResourcesCommandError = async (output, context) =>
|
|
|
1333
1775
|
});
|
|
1334
1776
|
}
|
|
1335
1777
|
};
|
|
1778
|
+
export const de_ListPermissionAssociationsCommand = async (output, context) => {
|
|
1779
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1780
|
+
return de_ListPermissionAssociationsCommandError(output, context);
|
|
1781
|
+
}
|
|
1782
|
+
const contents = map({
|
|
1783
|
+
$metadata: deserializeMetadata(output),
|
|
1784
|
+
});
|
|
1785
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1786
|
+
const doc = take(data, {
|
|
1787
|
+
nextToken: __expectString,
|
|
1788
|
+
permissions: (_) => de_AssociatedPermissionList(_, context),
|
|
1789
|
+
});
|
|
1790
|
+
Object.assign(contents, doc);
|
|
1791
|
+
return contents;
|
|
1792
|
+
};
|
|
1793
|
+
const de_ListPermissionAssociationsCommandError = async (output, context) => {
|
|
1794
|
+
const parsedOutput = {
|
|
1795
|
+
...output,
|
|
1796
|
+
body: await parseErrorBody(output.body, context),
|
|
1797
|
+
};
|
|
1798
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1799
|
+
switch (errorCode) {
|
|
1800
|
+
case "InvalidNextTokenException":
|
|
1801
|
+
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
1802
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1803
|
+
case "InvalidParameterException":
|
|
1804
|
+
case "com.amazonaws.ram#InvalidParameterException":
|
|
1805
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1806
|
+
case "MalformedArnException":
|
|
1807
|
+
case "com.amazonaws.ram#MalformedArnException":
|
|
1808
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1809
|
+
case "ServerInternalException":
|
|
1810
|
+
case "com.amazonaws.ram#ServerInternalException":
|
|
1811
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1812
|
+
case "ServiceUnavailableException":
|
|
1813
|
+
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1814
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1815
|
+
default:
|
|
1816
|
+
const parsedBody = parsedOutput.body;
|
|
1817
|
+
return throwDefaultError({
|
|
1818
|
+
output,
|
|
1819
|
+
parsedBody,
|
|
1820
|
+
errorCode,
|
|
1821
|
+
});
|
|
1822
|
+
}
|
|
1823
|
+
};
|
|
1336
1824
|
export const de_ListPermissionsCommand = async (output, context) => {
|
|
1337
1825
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1338
1826
|
return de_ListPermissionsCommandError(output, context);
|
|
@@ -1379,9 +1867,205 @@ const de_ListPermissionsCommandError = async (output, context) => {
|
|
|
1379
1867
|
});
|
|
1380
1868
|
}
|
|
1381
1869
|
};
|
|
1382
|
-
export const de_ListPermissionVersionsCommand = async (output, context) => {
|
|
1870
|
+
export const de_ListPermissionVersionsCommand = async (output, context) => {
|
|
1871
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1872
|
+
return de_ListPermissionVersionsCommandError(output, context);
|
|
1873
|
+
}
|
|
1874
|
+
const contents = map({
|
|
1875
|
+
$metadata: deserializeMetadata(output),
|
|
1876
|
+
});
|
|
1877
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1878
|
+
const doc = take(data, {
|
|
1879
|
+
nextToken: __expectString,
|
|
1880
|
+
permissions: (_) => de_ResourceSharePermissionList(_, context),
|
|
1881
|
+
});
|
|
1882
|
+
Object.assign(contents, doc);
|
|
1883
|
+
return contents;
|
|
1884
|
+
};
|
|
1885
|
+
const de_ListPermissionVersionsCommandError = async (output, context) => {
|
|
1886
|
+
const parsedOutput = {
|
|
1887
|
+
...output,
|
|
1888
|
+
body: await parseErrorBody(output.body, context),
|
|
1889
|
+
};
|
|
1890
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1891
|
+
switch (errorCode) {
|
|
1892
|
+
case "InvalidNextTokenException":
|
|
1893
|
+
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
1894
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1895
|
+
case "InvalidParameterException":
|
|
1896
|
+
case "com.amazonaws.ram#InvalidParameterException":
|
|
1897
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1898
|
+
case "MalformedArnException":
|
|
1899
|
+
case "com.amazonaws.ram#MalformedArnException":
|
|
1900
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1901
|
+
case "OperationNotPermittedException":
|
|
1902
|
+
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1903
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1904
|
+
case "ServerInternalException":
|
|
1905
|
+
case "com.amazonaws.ram#ServerInternalException":
|
|
1906
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1907
|
+
case "ServiceUnavailableException":
|
|
1908
|
+
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1909
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1910
|
+
case "UnknownResourceException":
|
|
1911
|
+
case "com.amazonaws.ram#UnknownResourceException":
|
|
1912
|
+
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1913
|
+
default:
|
|
1914
|
+
const parsedBody = parsedOutput.body;
|
|
1915
|
+
return throwDefaultError({
|
|
1916
|
+
output,
|
|
1917
|
+
parsedBody,
|
|
1918
|
+
errorCode,
|
|
1919
|
+
});
|
|
1920
|
+
}
|
|
1921
|
+
};
|
|
1922
|
+
export const de_ListPrincipalsCommand = async (output, context) => {
|
|
1923
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1924
|
+
return de_ListPrincipalsCommandError(output, context);
|
|
1925
|
+
}
|
|
1926
|
+
const contents = map({
|
|
1927
|
+
$metadata: deserializeMetadata(output),
|
|
1928
|
+
});
|
|
1929
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1930
|
+
const doc = take(data, {
|
|
1931
|
+
nextToken: __expectString,
|
|
1932
|
+
principals: (_) => de_PrincipalList(_, context),
|
|
1933
|
+
});
|
|
1934
|
+
Object.assign(contents, doc);
|
|
1935
|
+
return contents;
|
|
1936
|
+
};
|
|
1937
|
+
const de_ListPrincipalsCommandError = async (output, context) => {
|
|
1938
|
+
const parsedOutput = {
|
|
1939
|
+
...output,
|
|
1940
|
+
body: await parseErrorBody(output.body, context),
|
|
1941
|
+
};
|
|
1942
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1943
|
+
switch (errorCode) {
|
|
1944
|
+
case "InvalidNextTokenException":
|
|
1945
|
+
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
1946
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1947
|
+
case "InvalidParameterException":
|
|
1948
|
+
case "com.amazonaws.ram#InvalidParameterException":
|
|
1949
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1950
|
+
case "MalformedArnException":
|
|
1951
|
+
case "com.amazonaws.ram#MalformedArnException":
|
|
1952
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1953
|
+
case "ServerInternalException":
|
|
1954
|
+
case "com.amazonaws.ram#ServerInternalException":
|
|
1955
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1956
|
+
case "ServiceUnavailableException":
|
|
1957
|
+
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1958
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1959
|
+
case "UnknownResourceException":
|
|
1960
|
+
case "com.amazonaws.ram#UnknownResourceException":
|
|
1961
|
+
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1962
|
+
default:
|
|
1963
|
+
const parsedBody = parsedOutput.body;
|
|
1964
|
+
return throwDefaultError({
|
|
1965
|
+
output,
|
|
1966
|
+
parsedBody,
|
|
1967
|
+
errorCode,
|
|
1968
|
+
});
|
|
1969
|
+
}
|
|
1970
|
+
};
|
|
1971
|
+
export const de_ListReplacePermissionAssociationsWorkCommand = async (output, context) => {
|
|
1972
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1973
|
+
return de_ListReplacePermissionAssociationsWorkCommandError(output, context);
|
|
1974
|
+
}
|
|
1975
|
+
const contents = map({
|
|
1976
|
+
$metadata: deserializeMetadata(output),
|
|
1977
|
+
});
|
|
1978
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1979
|
+
const doc = take(data, {
|
|
1980
|
+
nextToken: __expectString,
|
|
1981
|
+
replacePermissionAssociationsWorks: (_) => de_ReplacePermissionAssociationsWorkList(_, context),
|
|
1982
|
+
});
|
|
1983
|
+
Object.assign(contents, doc);
|
|
1984
|
+
return contents;
|
|
1985
|
+
};
|
|
1986
|
+
const de_ListReplacePermissionAssociationsWorkCommandError = async (output, context) => {
|
|
1987
|
+
const parsedOutput = {
|
|
1988
|
+
...output,
|
|
1989
|
+
body: await parseErrorBody(output.body, context),
|
|
1990
|
+
};
|
|
1991
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1992
|
+
switch (errorCode) {
|
|
1993
|
+
case "InvalidNextTokenException":
|
|
1994
|
+
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
1995
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1996
|
+
case "InvalidParameterException":
|
|
1997
|
+
case "com.amazonaws.ram#InvalidParameterException":
|
|
1998
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1999
|
+
case "ServerInternalException":
|
|
2000
|
+
case "com.amazonaws.ram#ServerInternalException":
|
|
2001
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2002
|
+
case "ServiceUnavailableException":
|
|
2003
|
+
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
2004
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2005
|
+
default:
|
|
2006
|
+
const parsedBody = parsedOutput.body;
|
|
2007
|
+
return throwDefaultError({
|
|
2008
|
+
output,
|
|
2009
|
+
parsedBody,
|
|
2010
|
+
errorCode,
|
|
2011
|
+
});
|
|
2012
|
+
}
|
|
2013
|
+
};
|
|
2014
|
+
export const de_ListResourcesCommand = async (output, context) => {
|
|
2015
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2016
|
+
return de_ListResourcesCommandError(output, context);
|
|
2017
|
+
}
|
|
2018
|
+
const contents = map({
|
|
2019
|
+
$metadata: deserializeMetadata(output),
|
|
2020
|
+
});
|
|
2021
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2022
|
+
const doc = take(data, {
|
|
2023
|
+
nextToken: __expectString,
|
|
2024
|
+
resources: (_) => de_ResourceList(_, context),
|
|
2025
|
+
});
|
|
2026
|
+
Object.assign(contents, doc);
|
|
2027
|
+
return contents;
|
|
2028
|
+
};
|
|
2029
|
+
const de_ListResourcesCommandError = async (output, context) => {
|
|
2030
|
+
const parsedOutput = {
|
|
2031
|
+
...output,
|
|
2032
|
+
body: await parseErrorBody(output.body, context),
|
|
2033
|
+
};
|
|
2034
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2035
|
+
switch (errorCode) {
|
|
2036
|
+
case "InvalidNextTokenException":
|
|
2037
|
+
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
2038
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2039
|
+
case "InvalidParameterException":
|
|
2040
|
+
case "com.amazonaws.ram#InvalidParameterException":
|
|
2041
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2042
|
+
case "InvalidResourceTypeException":
|
|
2043
|
+
case "com.amazonaws.ram#InvalidResourceTypeException":
|
|
2044
|
+
throw await de_InvalidResourceTypeExceptionRes(parsedOutput, context);
|
|
2045
|
+
case "MalformedArnException":
|
|
2046
|
+
case "com.amazonaws.ram#MalformedArnException":
|
|
2047
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
2048
|
+
case "ServerInternalException":
|
|
2049
|
+
case "com.amazonaws.ram#ServerInternalException":
|
|
2050
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2051
|
+
case "ServiceUnavailableException":
|
|
2052
|
+
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
2053
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2054
|
+
case "UnknownResourceException":
|
|
2055
|
+
case "com.amazonaws.ram#UnknownResourceException":
|
|
2056
|
+
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
2057
|
+
default:
|
|
2058
|
+
const parsedBody = parsedOutput.body;
|
|
2059
|
+
return throwDefaultError({
|
|
2060
|
+
output,
|
|
2061
|
+
parsedBody,
|
|
2062
|
+
errorCode,
|
|
2063
|
+
});
|
|
2064
|
+
}
|
|
2065
|
+
};
|
|
2066
|
+
export const de_ListResourceSharePermissionsCommand = async (output, context) => {
|
|
1383
2067
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1384
|
-
return
|
|
2068
|
+
return de_ListResourceSharePermissionsCommandError(output, context);
|
|
1385
2069
|
}
|
|
1386
2070
|
const contents = map({
|
|
1387
2071
|
$metadata: deserializeMetadata(output),
|
|
@@ -1394,7 +2078,7 @@ export const de_ListPermissionVersionsCommand = async (output, context) => {
|
|
|
1394
2078
|
Object.assign(contents, doc);
|
|
1395
2079
|
return contents;
|
|
1396
2080
|
};
|
|
1397
|
-
const
|
|
2081
|
+
const de_ListResourceSharePermissionsCommandError = async (output, context) => {
|
|
1398
2082
|
const parsedOutput = {
|
|
1399
2083
|
...output,
|
|
1400
2084
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1431,9 +2115,9 @@ const de_ListPermissionVersionsCommandError = async (output, context) => {
|
|
|
1431
2115
|
});
|
|
1432
2116
|
}
|
|
1433
2117
|
};
|
|
1434
|
-
export const
|
|
2118
|
+
export const de_ListResourceTypesCommand = async (output, context) => {
|
|
1435
2119
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1436
|
-
return
|
|
2120
|
+
return de_ListResourceTypesCommandError(output, context);
|
|
1437
2121
|
}
|
|
1438
2122
|
const contents = map({
|
|
1439
2123
|
$metadata: deserializeMetadata(output),
|
|
@@ -1441,12 +2125,12 @@ export const de_ListPrincipalsCommand = async (output, context) => {
|
|
|
1441
2125
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1442
2126
|
const doc = take(data, {
|
|
1443
2127
|
nextToken: __expectString,
|
|
1444
|
-
|
|
2128
|
+
resourceTypes: _json,
|
|
1445
2129
|
});
|
|
1446
2130
|
Object.assign(contents, doc);
|
|
1447
2131
|
return contents;
|
|
1448
2132
|
};
|
|
1449
|
-
const
|
|
2133
|
+
const de_ListResourceTypesCommandError = async (output, context) => {
|
|
1450
2134
|
const parsedOutput = {
|
|
1451
2135
|
...output,
|
|
1452
2136
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1459,18 +2143,12 @@ const de_ListPrincipalsCommandError = async (output, context) => {
|
|
|
1459
2143
|
case "InvalidParameterException":
|
|
1460
2144
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
1461
2145
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1462
|
-
case "MalformedArnException":
|
|
1463
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
1464
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1465
2146
|
case "ServerInternalException":
|
|
1466
2147
|
case "com.amazonaws.ram#ServerInternalException":
|
|
1467
2148
|
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1468
2149
|
case "ServiceUnavailableException":
|
|
1469
2150
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1470
2151
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1471
|
-
case "UnknownResourceException":
|
|
1472
|
-
case "com.amazonaws.ram#UnknownResourceException":
|
|
1473
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1474
2152
|
default:
|
|
1475
2153
|
const parsedBody = parsedOutput.body;
|
|
1476
2154
|
return throwDefaultError({
|
|
@@ -1480,40 +2158,40 @@ const de_ListPrincipalsCommandError = async (output, context) => {
|
|
|
1480
2158
|
});
|
|
1481
2159
|
}
|
|
1482
2160
|
};
|
|
1483
|
-
export const
|
|
2161
|
+
export const de_PromotePermissionCreatedFromPolicyCommand = async (output, context) => {
|
|
1484
2162
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1485
|
-
return
|
|
2163
|
+
return de_PromotePermissionCreatedFromPolicyCommandError(output, context);
|
|
1486
2164
|
}
|
|
1487
2165
|
const contents = map({
|
|
1488
2166
|
$metadata: deserializeMetadata(output),
|
|
1489
2167
|
});
|
|
1490
2168
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1491
2169
|
const doc = take(data, {
|
|
1492
|
-
|
|
1493
|
-
|
|
2170
|
+
clientToken: __expectString,
|
|
2171
|
+
permission: (_) => de_ResourceSharePermissionSummary(_, context),
|
|
1494
2172
|
});
|
|
1495
2173
|
Object.assign(contents, doc);
|
|
1496
2174
|
return contents;
|
|
1497
2175
|
};
|
|
1498
|
-
const
|
|
2176
|
+
const de_PromotePermissionCreatedFromPolicyCommandError = async (output, context) => {
|
|
1499
2177
|
const parsedOutput = {
|
|
1500
2178
|
...output,
|
|
1501
2179
|
body: await parseErrorBody(output.body, context),
|
|
1502
2180
|
};
|
|
1503
2181
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1504
2182
|
switch (errorCode) {
|
|
1505
|
-
case "InvalidNextTokenException":
|
|
1506
|
-
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
1507
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1508
2183
|
case "InvalidParameterException":
|
|
1509
2184
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
1510
2185
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1511
|
-
case "InvalidResourceTypeException":
|
|
1512
|
-
case "com.amazonaws.ram#InvalidResourceTypeException":
|
|
1513
|
-
throw await de_InvalidResourceTypeExceptionRes(parsedOutput, context);
|
|
1514
2186
|
case "MalformedArnException":
|
|
1515
2187
|
case "com.amazonaws.ram#MalformedArnException":
|
|
1516
2188
|
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
2189
|
+
case "MissingRequiredParameterException":
|
|
2190
|
+
case "com.amazonaws.ram#MissingRequiredParameterException":
|
|
2191
|
+
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
2192
|
+
case "OperationNotPermittedException":
|
|
2193
|
+
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
2194
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1517
2195
|
case "ServerInternalException":
|
|
1518
2196
|
case "com.amazonaws.ram#ServerInternalException":
|
|
1519
2197
|
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
@@ -1532,40 +2210,45 @@ const de_ListResourcesCommandError = async (output, context) => {
|
|
|
1532
2210
|
});
|
|
1533
2211
|
}
|
|
1534
2212
|
};
|
|
1535
|
-
export const
|
|
2213
|
+
export const de_PromoteResourceShareCreatedFromPolicyCommand = async (output, context) => {
|
|
1536
2214
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1537
|
-
return
|
|
2215
|
+
return de_PromoteResourceShareCreatedFromPolicyCommandError(output, context);
|
|
1538
2216
|
}
|
|
1539
2217
|
const contents = map({
|
|
1540
2218
|
$metadata: deserializeMetadata(output),
|
|
1541
2219
|
});
|
|
1542
2220
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1543
2221
|
const doc = take(data, {
|
|
1544
|
-
|
|
1545
|
-
permissions: (_) => de_ResourceSharePermissionList(_, context),
|
|
2222
|
+
returnValue: __expectBoolean,
|
|
1546
2223
|
});
|
|
1547
2224
|
Object.assign(contents, doc);
|
|
1548
2225
|
return contents;
|
|
1549
2226
|
};
|
|
1550
|
-
const
|
|
2227
|
+
const de_PromoteResourceShareCreatedFromPolicyCommandError = async (output, context) => {
|
|
1551
2228
|
const parsedOutput = {
|
|
1552
2229
|
...output,
|
|
1553
2230
|
body: await parseErrorBody(output.body, context),
|
|
1554
2231
|
};
|
|
1555
2232
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1556
2233
|
switch (errorCode) {
|
|
1557
|
-
case "InvalidNextTokenException":
|
|
1558
|
-
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
1559
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1560
2234
|
case "InvalidParameterException":
|
|
1561
2235
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
1562
2236
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2237
|
+
case "InvalidStateTransitionException":
|
|
2238
|
+
case "com.amazonaws.ram#InvalidStateTransitionException":
|
|
2239
|
+
throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
|
|
1563
2240
|
case "MalformedArnException":
|
|
1564
2241
|
case "com.amazonaws.ram#MalformedArnException":
|
|
1565
2242
|
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
2243
|
+
case "MissingRequiredParameterException":
|
|
2244
|
+
case "com.amazonaws.ram#MissingRequiredParameterException":
|
|
2245
|
+
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
1566
2246
|
case "OperationNotPermittedException":
|
|
1567
2247
|
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1568
2248
|
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2249
|
+
case "ResourceShareLimitExceededException":
|
|
2250
|
+
case "com.amazonaws.ram#ResourceShareLimitExceededException":
|
|
2251
|
+
throw await de_ResourceShareLimitExceededExceptionRes(parsedOutput, context);
|
|
1569
2252
|
case "ServerInternalException":
|
|
1570
2253
|
case "com.amazonaws.ram#ServerInternalException":
|
|
1571
2254
|
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
@@ -1575,6 +2258,9 @@ const de_ListResourceSharePermissionsCommandError = async (output, context) => {
|
|
|
1575
2258
|
case "UnknownResourceException":
|
|
1576
2259
|
case "com.amazonaws.ram#UnknownResourceException":
|
|
1577
2260
|
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
2261
|
+
case "UnmatchedPolicyPermissionException":
|
|
2262
|
+
case "com.amazonaws.ram#UnmatchedPolicyPermissionException":
|
|
2263
|
+
throw await de_UnmatchedPolicyPermissionExceptionRes(parsedOutput, context);
|
|
1578
2264
|
default:
|
|
1579
2265
|
const parsedBody = parsedOutput.body;
|
|
1580
2266
|
return throwDefaultError({
|
|
@@ -1584,34 +2270,52 @@ const de_ListResourceSharePermissionsCommandError = async (output, context) => {
|
|
|
1584
2270
|
});
|
|
1585
2271
|
}
|
|
1586
2272
|
};
|
|
1587
|
-
export const
|
|
2273
|
+
export const de_RejectResourceShareInvitationCommand = async (output, context) => {
|
|
1588
2274
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1589
|
-
return
|
|
2275
|
+
return de_RejectResourceShareInvitationCommandError(output, context);
|
|
1590
2276
|
}
|
|
1591
2277
|
const contents = map({
|
|
1592
2278
|
$metadata: deserializeMetadata(output),
|
|
1593
2279
|
});
|
|
1594
2280
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1595
2281
|
const doc = take(data, {
|
|
1596
|
-
|
|
1597
|
-
|
|
2282
|
+
clientToken: __expectString,
|
|
2283
|
+
resourceShareInvitation: (_) => de_ResourceShareInvitation(_, context),
|
|
1598
2284
|
});
|
|
1599
2285
|
Object.assign(contents, doc);
|
|
1600
2286
|
return contents;
|
|
1601
2287
|
};
|
|
1602
|
-
const
|
|
2288
|
+
const de_RejectResourceShareInvitationCommandError = async (output, context) => {
|
|
1603
2289
|
const parsedOutput = {
|
|
1604
2290
|
...output,
|
|
1605
2291
|
body: await parseErrorBody(output.body, context),
|
|
1606
2292
|
};
|
|
1607
2293
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1608
2294
|
switch (errorCode) {
|
|
1609
|
-
case "
|
|
1610
|
-
case "com.amazonaws.ram#
|
|
1611
|
-
throw await
|
|
1612
|
-
case "
|
|
1613
|
-
case "com.amazonaws.ram#
|
|
1614
|
-
throw await
|
|
2295
|
+
case "IdempotentParameterMismatchException":
|
|
2296
|
+
case "com.amazonaws.ram#IdempotentParameterMismatchException":
|
|
2297
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
2298
|
+
case "InvalidClientTokenException":
|
|
2299
|
+
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
2300
|
+
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
2301
|
+
case "MalformedArnException":
|
|
2302
|
+
case "com.amazonaws.ram#MalformedArnException":
|
|
2303
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
2304
|
+
case "OperationNotPermittedException":
|
|
2305
|
+
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
2306
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2307
|
+
case "ResourceShareInvitationAlreadyAcceptedException":
|
|
2308
|
+
case "com.amazonaws.ram#ResourceShareInvitationAlreadyAcceptedException":
|
|
2309
|
+
throw await de_ResourceShareInvitationAlreadyAcceptedExceptionRes(parsedOutput, context);
|
|
2310
|
+
case "ResourceShareInvitationAlreadyRejectedException":
|
|
2311
|
+
case "com.amazonaws.ram#ResourceShareInvitationAlreadyRejectedException":
|
|
2312
|
+
throw await de_ResourceShareInvitationAlreadyRejectedExceptionRes(parsedOutput, context);
|
|
2313
|
+
case "ResourceShareInvitationArnNotFoundException":
|
|
2314
|
+
case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException":
|
|
2315
|
+
throw await de_ResourceShareInvitationArnNotFoundExceptionRes(parsedOutput, context);
|
|
2316
|
+
case "ResourceShareInvitationExpiredException":
|
|
2317
|
+
case "com.amazonaws.ram#ResourceShareInvitationExpiredException":
|
|
2318
|
+
throw await de_ResourceShareInvitationExpiredExceptionRes(parsedOutput, context);
|
|
1615
2319
|
case "ServerInternalException":
|
|
1616
2320
|
case "com.amazonaws.ram#ServerInternalException":
|
|
1617
2321
|
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
@@ -1627,42 +2331,43 @@ const de_ListResourceTypesCommandError = async (output, context) => {
|
|
|
1627
2331
|
});
|
|
1628
2332
|
}
|
|
1629
2333
|
};
|
|
1630
|
-
export const
|
|
2334
|
+
export const de_ReplacePermissionAssociationsCommand = async (output, context) => {
|
|
1631
2335
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1632
|
-
return
|
|
2336
|
+
return de_ReplacePermissionAssociationsCommandError(output, context);
|
|
1633
2337
|
}
|
|
1634
2338
|
const contents = map({
|
|
1635
2339
|
$metadata: deserializeMetadata(output),
|
|
1636
2340
|
});
|
|
1637
2341
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1638
2342
|
const doc = take(data, {
|
|
1639
|
-
|
|
2343
|
+
clientToken: __expectString,
|
|
2344
|
+
replacePermissionAssociationsWork: (_) => de_ReplacePermissionAssociationsWork(_, context),
|
|
1640
2345
|
});
|
|
1641
2346
|
Object.assign(contents, doc);
|
|
1642
2347
|
return contents;
|
|
1643
2348
|
};
|
|
1644
|
-
const
|
|
2349
|
+
const de_ReplacePermissionAssociationsCommandError = async (output, context) => {
|
|
1645
2350
|
const parsedOutput = {
|
|
1646
2351
|
...output,
|
|
1647
2352
|
body: await parseErrorBody(output.body, context),
|
|
1648
2353
|
};
|
|
1649
2354
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1650
2355
|
switch (errorCode) {
|
|
2356
|
+
case "IdempotentParameterMismatchException":
|
|
2357
|
+
case "com.amazonaws.ram#IdempotentParameterMismatchException":
|
|
2358
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
2359
|
+
case "InvalidClientTokenException":
|
|
2360
|
+
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
2361
|
+
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
1651
2362
|
case "InvalidParameterException":
|
|
1652
2363
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
1653
2364
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1654
2365
|
case "MalformedArnException":
|
|
1655
2366
|
case "com.amazonaws.ram#MalformedArnException":
|
|
1656
2367
|
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1657
|
-
case "MissingRequiredParameterException":
|
|
1658
|
-
case "com.amazonaws.ram#MissingRequiredParameterException":
|
|
1659
|
-
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
1660
2368
|
case "OperationNotPermittedException":
|
|
1661
2369
|
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1662
2370
|
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1663
|
-
case "ResourceShareLimitExceededException":
|
|
1664
|
-
case "com.amazonaws.ram#ResourceShareLimitExceededException":
|
|
1665
|
-
throw await de_ResourceShareLimitExceededExceptionRes(parsedOutput, context);
|
|
1666
2371
|
case "ServerInternalException":
|
|
1667
2372
|
case "com.amazonaws.ram#ServerInternalException":
|
|
1668
2373
|
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
@@ -1681,9 +2386,9 @@ const de_PromoteResourceShareCreatedFromPolicyCommandError = async (output, cont
|
|
|
1681
2386
|
});
|
|
1682
2387
|
}
|
|
1683
2388
|
};
|
|
1684
|
-
export const
|
|
2389
|
+
export const de_SetDefaultPermissionVersionCommand = async (output, context) => {
|
|
1685
2390
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1686
|
-
return
|
|
2391
|
+
return de_SetDefaultPermissionVersionCommandError(output, context);
|
|
1687
2392
|
}
|
|
1688
2393
|
const contents = map({
|
|
1689
2394
|
$metadata: deserializeMetadata(output),
|
|
@@ -1691,12 +2396,12 @@ export const de_RejectResourceShareInvitationCommand = async (output, context) =
|
|
|
1691
2396
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1692
2397
|
const doc = take(data, {
|
|
1693
2398
|
clientToken: __expectString,
|
|
1694
|
-
|
|
2399
|
+
returnValue: __expectBoolean,
|
|
1695
2400
|
});
|
|
1696
2401
|
Object.assign(contents, doc);
|
|
1697
2402
|
return contents;
|
|
1698
2403
|
};
|
|
1699
|
-
const
|
|
2404
|
+
const de_SetDefaultPermissionVersionCommandError = async (output, context) => {
|
|
1700
2405
|
const parsedOutput = {
|
|
1701
2406
|
...output,
|
|
1702
2407
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1709,30 +2414,21 @@ const de_RejectResourceShareInvitationCommandError = async (output, context) =>
|
|
|
1709
2414
|
case "InvalidClientTokenException":
|
|
1710
2415
|
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
1711
2416
|
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
2417
|
+
case "InvalidParameterException":
|
|
2418
|
+
case "com.amazonaws.ram#InvalidParameterException":
|
|
2419
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1712
2420
|
case "MalformedArnException":
|
|
1713
2421
|
case "com.amazonaws.ram#MalformedArnException":
|
|
1714
2422
|
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1715
|
-
case "OperationNotPermittedException":
|
|
1716
|
-
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1717
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1718
|
-
case "ResourceShareInvitationAlreadyAcceptedException":
|
|
1719
|
-
case "com.amazonaws.ram#ResourceShareInvitationAlreadyAcceptedException":
|
|
1720
|
-
throw await de_ResourceShareInvitationAlreadyAcceptedExceptionRes(parsedOutput, context);
|
|
1721
|
-
case "ResourceShareInvitationAlreadyRejectedException":
|
|
1722
|
-
case "com.amazonaws.ram#ResourceShareInvitationAlreadyRejectedException":
|
|
1723
|
-
throw await de_ResourceShareInvitationAlreadyRejectedExceptionRes(parsedOutput, context);
|
|
1724
|
-
case "ResourceShareInvitationArnNotFoundException":
|
|
1725
|
-
case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException":
|
|
1726
|
-
throw await de_ResourceShareInvitationArnNotFoundExceptionRes(parsedOutput, context);
|
|
1727
|
-
case "ResourceShareInvitationExpiredException":
|
|
1728
|
-
case "com.amazonaws.ram#ResourceShareInvitationExpiredException":
|
|
1729
|
-
throw await de_ResourceShareInvitationExpiredExceptionRes(parsedOutput, context);
|
|
1730
2423
|
case "ServerInternalException":
|
|
1731
2424
|
case "com.amazonaws.ram#ServerInternalException":
|
|
1732
2425
|
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1733
2426
|
case "ServiceUnavailableException":
|
|
1734
2427
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1735
2428
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2429
|
+
case "UnknownResourceException":
|
|
2430
|
+
case "com.amazonaws.ram#UnknownResourceException":
|
|
2431
|
+
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1736
2432
|
default:
|
|
1737
2433
|
const parsedBody = parsedOutput.body;
|
|
1738
2434
|
return throwDefaultError({
|
|
@@ -1812,12 +2508,18 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1812
2508
|
case "InvalidParameterException":
|
|
1813
2509
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
1814
2510
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2511
|
+
case "MalformedArnException":
|
|
2512
|
+
case "com.amazonaws.ram#MalformedArnException":
|
|
2513
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1815
2514
|
case "ServerInternalException":
|
|
1816
2515
|
case "com.amazonaws.ram#ServerInternalException":
|
|
1817
2516
|
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1818
2517
|
case "ServiceUnavailableException":
|
|
1819
2518
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1820
2519
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2520
|
+
case "UnknownResourceException":
|
|
2521
|
+
case "com.amazonaws.ram#UnknownResourceException":
|
|
2522
|
+
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1821
2523
|
default:
|
|
1822
2524
|
const parsedBody = parsedOutput.body;
|
|
1823
2525
|
return throwDefaultError({
|
|
@@ -1951,6 +2653,19 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
|
1951
2653
|
});
|
|
1952
2654
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1953
2655
|
};
|
|
2656
|
+
const de_InvalidPolicyExceptionRes = async (parsedOutput, context) => {
|
|
2657
|
+
const contents = map({});
|
|
2658
|
+
const data = parsedOutput.body;
|
|
2659
|
+
const doc = take(data, {
|
|
2660
|
+
message: __expectString,
|
|
2661
|
+
});
|
|
2662
|
+
Object.assign(contents, doc);
|
|
2663
|
+
const exception = new InvalidPolicyException({
|
|
2664
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2665
|
+
...contents,
|
|
2666
|
+
});
|
|
2667
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2668
|
+
};
|
|
1954
2669
|
const de_InvalidResourceTypeExceptionRes = async (parsedOutput, context) => {
|
|
1955
2670
|
const contents = map({});
|
|
1956
2671
|
const data = parsedOutput.body;
|
|
@@ -1990,6 +2705,19 @@ const de_MalformedArnExceptionRes = async (parsedOutput, context) => {
|
|
|
1990
2705
|
});
|
|
1991
2706
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1992
2707
|
};
|
|
2708
|
+
const de_MalformedPolicyTemplateExceptionRes = async (parsedOutput, context) => {
|
|
2709
|
+
const contents = map({});
|
|
2710
|
+
const data = parsedOutput.body;
|
|
2711
|
+
const doc = take(data, {
|
|
2712
|
+
message: __expectString,
|
|
2713
|
+
});
|
|
2714
|
+
Object.assign(contents, doc);
|
|
2715
|
+
const exception = new MalformedPolicyTemplateException({
|
|
2716
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2717
|
+
...contents,
|
|
2718
|
+
});
|
|
2719
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2720
|
+
};
|
|
1993
2721
|
const de_MissingRequiredParameterExceptionRes = async (parsedOutput, context) => {
|
|
1994
2722
|
const contents = map({});
|
|
1995
2723
|
const data = parsedOutput.body;
|
|
@@ -2016,6 +2744,45 @@ const de_OperationNotPermittedExceptionRes = async (parsedOutput, context) => {
|
|
|
2016
2744
|
});
|
|
2017
2745
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2018
2746
|
};
|
|
2747
|
+
const de_PermissionAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
2748
|
+
const contents = map({});
|
|
2749
|
+
const data = parsedOutput.body;
|
|
2750
|
+
const doc = take(data, {
|
|
2751
|
+
message: __expectString,
|
|
2752
|
+
});
|
|
2753
|
+
Object.assign(contents, doc);
|
|
2754
|
+
const exception = new PermissionAlreadyExistsException({
|
|
2755
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2756
|
+
...contents,
|
|
2757
|
+
});
|
|
2758
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2759
|
+
};
|
|
2760
|
+
const de_PermissionLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2761
|
+
const contents = map({});
|
|
2762
|
+
const data = parsedOutput.body;
|
|
2763
|
+
const doc = take(data, {
|
|
2764
|
+
message: __expectString,
|
|
2765
|
+
});
|
|
2766
|
+
Object.assign(contents, doc);
|
|
2767
|
+
const exception = new PermissionLimitExceededException({
|
|
2768
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2769
|
+
...contents,
|
|
2770
|
+
});
|
|
2771
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2772
|
+
};
|
|
2773
|
+
const de_PermissionVersionsLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2774
|
+
const contents = map({});
|
|
2775
|
+
const data = parsedOutput.body;
|
|
2776
|
+
const doc = take(data, {
|
|
2777
|
+
message: __expectString,
|
|
2778
|
+
});
|
|
2779
|
+
Object.assign(contents, doc);
|
|
2780
|
+
const exception = new PermissionVersionsLimitExceededException({
|
|
2781
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2782
|
+
...contents,
|
|
2783
|
+
});
|
|
2784
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2785
|
+
};
|
|
2019
2786
|
const de_ResourceArnNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2020
2787
|
const contents = map({});
|
|
2021
2788
|
const data = parsedOutput.body;
|
|
@@ -2172,6 +2939,39 @@ const de_UnknownResourceExceptionRes = async (parsedOutput, context) => {
|
|
|
2172
2939
|
});
|
|
2173
2940
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2174
2941
|
};
|
|
2942
|
+
const de_UnmatchedPolicyPermissionExceptionRes = async (parsedOutput, context) => {
|
|
2943
|
+
const contents = map({});
|
|
2944
|
+
const data = parsedOutput.body;
|
|
2945
|
+
const doc = take(data, {
|
|
2946
|
+
message: __expectString,
|
|
2947
|
+
});
|
|
2948
|
+
Object.assign(contents, doc);
|
|
2949
|
+
const exception = new UnmatchedPolicyPermissionException({
|
|
2950
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2951
|
+
...contents,
|
|
2952
|
+
});
|
|
2953
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2954
|
+
};
|
|
2955
|
+
const de_AssociatedPermission = (output, context) => {
|
|
2956
|
+
return take(output, {
|
|
2957
|
+
arn: __expectString,
|
|
2958
|
+
defaultVersion: __expectBoolean,
|
|
2959
|
+
featureSet: __expectString,
|
|
2960
|
+
lastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2961
|
+
permissionVersion: __expectString,
|
|
2962
|
+
resourceShareArn: __expectString,
|
|
2963
|
+
resourceType: __expectString,
|
|
2964
|
+
status: __expectString,
|
|
2965
|
+
});
|
|
2966
|
+
};
|
|
2967
|
+
const de_AssociatedPermissionList = (output, context) => {
|
|
2968
|
+
const retVal = (output || [])
|
|
2969
|
+
.filter((e) => e != null)
|
|
2970
|
+
.map((entry) => {
|
|
2971
|
+
return de_AssociatedPermission(entry, context);
|
|
2972
|
+
});
|
|
2973
|
+
return retVal;
|
|
2974
|
+
};
|
|
2175
2975
|
const de_Principal = (output, context) => {
|
|
2176
2976
|
return take(output, {
|
|
2177
2977
|
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
@@ -2189,6 +2989,27 @@ const de_PrincipalList = (output, context) => {
|
|
|
2189
2989
|
});
|
|
2190
2990
|
return retVal;
|
|
2191
2991
|
};
|
|
2992
|
+
const de_ReplacePermissionAssociationsWork = (output, context) => {
|
|
2993
|
+
return take(output, {
|
|
2994
|
+
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2995
|
+
fromPermissionArn: __expectString,
|
|
2996
|
+
fromPermissionVersion: __expectString,
|
|
2997
|
+
id: __expectString,
|
|
2998
|
+
lastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2999
|
+
status: __expectString,
|
|
3000
|
+
statusMessage: __expectString,
|
|
3001
|
+
toPermissionArn: __expectString,
|
|
3002
|
+
toPermissionVersion: __expectString,
|
|
3003
|
+
});
|
|
3004
|
+
};
|
|
3005
|
+
const de_ReplacePermissionAssociationsWorkList = (output, context) => {
|
|
3006
|
+
const retVal = (output || [])
|
|
3007
|
+
.filter((e) => e != null)
|
|
3008
|
+
.map((entry) => {
|
|
3009
|
+
return de_ReplacePermissionAssociationsWork(entry, context);
|
|
3010
|
+
});
|
|
3011
|
+
return retVal;
|
|
3012
|
+
};
|
|
2192
3013
|
const de_Resource = (output, context) => {
|
|
2193
3014
|
return take(output, {
|
|
2194
3015
|
arn: __expectString,
|
|
@@ -2279,11 +3100,15 @@ const de_ResourceSharePermissionDetail = (output, context) => {
|
|
|
2279
3100
|
arn: __expectString,
|
|
2280
3101
|
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2281
3102
|
defaultVersion: __expectBoolean,
|
|
3103
|
+
featureSet: __expectString,
|
|
2282
3104
|
isResourceTypeDefault: __expectBoolean,
|
|
2283
3105
|
lastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2284
3106
|
name: __expectString,
|
|
2285
3107
|
permission: __expectString,
|
|
3108
|
+
permissionType: __expectString,
|
|
2286
3109
|
resourceType: __expectString,
|
|
3110
|
+
status: __expectString,
|
|
3111
|
+
tags: _json,
|
|
2287
3112
|
version: __expectString,
|
|
2288
3113
|
});
|
|
2289
3114
|
};
|
|
@@ -2300,11 +3125,14 @@ const de_ResourceSharePermissionSummary = (output, context) => {
|
|
|
2300
3125
|
arn: __expectString,
|
|
2301
3126
|
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2302
3127
|
defaultVersion: __expectBoolean,
|
|
3128
|
+
featureSet: __expectString,
|
|
2303
3129
|
isResourceTypeDefault: __expectBoolean,
|
|
2304
3130
|
lastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2305
3131
|
name: __expectString,
|
|
3132
|
+
permissionType: __expectString,
|
|
2306
3133
|
resourceType: __expectString,
|
|
2307
3134
|
status: __expectString,
|
|
3135
|
+
tags: _json,
|
|
2308
3136
|
version: __expectString,
|
|
2309
3137
|
});
|
|
2310
3138
|
};
|