@aws-sdk/client-ram 3.490.0 → 3.496.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 (61) hide show
  1. package/dist-cjs/RAM.js +1 -79
  2. package/dist-cjs/RAMClient.js +1 -43
  3. package/dist-cjs/commands/AcceptResourceShareInvitationCommand.js +1 -28
  4. package/dist-cjs/commands/AssociateResourceShareCommand.js +1 -28
  5. package/dist-cjs/commands/AssociateResourceSharePermissionCommand.js +1 -28
  6. package/dist-cjs/commands/CreatePermissionCommand.js +1 -28
  7. package/dist-cjs/commands/CreatePermissionVersionCommand.js +1 -28
  8. package/dist-cjs/commands/CreateResourceShareCommand.js +1 -28
  9. package/dist-cjs/commands/DeletePermissionCommand.js +1 -28
  10. package/dist-cjs/commands/DeletePermissionVersionCommand.js +1 -28
  11. package/dist-cjs/commands/DeleteResourceShareCommand.js +1 -28
  12. package/dist-cjs/commands/DisassociateResourceShareCommand.js +1 -28
  13. package/dist-cjs/commands/DisassociateResourceSharePermissionCommand.js +1 -28
  14. package/dist-cjs/commands/EnableSharingWithAwsOrganizationCommand.js +1 -28
  15. package/dist-cjs/commands/GetPermissionCommand.js +1 -28
  16. package/dist-cjs/commands/GetResourcePoliciesCommand.js +1 -28
  17. package/dist-cjs/commands/GetResourceShareAssociationsCommand.js +1 -28
  18. package/dist-cjs/commands/GetResourceShareInvitationsCommand.js +1 -28
  19. package/dist-cjs/commands/GetResourceSharesCommand.js +1 -28
  20. package/dist-cjs/commands/ListPendingInvitationResourcesCommand.js +1 -28
  21. package/dist-cjs/commands/ListPermissionAssociationsCommand.js +1 -28
  22. package/dist-cjs/commands/ListPermissionVersionsCommand.js +1 -28
  23. package/dist-cjs/commands/ListPermissionsCommand.js +1 -28
  24. package/dist-cjs/commands/ListPrincipalsCommand.js +1 -28
  25. package/dist-cjs/commands/ListReplacePermissionAssociationsWorkCommand.js +1 -28
  26. package/dist-cjs/commands/ListResourceSharePermissionsCommand.js +1 -28
  27. package/dist-cjs/commands/ListResourceTypesCommand.js +1 -28
  28. package/dist-cjs/commands/ListResourcesCommand.js +1 -28
  29. package/dist-cjs/commands/PromotePermissionCreatedFromPolicyCommand.js +1 -28
  30. package/dist-cjs/commands/PromoteResourceShareCreatedFromPolicyCommand.js +1 -28
  31. package/dist-cjs/commands/RejectResourceShareInvitationCommand.js +1 -28
  32. package/dist-cjs/commands/ReplacePermissionAssociationsCommand.js +1 -28
  33. package/dist-cjs/commands/SetDefaultPermissionVersionCommand.js +1 -28
  34. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  35. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  36. package/dist-cjs/commands/UpdateResourceShareCommand.js +1 -28
  37. package/dist-cjs/commands/index.js +1 -37
  38. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  39. package/dist-cjs/extensionConfiguration.js +1 -2
  40. package/dist-cjs/index.js +4541 -11
  41. package/dist-cjs/models/RAMServiceException.js +1 -12
  42. package/dist-cjs/models/index.js +1 -4
  43. package/dist-cjs/models/models_0.js +1 -442
  44. package/dist-cjs/pagination/GetResourcePoliciesPaginator.js +1 -7
  45. package/dist-cjs/pagination/GetResourceShareAssociationsPaginator.js +1 -7
  46. package/dist-cjs/pagination/GetResourceShareInvitationsPaginator.js +1 -7
  47. package/dist-cjs/pagination/GetResourceSharesPaginator.js +1 -7
  48. package/dist-cjs/pagination/Interfaces.js +1 -2
  49. package/dist-cjs/pagination/ListPendingInvitationResourcesPaginator.js +1 -7
  50. package/dist-cjs/pagination/ListPermissionAssociationsPaginator.js +1 -7
  51. package/dist-cjs/pagination/ListPermissionVersionsPaginator.js +1 -7
  52. package/dist-cjs/pagination/ListPermissionsPaginator.js +1 -7
  53. package/dist-cjs/pagination/ListPrincipalsPaginator.js +1 -7
  54. package/dist-cjs/pagination/ListReplacePermissionAssociationsWorkPaginator.js +1 -7
  55. package/dist-cjs/pagination/ListResourceSharePermissionsPaginator.js +1 -7
  56. package/dist-cjs/pagination/ListResourceTypesPaginator.js +1 -7
  57. package/dist-cjs/pagination/ListResourcesPaginator.js +1 -7
  58. package/dist-cjs/pagination/index.js +1 -17
  59. package/dist-cjs/protocols/Aws_restJson1.js +1 -3027
  60. package/dist-cjs/runtimeExtensions.js +1 -22
  61. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,4542 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RAMServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./RAMClient"), exports);
6
- tslib_1.__exportStar(require("./RAM"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var RAMServiceException_1 = require("./models/RAMServiceException");
12
- Object.defineProperty(exports, "RAMServiceException", { enumerable: true, get: function () { return RAMServiceException_1.RAMServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ AcceptResourceShareInvitationCommand: () => AcceptResourceShareInvitationCommand,
25
+ AssociateResourceShareCommand: () => AssociateResourceShareCommand,
26
+ AssociateResourceSharePermissionCommand: () => AssociateResourceSharePermissionCommand,
27
+ CreatePermissionCommand: () => CreatePermissionCommand,
28
+ CreatePermissionVersionCommand: () => CreatePermissionVersionCommand,
29
+ CreateResourceShareCommand: () => CreateResourceShareCommand,
30
+ DeletePermissionCommand: () => DeletePermissionCommand,
31
+ DeletePermissionVersionCommand: () => DeletePermissionVersionCommand,
32
+ DeleteResourceShareCommand: () => DeleteResourceShareCommand,
33
+ DisassociateResourceShareCommand: () => DisassociateResourceShareCommand,
34
+ DisassociateResourceSharePermissionCommand: () => DisassociateResourceSharePermissionCommand,
35
+ EnableSharingWithAwsOrganizationCommand: () => EnableSharingWithAwsOrganizationCommand,
36
+ GetPermissionCommand: () => GetPermissionCommand,
37
+ GetResourcePoliciesCommand: () => GetResourcePoliciesCommand,
38
+ GetResourceShareAssociationsCommand: () => GetResourceShareAssociationsCommand,
39
+ GetResourceShareInvitationsCommand: () => GetResourceShareInvitationsCommand,
40
+ GetResourceSharesCommand: () => GetResourceSharesCommand,
41
+ IdempotentParameterMismatchException: () => IdempotentParameterMismatchException,
42
+ InvalidClientTokenException: () => InvalidClientTokenException,
43
+ InvalidMaxResultsException: () => InvalidMaxResultsException,
44
+ InvalidNextTokenException: () => InvalidNextTokenException,
45
+ InvalidParameterException: () => InvalidParameterException,
46
+ InvalidPolicyException: () => InvalidPolicyException,
47
+ InvalidResourceTypeException: () => InvalidResourceTypeException,
48
+ InvalidStateTransitionException: () => InvalidStateTransitionException,
49
+ ListPendingInvitationResourcesCommand: () => ListPendingInvitationResourcesCommand,
50
+ ListPermissionAssociationsCommand: () => ListPermissionAssociationsCommand,
51
+ ListPermissionVersionsCommand: () => ListPermissionVersionsCommand,
52
+ ListPermissionsCommand: () => ListPermissionsCommand,
53
+ ListPrincipalsCommand: () => ListPrincipalsCommand,
54
+ ListReplacePermissionAssociationsWorkCommand: () => ListReplacePermissionAssociationsWorkCommand,
55
+ ListResourceSharePermissionsCommand: () => ListResourceSharePermissionsCommand,
56
+ ListResourceTypesCommand: () => ListResourceTypesCommand,
57
+ ListResourcesCommand: () => ListResourcesCommand,
58
+ MalformedArnException: () => MalformedArnException,
59
+ MalformedPolicyTemplateException: () => MalformedPolicyTemplateException,
60
+ MissingRequiredParameterException: () => MissingRequiredParameterException,
61
+ OperationNotPermittedException: () => OperationNotPermittedException,
62
+ PermissionAlreadyExistsException: () => PermissionAlreadyExistsException,
63
+ PermissionFeatureSet: () => PermissionFeatureSet,
64
+ PermissionLimitExceededException: () => PermissionLimitExceededException,
65
+ PermissionStatus: () => PermissionStatus,
66
+ PermissionType: () => PermissionType,
67
+ PermissionTypeFilter: () => PermissionTypeFilter,
68
+ PermissionVersionsLimitExceededException: () => PermissionVersionsLimitExceededException,
69
+ PromotePermissionCreatedFromPolicyCommand: () => PromotePermissionCreatedFromPolicyCommand,
70
+ PromoteResourceShareCreatedFromPolicyCommand: () => PromoteResourceShareCreatedFromPolicyCommand,
71
+ RAM: () => RAM,
72
+ RAMClient: () => RAMClient,
73
+ RAMServiceException: () => RAMServiceException,
74
+ RejectResourceShareInvitationCommand: () => RejectResourceShareInvitationCommand,
75
+ ReplacePermissionAssociationsCommand: () => ReplacePermissionAssociationsCommand,
76
+ ReplacePermissionAssociationsWorkStatus: () => ReplacePermissionAssociationsWorkStatus,
77
+ ResourceArnNotFoundException: () => ResourceArnNotFoundException,
78
+ ResourceOwner: () => ResourceOwner,
79
+ ResourceRegionScope: () => ResourceRegionScope,
80
+ ResourceRegionScopeFilter: () => ResourceRegionScopeFilter,
81
+ ResourceShareAssociationStatus: () => ResourceShareAssociationStatus,
82
+ ResourceShareAssociationType: () => ResourceShareAssociationType,
83
+ ResourceShareFeatureSet: () => ResourceShareFeatureSet,
84
+ ResourceShareInvitationAlreadyAcceptedException: () => ResourceShareInvitationAlreadyAcceptedException,
85
+ ResourceShareInvitationAlreadyRejectedException: () => ResourceShareInvitationAlreadyRejectedException,
86
+ ResourceShareInvitationArnNotFoundException: () => ResourceShareInvitationArnNotFoundException,
87
+ ResourceShareInvitationExpiredException: () => ResourceShareInvitationExpiredException,
88
+ ResourceShareInvitationStatus: () => ResourceShareInvitationStatus,
89
+ ResourceShareLimitExceededException: () => ResourceShareLimitExceededException,
90
+ ResourceShareStatus: () => ResourceShareStatus,
91
+ ResourceStatus: () => ResourceStatus,
92
+ ServerInternalException: () => ServerInternalException,
93
+ ServiceUnavailableException: () => ServiceUnavailableException,
94
+ SetDefaultPermissionVersionCommand: () => SetDefaultPermissionVersionCommand,
95
+ TagLimitExceededException: () => TagLimitExceededException,
96
+ TagPolicyViolationException: () => TagPolicyViolationException,
97
+ TagResourceCommand: () => TagResourceCommand,
98
+ ThrottlingException: () => ThrottlingException,
99
+ UnknownResourceException: () => UnknownResourceException,
100
+ UnmatchedPolicyPermissionException: () => UnmatchedPolicyPermissionException,
101
+ UntagResourceCommand: () => UntagResourceCommand,
102
+ UpdateResourceShareCommand: () => UpdateResourceShareCommand,
103
+ __Client: () => import_smithy_client.Client,
104
+ paginateGetResourcePolicies: () => paginateGetResourcePolicies,
105
+ paginateGetResourceShareAssociations: () => paginateGetResourceShareAssociations,
106
+ paginateGetResourceShareInvitations: () => paginateGetResourceShareInvitations,
107
+ paginateGetResourceShares: () => paginateGetResourceShares,
108
+ paginateListPendingInvitationResources: () => paginateListPendingInvitationResources,
109
+ paginateListPermissionAssociations: () => paginateListPermissionAssociations,
110
+ paginateListPermissionVersions: () => paginateListPermissionVersions,
111
+ paginateListPermissions: () => paginateListPermissions,
112
+ paginateListPrincipals: () => paginateListPrincipals,
113
+ paginateListReplacePermissionAssociationsWork: () => paginateListReplacePermissionAssociationsWork,
114
+ paginateListResourceSharePermissions: () => paginateListResourceSharePermissions,
115
+ paginateListResourceTypes: () => paginateListResourceTypes,
116
+ paginateListResources: () => paginateListResources
117
+ });
118
+ module.exports = __toCommonJS(src_exports);
119
+
120
+ // src/RAMClient.ts
121
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
122
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
123
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
124
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
125
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
126
+ var import_config_resolver = require("@smithy/config-resolver");
127
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
128
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
129
+ var import_middleware_retry = require("@smithy/middleware-retry");
130
+
131
+
132
+ // src/endpoint/EndpointParameters.ts
133
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
134
+ return {
135
+ ...options,
136
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
137
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
138
+ defaultSigningName: "ram"
139
+ };
140
+ }, "resolveClientEndpointParameters");
141
+ var commonParams = {
142
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
143
+ Endpoint: { type: "builtInParams", name: "endpoint" },
144
+ Region: { type: "builtInParams", name: "region" },
145
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
146
+ };
147
+
148
+ // src/RAMClient.ts
149
+ var import_runtimeConfig = require("././runtimeConfig");
150
+
151
+ // src/runtimeExtensions.ts
152
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
153
+ var import_protocol_http = require("@smithy/protocol-http");
154
+ var import_smithy_client = require("@smithy/smithy-client");
155
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
156
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
157
+ const extensionConfiguration = {
158
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
159
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
160
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
161
+ };
162
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
163
+ return {
164
+ ...runtimeConfig,
165
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
166
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
167
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
168
+ };
169
+ }, "resolveRuntimeExtensions");
170
+
171
+ // src/RAMClient.ts
172
+ var _RAMClient = class _RAMClient extends import_smithy_client.Client {
173
+ constructor(...[configuration]) {
174
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
175
+ const _config_1 = resolveClientEndpointParameters(_config_0);
176
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
177
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
178
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
179
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
180
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
181
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
182
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
183
+ super(_config_8);
184
+ this.config = _config_8;
185
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
186
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
187
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
188
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
189
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
190
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
191
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
192
+ }
193
+ /**
194
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
195
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
196
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
197
+ */
198
+ destroy() {
199
+ super.destroy();
200
+ }
201
+ };
202
+ __name(_RAMClient, "RAMClient");
203
+ var RAMClient = _RAMClient;
204
+
205
+ // src/RAM.ts
206
+
207
+
208
+ // src/commands/AcceptResourceShareInvitationCommand.ts
209
+
210
+ var import_middleware_serde = require("@smithy/middleware-serde");
211
+
212
+ var import_types = require("@smithy/types");
213
+
214
+ // src/protocols/Aws_restJson1.ts
215
+ var import_core = require("@smithy/core");
216
+
217
+
218
+ // src/models/RAMServiceException.ts
219
+
220
+ var _RAMServiceException = class _RAMServiceException extends import_smithy_client.ServiceException {
221
+ /**
222
+ * @internal
223
+ */
224
+ constructor(options) {
225
+ super(options);
226
+ Object.setPrototypeOf(this, _RAMServiceException.prototype);
227
+ }
228
+ };
229
+ __name(_RAMServiceException, "RAMServiceException");
230
+ var RAMServiceException = _RAMServiceException;
231
+
232
+ // src/models/models_0.ts
233
+ var ResourceShareAssociationType = {
234
+ PRINCIPAL: "PRINCIPAL",
235
+ RESOURCE: "RESOURCE"
236
+ };
237
+ var ResourceShareAssociationStatus = {
238
+ ASSOCIATED: "ASSOCIATED",
239
+ ASSOCIATING: "ASSOCIATING",
240
+ DISASSOCIATED: "DISASSOCIATED",
241
+ DISASSOCIATING: "DISASSOCIATING",
242
+ FAILED: "FAILED"
243
+ };
244
+ var ResourceShareInvitationStatus = {
245
+ ACCEPTED: "ACCEPTED",
246
+ EXPIRED: "EXPIRED",
247
+ PENDING: "PENDING",
248
+ REJECTED: "REJECTED"
249
+ };
250
+ var _IdempotentParameterMismatchException = class _IdempotentParameterMismatchException extends RAMServiceException {
251
+ /**
252
+ * @internal
253
+ */
254
+ constructor(opts) {
255
+ super({
256
+ name: "IdempotentParameterMismatchException",
257
+ $fault: "client",
258
+ ...opts
259
+ });
260
+ this.name = "IdempotentParameterMismatchException";
261
+ this.$fault = "client";
262
+ Object.setPrototypeOf(this, _IdempotentParameterMismatchException.prototype);
263
+ }
264
+ };
265
+ __name(_IdempotentParameterMismatchException, "IdempotentParameterMismatchException");
266
+ var IdempotentParameterMismatchException = _IdempotentParameterMismatchException;
267
+ var _InvalidClientTokenException = class _InvalidClientTokenException extends RAMServiceException {
268
+ /**
269
+ * @internal
270
+ */
271
+ constructor(opts) {
272
+ super({
273
+ name: "InvalidClientTokenException",
274
+ $fault: "client",
275
+ ...opts
276
+ });
277
+ this.name = "InvalidClientTokenException";
278
+ this.$fault = "client";
279
+ Object.setPrototypeOf(this, _InvalidClientTokenException.prototype);
280
+ }
281
+ };
282
+ __name(_InvalidClientTokenException, "InvalidClientTokenException");
283
+ var InvalidClientTokenException = _InvalidClientTokenException;
284
+ var _MalformedArnException = class _MalformedArnException extends RAMServiceException {
285
+ /**
286
+ * @internal
287
+ */
288
+ constructor(opts) {
289
+ super({
290
+ name: "MalformedArnException",
291
+ $fault: "client",
292
+ ...opts
293
+ });
294
+ this.name = "MalformedArnException";
295
+ this.$fault = "client";
296
+ Object.setPrototypeOf(this, _MalformedArnException.prototype);
297
+ }
298
+ };
299
+ __name(_MalformedArnException, "MalformedArnException");
300
+ var MalformedArnException = _MalformedArnException;
301
+ var _OperationNotPermittedException = class _OperationNotPermittedException extends RAMServiceException {
302
+ /**
303
+ * @internal
304
+ */
305
+ constructor(opts) {
306
+ super({
307
+ name: "OperationNotPermittedException",
308
+ $fault: "client",
309
+ ...opts
310
+ });
311
+ this.name = "OperationNotPermittedException";
312
+ this.$fault = "client";
313
+ Object.setPrototypeOf(this, _OperationNotPermittedException.prototype);
314
+ }
315
+ };
316
+ __name(_OperationNotPermittedException, "OperationNotPermittedException");
317
+ var OperationNotPermittedException = _OperationNotPermittedException;
318
+ var _ResourceShareInvitationAlreadyAcceptedException = class _ResourceShareInvitationAlreadyAcceptedException extends RAMServiceException {
319
+ /**
320
+ * @internal
321
+ */
322
+ constructor(opts) {
323
+ super({
324
+ name: "ResourceShareInvitationAlreadyAcceptedException",
325
+ $fault: "client",
326
+ ...opts
327
+ });
328
+ this.name = "ResourceShareInvitationAlreadyAcceptedException";
329
+ this.$fault = "client";
330
+ Object.setPrototypeOf(this, _ResourceShareInvitationAlreadyAcceptedException.prototype);
331
+ }
332
+ };
333
+ __name(_ResourceShareInvitationAlreadyAcceptedException, "ResourceShareInvitationAlreadyAcceptedException");
334
+ var ResourceShareInvitationAlreadyAcceptedException = _ResourceShareInvitationAlreadyAcceptedException;
335
+ var _ResourceShareInvitationAlreadyRejectedException = class _ResourceShareInvitationAlreadyRejectedException extends RAMServiceException {
336
+ /**
337
+ * @internal
338
+ */
339
+ constructor(opts) {
340
+ super({
341
+ name: "ResourceShareInvitationAlreadyRejectedException",
342
+ $fault: "client",
343
+ ...opts
344
+ });
345
+ this.name = "ResourceShareInvitationAlreadyRejectedException";
346
+ this.$fault = "client";
347
+ Object.setPrototypeOf(this, _ResourceShareInvitationAlreadyRejectedException.prototype);
348
+ }
349
+ };
350
+ __name(_ResourceShareInvitationAlreadyRejectedException, "ResourceShareInvitationAlreadyRejectedException");
351
+ var ResourceShareInvitationAlreadyRejectedException = _ResourceShareInvitationAlreadyRejectedException;
352
+ var _ResourceShareInvitationArnNotFoundException = class _ResourceShareInvitationArnNotFoundException extends RAMServiceException {
353
+ /**
354
+ * @internal
355
+ */
356
+ constructor(opts) {
357
+ super({
358
+ name: "ResourceShareInvitationArnNotFoundException",
359
+ $fault: "client",
360
+ ...opts
361
+ });
362
+ this.name = "ResourceShareInvitationArnNotFoundException";
363
+ this.$fault = "client";
364
+ Object.setPrototypeOf(this, _ResourceShareInvitationArnNotFoundException.prototype);
365
+ }
366
+ };
367
+ __name(_ResourceShareInvitationArnNotFoundException, "ResourceShareInvitationArnNotFoundException");
368
+ var ResourceShareInvitationArnNotFoundException = _ResourceShareInvitationArnNotFoundException;
369
+ var _ResourceShareInvitationExpiredException = class _ResourceShareInvitationExpiredException extends RAMServiceException {
370
+ /**
371
+ * @internal
372
+ */
373
+ constructor(opts) {
374
+ super({
375
+ name: "ResourceShareInvitationExpiredException",
376
+ $fault: "client",
377
+ ...opts
378
+ });
379
+ this.name = "ResourceShareInvitationExpiredException";
380
+ this.$fault = "client";
381
+ Object.setPrototypeOf(this, _ResourceShareInvitationExpiredException.prototype);
382
+ }
383
+ };
384
+ __name(_ResourceShareInvitationExpiredException, "ResourceShareInvitationExpiredException");
385
+ var ResourceShareInvitationExpiredException = _ResourceShareInvitationExpiredException;
386
+ var _ServerInternalException = class _ServerInternalException extends RAMServiceException {
387
+ /**
388
+ * @internal
389
+ */
390
+ constructor(opts) {
391
+ super({
392
+ name: "ServerInternalException",
393
+ $fault: "server",
394
+ ...opts
395
+ });
396
+ this.name = "ServerInternalException";
397
+ this.$fault = "server";
398
+ Object.setPrototypeOf(this, _ServerInternalException.prototype);
399
+ }
400
+ };
401
+ __name(_ServerInternalException, "ServerInternalException");
402
+ var ServerInternalException = _ServerInternalException;
403
+ var _ServiceUnavailableException = class _ServiceUnavailableException extends RAMServiceException {
404
+ /**
405
+ * @internal
406
+ */
407
+ constructor(opts) {
408
+ super({
409
+ name: "ServiceUnavailableException",
410
+ $fault: "server",
411
+ ...opts
412
+ });
413
+ this.name = "ServiceUnavailableException";
414
+ this.$fault = "server";
415
+ Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
416
+ }
417
+ };
418
+ __name(_ServiceUnavailableException, "ServiceUnavailableException");
419
+ var ServiceUnavailableException = _ServiceUnavailableException;
420
+ var _InvalidParameterException = class _InvalidParameterException extends RAMServiceException {
421
+ /**
422
+ * @internal
423
+ */
424
+ constructor(opts) {
425
+ super({
426
+ name: "InvalidParameterException",
427
+ $fault: "client",
428
+ ...opts
429
+ });
430
+ this.name = "InvalidParameterException";
431
+ this.$fault = "client";
432
+ Object.setPrototypeOf(this, _InvalidParameterException.prototype);
433
+ }
434
+ };
435
+ __name(_InvalidParameterException, "InvalidParameterException");
436
+ var InvalidParameterException = _InvalidParameterException;
437
+ var _InvalidStateTransitionException = class _InvalidStateTransitionException extends RAMServiceException {
438
+ /**
439
+ * @internal
440
+ */
441
+ constructor(opts) {
442
+ super({
443
+ name: "InvalidStateTransitionException",
444
+ $fault: "client",
445
+ ...opts
446
+ });
447
+ this.name = "InvalidStateTransitionException";
448
+ this.$fault = "client";
449
+ Object.setPrototypeOf(this, _InvalidStateTransitionException.prototype);
450
+ }
451
+ };
452
+ __name(_InvalidStateTransitionException, "InvalidStateTransitionException");
453
+ var InvalidStateTransitionException = _InvalidStateTransitionException;
454
+ var _ResourceShareLimitExceededException = class _ResourceShareLimitExceededException extends RAMServiceException {
455
+ /**
456
+ * @internal
457
+ */
458
+ constructor(opts) {
459
+ super({
460
+ name: "ResourceShareLimitExceededException",
461
+ $fault: "client",
462
+ ...opts
463
+ });
464
+ this.name = "ResourceShareLimitExceededException";
465
+ this.$fault = "client";
466
+ Object.setPrototypeOf(this, _ResourceShareLimitExceededException.prototype);
467
+ }
468
+ };
469
+ __name(_ResourceShareLimitExceededException, "ResourceShareLimitExceededException");
470
+ var ResourceShareLimitExceededException = _ResourceShareLimitExceededException;
471
+ var _ThrottlingException = class _ThrottlingException extends RAMServiceException {
472
+ /**
473
+ * @internal
474
+ */
475
+ constructor(opts) {
476
+ super({
477
+ name: "ThrottlingException",
478
+ $fault: "client",
479
+ ...opts
480
+ });
481
+ this.name = "ThrottlingException";
482
+ this.$fault = "client";
483
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
484
+ }
485
+ };
486
+ __name(_ThrottlingException, "ThrottlingException");
487
+ var ThrottlingException = _ThrottlingException;
488
+ var _UnknownResourceException = class _UnknownResourceException extends RAMServiceException {
489
+ /**
490
+ * @internal
491
+ */
492
+ constructor(opts) {
493
+ super({
494
+ name: "UnknownResourceException",
495
+ $fault: "client",
496
+ ...opts
497
+ });
498
+ this.name = "UnknownResourceException";
499
+ this.$fault = "client";
500
+ Object.setPrototypeOf(this, _UnknownResourceException.prototype);
501
+ }
502
+ };
503
+ __name(_UnknownResourceException, "UnknownResourceException");
504
+ var UnknownResourceException = _UnknownResourceException;
505
+ var PermissionFeatureSet = {
506
+ CREATED_FROM_POLICY: "CREATED_FROM_POLICY",
507
+ PROMOTING_TO_STANDARD: "PROMOTING_TO_STANDARD",
508
+ STANDARD: "STANDARD"
509
+ };
510
+ var PermissionType = {
511
+ AWS_MANAGED: "AWS_MANAGED",
512
+ CUSTOMER_MANAGED: "CUSTOMER_MANAGED"
513
+ };
514
+ var _InvalidPolicyException = class _InvalidPolicyException extends RAMServiceException {
515
+ /**
516
+ * @internal
517
+ */
518
+ constructor(opts) {
519
+ super({
520
+ name: "InvalidPolicyException",
521
+ $fault: "client",
522
+ ...opts
523
+ });
524
+ this.name = "InvalidPolicyException";
525
+ this.$fault = "client";
526
+ Object.setPrototypeOf(this, _InvalidPolicyException.prototype);
527
+ }
528
+ };
529
+ __name(_InvalidPolicyException, "InvalidPolicyException");
530
+ var InvalidPolicyException = _InvalidPolicyException;
531
+ var _MalformedPolicyTemplateException = class _MalformedPolicyTemplateException extends RAMServiceException {
532
+ /**
533
+ * @internal
534
+ */
535
+ constructor(opts) {
536
+ super({
537
+ name: "MalformedPolicyTemplateException",
538
+ $fault: "client",
539
+ ...opts
540
+ });
541
+ this.name = "MalformedPolicyTemplateException";
542
+ this.$fault = "client";
543
+ Object.setPrototypeOf(this, _MalformedPolicyTemplateException.prototype);
544
+ }
545
+ };
546
+ __name(_MalformedPolicyTemplateException, "MalformedPolicyTemplateException");
547
+ var MalformedPolicyTemplateException = _MalformedPolicyTemplateException;
548
+ var _PermissionAlreadyExistsException = class _PermissionAlreadyExistsException extends RAMServiceException {
549
+ /**
550
+ * @internal
551
+ */
552
+ constructor(opts) {
553
+ super({
554
+ name: "PermissionAlreadyExistsException",
555
+ $fault: "client",
556
+ ...opts
557
+ });
558
+ this.name = "PermissionAlreadyExistsException";
559
+ this.$fault = "client";
560
+ Object.setPrototypeOf(this, _PermissionAlreadyExistsException.prototype);
561
+ }
562
+ };
563
+ __name(_PermissionAlreadyExistsException, "PermissionAlreadyExistsException");
564
+ var PermissionAlreadyExistsException = _PermissionAlreadyExistsException;
565
+ var _PermissionLimitExceededException = class _PermissionLimitExceededException extends RAMServiceException {
566
+ /**
567
+ * @internal
568
+ */
569
+ constructor(opts) {
570
+ super({
571
+ name: "PermissionLimitExceededException",
572
+ $fault: "client",
573
+ ...opts
574
+ });
575
+ this.name = "PermissionLimitExceededException";
576
+ this.$fault = "client";
577
+ Object.setPrototypeOf(this, _PermissionLimitExceededException.prototype);
578
+ }
579
+ };
580
+ __name(_PermissionLimitExceededException, "PermissionLimitExceededException");
581
+ var PermissionLimitExceededException = _PermissionLimitExceededException;
582
+ var PermissionStatus = {
583
+ ATTACHABLE: "ATTACHABLE",
584
+ DELETED: "DELETED",
585
+ DELETING: "DELETING",
586
+ UNATTACHABLE: "UNATTACHABLE"
587
+ };
588
+ var _PermissionVersionsLimitExceededException = class _PermissionVersionsLimitExceededException extends RAMServiceException {
589
+ /**
590
+ * @internal
591
+ */
592
+ constructor(opts) {
593
+ super({
594
+ name: "PermissionVersionsLimitExceededException",
595
+ $fault: "client",
596
+ ...opts
597
+ });
598
+ this.name = "PermissionVersionsLimitExceededException";
599
+ this.$fault = "client";
600
+ Object.setPrototypeOf(this, _PermissionVersionsLimitExceededException.prototype);
601
+ }
602
+ };
603
+ __name(_PermissionVersionsLimitExceededException, "PermissionVersionsLimitExceededException");
604
+ var PermissionVersionsLimitExceededException = _PermissionVersionsLimitExceededException;
605
+ var ResourceShareFeatureSet = {
606
+ CREATED_FROM_POLICY: "CREATED_FROM_POLICY",
607
+ PROMOTING_TO_STANDARD: "PROMOTING_TO_STANDARD",
608
+ STANDARD: "STANDARD"
609
+ };
610
+ var ResourceShareStatus = {
611
+ ACTIVE: "ACTIVE",
612
+ DELETED: "DELETED",
613
+ DELETING: "DELETING",
614
+ FAILED: "FAILED",
615
+ PENDING: "PENDING"
616
+ };
617
+ var _TagLimitExceededException = class _TagLimitExceededException extends RAMServiceException {
618
+ /**
619
+ * @internal
620
+ */
621
+ constructor(opts) {
622
+ super({
623
+ name: "TagLimitExceededException",
624
+ $fault: "client",
625
+ ...opts
626
+ });
627
+ this.name = "TagLimitExceededException";
628
+ this.$fault = "client";
629
+ Object.setPrototypeOf(this, _TagLimitExceededException.prototype);
630
+ }
631
+ };
632
+ __name(_TagLimitExceededException, "TagLimitExceededException");
633
+ var TagLimitExceededException = _TagLimitExceededException;
634
+ var _TagPolicyViolationException = class _TagPolicyViolationException extends RAMServiceException {
635
+ /**
636
+ * @internal
637
+ */
638
+ constructor(opts) {
639
+ super({
640
+ name: "TagPolicyViolationException",
641
+ $fault: "client",
642
+ ...opts
643
+ });
644
+ this.name = "TagPolicyViolationException";
645
+ this.$fault = "client";
646
+ Object.setPrototypeOf(this, _TagPolicyViolationException.prototype);
647
+ }
648
+ };
649
+ __name(_TagPolicyViolationException, "TagPolicyViolationException");
650
+ var TagPolicyViolationException = _TagPolicyViolationException;
651
+ var _InvalidNextTokenException = class _InvalidNextTokenException extends RAMServiceException {
652
+ /**
653
+ * @internal
654
+ */
655
+ constructor(opts) {
656
+ super({
657
+ name: "InvalidNextTokenException",
658
+ $fault: "client",
659
+ ...opts
660
+ });
661
+ this.name = "InvalidNextTokenException";
662
+ this.$fault = "client";
663
+ Object.setPrototypeOf(this, _InvalidNextTokenException.prototype);
664
+ }
665
+ };
666
+ __name(_InvalidNextTokenException, "InvalidNextTokenException");
667
+ var InvalidNextTokenException = _InvalidNextTokenException;
668
+ var _ResourceArnNotFoundException = class _ResourceArnNotFoundException extends RAMServiceException {
669
+ /**
670
+ * @internal
671
+ */
672
+ constructor(opts) {
673
+ super({
674
+ name: "ResourceArnNotFoundException",
675
+ $fault: "client",
676
+ ...opts
677
+ });
678
+ this.name = "ResourceArnNotFoundException";
679
+ this.$fault = "client";
680
+ Object.setPrototypeOf(this, _ResourceArnNotFoundException.prototype);
681
+ }
682
+ };
683
+ __name(_ResourceArnNotFoundException, "ResourceArnNotFoundException");
684
+ var ResourceArnNotFoundException = _ResourceArnNotFoundException;
685
+ var _InvalidMaxResultsException = class _InvalidMaxResultsException extends RAMServiceException {
686
+ /**
687
+ * @internal
688
+ */
689
+ constructor(opts) {
690
+ super({
691
+ name: "InvalidMaxResultsException",
692
+ $fault: "client",
693
+ ...opts
694
+ });
695
+ this.name = "InvalidMaxResultsException";
696
+ this.$fault = "client";
697
+ Object.setPrototypeOf(this, _InvalidMaxResultsException.prototype);
698
+ }
699
+ };
700
+ __name(_InvalidMaxResultsException, "InvalidMaxResultsException");
701
+ var InvalidMaxResultsException = _InvalidMaxResultsException;
702
+ var ResourceOwner = {
703
+ OTHER_ACCOUNTS: "OTHER-ACCOUNTS",
704
+ SELF: "SELF"
705
+ };
706
+ var ResourceRegionScopeFilter = {
707
+ ALL: "ALL",
708
+ GLOBAL: "GLOBAL",
709
+ REGIONAL: "REGIONAL"
710
+ };
711
+ var ResourceRegionScope = {
712
+ GLOBAL: "GLOBAL",
713
+ REGIONAL: "REGIONAL"
714
+ };
715
+ var ResourceStatus = {
716
+ AVAILABLE: "AVAILABLE",
717
+ LIMIT_EXCEEDED: "LIMIT_EXCEEDED",
718
+ PENDING: "PENDING",
719
+ UNAVAILABLE: "UNAVAILABLE",
720
+ ZONAL_RESOURCE_INACCESSIBLE: "ZONAL_RESOURCE_INACCESSIBLE"
721
+ };
722
+ var _MissingRequiredParameterException = class _MissingRequiredParameterException extends RAMServiceException {
723
+ /**
724
+ * @internal
725
+ */
726
+ constructor(opts) {
727
+ super({
728
+ name: "MissingRequiredParameterException",
729
+ $fault: "client",
730
+ ...opts
731
+ });
732
+ this.name = "MissingRequiredParameterException";
733
+ this.$fault = "client";
734
+ Object.setPrototypeOf(this, _MissingRequiredParameterException.prototype);
735
+ }
736
+ };
737
+ __name(_MissingRequiredParameterException, "MissingRequiredParameterException");
738
+ var MissingRequiredParameterException = _MissingRequiredParameterException;
739
+ var PermissionTypeFilter = {
740
+ ALL: "ALL",
741
+ AWS_MANAGED: "AWS_MANAGED",
742
+ CUSTOMER_MANAGED: "CUSTOMER_MANAGED"
743
+ };
744
+ var ReplacePermissionAssociationsWorkStatus = {
745
+ COMPLETED: "COMPLETED",
746
+ FAILED: "FAILED",
747
+ IN_PROGRESS: "IN_PROGRESS"
748
+ };
749
+ var _InvalidResourceTypeException = class _InvalidResourceTypeException extends RAMServiceException {
750
+ /**
751
+ * @internal
752
+ */
753
+ constructor(opts) {
754
+ super({
755
+ name: "InvalidResourceTypeException",
756
+ $fault: "client",
757
+ ...opts
758
+ });
759
+ this.name = "InvalidResourceTypeException";
760
+ this.$fault = "client";
761
+ Object.setPrototypeOf(this, _InvalidResourceTypeException.prototype);
762
+ }
763
+ };
764
+ __name(_InvalidResourceTypeException, "InvalidResourceTypeException");
765
+ var InvalidResourceTypeException = _InvalidResourceTypeException;
766
+ var _UnmatchedPolicyPermissionException = class _UnmatchedPolicyPermissionException extends RAMServiceException {
767
+ /**
768
+ * @internal
769
+ */
770
+ constructor(opts) {
771
+ super({
772
+ name: "UnmatchedPolicyPermissionException",
773
+ $fault: "client",
774
+ ...opts
775
+ });
776
+ this.name = "UnmatchedPolicyPermissionException";
777
+ this.$fault = "client";
778
+ Object.setPrototypeOf(this, _UnmatchedPolicyPermissionException.prototype);
779
+ }
780
+ };
781
+ __name(_UnmatchedPolicyPermissionException, "UnmatchedPolicyPermissionException");
782
+ var UnmatchedPolicyPermissionException = _UnmatchedPolicyPermissionException;
783
+
784
+ // src/protocols/Aws_restJson1.ts
785
+ var se_AcceptResourceShareInvitationCommand = /* @__PURE__ */ __name(async (input, context) => {
786
+ const b = (0, import_core.requestBuilder)(input, context);
787
+ const headers = {
788
+ "content-type": "application/json"
789
+ };
790
+ b.bp("/acceptresourceshareinvitation");
791
+ let body;
792
+ body = JSON.stringify(
793
+ (0, import_smithy_client.take)(input, {
794
+ clientToken: [],
795
+ resourceShareInvitationArn: []
796
+ })
797
+ );
798
+ b.m("POST").h(headers).b(body);
799
+ return b.build();
800
+ }, "se_AcceptResourceShareInvitationCommand");
801
+ var se_AssociateResourceShareCommand = /* @__PURE__ */ __name(async (input, context) => {
802
+ const b = (0, import_core.requestBuilder)(input, context);
803
+ const headers = {
804
+ "content-type": "application/json"
805
+ };
806
+ b.bp("/associateresourceshare");
807
+ let body;
808
+ body = JSON.stringify(
809
+ (0, import_smithy_client.take)(input, {
810
+ clientToken: [],
811
+ principals: (_) => (0, import_smithy_client._json)(_),
812
+ resourceArns: (_) => (0, import_smithy_client._json)(_),
813
+ resourceShareArn: [],
814
+ sources: (_) => (0, import_smithy_client._json)(_)
815
+ })
816
+ );
817
+ b.m("POST").h(headers).b(body);
818
+ return b.build();
819
+ }, "se_AssociateResourceShareCommand");
820
+ var se_AssociateResourceSharePermissionCommand = /* @__PURE__ */ __name(async (input, context) => {
821
+ const b = (0, import_core.requestBuilder)(input, context);
822
+ const headers = {
823
+ "content-type": "application/json"
824
+ };
825
+ b.bp("/associateresourcesharepermission");
826
+ let body;
827
+ body = JSON.stringify(
828
+ (0, import_smithy_client.take)(input, {
829
+ clientToken: [],
830
+ permissionArn: [],
831
+ permissionVersion: [],
832
+ replace: [],
833
+ resourceShareArn: []
834
+ })
835
+ );
836
+ b.m("POST").h(headers).b(body);
837
+ return b.build();
838
+ }, "se_AssociateResourceSharePermissionCommand");
839
+ var se_CreatePermissionCommand = /* @__PURE__ */ __name(async (input, context) => {
840
+ const b = (0, import_core.requestBuilder)(input, context);
841
+ const headers = {
842
+ "content-type": "application/json"
843
+ };
844
+ b.bp("/createpermission");
845
+ let body;
846
+ body = JSON.stringify(
847
+ (0, import_smithy_client.take)(input, {
848
+ clientToken: [],
849
+ name: [],
850
+ policyTemplate: [],
851
+ resourceType: [],
852
+ tags: (_) => (0, import_smithy_client._json)(_)
853
+ })
854
+ );
855
+ b.m("POST").h(headers).b(body);
856
+ return b.build();
857
+ }, "se_CreatePermissionCommand");
858
+ var se_CreatePermissionVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
859
+ const b = (0, import_core.requestBuilder)(input, context);
860
+ const headers = {
861
+ "content-type": "application/json"
862
+ };
863
+ b.bp("/createpermissionversion");
864
+ let body;
865
+ body = JSON.stringify(
866
+ (0, import_smithy_client.take)(input, {
867
+ clientToken: [],
868
+ permissionArn: [],
869
+ policyTemplate: []
870
+ })
871
+ );
872
+ b.m("POST").h(headers).b(body);
873
+ return b.build();
874
+ }, "se_CreatePermissionVersionCommand");
875
+ var se_CreateResourceShareCommand = /* @__PURE__ */ __name(async (input, context) => {
876
+ const b = (0, import_core.requestBuilder)(input, context);
877
+ const headers = {
878
+ "content-type": "application/json"
879
+ };
880
+ b.bp("/createresourceshare");
881
+ let body;
882
+ body = JSON.stringify(
883
+ (0, import_smithy_client.take)(input, {
884
+ allowExternalPrincipals: [],
885
+ clientToken: [],
886
+ name: [],
887
+ permissionArns: (_) => (0, import_smithy_client._json)(_),
888
+ principals: (_) => (0, import_smithy_client._json)(_),
889
+ resourceArns: (_) => (0, import_smithy_client._json)(_),
890
+ sources: (_) => (0, import_smithy_client._json)(_),
891
+ tags: (_) => (0, import_smithy_client._json)(_)
892
+ })
893
+ );
894
+ b.m("POST").h(headers).b(body);
895
+ return b.build();
896
+ }, "se_CreateResourceShareCommand");
897
+ var se_DeletePermissionCommand = /* @__PURE__ */ __name(async (input, context) => {
898
+ const b = (0, import_core.requestBuilder)(input, context);
899
+ const headers = {};
900
+ b.bp("/deletepermission");
901
+ const query = (0, import_smithy_client.map)({
902
+ [_pA]: [, (0, import_smithy_client.expectNonNull)(input[_pA], `permissionArn`)],
903
+ [_cT]: [, input[_cT]]
904
+ });
905
+ let body;
906
+ b.m("DELETE").h(headers).q(query).b(body);
907
+ return b.build();
908
+ }, "se_DeletePermissionCommand");
909
+ var se_DeletePermissionVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
910
+ const b = (0, import_core.requestBuilder)(input, context);
911
+ const headers = {};
912
+ b.bp("/deletepermissionversion");
913
+ const query = (0, import_smithy_client.map)({
914
+ [_pA]: [, (0, import_smithy_client.expectNonNull)(input[_pA], `permissionArn`)],
915
+ [_pV]: [(0, import_smithy_client.expectNonNull)(input.permissionVersion, `permissionVersion`) != null, () => input[_pV].toString()],
916
+ [_cT]: [, input[_cT]]
917
+ });
918
+ let body;
919
+ b.m("DELETE").h(headers).q(query).b(body);
920
+ return b.build();
921
+ }, "se_DeletePermissionVersionCommand");
922
+ var se_DeleteResourceShareCommand = /* @__PURE__ */ __name(async (input, context) => {
923
+ const b = (0, import_core.requestBuilder)(input, context);
924
+ const headers = {};
925
+ b.bp("/deleteresourceshare");
926
+ const query = (0, import_smithy_client.map)({
927
+ [_rSA]: [, (0, import_smithy_client.expectNonNull)(input[_rSA], `resourceShareArn`)],
928
+ [_cT]: [, input[_cT]]
929
+ });
930
+ let body;
931
+ b.m("DELETE").h(headers).q(query).b(body);
932
+ return b.build();
933
+ }, "se_DeleteResourceShareCommand");
934
+ var se_DisassociateResourceShareCommand = /* @__PURE__ */ __name(async (input, context) => {
935
+ const b = (0, import_core.requestBuilder)(input, context);
936
+ const headers = {
937
+ "content-type": "application/json"
938
+ };
939
+ b.bp("/disassociateresourceshare");
940
+ let body;
941
+ body = JSON.stringify(
942
+ (0, import_smithy_client.take)(input, {
943
+ clientToken: [],
944
+ principals: (_) => (0, import_smithy_client._json)(_),
945
+ resourceArns: (_) => (0, import_smithy_client._json)(_),
946
+ resourceShareArn: [],
947
+ sources: (_) => (0, import_smithy_client._json)(_)
948
+ })
949
+ );
950
+ b.m("POST").h(headers).b(body);
951
+ return b.build();
952
+ }, "se_DisassociateResourceShareCommand");
953
+ var se_DisassociateResourceSharePermissionCommand = /* @__PURE__ */ __name(async (input, context) => {
954
+ const b = (0, import_core.requestBuilder)(input, context);
955
+ const headers = {
956
+ "content-type": "application/json"
957
+ };
958
+ b.bp("/disassociateresourcesharepermission");
959
+ let body;
960
+ body = JSON.stringify(
961
+ (0, import_smithy_client.take)(input, {
962
+ clientToken: [],
963
+ permissionArn: [],
964
+ resourceShareArn: []
965
+ })
966
+ );
967
+ b.m("POST").h(headers).b(body);
968
+ return b.build();
969
+ }, "se_DisassociateResourceSharePermissionCommand");
970
+ var se_EnableSharingWithAwsOrganizationCommand = /* @__PURE__ */ __name(async (input, context) => {
971
+ const b = (0, import_core.requestBuilder)(input, context);
972
+ const headers = {
973
+ "content-type": "application/json"
974
+ };
975
+ b.bp("/enablesharingwithawsorganization");
976
+ let body;
977
+ body = "";
978
+ b.m("POST").h(headers).b(body);
979
+ return b.build();
980
+ }, "se_EnableSharingWithAwsOrganizationCommand");
981
+ var se_GetPermissionCommand = /* @__PURE__ */ __name(async (input, context) => {
982
+ const b = (0, import_core.requestBuilder)(input, context);
983
+ const headers = {
984
+ "content-type": "application/json"
985
+ };
986
+ b.bp("/getpermission");
987
+ let body;
988
+ body = JSON.stringify(
989
+ (0, import_smithy_client.take)(input, {
990
+ permissionArn: [],
991
+ permissionVersion: []
992
+ })
993
+ );
994
+ b.m("POST").h(headers).b(body);
995
+ return b.build();
996
+ }, "se_GetPermissionCommand");
997
+ var se_GetResourcePoliciesCommand = /* @__PURE__ */ __name(async (input, context) => {
998
+ const b = (0, import_core.requestBuilder)(input, context);
999
+ const headers = {
1000
+ "content-type": "application/json"
1001
+ };
1002
+ b.bp("/getresourcepolicies");
1003
+ let body;
1004
+ body = JSON.stringify(
1005
+ (0, import_smithy_client.take)(input, {
1006
+ maxResults: [],
1007
+ nextToken: [],
1008
+ principal: [],
1009
+ resourceArns: (_) => (0, import_smithy_client._json)(_)
1010
+ })
1011
+ );
1012
+ b.m("POST").h(headers).b(body);
1013
+ return b.build();
1014
+ }, "se_GetResourcePoliciesCommand");
1015
+ var se_GetResourceShareAssociationsCommand = /* @__PURE__ */ __name(async (input, context) => {
1016
+ const b = (0, import_core.requestBuilder)(input, context);
1017
+ const headers = {
1018
+ "content-type": "application/json"
1019
+ };
1020
+ b.bp("/getresourceshareassociations");
1021
+ let body;
1022
+ body = JSON.stringify(
1023
+ (0, import_smithy_client.take)(input, {
1024
+ associationStatus: [],
1025
+ associationType: [],
1026
+ maxResults: [],
1027
+ nextToken: [],
1028
+ principal: [],
1029
+ resourceArn: [],
1030
+ resourceShareArns: (_) => (0, import_smithy_client._json)(_)
1031
+ })
1032
+ );
1033
+ b.m("POST").h(headers).b(body);
1034
+ return b.build();
1035
+ }, "se_GetResourceShareAssociationsCommand");
1036
+ var se_GetResourceShareInvitationsCommand = /* @__PURE__ */ __name(async (input, context) => {
1037
+ const b = (0, import_core.requestBuilder)(input, context);
1038
+ const headers = {
1039
+ "content-type": "application/json"
1040
+ };
1041
+ b.bp("/getresourceshareinvitations");
1042
+ let body;
1043
+ body = JSON.stringify(
1044
+ (0, import_smithy_client.take)(input, {
1045
+ maxResults: [],
1046
+ nextToken: [],
1047
+ resourceShareArns: (_) => (0, import_smithy_client._json)(_),
1048
+ resourceShareInvitationArns: (_) => (0, import_smithy_client._json)(_)
1049
+ })
1050
+ );
1051
+ b.m("POST").h(headers).b(body);
1052
+ return b.build();
1053
+ }, "se_GetResourceShareInvitationsCommand");
1054
+ var se_GetResourceSharesCommand = /* @__PURE__ */ __name(async (input, context) => {
1055
+ const b = (0, import_core.requestBuilder)(input, context);
1056
+ const headers = {
1057
+ "content-type": "application/json"
1058
+ };
1059
+ b.bp("/getresourceshares");
1060
+ let body;
1061
+ body = JSON.stringify(
1062
+ (0, import_smithy_client.take)(input, {
1063
+ maxResults: [],
1064
+ name: [],
1065
+ nextToken: [],
1066
+ permissionArn: [],
1067
+ permissionVersion: [],
1068
+ resourceOwner: [],
1069
+ resourceShareArns: (_) => (0, import_smithy_client._json)(_),
1070
+ resourceShareStatus: [],
1071
+ tagFilters: (_) => (0, import_smithy_client._json)(_)
1072
+ })
1073
+ );
1074
+ b.m("POST").h(headers).b(body);
1075
+ return b.build();
1076
+ }, "se_GetResourceSharesCommand");
1077
+ var se_ListPendingInvitationResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
1078
+ const b = (0, import_core.requestBuilder)(input, context);
1079
+ const headers = {
1080
+ "content-type": "application/json"
1081
+ };
1082
+ b.bp("/listpendinginvitationresources");
1083
+ let body;
1084
+ body = JSON.stringify(
1085
+ (0, import_smithy_client.take)(input, {
1086
+ maxResults: [],
1087
+ nextToken: [],
1088
+ resourceRegionScope: [],
1089
+ resourceShareInvitationArn: []
1090
+ })
1091
+ );
1092
+ b.m("POST").h(headers).b(body);
1093
+ return b.build();
1094
+ }, "se_ListPendingInvitationResourcesCommand");
1095
+ var se_ListPermissionAssociationsCommand = /* @__PURE__ */ __name(async (input, context) => {
1096
+ const b = (0, import_core.requestBuilder)(input, context);
1097
+ const headers = {
1098
+ "content-type": "application/json"
1099
+ };
1100
+ b.bp("/listpermissionassociations");
1101
+ let body;
1102
+ body = JSON.stringify(
1103
+ (0, import_smithy_client.take)(input, {
1104
+ associationStatus: [],
1105
+ defaultVersion: [],
1106
+ featureSet: [],
1107
+ maxResults: [],
1108
+ nextToken: [],
1109
+ permissionArn: [],
1110
+ permissionVersion: [],
1111
+ resourceType: []
1112
+ })
1113
+ );
1114
+ b.m("POST").h(headers).b(body);
1115
+ return b.build();
1116
+ }, "se_ListPermissionAssociationsCommand");
1117
+ var se_ListPermissionsCommand = /* @__PURE__ */ __name(async (input, context) => {
1118
+ const b = (0, import_core.requestBuilder)(input, context);
1119
+ const headers = {
1120
+ "content-type": "application/json"
1121
+ };
1122
+ b.bp("/listpermissions");
1123
+ let body;
1124
+ body = JSON.stringify(
1125
+ (0, import_smithy_client.take)(input, {
1126
+ maxResults: [],
1127
+ nextToken: [],
1128
+ permissionType: [],
1129
+ resourceType: []
1130
+ })
1131
+ );
1132
+ b.m("POST").h(headers).b(body);
1133
+ return b.build();
1134
+ }, "se_ListPermissionsCommand");
1135
+ var se_ListPermissionVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
1136
+ const b = (0, import_core.requestBuilder)(input, context);
1137
+ const headers = {
1138
+ "content-type": "application/json"
1139
+ };
1140
+ b.bp("/listpermissionversions");
1141
+ let body;
1142
+ body = JSON.stringify(
1143
+ (0, import_smithy_client.take)(input, {
1144
+ maxResults: [],
1145
+ nextToken: [],
1146
+ permissionArn: []
1147
+ })
1148
+ );
1149
+ b.m("POST").h(headers).b(body);
1150
+ return b.build();
1151
+ }, "se_ListPermissionVersionsCommand");
1152
+ var se_ListPrincipalsCommand = /* @__PURE__ */ __name(async (input, context) => {
1153
+ const b = (0, import_core.requestBuilder)(input, context);
1154
+ const headers = {
1155
+ "content-type": "application/json"
1156
+ };
1157
+ b.bp("/listprincipals");
1158
+ let body;
1159
+ body = JSON.stringify(
1160
+ (0, import_smithy_client.take)(input, {
1161
+ maxResults: [],
1162
+ nextToken: [],
1163
+ principals: (_) => (0, import_smithy_client._json)(_),
1164
+ resourceArn: [],
1165
+ resourceOwner: [],
1166
+ resourceShareArns: (_) => (0, import_smithy_client._json)(_),
1167
+ resourceType: []
1168
+ })
1169
+ );
1170
+ b.m("POST").h(headers).b(body);
1171
+ return b.build();
1172
+ }, "se_ListPrincipalsCommand");
1173
+ var se_ListReplacePermissionAssociationsWorkCommand = /* @__PURE__ */ __name(async (input, context) => {
1174
+ const b = (0, import_core.requestBuilder)(input, context);
1175
+ const headers = {
1176
+ "content-type": "application/json"
1177
+ };
1178
+ b.bp("/listreplacepermissionassociationswork");
1179
+ let body;
1180
+ body = JSON.stringify(
1181
+ (0, import_smithy_client.take)(input, {
1182
+ maxResults: [],
1183
+ nextToken: [],
1184
+ status: [],
1185
+ workIds: (_) => (0, import_smithy_client._json)(_)
1186
+ })
1187
+ );
1188
+ b.m("POST").h(headers).b(body);
1189
+ return b.build();
1190
+ }, "se_ListReplacePermissionAssociationsWorkCommand");
1191
+ var se_ListResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
1192
+ const b = (0, import_core.requestBuilder)(input, context);
1193
+ const headers = {
1194
+ "content-type": "application/json"
1195
+ };
1196
+ b.bp("/listresources");
1197
+ let body;
1198
+ body = JSON.stringify(
1199
+ (0, import_smithy_client.take)(input, {
1200
+ maxResults: [],
1201
+ nextToken: [],
1202
+ principal: [],
1203
+ resourceArns: (_) => (0, import_smithy_client._json)(_),
1204
+ resourceOwner: [],
1205
+ resourceRegionScope: [],
1206
+ resourceShareArns: (_) => (0, import_smithy_client._json)(_),
1207
+ resourceType: []
1208
+ })
1209
+ );
1210
+ b.m("POST").h(headers).b(body);
1211
+ return b.build();
1212
+ }, "se_ListResourcesCommand");
1213
+ var se_ListResourceSharePermissionsCommand = /* @__PURE__ */ __name(async (input, context) => {
1214
+ const b = (0, import_core.requestBuilder)(input, context);
1215
+ const headers = {
1216
+ "content-type": "application/json"
1217
+ };
1218
+ b.bp("/listresourcesharepermissions");
1219
+ let body;
1220
+ body = JSON.stringify(
1221
+ (0, import_smithy_client.take)(input, {
1222
+ maxResults: [],
1223
+ nextToken: [],
1224
+ resourceShareArn: []
1225
+ })
1226
+ );
1227
+ b.m("POST").h(headers).b(body);
1228
+ return b.build();
1229
+ }, "se_ListResourceSharePermissionsCommand");
1230
+ var se_ListResourceTypesCommand = /* @__PURE__ */ __name(async (input, context) => {
1231
+ const b = (0, import_core.requestBuilder)(input, context);
1232
+ const headers = {
1233
+ "content-type": "application/json"
1234
+ };
1235
+ b.bp("/listresourcetypes");
1236
+ let body;
1237
+ body = JSON.stringify(
1238
+ (0, import_smithy_client.take)(input, {
1239
+ maxResults: [],
1240
+ nextToken: [],
1241
+ resourceRegionScope: []
1242
+ })
1243
+ );
1244
+ b.m("POST").h(headers).b(body);
1245
+ return b.build();
1246
+ }, "se_ListResourceTypesCommand");
1247
+ var se_PromotePermissionCreatedFromPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
1248
+ const b = (0, import_core.requestBuilder)(input, context);
1249
+ const headers = {
1250
+ "content-type": "application/json"
1251
+ };
1252
+ b.bp("/promotepermissioncreatedfrompolicy");
1253
+ let body;
1254
+ body = JSON.stringify(
1255
+ (0, import_smithy_client.take)(input, {
1256
+ clientToken: [],
1257
+ name: [],
1258
+ permissionArn: []
1259
+ })
1260
+ );
1261
+ b.m("POST").h(headers).b(body);
1262
+ return b.build();
1263
+ }, "se_PromotePermissionCreatedFromPolicyCommand");
1264
+ var se_PromoteResourceShareCreatedFromPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
1265
+ const b = (0, import_core.requestBuilder)(input, context);
1266
+ const headers = {};
1267
+ b.bp("/promoteresourcesharecreatedfrompolicy");
1268
+ const query = (0, import_smithy_client.map)({
1269
+ [_rSA]: [, (0, import_smithy_client.expectNonNull)(input[_rSA], `resourceShareArn`)]
1270
+ });
1271
+ let body;
1272
+ b.m("POST").h(headers).q(query).b(body);
1273
+ return b.build();
1274
+ }, "se_PromoteResourceShareCreatedFromPolicyCommand");
1275
+ var se_RejectResourceShareInvitationCommand = /* @__PURE__ */ __name(async (input, context) => {
1276
+ const b = (0, import_core.requestBuilder)(input, context);
1277
+ const headers = {
1278
+ "content-type": "application/json"
1279
+ };
1280
+ b.bp("/rejectresourceshareinvitation");
1281
+ let body;
1282
+ body = JSON.stringify(
1283
+ (0, import_smithy_client.take)(input, {
1284
+ clientToken: [],
1285
+ resourceShareInvitationArn: []
1286
+ })
1287
+ );
1288
+ b.m("POST").h(headers).b(body);
1289
+ return b.build();
1290
+ }, "se_RejectResourceShareInvitationCommand");
1291
+ var se_ReplacePermissionAssociationsCommand = /* @__PURE__ */ __name(async (input, context) => {
1292
+ const b = (0, import_core.requestBuilder)(input, context);
1293
+ const headers = {
1294
+ "content-type": "application/json"
1295
+ };
1296
+ b.bp("/replacepermissionassociations");
1297
+ let body;
1298
+ body = JSON.stringify(
1299
+ (0, import_smithy_client.take)(input, {
1300
+ clientToken: [],
1301
+ fromPermissionArn: [],
1302
+ fromPermissionVersion: [],
1303
+ toPermissionArn: []
1304
+ })
1305
+ );
1306
+ b.m("POST").h(headers).b(body);
1307
+ return b.build();
1308
+ }, "se_ReplacePermissionAssociationsCommand");
1309
+ var se_SetDefaultPermissionVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
1310
+ const b = (0, import_core.requestBuilder)(input, context);
1311
+ const headers = {
1312
+ "content-type": "application/json"
1313
+ };
1314
+ b.bp("/setdefaultpermissionversion");
1315
+ let body;
1316
+ body = JSON.stringify(
1317
+ (0, import_smithy_client.take)(input, {
1318
+ clientToken: [],
1319
+ permissionArn: [],
1320
+ permissionVersion: []
1321
+ })
1322
+ );
1323
+ b.m("POST").h(headers).b(body);
1324
+ return b.build();
1325
+ }, "se_SetDefaultPermissionVersionCommand");
1326
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1327
+ const b = (0, import_core.requestBuilder)(input, context);
1328
+ const headers = {
1329
+ "content-type": "application/json"
1330
+ };
1331
+ b.bp("/tagresource");
1332
+ let body;
1333
+ body = JSON.stringify(
1334
+ (0, import_smithy_client.take)(input, {
1335
+ resourceArn: [],
1336
+ resourceShareArn: [],
1337
+ tags: (_) => (0, import_smithy_client._json)(_)
1338
+ })
1339
+ );
1340
+ b.m("POST").h(headers).b(body);
1341
+ return b.build();
1342
+ }, "se_TagResourceCommand");
1343
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1344
+ const b = (0, import_core.requestBuilder)(input, context);
1345
+ const headers = {
1346
+ "content-type": "application/json"
1347
+ };
1348
+ b.bp("/untagresource");
1349
+ let body;
1350
+ body = JSON.stringify(
1351
+ (0, import_smithy_client.take)(input, {
1352
+ resourceArn: [],
1353
+ resourceShareArn: [],
1354
+ tagKeys: (_) => (0, import_smithy_client._json)(_)
1355
+ })
1356
+ );
1357
+ b.m("POST").h(headers).b(body);
1358
+ return b.build();
1359
+ }, "se_UntagResourceCommand");
1360
+ var se_UpdateResourceShareCommand = /* @__PURE__ */ __name(async (input, context) => {
1361
+ const b = (0, import_core.requestBuilder)(input, context);
1362
+ const headers = {
1363
+ "content-type": "application/json"
1364
+ };
1365
+ b.bp("/updateresourceshare");
1366
+ let body;
1367
+ body = JSON.stringify(
1368
+ (0, import_smithy_client.take)(input, {
1369
+ allowExternalPrincipals: [],
1370
+ clientToken: [],
1371
+ name: [],
1372
+ resourceShareArn: []
1373
+ })
1374
+ );
1375
+ b.m("POST").h(headers).b(body);
1376
+ return b.build();
1377
+ }, "se_UpdateResourceShareCommand");
1378
+ var de_AcceptResourceShareInvitationCommand = /* @__PURE__ */ __name(async (output, context) => {
1379
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1380
+ return de_AcceptResourceShareInvitationCommandError(output, context);
1381
+ }
1382
+ const contents = (0, import_smithy_client.map)({
1383
+ $metadata: deserializeMetadata(output)
1384
+ });
1385
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1386
+ const doc = (0, import_smithy_client.take)(data, {
1387
+ clientToken: import_smithy_client.expectString,
1388
+ resourceShareInvitation: (_) => de_ResourceShareInvitation(_, context)
1389
+ });
1390
+ Object.assign(contents, doc);
1391
+ return contents;
1392
+ }, "de_AcceptResourceShareInvitationCommand");
1393
+ var de_AcceptResourceShareInvitationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1394
+ const parsedOutput = {
1395
+ ...output,
1396
+ body: await parseErrorBody(output.body, context)
1397
+ };
1398
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1399
+ switch (errorCode) {
1400
+ case "IdempotentParameterMismatchException":
1401
+ case "com.amazonaws.ram#IdempotentParameterMismatchException":
1402
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
1403
+ case "InvalidClientTokenException":
1404
+ case "com.amazonaws.ram#InvalidClientTokenException":
1405
+ throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
1406
+ case "MalformedArnException":
1407
+ case "com.amazonaws.ram#MalformedArnException":
1408
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
1409
+ case "OperationNotPermittedException":
1410
+ case "com.amazonaws.ram#OperationNotPermittedException":
1411
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1412
+ case "ResourceShareInvitationAlreadyAcceptedException":
1413
+ case "com.amazonaws.ram#ResourceShareInvitationAlreadyAcceptedException":
1414
+ throw await de_ResourceShareInvitationAlreadyAcceptedExceptionRes(parsedOutput, context);
1415
+ case "ResourceShareInvitationAlreadyRejectedException":
1416
+ case "com.amazonaws.ram#ResourceShareInvitationAlreadyRejectedException":
1417
+ throw await de_ResourceShareInvitationAlreadyRejectedExceptionRes(parsedOutput, context);
1418
+ case "ResourceShareInvitationArnNotFoundException":
1419
+ case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException":
1420
+ throw await de_ResourceShareInvitationArnNotFoundExceptionRes(parsedOutput, context);
1421
+ case "ResourceShareInvitationExpiredException":
1422
+ case "com.amazonaws.ram#ResourceShareInvitationExpiredException":
1423
+ throw await de_ResourceShareInvitationExpiredExceptionRes(parsedOutput, context);
1424
+ case "ServerInternalException":
1425
+ case "com.amazonaws.ram#ServerInternalException":
1426
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1427
+ case "ServiceUnavailableException":
1428
+ case "com.amazonaws.ram#ServiceUnavailableException":
1429
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1430
+ default:
1431
+ const parsedBody = parsedOutput.body;
1432
+ return throwDefaultError({
1433
+ output,
1434
+ parsedBody,
1435
+ errorCode
1436
+ });
1437
+ }
1438
+ }, "de_AcceptResourceShareInvitationCommandError");
1439
+ var de_AssociateResourceShareCommand = /* @__PURE__ */ __name(async (output, context) => {
1440
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1441
+ return de_AssociateResourceShareCommandError(output, context);
1442
+ }
1443
+ const contents = (0, import_smithy_client.map)({
1444
+ $metadata: deserializeMetadata(output)
1445
+ });
1446
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1447
+ const doc = (0, import_smithy_client.take)(data, {
1448
+ clientToken: import_smithy_client.expectString,
1449
+ resourceShareAssociations: (_) => de_ResourceShareAssociationList(_, context)
1450
+ });
1451
+ Object.assign(contents, doc);
1452
+ return contents;
1453
+ }, "de_AssociateResourceShareCommand");
1454
+ var de_AssociateResourceShareCommandError = /* @__PURE__ */ __name(async (output, context) => {
1455
+ const parsedOutput = {
1456
+ ...output,
1457
+ body: await parseErrorBody(output.body, context)
1458
+ };
1459
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1460
+ switch (errorCode) {
1461
+ case "IdempotentParameterMismatchException":
1462
+ case "com.amazonaws.ram#IdempotentParameterMismatchException":
1463
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
1464
+ case "InvalidClientTokenException":
1465
+ case "com.amazonaws.ram#InvalidClientTokenException":
1466
+ throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
1467
+ case "InvalidParameterException":
1468
+ case "com.amazonaws.ram#InvalidParameterException":
1469
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1470
+ case "InvalidStateTransitionException":
1471
+ case "com.amazonaws.ram#InvalidStateTransitionException":
1472
+ throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
1473
+ case "MalformedArnException":
1474
+ case "com.amazonaws.ram#MalformedArnException":
1475
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
1476
+ case "OperationNotPermittedException":
1477
+ case "com.amazonaws.ram#OperationNotPermittedException":
1478
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1479
+ case "ResourceShareLimitExceededException":
1480
+ case "com.amazonaws.ram#ResourceShareLimitExceededException":
1481
+ throw await de_ResourceShareLimitExceededExceptionRes(parsedOutput, context);
1482
+ case "ServerInternalException":
1483
+ case "com.amazonaws.ram#ServerInternalException":
1484
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1485
+ case "ServiceUnavailableException":
1486
+ case "com.amazonaws.ram#ServiceUnavailableException":
1487
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1488
+ case "ThrottlingException":
1489
+ case "com.amazonaws.ram#ThrottlingException":
1490
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1491
+ case "UnknownResourceException":
1492
+ case "com.amazonaws.ram#UnknownResourceException":
1493
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
1494
+ default:
1495
+ const parsedBody = parsedOutput.body;
1496
+ return throwDefaultError({
1497
+ output,
1498
+ parsedBody,
1499
+ errorCode
1500
+ });
1501
+ }
1502
+ }, "de_AssociateResourceShareCommandError");
1503
+ var de_AssociateResourceSharePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
1504
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1505
+ return de_AssociateResourceSharePermissionCommandError(output, context);
1506
+ }
1507
+ const contents = (0, import_smithy_client.map)({
1508
+ $metadata: deserializeMetadata(output)
1509
+ });
1510
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1511
+ const doc = (0, import_smithy_client.take)(data, {
1512
+ clientToken: import_smithy_client.expectString,
1513
+ returnValue: import_smithy_client.expectBoolean
1514
+ });
1515
+ Object.assign(contents, doc);
1516
+ return contents;
1517
+ }, "de_AssociateResourceSharePermissionCommand");
1518
+ var de_AssociateResourceSharePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1519
+ const parsedOutput = {
1520
+ ...output,
1521
+ body: await parseErrorBody(output.body, context)
1522
+ };
1523
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1524
+ switch (errorCode) {
1525
+ case "InvalidClientTokenException":
1526
+ case "com.amazonaws.ram#InvalidClientTokenException":
1527
+ throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
1528
+ case "InvalidParameterException":
1529
+ case "com.amazonaws.ram#InvalidParameterException":
1530
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1531
+ case "MalformedArnException":
1532
+ case "com.amazonaws.ram#MalformedArnException":
1533
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
1534
+ case "OperationNotPermittedException":
1535
+ case "com.amazonaws.ram#OperationNotPermittedException":
1536
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1537
+ case "ServerInternalException":
1538
+ case "com.amazonaws.ram#ServerInternalException":
1539
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1540
+ case "ServiceUnavailableException":
1541
+ case "com.amazonaws.ram#ServiceUnavailableException":
1542
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1543
+ case "UnknownResourceException":
1544
+ case "com.amazonaws.ram#UnknownResourceException":
1545
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
1546
+ default:
1547
+ const parsedBody = parsedOutput.body;
1548
+ return throwDefaultError({
1549
+ output,
1550
+ parsedBody,
1551
+ errorCode
1552
+ });
1553
+ }
1554
+ }, "de_AssociateResourceSharePermissionCommandError");
1555
+ var de_CreatePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
1556
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1557
+ return de_CreatePermissionCommandError(output, context);
1558
+ }
1559
+ const contents = (0, import_smithy_client.map)({
1560
+ $metadata: deserializeMetadata(output)
1561
+ });
1562
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1563
+ const doc = (0, import_smithy_client.take)(data, {
1564
+ clientToken: import_smithy_client.expectString,
1565
+ permission: (_) => de_ResourceSharePermissionSummary(_, context)
1566
+ });
1567
+ Object.assign(contents, doc);
1568
+ return contents;
1569
+ }, "de_CreatePermissionCommand");
1570
+ var de_CreatePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1571
+ const parsedOutput = {
1572
+ ...output,
1573
+ body: await parseErrorBody(output.body, context)
1574
+ };
1575
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1576
+ switch (errorCode) {
1577
+ case "IdempotentParameterMismatchException":
1578
+ case "com.amazonaws.ram#IdempotentParameterMismatchException":
1579
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
1580
+ case "InvalidClientTokenException":
1581
+ case "com.amazonaws.ram#InvalidClientTokenException":
1582
+ throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
1583
+ case "InvalidParameterException":
1584
+ case "com.amazonaws.ram#InvalidParameterException":
1585
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1586
+ case "InvalidPolicyException":
1587
+ case "com.amazonaws.ram#InvalidPolicyException":
1588
+ throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
1589
+ case "MalformedPolicyTemplateException":
1590
+ case "com.amazonaws.ram#MalformedPolicyTemplateException":
1591
+ throw await de_MalformedPolicyTemplateExceptionRes(parsedOutput, context);
1592
+ case "OperationNotPermittedException":
1593
+ case "com.amazonaws.ram#OperationNotPermittedException":
1594
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1595
+ case "PermissionAlreadyExistsException":
1596
+ case "com.amazonaws.ram#PermissionAlreadyExistsException":
1597
+ throw await de_PermissionAlreadyExistsExceptionRes(parsedOutput, context);
1598
+ case "PermissionLimitExceededException":
1599
+ case "com.amazonaws.ram#PermissionLimitExceededException":
1600
+ throw await de_PermissionLimitExceededExceptionRes(parsedOutput, context);
1601
+ case "ServerInternalException":
1602
+ case "com.amazonaws.ram#ServerInternalException":
1603
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1604
+ case "ServiceUnavailableException":
1605
+ case "com.amazonaws.ram#ServiceUnavailableException":
1606
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1607
+ default:
1608
+ const parsedBody = parsedOutput.body;
1609
+ return throwDefaultError({
1610
+ output,
1611
+ parsedBody,
1612
+ errorCode
1613
+ });
1614
+ }
1615
+ }, "de_CreatePermissionCommandError");
1616
+ var de_CreatePermissionVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
1617
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1618
+ return de_CreatePermissionVersionCommandError(output, context);
1619
+ }
1620
+ const contents = (0, import_smithy_client.map)({
1621
+ $metadata: deserializeMetadata(output)
1622
+ });
1623
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1624
+ const doc = (0, import_smithy_client.take)(data, {
1625
+ clientToken: import_smithy_client.expectString,
1626
+ permission: (_) => de_ResourceSharePermissionDetail(_, context)
1627
+ });
1628
+ Object.assign(contents, doc);
1629
+ return contents;
1630
+ }, "de_CreatePermissionVersionCommand");
1631
+ var de_CreatePermissionVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1632
+ const parsedOutput = {
1633
+ ...output,
1634
+ body: await parseErrorBody(output.body, context)
1635
+ };
1636
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1637
+ switch (errorCode) {
1638
+ case "IdempotentParameterMismatchException":
1639
+ case "com.amazonaws.ram#IdempotentParameterMismatchException":
1640
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
1641
+ case "InvalidClientTokenException":
1642
+ case "com.amazonaws.ram#InvalidClientTokenException":
1643
+ throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
1644
+ case "InvalidParameterException":
1645
+ case "com.amazonaws.ram#InvalidParameterException":
1646
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1647
+ case "InvalidPolicyException":
1648
+ case "com.amazonaws.ram#InvalidPolicyException":
1649
+ throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
1650
+ case "MalformedArnException":
1651
+ case "com.amazonaws.ram#MalformedArnException":
1652
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
1653
+ case "MalformedPolicyTemplateException":
1654
+ case "com.amazonaws.ram#MalformedPolicyTemplateException":
1655
+ throw await de_MalformedPolicyTemplateExceptionRes(parsedOutput, context);
1656
+ case "PermissionVersionsLimitExceededException":
1657
+ case "com.amazonaws.ram#PermissionVersionsLimitExceededException":
1658
+ throw await de_PermissionVersionsLimitExceededExceptionRes(parsedOutput, context);
1659
+ case "ServerInternalException":
1660
+ case "com.amazonaws.ram#ServerInternalException":
1661
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1662
+ case "ServiceUnavailableException":
1663
+ case "com.amazonaws.ram#ServiceUnavailableException":
1664
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1665
+ case "UnknownResourceException":
1666
+ case "com.amazonaws.ram#UnknownResourceException":
1667
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
1668
+ default:
1669
+ const parsedBody = parsedOutput.body;
1670
+ return throwDefaultError({
1671
+ output,
1672
+ parsedBody,
1673
+ errorCode
1674
+ });
1675
+ }
1676
+ }, "de_CreatePermissionVersionCommandError");
1677
+ var de_CreateResourceShareCommand = /* @__PURE__ */ __name(async (output, context) => {
1678
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1679
+ return de_CreateResourceShareCommandError(output, context);
1680
+ }
1681
+ const contents = (0, import_smithy_client.map)({
1682
+ $metadata: deserializeMetadata(output)
1683
+ });
1684
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1685
+ const doc = (0, import_smithy_client.take)(data, {
1686
+ clientToken: import_smithy_client.expectString,
1687
+ resourceShare: (_) => de_ResourceShare(_, context)
1688
+ });
1689
+ Object.assign(contents, doc);
1690
+ return contents;
1691
+ }, "de_CreateResourceShareCommand");
1692
+ var de_CreateResourceShareCommandError = /* @__PURE__ */ __name(async (output, context) => {
1693
+ const parsedOutput = {
1694
+ ...output,
1695
+ body: await parseErrorBody(output.body, context)
1696
+ };
1697
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1698
+ switch (errorCode) {
1699
+ case "IdempotentParameterMismatchException":
1700
+ case "com.amazonaws.ram#IdempotentParameterMismatchException":
1701
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
1702
+ case "InvalidClientTokenException":
1703
+ case "com.amazonaws.ram#InvalidClientTokenException":
1704
+ throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
1705
+ case "InvalidParameterException":
1706
+ case "com.amazonaws.ram#InvalidParameterException":
1707
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1708
+ case "InvalidStateTransitionException":
1709
+ case "com.amazonaws.ram#InvalidStateTransitionException":
1710
+ throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
1711
+ case "MalformedArnException":
1712
+ case "com.amazonaws.ram#MalformedArnException":
1713
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
1714
+ case "OperationNotPermittedException":
1715
+ case "com.amazonaws.ram#OperationNotPermittedException":
1716
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1717
+ case "ResourceShareLimitExceededException":
1718
+ case "com.amazonaws.ram#ResourceShareLimitExceededException":
1719
+ throw await de_ResourceShareLimitExceededExceptionRes(parsedOutput, context);
1720
+ case "ServerInternalException":
1721
+ case "com.amazonaws.ram#ServerInternalException":
1722
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1723
+ case "ServiceUnavailableException":
1724
+ case "com.amazonaws.ram#ServiceUnavailableException":
1725
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1726
+ case "TagLimitExceededException":
1727
+ case "com.amazonaws.ram#TagLimitExceededException":
1728
+ throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
1729
+ case "TagPolicyViolationException":
1730
+ case "com.amazonaws.ram#TagPolicyViolationException":
1731
+ throw await de_TagPolicyViolationExceptionRes(parsedOutput, context);
1732
+ case "UnknownResourceException":
1733
+ case "com.amazonaws.ram#UnknownResourceException":
1734
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
1735
+ default:
1736
+ const parsedBody = parsedOutput.body;
1737
+ return throwDefaultError({
1738
+ output,
1739
+ parsedBody,
1740
+ errorCode
1741
+ });
1742
+ }
1743
+ }, "de_CreateResourceShareCommandError");
1744
+ var de_DeletePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
1745
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1746
+ return de_DeletePermissionCommandError(output, context);
1747
+ }
1748
+ const contents = (0, import_smithy_client.map)({
1749
+ $metadata: deserializeMetadata(output)
1750
+ });
1751
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1752
+ const doc = (0, import_smithy_client.take)(data, {
1753
+ clientToken: import_smithy_client.expectString,
1754
+ permissionStatus: import_smithy_client.expectString,
1755
+ returnValue: import_smithy_client.expectBoolean
1756
+ });
1757
+ Object.assign(contents, doc);
1758
+ return contents;
1759
+ }, "de_DeletePermissionCommand");
1760
+ var de_DeletePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1761
+ const parsedOutput = {
1762
+ ...output,
1763
+ body: await parseErrorBody(output.body, context)
1764
+ };
1765
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1766
+ switch (errorCode) {
1767
+ case "IdempotentParameterMismatchException":
1768
+ case "com.amazonaws.ram#IdempotentParameterMismatchException":
1769
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
1770
+ case "InvalidClientTokenException":
1771
+ case "com.amazonaws.ram#InvalidClientTokenException":
1772
+ throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
1773
+ case "MalformedArnException":
1774
+ case "com.amazonaws.ram#MalformedArnException":
1775
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
1776
+ case "OperationNotPermittedException":
1777
+ case "com.amazonaws.ram#OperationNotPermittedException":
1778
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1779
+ case "ServerInternalException":
1780
+ case "com.amazonaws.ram#ServerInternalException":
1781
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1782
+ case "ServiceUnavailableException":
1783
+ case "com.amazonaws.ram#ServiceUnavailableException":
1784
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1785
+ case "UnknownResourceException":
1786
+ case "com.amazonaws.ram#UnknownResourceException":
1787
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
1788
+ default:
1789
+ const parsedBody = parsedOutput.body;
1790
+ return throwDefaultError({
1791
+ output,
1792
+ parsedBody,
1793
+ errorCode
1794
+ });
1795
+ }
1796
+ }, "de_DeletePermissionCommandError");
1797
+ var de_DeletePermissionVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
1798
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1799
+ return de_DeletePermissionVersionCommandError(output, context);
1800
+ }
1801
+ const contents = (0, import_smithy_client.map)({
1802
+ $metadata: deserializeMetadata(output)
1803
+ });
1804
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1805
+ const doc = (0, import_smithy_client.take)(data, {
1806
+ clientToken: import_smithy_client.expectString,
1807
+ permissionStatus: import_smithy_client.expectString,
1808
+ returnValue: import_smithy_client.expectBoolean
1809
+ });
1810
+ Object.assign(contents, doc);
1811
+ return contents;
1812
+ }, "de_DeletePermissionVersionCommand");
1813
+ var de_DeletePermissionVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1814
+ const parsedOutput = {
1815
+ ...output,
1816
+ body: await parseErrorBody(output.body, context)
1817
+ };
1818
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1819
+ switch (errorCode) {
1820
+ case "IdempotentParameterMismatchException":
1821
+ case "com.amazonaws.ram#IdempotentParameterMismatchException":
1822
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
1823
+ case "InvalidClientTokenException":
1824
+ case "com.amazonaws.ram#InvalidClientTokenException":
1825
+ throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
1826
+ case "InvalidParameterException":
1827
+ case "com.amazonaws.ram#InvalidParameterException":
1828
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1829
+ case "MalformedArnException":
1830
+ case "com.amazonaws.ram#MalformedArnException":
1831
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
1832
+ case "OperationNotPermittedException":
1833
+ case "com.amazonaws.ram#OperationNotPermittedException":
1834
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1835
+ case "ServerInternalException":
1836
+ case "com.amazonaws.ram#ServerInternalException":
1837
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1838
+ case "ServiceUnavailableException":
1839
+ case "com.amazonaws.ram#ServiceUnavailableException":
1840
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1841
+ case "UnknownResourceException":
1842
+ case "com.amazonaws.ram#UnknownResourceException":
1843
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
1844
+ default:
1845
+ const parsedBody = parsedOutput.body;
1846
+ return throwDefaultError({
1847
+ output,
1848
+ parsedBody,
1849
+ errorCode
1850
+ });
1851
+ }
1852
+ }, "de_DeletePermissionVersionCommandError");
1853
+ var de_DeleteResourceShareCommand = /* @__PURE__ */ __name(async (output, context) => {
1854
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1855
+ return de_DeleteResourceShareCommandError(output, context);
1856
+ }
1857
+ const contents = (0, import_smithy_client.map)({
1858
+ $metadata: deserializeMetadata(output)
1859
+ });
1860
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1861
+ const doc = (0, import_smithy_client.take)(data, {
1862
+ clientToken: import_smithy_client.expectString,
1863
+ returnValue: import_smithy_client.expectBoolean
1864
+ });
1865
+ Object.assign(contents, doc);
1866
+ return contents;
1867
+ }, "de_DeleteResourceShareCommand");
1868
+ var de_DeleteResourceShareCommandError = /* @__PURE__ */ __name(async (output, context) => {
1869
+ const parsedOutput = {
1870
+ ...output,
1871
+ body: await parseErrorBody(output.body, context)
1872
+ };
1873
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1874
+ switch (errorCode) {
1875
+ case "IdempotentParameterMismatchException":
1876
+ case "com.amazonaws.ram#IdempotentParameterMismatchException":
1877
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
1878
+ case "InvalidClientTokenException":
1879
+ case "com.amazonaws.ram#InvalidClientTokenException":
1880
+ throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
1881
+ case "InvalidParameterException":
1882
+ case "com.amazonaws.ram#InvalidParameterException":
1883
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1884
+ case "InvalidStateTransitionException":
1885
+ case "com.amazonaws.ram#InvalidStateTransitionException":
1886
+ throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
1887
+ case "MalformedArnException":
1888
+ case "com.amazonaws.ram#MalformedArnException":
1889
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
1890
+ case "OperationNotPermittedException":
1891
+ case "com.amazonaws.ram#OperationNotPermittedException":
1892
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1893
+ case "ServerInternalException":
1894
+ case "com.amazonaws.ram#ServerInternalException":
1895
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1896
+ case "ServiceUnavailableException":
1897
+ case "com.amazonaws.ram#ServiceUnavailableException":
1898
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1899
+ case "UnknownResourceException":
1900
+ case "com.amazonaws.ram#UnknownResourceException":
1901
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
1902
+ default:
1903
+ const parsedBody = parsedOutput.body;
1904
+ return throwDefaultError({
1905
+ output,
1906
+ parsedBody,
1907
+ errorCode
1908
+ });
1909
+ }
1910
+ }, "de_DeleteResourceShareCommandError");
1911
+ var de_DisassociateResourceShareCommand = /* @__PURE__ */ __name(async (output, context) => {
1912
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1913
+ return de_DisassociateResourceShareCommandError(output, context);
1914
+ }
1915
+ const contents = (0, import_smithy_client.map)({
1916
+ $metadata: deserializeMetadata(output)
1917
+ });
1918
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1919
+ const doc = (0, import_smithy_client.take)(data, {
1920
+ clientToken: import_smithy_client.expectString,
1921
+ resourceShareAssociations: (_) => de_ResourceShareAssociationList(_, context)
1922
+ });
1923
+ Object.assign(contents, doc);
1924
+ return contents;
1925
+ }, "de_DisassociateResourceShareCommand");
1926
+ var de_DisassociateResourceShareCommandError = /* @__PURE__ */ __name(async (output, context) => {
1927
+ const parsedOutput = {
1928
+ ...output,
1929
+ body: await parseErrorBody(output.body, context)
1930
+ };
1931
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1932
+ switch (errorCode) {
1933
+ case "IdempotentParameterMismatchException":
1934
+ case "com.amazonaws.ram#IdempotentParameterMismatchException":
1935
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
1936
+ case "InvalidClientTokenException":
1937
+ case "com.amazonaws.ram#InvalidClientTokenException":
1938
+ throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
1939
+ case "InvalidParameterException":
1940
+ case "com.amazonaws.ram#InvalidParameterException":
1941
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1942
+ case "InvalidStateTransitionException":
1943
+ case "com.amazonaws.ram#InvalidStateTransitionException":
1944
+ throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
1945
+ case "MalformedArnException":
1946
+ case "com.amazonaws.ram#MalformedArnException":
1947
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
1948
+ case "OperationNotPermittedException":
1949
+ case "com.amazonaws.ram#OperationNotPermittedException":
1950
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1951
+ case "ResourceShareLimitExceededException":
1952
+ case "com.amazonaws.ram#ResourceShareLimitExceededException":
1953
+ throw await de_ResourceShareLimitExceededExceptionRes(parsedOutput, context);
1954
+ case "ServerInternalException":
1955
+ case "com.amazonaws.ram#ServerInternalException":
1956
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
1957
+ case "ServiceUnavailableException":
1958
+ case "com.amazonaws.ram#ServiceUnavailableException":
1959
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1960
+ case "UnknownResourceException":
1961
+ case "com.amazonaws.ram#UnknownResourceException":
1962
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
1963
+ default:
1964
+ const parsedBody = parsedOutput.body;
1965
+ return throwDefaultError({
1966
+ output,
1967
+ parsedBody,
1968
+ errorCode
1969
+ });
1970
+ }
1971
+ }, "de_DisassociateResourceShareCommandError");
1972
+ var de_DisassociateResourceSharePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
1973
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1974
+ return de_DisassociateResourceSharePermissionCommandError(output, context);
1975
+ }
1976
+ const contents = (0, import_smithy_client.map)({
1977
+ $metadata: deserializeMetadata(output)
1978
+ });
1979
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1980
+ const doc = (0, import_smithy_client.take)(data, {
1981
+ clientToken: import_smithy_client.expectString,
1982
+ returnValue: import_smithy_client.expectBoolean
1983
+ });
1984
+ Object.assign(contents, doc);
1985
+ return contents;
1986
+ }, "de_DisassociateResourceSharePermissionCommand");
1987
+ var de_DisassociateResourceSharePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1988
+ const parsedOutput = {
1989
+ ...output,
1990
+ body: await parseErrorBody(output.body, context)
1991
+ };
1992
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1993
+ switch (errorCode) {
1994
+ case "InvalidClientTokenException":
1995
+ case "com.amazonaws.ram#InvalidClientTokenException":
1996
+ throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
1997
+ case "InvalidParameterException":
1998
+ case "com.amazonaws.ram#InvalidParameterException":
1999
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2000
+ case "InvalidStateTransitionException":
2001
+ case "com.amazonaws.ram#InvalidStateTransitionException":
2002
+ throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
2003
+ case "MalformedArnException":
2004
+ case "com.amazonaws.ram#MalformedArnException":
2005
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
2006
+ case "OperationNotPermittedException":
2007
+ case "com.amazonaws.ram#OperationNotPermittedException":
2008
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
2009
+ case "ServerInternalException":
2010
+ case "com.amazonaws.ram#ServerInternalException":
2011
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
2012
+ case "ServiceUnavailableException":
2013
+ case "com.amazonaws.ram#ServiceUnavailableException":
2014
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2015
+ case "UnknownResourceException":
2016
+ case "com.amazonaws.ram#UnknownResourceException":
2017
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
2018
+ default:
2019
+ const parsedBody = parsedOutput.body;
2020
+ return throwDefaultError({
2021
+ output,
2022
+ parsedBody,
2023
+ errorCode
2024
+ });
2025
+ }
2026
+ }, "de_DisassociateResourceSharePermissionCommandError");
2027
+ var de_EnableSharingWithAwsOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
2028
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2029
+ return de_EnableSharingWithAwsOrganizationCommandError(output, context);
2030
+ }
2031
+ const contents = (0, import_smithy_client.map)({
2032
+ $metadata: deserializeMetadata(output)
2033
+ });
2034
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2035
+ const doc = (0, import_smithy_client.take)(data, {
2036
+ returnValue: import_smithy_client.expectBoolean
2037
+ });
2038
+ Object.assign(contents, doc);
2039
+ return contents;
2040
+ }, "de_EnableSharingWithAwsOrganizationCommand");
2041
+ var de_EnableSharingWithAwsOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2042
+ const parsedOutput = {
2043
+ ...output,
2044
+ body: await parseErrorBody(output.body, context)
2045
+ };
2046
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2047
+ switch (errorCode) {
2048
+ case "OperationNotPermittedException":
2049
+ case "com.amazonaws.ram#OperationNotPermittedException":
2050
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
2051
+ case "ServerInternalException":
2052
+ case "com.amazonaws.ram#ServerInternalException":
2053
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
2054
+ case "ServiceUnavailableException":
2055
+ case "com.amazonaws.ram#ServiceUnavailableException":
2056
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2057
+ default:
2058
+ const parsedBody = parsedOutput.body;
2059
+ return throwDefaultError({
2060
+ output,
2061
+ parsedBody,
2062
+ errorCode
2063
+ });
2064
+ }
2065
+ }, "de_EnableSharingWithAwsOrganizationCommandError");
2066
+ var de_GetPermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
2067
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2068
+ return de_GetPermissionCommandError(output, context);
2069
+ }
2070
+ const contents = (0, import_smithy_client.map)({
2071
+ $metadata: deserializeMetadata(output)
2072
+ });
2073
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2074
+ const doc = (0, import_smithy_client.take)(data, {
2075
+ permission: (_) => de_ResourceSharePermissionDetail(_, context)
2076
+ });
2077
+ Object.assign(contents, doc);
2078
+ return contents;
2079
+ }, "de_GetPermissionCommand");
2080
+ var de_GetPermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
2081
+ const parsedOutput = {
2082
+ ...output,
2083
+ body: await parseErrorBody(output.body, context)
2084
+ };
2085
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2086
+ switch (errorCode) {
2087
+ case "InvalidParameterException":
2088
+ case "com.amazonaws.ram#InvalidParameterException":
2089
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2090
+ case "MalformedArnException":
2091
+ case "com.amazonaws.ram#MalformedArnException":
2092
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
2093
+ case "OperationNotPermittedException":
2094
+ case "com.amazonaws.ram#OperationNotPermittedException":
2095
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
2096
+ case "ServerInternalException":
2097
+ case "com.amazonaws.ram#ServerInternalException":
2098
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
2099
+ case "ServiceUnavailableException":
2100
+ case "com.amazonaws.ram#ServiceUnavailableException":
2101
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2102
+ case "UnknownResourceException":
2103
+ case "com.amazonaws.ram#UnknownResourceException":
2104
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
2105
+ default:
2106
+ const parsedBody = parsedOutput.body;
2107
+ return throwDefaultError({
2108
+ output,
2109
+ parsedBody,
2110
+ errorCode
2111
+ });
2112
+ }
2113
+ }, "de_GetPermissionCommandError");
2114
+ var de_GetResourcePoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
2115
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2116
+ return de_GetResourcePoliciesCommandError(output, context);
2117
+ }
2118
+ const contents = (0, import_smithy_client.map)({
2119
+ $metadata: deserializeMetadata(output)
2120
+ });
2121
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2122
+ const doc = (0, import_smithy_client.take)(data, {
2123
+ nextToken: import_smithy_client.expectString,
2124
+ policies: import_smithy_client._json
2125
+ });
2126
+ Object.assign(contents, doc);
2127
+ return contents;
2128
+ }, "de_GetResourcePoliciesCommand");
2129
+ var de_GetResourcePoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2130
+ const parsedOutput = {
2131
+ ...output,
2132
+ body: await parseErrorBody(output.body, context)
2133
+ };
2134
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2135
+ switch (errorCode) {
2136
+ case "InvalidNextTokenException":
2137
+ case "com.amazonaws.ram#InvalidNextTokenException":
2138
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2139
+ case "InvalidParameterException":
2140
+ case "com.amazonaws.ram#InvalidParameterException":
2141
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2142
+ case "MalformedArnException":
2143
+ case "com.amazonaws.ram#MalformedArnException":
2144
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
2145
+ case "ResourceArnNotFoundException":
2146
+ case "com.amazonaws.ram#ResourceArnNotFoundException":
2147
+ throw await de_ResourceArnNotFoundExceptionRes(parsedOutput, context);
2148
+ case "ServerInternalException":
2149
+ case "com.amazonaws.ram#ServerInternalException":
2150
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
2151
+ case "ServiceUnavailableException":
2152
+ case "com.amazonaws.ram#ServiceUnavailableException":
2153
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2154
+ default:
2155
+ const parsedBody = parsedOutput.body;
2156
+ return throwDefaultError({
2157
+ output,
2158
+ parsedBody,
2159
+ errorCode
2160
+ });
2161
+ }
2162
+ }, "de_GetResourcePoliciesCommandError");
2163
+ var de_GetResourceShareAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
2164
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2165
+ return de_GetResourceShareAssociationsCommandError(output, context);
2166
+ }
2167
+ const contents = (0, import_smithy_client.map)({
2168
+ $metadata: deserializeMetadata(output)
2169
+ });
2170
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2171
+ const doc = (0, import_smithy_client.take)(data, {
2172
+ nextToken: import_smithy_client.expectString,
2173
+ resourceShareAssociations: (_) => de_ResourceShareAssociationList(_, context)
2174
+ });
2175
+ Object.assign(contents, doc);
2176
+ return contents;
2177
+ }, "de_GetResourceShareAssociationsCommand");
2178
+ var de_GetResourceShareAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2179
+ const parsedOutput = {
2180
+ ...output,
2181
+ body: await parseErrorBody(output.body, context)
2182
+ };
2183
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2184
+ switch (errorCode) {
2185
+ case "InvalidNextTokenException":
2186
+ case "com.amazonaws.ram#InvalidNextTokenException":
2187
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2188
+ case "InvalidParameterException":
2189
+ case "com.amazonaws.ram#InvalidParameterException":
2190
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2191
+ case "MalformedArnException":
2192
+ case "com.amazonaws.ram#MalformedArnException":
2193
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
2194
+ case "OperationNotPermittedException":
2195
+ case "com.amazonaws.ram#OperationNotPermittedException":
2196
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
2197
+ case "ServerInternalException":
2198
+ case "com.amazonaws.ram#ServerInternalException":
2199
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
2200
+ case "ServiceUnavailableException":
2201
+ case "com.amazonaws.ram#ServiceUnavailableException":
2202
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2203
+ case "UnknownResourceException":
2204
+ case "com.amazonaws.ram#UnknownResourceException":
2205
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
2206
+ default:
2207
+ const parsedBody = parsedOutput.body;
2208
+ return throwDefaultError({
2209
+ output,
2210
+ parsedBody,
2211
+ errorCode
2212
+ });
2213
+ }
2214
+ }, "de_GetResourceShareAssociationsCommandError");
2215
+ var de_GetResourceShareInvitationsCommand = /* @__PURE__ */ __name(async (output, context) => {
2216
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2217
+ return de_GetResourceShareInvitationsCommandError(output, context);
2218
+ }
2219
+ const contents = (0, import_smithy_client.map)({
2220
+ $metadata: deserializeMetadata(output)
2221
+ });
2222
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2223
+ const doc = (0, import_smithy_client.take)(data, {
2224
+ nextToken: import_smithy_client.expectString,
2225
+ resourceShareInvitations: (_) => de_ResourceShareInvitationList(_, context)
2226
+ });
2227
+ Object.assign(contents, doc);
2228
+ return contents;
2229
+ }, "de_GetResourceShareInvitationsCommand");
2230
+ var de_GetResourceShareInvitationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2231
+ const parsedOutput = {
2232
+ ...output,
2233
+ body: await parseErrorBody(output.body, context)
2234
+ };
2235
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2236
+ switch (errorCode) {
2237
+ case "InvalidMaxResultsException":
2238
+ case "com.amazonaws.ram#InvalidMaxResultsException":
2239
+ throw await de_InvalidMaxResultsExceptionRes(parsedOutput, context);
2240
+ case "InvalidNextTokenException":
2241
+ case "com.amazonaws.ram#InvalidNextTokenException":
2242
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2243
+ case "InvalidParameterException":
2244
+ case "com.amazonaws.ram#InvalidParameterException":
2245
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2246
+ case "MalformedArnException":
2247
+ case "com.amazonaws.ram#MalformedArnException":
2248
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
2249
+ case "ResourceShareInvitationArnNotFoundException":
2250
+ case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException":
2251
+ throw await de_ResourceShareInvitationArnNotFoundExceptionRes(parsedOutput, context);
2252
+ case "ServerInternalException":
2253
+ case "com.amazonaws.ram#ServerInternalException":
2254
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
2255
+ case "ServiceUnavailableException":
2256
+ case "com.amazonaws.ram#ServiceUnavailableException":
2257
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2258
+ case "UnknownResourceException":
2259
+ case "com.amazonaws.ram#UnknownResourceException":
2260
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
2261
+ default:
2262
+ const parsedBody = parsedOutput.body;
2263
+ return throwDefaultError({
2264
+ output,
2265
+ parsedBody,
2266
+ errorCode
2267
+ });
2268
+ }
2269
+ }, "de_GetResourceShareInvitationsCommandError");
2270
+ var de_GetResourceSharesCommand = /* @__PURE__ */ __name(async (output, context) => {
2271
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2272
+ return de_GetResourceSharesCommandError(output, context);
2273
+ }
2274
+ const contents = (0, import_smithy_client.map)({
2275
+ $metadata: deserializeMetadata(output)
2276
+ });
2277
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2278
+ const doc = (0, import_smithy_client.take)(data, {
2279
+ nextToken: import_smithy_client.expectString,
2280
+ resourceShares: (_) => de_ResourceShareList(_, context)
2281
+ });
2282
+ Object.assign(contents, doc);
2283
+ return contents;
2284
+ }, "de_GetResourceSharesCommand");
2285
+ var de_GetResourceSharesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2286
+ const parsedOutput = {
2287
+ ...output,
2288
+ body: await parseErrorBody(output.body, context)
2289
+ };
2290
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2291
+ switch (errorCode) {
2292
+ case "InvalidNextTokenException":
2293
+ case "com.amazonaws.ram#InvalidNextTokenException":
2294
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2295
+ case "InvalidParameterException":
2296
+ case "com.amazonaws.ram#InvalidParameterException":
2297
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2298
+ case "MalformedArnException":
2299
+ case "com.amazonaws.ram#MalformedArnException":
2300
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
2301
+ case "ServerInternalException":
2302
+ case "com.amazonaws.ram#ServerInternalException":
2303
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
2304
+ case "ServiceUnavailableException":
2305
+ case "com.amazonaws.ram#ServiceUnavailableException":
2306
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2307
+ case "UnknownResourceException":
2308
+ case "com.amazonaws.ram#UnknownResourceException":
2309
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
2310
+ default:
2311
+ const parsedBody = parsedOutput.body;
2312
+ return throwDefaultError({
2313
+ output,
2314
+ parsedBody,
2315
+ errorCode
2316
+ });
2317
+ }
2318
+ }, "de_GetResourceSharesCommandError");
2319
+ var de_ListPendingInvitationResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
2320
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2321
+ return de_ListPendingInvitationResourcesCommandError(output, context);
2322
+ }
2323
+ const contents = (0, import_smithy_client.map)({
2324
+ $metadata: deserializeMetadata(output)
2325
+ });
2326
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2327
+ const doc = (0, import_smithy_client.take)(data, {
2328
+ nextToken: import_smithy_client.expectString,
2329
+ resources: (_) => de_ResourceList(_, context)
2330
+ });
2331
+ Object.assign(contents, doc);
2332
+ return contents;
2333
+ }, "de_ListPendingInvitationResourcesCommand");
2334
+ var de_ListPendingInvitationResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2335
+ const parsedOutput = {
2336
+ ...output,
2337
+ body: await parseErrorBody(output.body, context)
2338
+ };
2339
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2340
+ switch (errorCode) {
2341
+ case "InvalidNextTokenException":
2342
+ case "com.amazonaws.ram#InvalidNextTokenException":
2343
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2344
+ case "InvalidParameterException":
2345
+ case "com.amazonaws.ram#InvalidParameterException":
2346
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2347
+ case "MalformedArnException":
2348
+ case "com.amazonaws.ram#MalformedArnException":
2349
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
2350
+ case "MissingRequiredParameterException":
2351
+ case "com.amazonaws.ram#MissingRequiredParameterException":
2352
+ throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
2353
+ case "ResourceShareInvitationAlreadyRejectedException":
2354
+ case "com.amazonaws.ram#ResourceShareInvitationAlreadyRejectedException":
2355
+ throw await de_ResourceShareInvitationAlreadyRejectedExceptionRes(parsedOutput, context);
2356
+ case "ResourceShareInvitationArnNotFoundException":
2357
+ case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException":
2358
+ throw await de_ResourceShareInvitationArnNotFoundExceptionRes(parsedOutput, context);
2359
+ case "ResourceShareInvitationExpiredException":
2360
+ case "com.amazonaws.ram#ResourceShareInvitationExpiredException":
2361
+ throw await de_ResourceShareInvitationExpiredExceptionRes(parsedOutput, context);
2362
+ case "ServerInternalException":
2363
+ case "com.amazonaws.ram#ServerInternalException":
2364
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
2365
+ case "ServiceUnavailableException":
2366
+ case "com.amazonaws.ram#ServiceUnavailableException":
2367
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2368
+ default:
2369
+ const parsedBody = parsedOutput.body;
2370
+ return throwDefaultError({
2371
+ output,
2372
+ parsedBody,
2373
+ errorCode
2374
+ });
2375
+ }
2376
+ }, "de_ListPendingInvitationResourcesCommandError");
2377
+ var de_ListPermissionAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
2378
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2379
+ return de_ListPermissionAssociationsCommandError(output, context);
2380
+ }
2381
+ const contents = (0, import_smithy_client.map)({
2382
+ $metadata: deserializeMetadata(output)
2383
+ });
2384
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2385
+ const doc = (0, import_smithy_client.take)(data, {
2386
+ nextToken: import_smithy_client.expectString,
2387
+ permissions: (_) => de_AssociatedPermissionList(_, context)
2388
+ });
2389
+ Object.assign(contents, doc);
2390
+ return contents;
2391
+ }, "de_ListPermissionAssociationsCommand");
2392
+ var de_ListPermissionAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2393
+ const parsedOutput = {
2394
+ ...output,
2395
+ body: await parseErrorBody(output.body, context)
2396
+ };
2397
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2398
+ switch (errorCode) {
2399
+ case "InvalidNextTokenException":
2400
+ case "com.amazonaws.ram#InvalidNextTokenException":
2401
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2402
+ case "InvalidParameterException":
2403
+ case "com.amazonaws.ram#InvalidParameterException":
2404
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2405
+ case "MalformedArnException":
2406
+ case "com.amazonaws.ram#MalformedArnException":
2407
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
2408
+ case "ServerInternalException":
2409
+ case "com.amazonaws.ram#ServerInternalException":
2410
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
2411
+ case "ServiceUnavailableException":
2412
+ case "com.amazonaws.ram#ServiceUnavailableException":
2413
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2414
+ default:
2415
+ const parsedBody = parsedOutput.body;
2416
+ return throwDefaultError({
2417
+ output,
2418
+ parsedBody,
2419
+ errorCode
2420
+ });
2421
+ }
2422
+ }, "de_ListPermissionAssociationsCommandError");
2423
+ var de_ListPermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
2424
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2425
+ return de_ListPermissionsCommandError(output, context);
2426
+ }
2427
+ const contents = (0, import_smithy_client.map)({
2428
+ $metadata: deserializeMetadata(output)
2429
+ });
2430
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2431
+ const doc = (0, import_smithy_client.take)(data, {
2432
+ nextToken: import_smithy_client.expectString,
2433
+ permissions: (_) => de_ResourceSharePermissionList(_, context)
2434
+ });
2435
+ Object.assign(contents, doc);
2436
+ return contents;
2437
+ }, "de_ListPermissionsCommand");
2438
+ var de_ListPermissionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2439
+ const parsedOutput = {
2440
+ ...output,
2441
+ body: await parseErrorBody(output.body, context)
2442
+ };
2443
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2444
+ switch (errorCode) {
2445
+ case "InvalidNextTokenException":
2446
+ case "com.amazonaws.ram#InvalidNextTokenException":
2447
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2448
+ case "InvalidParameterException":
2449
+ case "com.amazonaws.ram#InvalidParameterException":
2450
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2451
+ case "OperationNotPermittedException":
2452
+ case "com.amazonaws.ram#OperationNotPermittedException":
2453
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
2454
+ case "ServerInternalException":
2455
+ case "com.amazonaws.ram#ServerInternalException":
2456
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
2457
+ case "ServiceUnavailableException":
2458
+ case "com.amazonaws.ram#ServiceUnavailableException":
2459
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2460
+ default:
2461
+ const parsedBody = parsedOutput.body;
2462
+ return throwDefaultError({
2463
+ output,
2464
+ parsedBody,
2465
+ errorCode
2466
+ });
2467
+ }
2468
+ }, "de_ListPermissionsCommandError");
2469
+ var de_ListPermissionVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
2470
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2471
+ return de_ListPermissionVersionsCommandError(output, context);
2472
+ }
2473
+ const contents = (0, import_smithy_client.map)({
2474
+ $metadata: deserializeMetadata(output)
2475
+ });
2476
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2477
+ const doc = (0, import_smithy_client.take)(data, {
2478
+ nextToken: import_smithy_client.expectString,
2479
+ permissions: (_) => de_ResourceSharePermissionList(_, context)
2480
+ });
2481
+ Object.assign(contents, doc);
2482
+ return contents;
2483
+ }, "de_ListPermissionVersionsCommand");
2484
+ var de_ListPermissionVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2485
+ const parsedOutput = {
2486
+ ...output,
2487
+ body: await parseErrorBody(output.body, context)
2488
+ };
2489
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2490
+ switch (errorCode) {
2491
+ case "InvalidNextTokenException":
2492
+ case "com.amazonaws.ram#InvalidNextTokenException":
2493
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2494
+ case "InvalidParameterException":
2495
+ case "com.amazonaws.ram#InvalidParameterException":
2496
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2497
+ case "MalformedArnException":
2498
+ case "com.amazonaws.ram#MalformedArnException":
2499
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
2500
+ case "OperationNotPermittedException":
2501
+ case "com.amazonaws.ram#OperationNotPermittedException":
2502
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
2503
+ case "ServerInternalException":
2504
+ case "com.amazonaws.ram#ServerInternalException":
2505
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
2506
+ case "ServiceUnavailableException":
2507
+ case "com.amazonaws.ram#ServiceUnavailableException":
2508
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2509
+ case "UnknownResourceException":
2510
+ case "com.amazonaws.ram#UnknownResourceException":
2511
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
2512
+ default:
2513
+ const parsedBody = parsedOutput.body;
2514
+ return throwDefaultError({
2515
+ output,
2516
+ parsedBody,
2517
+ errorCode
2518
+ });
2519
+ }
2520
+ }, "de_ListPermissionVersionsCommandError");
2521
+ var de_ListPrincipalsCommand = /* @__PURE__ */ __name(async (output, context) => {
2522
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2523
+ return de_ListPrincipalsCommandError(output, context);
2524
+ }
2525
+ const contents = (0, import_smithy_client.map)({
2526
+ $metadata: deserializeMetadata(output)
2527
+ });
2528
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2529
+ const doc = (0, import_smithy_client.take)(data, {
2530
+ nextToken: import_smithy_client.expectString,
2531
+ principals: (_) => de_PrincipalList(_, context)
2532
+ });
2533
+ Object.assign(contents, doc);
2534
+ return contents;
2535
+ }, "de_ListPrincipalsCommand");
2536
+ var de_ListPrincipalsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2537
+ const parsedOutput = {
2538
+ ...output,
2539
+ body: await parseErrorBody(output.body, context)
2540
+ };
2541
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2542
+ switch (errorCode) {
2543
+ case "InvalidNextTokenException":
2544
+ case "com.amazonaws.ram#InvalidNextTokenException":
2545
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2546
+ case "InvalidParameterException":
2547
+ case "com.amazonaws.ram#InvalidParameterException":
2548
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2549
+ case "MalformedArnException":
2550
+ case "com.amazonaws.ram#MalformedArnException":
2551
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
2552
+ case "ServerInternalException":
2553
+ case "com.amazonaws.ram#ServerInternalException":
2554
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
2555
+ case "ServiceUnavailableException":
2556
+ case "com.amazonaws.ram#ServiceUnavailableException":
2557
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2558
+ case "UnknownResourceException":
2559
+ case "com.amazonaws.ram#UnknownResourceException":
2560
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
2561
+ default:
2562
+ const parsedBody = parsedOutput.body;
2563
+ return throwDefaultError({
2564
+ output,
2565
+ parsedBody,
2566
+ errorCode
2567
+ });
2568
+ }
2569
+ }, "de_ListPrincipalsCommandError");
2570
+ var de_ListReplacePermissionAssociationsWorkCommand = /* @__PURE__ */ __name(async (output, context) => {
2571
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2572
+ return de_ListReplacePermissionAssociationsWorkCommandError(output, context);
2573
+ }
2574
+ const contents = (0, import_smithy_client.map)({
2575
+ $metadata: deserializeMetadata(output)
2576
+ });
2577
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2578
+ const doc = (0, import_smithy_client.take)(data, {
2579
+ nextToken: import_smithy_client.expectString,
2580
+ replacePermissionAssociationsWorks: (_) => de_ReplacePermissionAssociationsWorkList(_, context)
2581
+ });
2582
+ Object.assign(contents, doc);
2583
+ return contents;
2584
+ }, "de_ListReplacePermissionAssociationsWorkCommand");
2585
+ var de_ListReplacePermissionAssociationsWorkCommandError = /* @__PURE__ */ __name(async (output, context) => {
2586
+ const parsedOutput = {
2587
+ ...output,
2588
+ body: await parseErrorBody(output.body, context)
2589
+ };
2590
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2591
+ switch (errorCode) {
2592
+ case "InvalidNextTokenException":
2593
+ case "com.amazonaws.ram#InvalidNextTokenException":
2594
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2595
+ case "InvalidParameterException":
2596
+ case "com.amazonaws.ram#InvalidParameterException":
2597
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2598
+ case "ServerInternalException":
2599
+ case "com.amazonaws.ram#ServerInternalException":
2600
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
2601
+ case "ServiceUnavailableException":
2602
+ case "com.amazonaws.ram#ServiceUnavailableException":
2603
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2604
+ default:
2605
+ const parsedBody = parsedOutput.body;
2606
+ return throwDefaultError({
2607
+ output,
2608
+ parsedBody,
2609
+ errorCode
2610
+ });
2611
+ }
2612
+ }, "de_ListReplacePermissionAssociationsWorkCommandError");
2613
+ var de_ListResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
2614
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2615
+ return de_ListResourcesCommandError(output, context);
2616
+ }
2617
+ const contents = (0, import_smithy_client.map)({
2618
+ $metadata: deserializeMetadata(output)
2619
+ });
2620
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2621
+ const doc = (0, import_smithy_client.take)(data, {
2622
+ nextToken: import_smithy_client.expectString,
2623
+ resources: (_) => de_ResourceList(_, context)
2624
+ });
2625
+ Object.assign(contents, doc);
2626
+ return contents;
2627
+ }, "de_ListResourcesCommand");
2628
+ var de_ListResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2629
+ const parsedOutput = {
2630
+ ...output,
2631
+ body: await parseErrorBody(output.body, context)
2632
+ };
2633
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2634
+ switch (errorCode) {
2635
+ case "InvalidNextTokenException":
2636
+ case "com.amazonaws.ram#InvalidNextTokenException":
2637
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2638
+ case "InvalidParameterException":
2639
+ case "com.amazonaws.ram#InvalidParameterException":
2640
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2641
+ case "InvalidResourceTypeException":
2642
+ case "com.amazonaws.ram#InvalidResourceTypeException":
2643
+ throw await de_InvalidResourceTypeExceptionRes(parsedOutput, context);
2644
+ case "MalformedArnException":
2645
+ case "com.amazonaws.ram#MalformedArnException":
2646
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
2647
+ case "ServerInternalException":
2648
+ case "com.amazonaws.ram#ServerInternalException":
2649
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
2650
+ case "ServiceUnavailableException":
2651
+ case "com.amazonaws.ram#ServiceUnavailableException":
2652
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2653
+ case "UnknownResourceException":
2654
+ case "com.amazonaws.ram#UnknownResourceException":
2655
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
2656
+ default:
2657
+ const parsedBody = parsedOutput.body;
2658
+ return throwDefaultError({
2659
+ output,
2660
+ parsedBody,
2661
+ errorCode
2662
+ });
2663
+ }
2664
+ }, "de_ListResourcesCommandError");
2665
+ var de_ListResourceSharePermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
2666
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2667
+ return de_ListResourceSharePermissionsCommandError(output, context);
2668
+ }
2669
+ const contents = (0, import_smithy_client.map)({
2670
+ $metadata: deserializeMetadata(output)
2671
+ });
2672
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2673
+ const doc = (0, import_smithy_client.take)(data, {
2674
+ nextToken: import_smithy_client.expectString,
2675
+ permissions: (_) => de_ResourceSharePermissionList(_, context)
2676
+ });
2677
+ Object.assign(contents, doc);
2678
+ return contents;
2679
+ }, "de_ListResourceSharePermissionsCommand");
2680
+ var de_ListResourceSharePermissionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2681
+ const parsedOutput = {
2682
+ ...output,
2683
+ body: await parseErrorBody(output.body, context)
2684
+ };
2685
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2686
+ switch (errorCode) {
2687
+ case "InvalidNextTokenException":
2688
+ case "com.amazonaws.ram#InvalidNextTokenException":
2689
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2690
+ case "InvalidParameterException":
2691
+ case "com.amazonaws.ram#InvalidParameterException":
2692
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2693
+ case "MalformedArnException":
2694
+ case "com.amazonaws.ram#MalformedArnException":
2695
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
2696
+ case "OperationNotPermittedException":
2697
+ case "com.amazonaws.ram#OperationNotPermittedException":
2698
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
2699
+ case "ServerInternalException":
2700
+ case "com.amazonaws.ram#ServerInternalException":
2701
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
2702
+ case "ServiceUnavailableException":
2703
+ case "com.amazonaws.ram#ServiceUnavailableException":
2704
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2705
+ case "UnknownResourceException":
2706
+ case "com.amazonaws.ram#UnknownResourceException":
2707
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
2708
+ default:
2709
+ const parsedBody = parsedOutput.body;
2710
+ return throwDefaultError({
2711
+ output,
2712
+ parsedBody,
2713
+ errorCode
2714
+ });
2715
+ }
2716
+ }, "de_ListResourceSharePermissionsCommandError");
2717
+ var de_ListResourceTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
2718
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2719
+ return de_ListResourceTypesCommandError(output, context);
2720
+ }
2721
+ const contents = (0, import_smithy_client.map)({
2722
+ $metadata: deserializeMetadata(output)
2723
+ });
2724
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2725
+ const doc = (0, import_smithy_client.take)(data, {
2726
+ nextToken: import_smithy_client.expectString,
2727
+ resourceTypes: import_smithy_client._json
2728
+ });
2729
+ Object.assign(contents, doc);
2730
+ return contents;
2731
+ }, "de_ListResourceTypesCommand");
2732
+ var de_ListResourceTypesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2733
+ const parsedOutput = {
2734
+ ...output,
2735
+ body: await parseErrorBody(output.body, context)
2736
+ };
2737
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2738
+ switch (errorCode) {
2739
+ case "InvalidNextTokenException":
2740
+ case "com.amazonaws.ram#InvalidNextTokenException":
2741
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2742
+ case "InvalidParameterException":
2743
+ case "com.amazonaws.ram#InvalidParameterException":
2744
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2745
+ case "ServerInternalException":
2746
+ case "com.amazonaws.ram#ServerInternalException":
2747
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
2748
+ case "ServiceUnavailableException":
2749
+ case "com.amazonaws.ram#ServiceUnavailableException":
2750
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2751
+ default:
2752
+ const parsedBody = parsedOutput.body;
2753
+ return throwDefaultError({
2754
+ output,
2755
+ parsedBody,
2756
+ errorCode
2757
+ });
2758
+ }
2759
+ }, "de_ListResourceTypesCommandError");
2760
+ var de_PromotePermissionCreatedFromPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
2761
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2762
+ return de_PromotePermissionCreatedFromPolicyCommandError(output, context);
2763
+ }
2764
+ const contents = (0, import_smithy_client.map)({
2765
+ $metadata: deserializeMetadata(output)
2766
+ });
2767
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2768
+ const doc = (0, import_smithy_client.take)(data, {
2769
+ clientToken: import_smithy_client.expectString,
2770
+ permission: (_) => de_ResourceSharePermissionSummary(_, context)
2771
+ });
2772
+ Object.assign(contents, doc);
2773
+ return contents;
2774
+ }, "de_PromotePermissionCreatedFromPolicyCommand");
2775
+ var de_PromotePermissionCreatedFromPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
2776
+ const parsedOutput = {
2777
+ ...output,
2778
+ body: await parseErrorBody(output.body, context)
2779
+ };
2780
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2781
+ switch (errorCode) {
2782
+ case "InvalidParameterException":
2783
+ case "com.amazonaws.ram#InvalidParameterException":
2784
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2785
+ case "MalformedArnException":
2786
+ case "com.amazonaws.ram#MalformedArnException":
2787
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
2788
+ case "MissingRequiredParameterException":
2789
+ case "com.amazonaws.ram#MissingRequiredParameterException":
2790
+ throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
2791
+ case "OperationNotPermittedException":
2792
+ case "com.amazonaws.ram#OperationNotPermittedException":
2793
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
2794
+ case "ServerInternalException":
2795
+ case "com.amazonaws.ram#ServerInternalException":
2796
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
2797
+ case "ServiceUnavailableException":
2798
+ case "com.amazonaws.ram#ServiceUnavailableException":
2799
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2800
+ case "UnknownResourceException":
2801
+ case "com.amazonaws.ram#UnknownResourceException":
2802
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
2803
+ default:
2804
+ const parsedBody = parsedOutput.body;
2805
+ return throwDefaultError({
2806
+ output,
2807
+ parsedBody,
2808
+ errorCode
2809
+ });
2810
+ }
2811
+ }, "de_PromotePermissionCreatedFromPolicyCommandError");
2812
+ var de_PromoteResourceShareCreatedFromPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
2813
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2814
+ return de_PromoteResourceShareCreatedFromPolicyCommandError(output, context);
2815
+ }
2816
+ const contents = (0, import_smithy_client.map)({
2817
+ $metadata: deserializeMetadata(output)
2818
+ });
2819
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2820
+ const doc = (0, import_smithy_client.take)(data, {
2821
+ returnValue: import_smithy_client.expectBoolean
2822
+ });
2823
+ Object.assign(contents, doc);
2824
+ return contents;
2825
+ }, "de_PromoteResourceShareCreatedFromPolicyCommand");
2826
+ var de_PromoteResourceShareCreatedFromPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
2827
+ const parsedOutput = {
2828
+ ...output,
2829
+ body: await parseErrorBody(output.body, context)
2830
+ };
2831
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2832
+ switch (errorCode) {
2833
+ case "InvalidParameterException":
2834
+ case "com.amazonaws.ram#InvalidParameterException":
2835
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2836
+ case "InvalidStateTransitionException":
2837
+ case "com.amazonaws.ram#InvalidStateTransitionException":
2838
+ throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
2839
+ case "MalformedArnException":
2840
+ case "com.amazonaws.ram#MalformedArnException":
2841
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
2842
+ case "MissingRequiredParameterException":
2843
+ case "com.amazonaws.ram#MissingRequiredParameterException":
2844
+ throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
2845
+ case "OperationNotPermittedException":
2846
+ case "com.amazonaws.ram#OperationNotPermittedException":
2847
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
2848
+ case "ResourceShareLimitExceededException":
2849
+ case "com.amazonaws.ram#ResourceShareLimitExceededException":
2850
+ throw await de_ResourceShareLimitExceededExceptionRes(parsedOutput, context);
2851
+ case "ServerInternalException":
2852
+ case "com.amazonaws.ram#ServerInternalException":
2853
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
2854
+ case "ServiceUnavailableException":
2855
+ case "com.amazonaws.ram#ServiceUnavailableException":
2856
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2857
+ case "UnknownResourceException":
2858
+ case "com.amazonaws.ram#UnknownResourceException":
2859
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
2860
+ case "UnmatchedPolicyPermissionException":
2861
+ case "com.amazonaws.ram#UnmatchedPolicyPermissionException":
2862
+ throw await de_UnmatchedPolicyPermissionExceptionRes(parsedOutput, context);
2863
+ default:
2864
+ const parsedBody = parsedOutput.body;
2865
+ return throwDefaultError({
2866
+ output,
2867
+ parsedBody,
2868
+ errorCode
2869
+ });
2870
+ }
2871
+ }, "de_PromoteResourceShareCreatedFromPolicyCommandError");
2872
+ var de_RejectResourceShareInvitationCommand = /* @__PURE__ */ __name(async (output, context) => {
2873
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2874
+ return de_RejectResourceShareInvitationCommandError(output, context);
2875
+ }
2876
+ const contents = (0, import_smithy_client.map)({
2877
+ $metadata: deserializeMetadata(output)
2878
+ });
2879
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2880
+ const doc = (0, import_smithy_client.take)(data, {
2881
+ clientToken: import_smithy_client.expectString,
2882
+ resourceShareInvitation: (_) => de_ResourceShareInvitation(_, context)
2883
+ });
2884
+ Object.assign(contents, doc);
2885
+ return contents;
2886
+ }, "de_RejectResourceShareInvitationCommand");
2887
+ var de_RejectResourceShareInvitationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2888
+ const parsedOutput = {
2889
+ ...output,
2890
+ body: await parseErrorBody(output.body, context)
2891
+ };
2892
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2893
+ switch (errorCode) {
2894
+ case "IdempotentParameterMismatchException":
2895
+ case "com.amazonaws.ram#IdempotentParameterMismatchException":
2896
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
2897
+ case "InvalidClientTokenException":
2898
+ case "com.amazonaws.ram#InvalidClientTokenException":
2899
+ throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
2900
+ case "MalformedArnException":
2901
+ case "com.amazonaws.ram#MalformedArnException":
2902
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
2903
+ case "OperationNotPermittedException":
2904
+ case "com.amazonaws.ram#OperationNotPermittedException":
2905
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
2906
+ case "ResourceShareInvitationAlreadyAcceptedException":
2907
+ case "com.amazonaws.ram#ResourceShareInvitationAlreadyAcceptedException":
2908
+ throw await de_ResourceShareInvitationAlreadyAcceptedExceptionRes(parsedOutput, context);
2909
+ case "ResourceShareInvitationAlreadyRejectedException":
2910
+ case "com.amazonaws.ram#ResourceShareInvitationAlreadyRejectedException":
2911
+ throw await de_ResourceShareInvitationAlreadyRejectedExceptionRes(parsedOutput, context);
2912
+ case "ResourceShareInvitationArnNotFoundException":
2913
+ case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException":
2914
+ throw await de_ResourceShareInvitationArnNotFoundExceptionRes(parsedOutput, context);
2915
+ case "ResourceShareInvitationExpiredException":
2916
+ case "com.amazonaws.ram#ResourceShareInvitationExpiredException":
2917
+ throw await de_ResourceShareInvitationExpiredExceptionRes(parsedOutput, context);
2918
+ case "ServerInternalException":
2919
+ case "com.amazonaws.ram#ServerInternalException":
2920
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
2921
+ case "ServiceUnavailableException":
2922
+ case "com.amazonaws.ram#ServiceUnavailableException":
2923
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2924
+ default:
2925
+ const parsedBody = parsedOutput.body;
2926
+ return throwDefaultError({
2927
+ output,
2928
+ parsedBody,
2929
+ errorCode
2930
+ });
2931
+ }
2932
+ }, "de_RejectResourceShareInvitationCommandError");
2933
+ var de_ReplacePermissionAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
2934
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2935
+ return de_ReplacePermissionAssociationsCommandError(output, context);
2936
+ }
2937
+ const contents = (0, import_smithy_client.map)({
2938
+ $metadata: deserializeMetadata(output)
2939
+ });
2940
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2941
+ const doc = (0, import_smithy_client.take)(data, {
2942
+ clientToken: import_smithy_client.expectString,
2943
+ replacePermissionAssociationsWork: (_) => de_ReplacePermissionAssociationsWork(_, context)
2944
+ });
2945
+ Object.assign(contents, doc);
2946
+ return contents;
2947
+ }, "de_ReplacePermissionAssociationsCommand");
2948
+ var de_ReplacePermissionAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2949
+ const parsedOutput = {
2950
+ ...output,
2951
+ body: await parseErrorBody(output.body, context)
2952
+ };
2953
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2954
+ switch (errorCode) {
2955
+ case "IdempotentParameterMismatchException":
2956
+ case "com.amazonaws.ram#IdempotentParameterMismatchException":
2957
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
2958
+ case "InvalidClientTokenException":
2959
+ case "com.amazonaws.ram#InvalidClientTokenException":
2960
+ throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
2961
+ case "InvalidParameterException":
2962
+ case "com.amazonaws.ram#InvalidParameterException":
2963
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2964
+ case "MalformedArnException":
2965
+ case "com.amazonaws.ram#MalformedArnException":
2966
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
2967
+ case "OperationNotPermittedException":
2968
+ case "com.amazonaws.ram#OperationNotPermittedException":
2969
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
2970
+ case "ServerInternalException":
2971
+ case "com.amazonaws.ram#ServerInternalException":
2972
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
2973
+ case "ServiceUnavailableException":
2974
+ case "com.amazonaws.ram#ServiceUnavailableException":
2975
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2976
+ case "UnknownResourceException":
2977
+ case "com.amazonaws.ram#UnknownResourceException":
2978
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
2979
+ default:
2980
+ const parsedBody = parsedOutput.body;
2981
+ return throwDefaultError({
2982
+ output,
2983
+ parsedBody,
2984
+ errorCode
2985
+ });
2986
+ }
2987
+ }, "de_ReplacePermissionAssociationsCommandError");
2988
+ var de_SetDefaultPermissionVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
2989
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2990
+ return de_SetDefaultPermissionVersionCommandError(output, context);
2991
+ }
2992
+ const contents = (0, import_smithy_client.map)({
2993
+ $metadata: deserializeMetadata(output)
2994
+ });
2995
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2996
+ const doc = (0, import_smithy_client.take)(data, {
2997
+ clientToken: import_smithy_client.expectString,
2998
+ returnValue: import_smithy_client.expectBoolean
2999
+ });
3000
+ Object.assign(contents, doc);
3001
+ return contents;
3002
+ }, "de_SetDefaultPermissionVersionCommand");
3003
+ var de_SetDefaultPermissionVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
3004
+ const parsedOutput = {
3005
+ ...output,
3006
+ body: await parseErrorBody(output.body, context)
3007
+ };
3008
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3009
+ switch (errorCode) {
3010
+ case "IdempotentParameterMismatchException":
3011
+ case "com.amazonaws.ram#IdempotentParameterMismatchException":
3012
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
3013
+ case "InvalidClientTokenException":
3014
+ case "com.amazonaws.ram#InvalidClientTokenException":
3015
+ throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
3016
+ case "InvalidParameterException":
3017
+ case "com.amazonaws.ram#InvalidParameterException":
3018
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
3019
+ case "MalformedArnException":
3020
+ case "com.amazonaws.ram#MalformedArnException":
3021
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
3022
+ case "ServerInternalException":
3023
+ case "com.amazonaws.ram#ServerInternalException":
3024
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
3025
+ case "ServiceUnavailableException":
3026
+ case "com.amazonaws.ram#ServiceUnavailableException":
3027
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3028
+ case "UnknownResourceException":
3029
+ case "com.amazonaws.ram#UnknownResourceException":
3030
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
3031
+ default:
3032
+ const parsedBody = parsedOutput.body;
3033
+ return throwDefaultError({
3034
+ output,
3035
+ parsedBody,
3036
+ errorCode
3037
+ });
3038
+ }
3039
+ }, "de_SetDefaultPermissionVersionCommandError");
3040
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
3041
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3042
+ return de_TagResourceCommandError(output, context);
3043
+ }
3044
+ const contents = (0, import_smithy_client.map)({
3045
+ $metadata: deserializeMetadata(output)
3046
+ });
3047
+ await (0, import_smithy_client.collectBody)(output.body, context);
3048
+ return contents;
3049
+ }, "de_TagResourceCommand");
3050
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
3051
+ const parsedOutput = {
3052
+ ...output,
3053
+ body: await parseErrorBody(output.body, context)
3054
+ };
3055
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3056
+ switch (errorCode) {
3057
+ case "InvalidParameterException":
3058
+ case "com.amazonaws.ram#InvalidParameterException":
3059
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
3060
+ case "MalformedArnException":
3061
+ case "com.amazonaws.ram#MalformedArnException":
3062
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
3063
+ case "ResourceArnNotFoundException":
3064
+ case "com.amazonaws.ram#ResourceArnNotFoundException":
3065
+ throw await de_ResourceArnNotFoundExceptionRes(parsedOutput, context);
3066
+ case "ServerInternalException":
3067
+ case "com.amazonaws.ram#ServerInternalException":
3068
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
3069
+ case "ServiceUnavailableException":
3070
+ case "com.amazonaws.ram#ServiceUnavailableException":
3071
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3072
+ case "TagLimitExceededException":
3073
+ case "com.amazonaws.ram#TagLimitExceededException":
3074
+ throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
3075
+ case "TagPolicyViolationException":
3076
+ case "com.amazonaws.ram#TagPolicyViolationException":
3077
+ throw await de_TagPolicyViolationExceptionRes(parsedOutput, context);
3078
+ case "UnknownResourceException":
3079
+ case "com.amazonaws.ram#UnknownResourceException":
3080
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
3081
+ default:
3082
+ const parsedBody = parsedOutput.body;
3083
+ return throwDefaultError({
3084
+ output,
3085
+ parsedBody,
3086
+ errorCode
3087
+ });
3088
+ }
3089
+ }, "de_TagResourceCommandError");
3090
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
3091
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3092
+ return de_UntagResourceCommandError(output, context);
3093
+ }
3094
+ const contents = (0, import_smithy_client.map)({
3095
+ $metadata: deserializeMetadata(output)
3096
+ });
3097
+ await (0, import_smithy_client.collectBody)(output.body, context);
3098
+ return contents;
3099
+ }, "de_UntagResourceCommand");
3100
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
3101
+ const parsedOutput = {
3102
+ ...output,
3103
+ body: await parseErrorBody(output.body, context)
3104
+ };
3105
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3106
+ switch (errorCode) {
3107
+ case "InvalidParameterException":
3108
+ case "com.amazonaws.ram#InvalidParameterException":
3109
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
3110
+ case "MalformedArnException":
3111
+ case "com.amazonaws.ram#MalformedArnException":
3112
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
3113
+ case "ServerInternalException":
3114
+ case "com.amazonaws.ram#ServerInternalException":
3115
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
3116
+ case "ServiceUnavailableException":
3117
+ case "com.amazonaws.ram#ServiceUnavailableException":
3118
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3119
+ case "UnknownResourceException":
3120
+ case "com.amazonaws.ram#UnknownResourceException":
3121
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
3122
+ default:
3123
+ const parsedBody = parsedOutput.body;
3124
+ return throwDefaultError({
3125
+ output,
3126
+ parsedBody,
3127
+ errorCode
3128
+ });
3129
+ }
3130
+ }, "de_UntagResourceCommandError");
3131
+ var de_UpdateResourceShareCommand = /* @__PURE__ */ __name(async (output, context) => {
3132
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3133
+ return de_UpdateResourceShareCommandError(output, context);
3134
+ }
3135
+ const contents = (0, import_smithy_client.map)({
3136
+ $metadata: deserializeMetadata(output)
3137
+ });
3138
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
3139
+ const doc = (0, import_smithy_client.take)(data, {
3140
+ clientToken: import_smithy_client.expectString,
3141
+ resourceShare: (_) => de_ResourceShare(_, context)
3142
+ });
3143
+ Object.assign(contents, doc);
3144
+ return contents;
3145
+ }, "de_UpdateResourceShareCommand");
3146
+ var de_UpdateResourceShareCommandError = /* @__PURE__ */ __name(async (output, context) => {
3147
+ const parsedOutput = {
3148
+ ...output,
3149
+ body: await parseErrorBody(output.body, context)
3150
+ };
3151
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3152
+ switch (errorCode) {
3153
+ case "IdempotentParameterMismatchException":
3154
+ case "com.amazonaws.ram#IdempotentParameterMismatchException":
3155
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
3156
+ case "InvalidClientTokenException":
3157
+ case "com.amazonaws.ram#InvalidClientTokenException":
3158
+ throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
3159
+ case "InvalidParameterException":
3160
+ case "com.amazonaws.ram#InvalidParameterException":
3161
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
3162
+ case "MalformedArnException":
3163
+ case "com.amazonaws.ram#MalformedArnException":
3164
+ throw await de_MalformedArnExceptionRes(parsedOutput, context);
3165
+ case "MissingRequiredParameterException":
3166
+ case "com.amazonaws.ram#MissingRequiredParameterException":
3167
+ throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
3168
+ case "OperationNotPermittedException":
3169
+ case "com.amazonaws.ram#OperationNotPermittedException":
3170
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
3171
+ case "ServerInternalException":
3172
+ case "com.amazonaws.ram#ServerInternalException":
3173
+ throw await de_ServerInternalExceptionRes(parsedOutput, context);
3174
+ case "ServiceUnavailableException":
3175
+ case "com.amazonaws.ram#ServiceUnavailableException":
3176
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3177
+ case "UnknownResourceException":
3178
+ case "com.amazonaws.ram#UnknownResourceException":
3179
+ throw await de_UnknownResourceExceptionRes(parsedOutput, context);
3180
+ default:
3181
+ const parsedBody = parsedOutput.body;
3182
+ return throwDefaultError({
3183
+ output,
3184
+ parsedBody,
3185
+ errorCode
3186
+ });
3187
+ }
3188
+ }, "de_UpdateResourceShareCommandError");
3189
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(RAMServiceException);
3190
+ var de_IdempotentParameterMismatchExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3191
+ const contents = (0, import_smithy_client.map)({});
3192
+ const data = parsedOutput.body;
3193
+ const doc = (0, import_smithy_client.take)(data, {
3194
+ message: import_smithy_client.expectString
3195
+ });
3196
+ Object.assign(contents, doc);
3197
+ const exception = new IdempotentParameterMismatchException({
3198
+ $metadata: deserializeMetadata(parsedOutput),
3199
+ ...contents
3200
+ });
3201
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3202
+ }, "de_IdempotentParameterMismatchExceptionRes");
3203
+ var de_InvalidClientTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3204
+ const contents = (0, import_smithy_client.map)({});
3205
+ const data = parsedOutput.body;
3206
+ const doc = (0, import_smithy_client.take)(data, {
3207
+ message: import_smithy_client.expectString
3208
+ });
3209
+ Object.assign(contents, doc);
3210
+ const exception = new InvalidClientTokenException({
3211
+ $metadata: deserializeMetadata(parsedOutput),
3212
+ ...contents
3213
+ });
3214
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3215
+ }, "de_InvalidClientTokenExceptionRes");
3216
+ var de_InvalidMaxResultsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3217
+ const contents = (0, import_smithy_client.map)({});
3218
+ const data = parsedOutput.body;
3219
+ const doc = (0, import_smithy_client.take)(data, {
3220
+ message: import_smithy_client.expectString
3221
+ });
3222
+ Object.assign(contents, doc);
3223
+ const exception = new InvalidMaxResultsException({
3224
+ $metadata: deserializeMetadata(parsedOutput),
3225
+ ...contents
3226
+ });
3227
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3228
+ }, "de_InvalidMaxResultsExceptionRes");
3229
+ var de_InvalidNextTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3230
+ const contents = (0, import_smithy_client.map)({});
3231
+ const data = parsedOutput.body;
3232
+ const doc = (0, import_smithy_client.take)(data, {
3233
+ message: import_smithy_client.expectString
3234
+ });
3235
+ Object.assign(contents, doc);
3236
+ const exception = new InvalidNextTokenException({
3237
+ $metadata: deserializeMetadata(parsedOutput),
3238
+ ...contents
3239
+ });
3240
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3241
+ }, "de_InvalidNextTokenExceptionRes");
3242
+ var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3243
+ const contents = (0, import_smithy_client.map)({});
3244
+ const data = parsedOutput.body;
3245
+ const doc = (0, import_smithy_client.take)(data, {
3246
+ message: import_smithy_client.expectString
3247
+ });
3248
+ Object.assign(contents, doc);
3249
+ const exception = new InvalidParameterException({
3250
+ $metadata: deserializeMetadata(parsedOutput),
3251
+ ...contents
3252
+ });
3253
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3254
+ }, "de_InvalidParameterExceptionRes");
3255
+ var de_InvalidPolicyExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3256
+ const contents = (0, import_smithy_client.map)({});
3257
+ const data = parsedOutput.body;
3258
+ const doc = (0, import_smithy_client.take)(data, {
3259
+ message: import_smithy_client.expectString
3260
+ });
3261
+ Object.assign(contents, doc);
3262
+ const exception = new InvalidPolicyException({
3263
+ $metadata: deserializeMetadata(parsedOutput),
3264
+ ...contents
3265
+ });
3266
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3267
+ }, "de_InvalidPolicyExceptionRes");
3268
+ var de_InvalidResourceTypeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3269
+ const contents = (0, import_smithy_client.map)({});
3270
+ const data = parsedOutput.body;
3271
+ const doc = (0, import_smithy_client.take)(data, {
3272
+ message: import_smithy_client.expectString
3273
+ });
3274
+ Object.assign(contents, doc);
3275
+ const exception = new InvalidResourceTypeException({
3276
+ $metadata: deserializeMetadata(parsedOutput),
3277
+ ...contents
3278
+ });
3279
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3280
+ }, "de_InvalidResourceTypeExceptionRes");
3281
+ var de_InvalidStateTransitionExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3282
+ const contents = (0, import_smithy_client.map)({});
3283
+ const data = parsedOutput.body;
3284
+ const doc = (0, import_smithy_client.take)(data, {
3285
+ message: import_smithy_client.expectString
3286
+ });
3287
+ Object.assign(contents, doc);
3288
+ const exception = new InvalidStateTransitionException({
3289
+ $metadata: deserializeMetadata(parsedOutput),
3290
+ ...contents
3291
+ });
3292
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3293
+ }, "de_InvalidStateTransitionExceptionRes");
3294
+ var de_MalformedArnExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3295
+ const contents = (0, import_smithy_client.map)({});
3296
+ const data = parsedOutput.body;
3297
+ const doc = (0, import_smithy_client.take)(data, {
3298
+ message: import_smithy_client.expectString
3299
+ });
3300
+ Object.assign(contents, doc);
3301
+ const exception = new MalformedArnException({
3302
+ $metadata: deserializeMetadata(parsedOutput),
3303
+ ...contents
3304
+ });
3305
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3306
+ }, "de_MalformedArnExceptionRes");
3307
+ var de_MalformedPolicyTemplateExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3308
+ const contents = (0, import_smithy_client.map)({});
3309
+ const data = parsedOutput.body;
3310
+ const doc = (0, import_smithy_client.take)(data, {
3311
+ message: import_smithy_client.expectString
3312
+ });
3313
+ Object.assign(contents, doc);
3314
+ const exception = new MalformedPolicyTemplateException({
3315
+ $metadata: deserializeMetadata(parsedOutput),
3316
+ ...contents
3317
+ });
3318
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3319
+ }, "de_MalformedPolicyTemplateExceptionRes");
3320
+ var de_MissingRequiredParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3321
+ const contents = (0, import_smithy_client.map)({});
3322
+ const data = parsedOutput.body;
3323
+ const doc = (0, import_smithy_client.take)(data, {
3324
+ message: import_smithy_client.expectString
3325
+ });
3326
+ Object.assign(contents, doc);
3327
+ const exception = new MissingRequiredParameterException({
3328
+ $metadata: deserializeMetadata(parsedOutput),
3329
+ ...contents
3330
+ });
3331
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3332
+ }, "de_MissingRequiredParameterExceptionRes");
3333
+ var de_OperationNotPermittedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3334
+ const contents = (0, import_smithy_client.map)({});
3335
+ const data = parsedOutput.body;
3336
+ const doc = (0, import_smithy_client.take)(data, {
3337
+ message: import_smithy_client.expectString
3338
+ });
3339
+ Object.assign(contents, doc);
3340
+ const exception = new OperationNotPermittedException({
3341
+ $metadata: deserializeMetadata(parsedOutput),
3342
+ ...contents
3343
+ });
3344
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3345
+ }, "de_OperationNotPermittedExceptionRes");
3346
+ var de_PermissionAlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3347
+ const contents = (0, import_smithy_client.map)({});
3348
+ const data = parsedOutput.body;
3349
+ const doc = (0, import_smithy_client.take)(data, {
3350
+ message: import_smithy_client.expectString
3351
+ });
3352
+ Object.assign(contents, doc);
3353
+ const exception = new PermissionAlreadyExistsException({
3354
+ $metadata: deserializeMetadata(parsedOutput),
3355
+ ...contents
3356
+ });
3357
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3358
+ }, "de_PermissionAlreadyExistsExceptionRes");
3359
+ var de_PermissionLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3360
+ const contents = (0, import_smithy_client.map)({});
3361
+ const data = parsedOutput.body;
3362
+ const doc = (0, import_smithy_client.take)(data, {
3363
+ message: import_smithy_client.expectString
3364
+ });
3365
+ Object.assign(contents, doc);
3366
+ const exception = new PermissionLimitExceededException({
3367
+ $metadata: deserializeMetadata(parsedOutput),
3368
+ ...contents
3369
+ });
3370
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3371
+ }, "de_PermissionLimitExceededExceptionRes");
3372
+ var de_PermissionVersionsLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3373
+ const contents = (0, import_smithy_client.map)({});
3374
+ const data = parsedOutput.body;
3375
+ const doc = (0, import_smithy_client.take)(data, {
3376
+ message: import_smithy_client.expectString
3377
+ });
3378
+ Object.assign(contents, doc);
3379
+ const exception = new PermissionVersionsLimitExceededException({
3380
+ $metadata: deserializeMetadata(parsedOutput),
3381
+ ...contents
3382
+ });
3383
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3384
+ }, "de_PermissionVersionsLimitExceededExceptionRes");
3385
+ var de_ResourceArnNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3386
+ const contents = (0, import_smithy_client.map)({});
3387
+ const data = parsedOutput.body;
3388
+ const doc = (0, import_smithy_client.take)(data, {
3389
+ message: import_smithy_client.expectString
3390
+ });
3391
+ Object.assign(contents, doc);
3392
+ const exception = new ResourceArnNotFoundException({
3393
+ $metadata: deserializeMetadata(parsedOutput),
3394
+ ...contents
3395
+ });
3396
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3397
+ }, "de_ResourceArnNotFoundExceptionRes");
3398
+ var de_ResourceShareInvitationAlreadyAcceptedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3399
+ const contents = (0, import_smithy_client.map)({});
3400
+ const data = parsedOutput.body;
3401
+ const doc = (0, import_smithy_client.take)(data, {
3402
+ message: import_smithy_client.expectString
3403
+ });
3404
+ Object.assign(contents, doc);
3405
+ const exception = new ResourceShareInvitationAlreadyAcceptedException({
3406
+ $metadata: deserializeMetadata(parsedOutput),
3407
+ ...contents
3408
+ });
3409
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3410
+ }, "de_ResourceShareInvitationAlreadyAcceptedExceptionRes");
3411
+ var de_ResourceShareInvitationAlreadyRejectedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3412
+ const contents = (0, import_smithy_client.map)({});
3413
+ const data = parsedOutput.body;
3414
+ const doc = (0, import_smithy_client.take)(data, {
3415
+ message: import_smithy_client.expectString
3416
+ });
3417
+ Object.assign(contents, doc);
3418
+ const exception = new ResourceShareInvitationAlreadyRejectedException({
3419
+ $metadata: deserializeMetadata(parsedOutput),
3420
+ ...contents
3421
+ });
3422
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3423
+ }, "de_ResourceShareInvitationAlreadyRejectedExceptionRes");
3424
+ var de_ResourceShareInvitationArnNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3425
+ const contents = (0, import_smithy_client.map)({});
3426
+ const data = parsedOutput.body;
3427
+ const doc = (0, import_smithy_client.take)(data, {
3428
+ message: import_smithy_client.expectString
3429
+ });
3430
+ Object.assign(contents, doc);
3431
+ const exception = new ResourceShareInvitationArnNotFoundException({
3432
+ $metadata: deserializeMetadata(parsedOutput),
3433
+ ...contents
3434
+ });
3435
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3436
+ }, "de_ResourceShareInvitationArnNotFoundExceptionRes");
3437
+ var de_ResourceShareInvitationExpiredExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3438
+ const contents = (0, import_smithy_client.map)({});
3439
+ const data = parsedOutput.body;
3440
+ const doc = (0, import_smithy_client.take)(data, {
3441
+ message: import_smithy_client.expectString
3442
+ });
3443
+ Object.assign(contents, doc);
3444
+ const exception = new ResourceShareInvitationExpiredException({
3445
+ $metadata: deserializeMetadata(parsedOutput),
3446
+ ...contents
3447
+ });
3448
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3449
+ }, "de_ResourceShareInvitationExpiredExceptionRes");
3450
+ var de_ResourceShareLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3451
+ const contents = (0, import_smithy_client.map)({});
3452
+ const data = parsedOutput.body;
3453
+ const doc = (0, import_smithy_client.take)(data, {
3454
+ message: import_smithy_client.expectString
3455
+ });
3456
+ Object.assign(contents, doc);
3457
+ const exception = new ResourceShareLimitExceededException({
3458
+ $metadata: deserializeMetadata(parsedOutput),
3459
+ ...contents
3460
+ });
3461
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3462
+ }, "de_ResourceShareLimitExceededExceptionRes");
3463
+ var de_ServerInternalExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3464
+ const contents = (0, import_smithy_client.map)({});
3465
+ const data = parsedOutput.body;
3466
+ const doc = (0, import_smithy_client.take)(data, {
3467
+ message: import_smithy_client.expectString
3468
+ });
3469
+ Object.assign(contents, doc);
3470
+ const exception = new ServerInternalException({
3471
+ $metadata: deserializeMetadata(parsedOutput),
3472
+ ...contents
3473
+ });
3474
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3475
+ }, "de_ServerInternalExceptionRes");
3476
+ var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3477
+ const contents = (0, import_smithy_client.map)({});
3478
+ const data = parsedOutput.body;
3479
+ const doc = (0, import_smithy_client.take)(data, {
3480
+ message: import_smithy_client.expectString
3481
+ });
3482
+ Object.assign(contents, doc);
3483
+ const exception = new ServiceUnavailableException({
3484
+ $metadata: deserializeMetadata(parsedOutput),
3485
+ ...contents
3486
+ });
3487
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3488
+ }, "de_ServiceUnavailableExceptionRes");
3489
+ var de_TagLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3490
+ const contents = (0, import_smithy_client.map)({});
3491
+ const data = parsedOutput.body;
3492
+ const doc = (0, import_smithy_client.take)(data, {
3493
+ message: import_smithy_client.expectString
3494
+ });
3495
+ Object.assign(contents, doc);
3496
+ const exception = new TagLimitExceededException({
3497
+ $metadata: deserializeMetadata(parsedOutput),
3498
+ ...contents
3499
+ });
3500
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3501
+ }, "de_TagLimitExceededExceptionRes");
3502
+ var de_TagPolicyViolationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3503
+ const contents = (0, import_smithy_client.map)({});
3504
+ const data = parsedOutput.body;
3505
+ const doc = (0, import_smithy_client.take)(data, {
3506
+ message: import_smithy_client.expectString
3507
+ });
3508
+ Object.assign(contents, doc);
3509
+ const exception = new TagPolicyViolationException({
3510
+ $metadata: deserializeMetadata(parsedOutput),
3511
+ ...contents
3512
+ });
3513
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3514
+ }, "de_TagPolicyViolationExceptionRes");
3515
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3516
+ const contents = (0, import_smithy_client.map)({});
3517
+ const data = parsedOutput.body;
3518
+ const doc = (0, import_smithy_client.take)(data, {
3519
+ message: import_smithy_client.expectString
3520
+ });
3521
+ Object.assign(contents, doc);
3522
+ const exception = new ThrottlingException({
3523
+ $metadata: deserializeMetadata(parsedOutput),
3524
+ ...contents
3525
+ });
3526
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3527
+ }, "de_ThrottlingExceptionRes");
3528
+ var de_UnknownResourceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3529
+ const contents = (0, import_smithy_client.map)({});
3530
+ const data = parsedOutput.body;
3531
+ const doc = (0, import_smithy_client.take)(data, {
3532
+ message: import_smithy_client.expectString
3533
+ });
3534
+ Object.assign(contents, doc);
3535
+ const exception = new UnknownResourceException({
3536
+ $metadata: deserializeMetadata(parsedOutput),
3537
+ ...contents
3538
+ });
3539
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3540
+ }, "de_UnknownResourceExceptionRes");
3541
+ var de_UnmatchedPolicyPermissionExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3542
+ const contents = (0, import_smithy_client.map)({});
3543
+ const data = parsedOutput.body;
3544
+ const doc = (0, import_smithy_client.take)(data, {
3545
+ message: import_smithy_client.expectString
3546
+ });
3547
+ Object.assign(contents, doc);
3548
+ const exception = new UnmatchedPolicyPermissionException({
3549
+ $metadata: deserializeMetadata(parsedOutput),
3550
+ ...contents
3551
+ });
3552
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3553
+ }, "de_UnmatchedPolicyPermissionExceptionRes");
3554
+ var de_AssociatedPermission = /* @__PURE__ */ __name((output, context) => {
3555
+ return (0, import_smithy_client.take)(output, {
3556
+ arn: import_smithy_client.expectString,
3557
+ defaultVersion: import_smithy_client.expectBoolean,
3558
+ featureSet: import_smithy_client.expectString,
3559
+ lastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3560
+ permissionVersion: import_smithy_client.expectString,
3561
+ resourceShareArn: import_smithy_client.expectString,
3562
+ resourceType: import_smithy_client.expectString,
3563
+ status: import_smithy_client.expectString
3564
+ });
3565
+ }, "de_AssociatedPermission");
3566
+ var de_AssociatedPermissionList = /* @__PURE__ */ __name((output, context) => {
3567
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3568
+ return de_AssociatedPermission(entry, context);
3569
+ });
3570
+ return retVal;
3571
+ }, "de_AssociatedPermissionList");
3572
+ var de_Principal = /* @__PURE__ */ __name((output, context) => {
3573
+ return (0, import_smithy_client.take)(output, {
3574
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3575
+ external: import_smithy_client.expectBoolean,
3576
+ id: import_smithy_client.expectString,
3577
+ lastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3578
+ resourceShareArn: import_smithy_client.expectString
3579
+ });
3580
+ }, "de_Principal");
3581
+ var de_PrincipalList = /* @__PURE__ */ __name((output, context) => {
3582
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3583
+ return de_Principal(entry, context);
3584
+ });
3585
+ return retVal;
3586
+ }, "de_PrincipalList");
3587
+ var de_ReplacePermissionAssociationsWork = /* @__PURE__ */ __name((output, context) => {
3588
+ return (0, import_smithy_client.take)(output, {
3589
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3590
+ fromPermissionArn: import_smithy_client.expectString,
3591
+ fromPermissionVersion: import_smithy_client.expectString,
3592
+ id: import_smithy_client.expectString,
3593
+ lastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3594
+ status: import_smithy_client.expectString,
3595
+ statusMessage: import_smithy_client.expectString,
3596
+ toPermissionArn: import_smithy_client.expectString,
3597
+ toPermissionVersion: import_smithy_client.expectString
3598
+ });
3599
+ }, "de_ReplacePermissionAssociationsWork");
3600
+ var de_ReplacePermissionAssociationsWorkList = /* @__PURE__ */ __name((output, context) => {
3601
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3602
+ return de_ReplacePermissionAssociationsWork(entry, context);
3603
+ });
3604
+ return retVal;
3605
+ }, "de_ReplacePermissionAssociationsWorkList");
3606
+ var de_Resource = /* @__PURE__ */ __name((output, context) => {
3607
+ return (0, import_smithy_client.take)(output, {
3608
+ arn: import_smithy_client.expectString,
3609
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3610
+ lastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3611
+ resourceGroupArn: import_smithy_client.expectString,
3612
+ resourceRegionScope: import_smithy_client.expectString,
3613
+ resourceShareArn: import_smithy_client.expectString,
3614
+ status: import_smithy_client.expectString,
3615
+ statusMessage: import_smithy_client.expectString,
3616
+ type: import_smithy_client.expectString
3617
+ });
3618
+ }, "de_Resource");
3619
+ var de_ResourceList = /* @__PURE__ */ __name((output, context) => {
3620
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3621
+ return de_Resource(entry, context);
3622
+ });
3623
+ return retVal;
3624
+ }, "de_ResourceList");
3625
+ var de_ResourceShare = /* @__PURE__ */ __name((output, context) => {
3626
+ return (0, import_smithy_client.take)(output, {
3627
+ allowExternalPrincipals: import_smithy_client.expectBoolean,
3628
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3629
+ featureSet: import_smithy_client.expectString,
3630
+ lastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3631
+ name: import_smithy_client.expectString,
3632
+ owningAccountId: import_smithy_client.expectString,
3633
+ resourceShareArn: import_smithy_client.expectString,
3634
+ status: import_smithy_client.expectString,
3635
+ statusMessage: import_smithy_client.expectString,
3636
+ tags: import_smithy_client._json
3637
+ });
3638
+ }, "de_ResourceShare");
3639
+ var de_ResourceShareAssociation = /* @__PURE__ */ __name((output, context) => {
3640
+ return (0, import_smithy_client.take)(output, {
3641
+ associatedEntity: import_smithy_client.expectString,
3642
+ associationType: import_smithy_client.expectString,
3643
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3644
+ external: import_smithy_client.expectBoolean,
3645
+ lastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3646
+ resourceShareArn: import_smithy_client.expectString,
3647
+ resourceShareName: import_smithy_client.expectString,
3648
+ status: import_smithy_client.expectString,
3649
+ statusMessage: import_smithy_client.expectString
3650
+ });
3651
+ }, "de_ResourceShareAssociation");
3652
+ var de_ResourceShareAssociationList = /* @__PURE__ */ __name((output, context) => {
3653
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3654
+ return de_ResourceShareAssociation(entry, context);
3655
+ });
3656
+ return retVal;
3657
+ }, "de_ResourceShareAssociationList");
3658
+ var de_ResourceShareInvitation = /* @__PURE__ */ __name((output, context) => {
3659
+ return (0, import_smithy_client.take)(output, {
3660
+ invitationTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3661
+ receiverAccountId: import_smithy_client.expectString,
3662
+ receiverArn: import_smithy_client.expectString,
3663
+ resourceShareArn: import_smithy_client.expectString,
3664
+ resourceShareAssociations: (_) => de_ResourceShareAssociationList(_, context),
3665
+ resourceShareInvitationArn: import_smithy_client.expectString,
3666
+ resourceShareName: import_smithy_client.expectString,
3667
+ senderAccountId: import_smithy_client.expectString,
3668
+ status: import_smithy_client.expectString
3669
+ });
3670
+ }, "de_ResourceShareInvitation");
3671
+ var de_ResourceShareInvitationList = /* @__PURE__ */ __name((output, context) => {
3672
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3673
+ return de_ResourceShareInvitation(entry, context);
3674
+ });
3675
+ return retVal;
3676
+ }, "de_ResourceShareInvitationList");
3677
+ var de_ResourceShareList = /* @__PURE__ */ __name((output, context) => {
3678
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3679
+ return de_ResourceShare(entry, context);
3680
+ });
3681
+ return retVal;
3682
+ }, "de_ResourceShareList");
3683
+ var de_ResourceSharePermissionDetail = /* @__PURE__ */ __name((output, context) => {
3684
+ return (0, import_smithy_client.take)(output, {
3685
+ arn: import_smithy_client.expectString,
3686
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3687
+ defaultVersion: import_smithy_client.expectBoolean,
3688
+ featureSet: import_smithy_client.expectString,
3689
+ isResourceTypeDefault: import_smithy_client.expectBoolean,
3690
+ lastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3691
+ name: import_smithy_client.expectString,
3692
+ permission: import_smithy_client.expectString,
3693
+ permissionType: import_smithy_client.expectString,
3694
+ resourceType: import_smithy_client.expectString,
3695
+ status: import_smithy_client.expectString,
3696
+ tags: import_smithy_client._json,
3697
+ version: import_smithy_client.expectString
3698
+ });
3699
+ }, "de_ResourceSharePermissionDetail");
3700
+ var de_ResourceSharePermissionList = /* @__PURE__ */ __name((output, context) => {
3701
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3702
+ return de_ResourceSharePermissionSummary(entry, context);
3703
+ });
3704
+ return retVal;
3705
+ }, "de_ResourceSharePermissionList");
3706
+ var de_ResourceSharePermissionSummary = /* @__PURE__ */ __name((output, context) => {
3707
+ return (0, import_smithy_client.take)(output, {
3708
+ arn: import_smithy_client.expectString,
3709
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3710
+ defaultVersion: import_smithy_client.expectBoolean,
3711
+ featureSet: import_smithy_client.expectString,
3712
+ isResourceTypeDefault: import_smithy_client.expectBoolean,
3713
+ lastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3714
+ name: import_smithy_client.expectString,
3715
+ permissionType: import_smithy_client.expectString,
3716
+ resourceType: import_smithy_client.expectString,
3717
+ status: import_smithy_client.expectString,
3718
+ tags: import_smithy_client._json,
3719
+ version: import_smithy_client.expectString
3720
+ });
3721
+ }, "de_ResourceSharePermissionSummary");
3722
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
3723
+ httpStatusCode: output.statusCode,
3724
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
3725
+ extendedRequestId: output.headers["x-amz-id-2"],
3726
+ cfId: output.headers["x-amz-cf-id"]
3727
+ }), "deserializeMetadata");
3728
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
3729
+ var _cT = "clientToken";
3730
+ var _pA = "permissionArn";
3731
+ var _pV = "permissionVersion";
3732
+ var _rSA = "resourceShareArn";
3733
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3734
+ if (encoded.length) {
3735
+ return JSON.parse(encoded);
3736
+ }
3737
+ return {};
3738
+ }), "parseBody");
3739
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
3740
+ const value = await parseBody(errorBody, context);
3741
+ value.message = value.message ?? value.Message;
3742
+ return value;
3743
+ }, "parseErrorBody");
3744
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
3745
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
3746
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
3747
+ let cleanValue = rawValue;
3748
+ if (typeof cleanValue === "number") {
3749
+ cleanValue = cleanValue.toString();
3750
+ }
3751
+ if (cleanValue.indexOf(",") >= 0) {
3752
+ cleanValue = cleanValue.split(",")[0];
3753
+ }
3754
+ if (cleanValue.indexOf(":") >= 0) {
3755
+ cleanValue = cleanValue.split(":")[0];
3756
+ }
3757
+ if (cleanValue.indexOf("#") >= 0) {
3758
+ cleanValue = cleanValue.split("#")[1];
3759
+ }
3760
+ return cleanValue;
3761
+ }, "sanitizeErrorCode");
3762
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
3763
+ if (headerKey !== void 0) {
3764
+ return sanitizeErrorCode(output.headers[headerKey]);
3765
+ }
3766
+ if (data.code !== void 0) {
3767
+ return sanitizeErrorCode(data.code);
3768
+ }
3769
+ if (data["__type"] !== void 0) {
3770
+ return sanitizeErrorCode(data["__type"]);
3771
+ }
3772
+ }, "loadRestJsonErrorCode");
3773
+
3774
+ // src/commands/AcceptResourceShareInvitationCommand.ts
3775
+ var _AcceptResourceShareInvitationCommand = class _AcceptResourceShareInvitationCommand extends import_smithy_client.Command.classBuilder().ep({
3776
+ ...commonParams
3777
+ }).m(function(Command, cs, config, o) {
3778
+ return [
3779
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3780
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3781
+ ];
3782
+ }).s("AmazonResourceSharing", "AcceptResourceShareInvitation", {}).n("RAMClient", "AcceptResourceShareInvitationCommand").f(void 0, void 0).ser(se_AcceptResourceShareInvitationCommand).de(de_AcceptResourceShareInvitationCommand).build() {
3783
+ };
3784
+ __name(_AcceptResourceShareInvitationCommand, "AcceptResourceShareInvitationCommand");
3785
+ var AcceptResourceShareInvitationCommand = _AcceptResourceShareInvitationCommand;
3786
+
3787
+ // src/commands/AssociateResourceShareCommand.ts
3788
+
3789
+
3790
+
3791
+
3792
+ var _AssociateResourceShareCommand = class _AssociateResourceShareCommand extends import_smithy_client.Command.classBuilder().ep({
3793
+ ...commonParams
3794
+ }).m(function(Command, cs, config, o) {
3795
+ return [
3796
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3797
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3798
+ ];
3799
+ }).s("AmazonResourceSharing", "AssociateResourceShare", {}).n("RAMClient", "AssociateResourceShareCommand").f(void 0, void 0).ser(se_AssociateResourceShareCommand).de(de_AssociateResourceShareCommand).build() {
3800
+ };
3801
+ __name(_AssociateResourceShareCommand, "AssociateResourceShareCommand");
3802
+ var AssociateResourceShareCommand = _AssociateResourceShareCommand;
3803
+
3804
+ // src/commands/AssociateResourceSharePermissionCommand.ts
3805
+
3806
+
3807
+
3808
+
3809
+ var _AssociateResourceSharePermissionCommand = class _AssociateResourceSharePermissionCommand extends import_smithy_client.Command.classBuilder().ep({
3810
+ ...commonParams
3811
+ }).m(function(Command, cs, config, o) {
3812
+ return [
3813
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3814
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3815
+ ];
3816
+ }).s("AmazonResourceSharing", "AssociateResourceSharePermission", {}).n("RAMClient", "AssociateResourceSharePermissionCommand").f(void 0, void 0).ser(se_AssociateResourceSharePermissionCommand).de(de_AssociateResourceSharePermissionCommand).build() {
3817
+ };
3818
+ __name(_AssociateResourceSharePermissionCommand, "AssociateResourceSharePermissionCommand");
3819
+ var AssociateResourceSharePermissionCommand = _AssociateResourceSharePermissionCommand;
3820
+
3821
+ // src/commands/CreatePermissionCommand.ts
3822
+
3823
+
3824
+
3825
+
3826
+ var _CreatePermissionCommand = class _CreatePermissionCommand extends import_smithy_client.Command.classBuilder().ep({
3827
+ ...commonParams
3828
+ }).m(function(Command, cs, config, o) {
3829
+ return [
3830
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3831
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3832
+ ];
3833
+ }).s("AmazonResourceSharing", "CreatePermission", {}).n("RAMClient", "CreatePermissionCommand").f(void 0, void 0).ser(se_CreatePermissionCommand).de(de_CreatePermissionCommand).build() {
3834
+ };
3835
+ __name(_CreatePermissionCommand, "CreatePermissionCommand");
3836
+ var CreatePermissionCommand = _CreatePermissionCommand;
3837
+
3838
+ // src/commands/CreatePermissionVersionCommand.ts
3839
+
3840
+
3841
+
3842
+
3843
+ var _CreatePermissionVersionCommand = class _CreatePermissionVersionCommand extends import_smithy_client.Command.classBuilder().ep({
3844
+ ...commonParams
3845
+ }).m(function(Command, cs, config, o) {
3846
+ return [
3847
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3848
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3849
+ ];
3850
+ }).s("AmazonResourceSharing", "CreatePermissionVersion", {}).n("RAMClient", "CreatePermissionVersionCommand").f(void 0, void 0).ser(se_CreatePermissionVersionCommand).de(de_CreatePermissionVersionCommand).build() {
3851
+ };
3852
+ __name(_CreatePermissionVersionCommand, "CreatePermissionVersionCommand");
3853
+ var CreatePermissionVersionCommand = _CreatePermissionVersionCommand;
3854
+
3855
+ // src/commands/CreateResourceShareCommand.ts
3856
+
3857
+
3858
+
3859
+
3860
+ var _CreateResourceShareCommand = class _CreateResourceShareCommand extends import_smithy_client.Command.classBuilder().ep({
3861
+ ...commonParams
3862
+ }).m(function(Command, cs, config, o) {
3863
+ return [
3864
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3865
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3866
+ ];
3867
+ }).s("AmazonResourceSharing", "CreateResourceShare", {}).n("RAMClient", "CreateResourceShareCommand").f(void 0, void 0).ser(se_CreateResourceShareCommand).de(de_CreateResourceShareCommand).build() {
3868
+ };
3869
+ __name(_CreateResourceShareCommand, "CreateResourceShareCommand");
3870
+ var CreateResourceShareCommand = _CreateResourceShareCommand;
3871
+
3872
+ // src/commands/DeletePermissionCommand.ts
3873
+
3874
+
3875
+
3876
+
3877
+ var _DeletePermissionCommand = class _DeletePermissionCommand extends import_smithy_client.Command.classBuilder().ep({
3878
+ ...commonParams
3879
+ }).m(function(Command, cs, config, o) {
3880
+ return [
3881
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3882
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3883
+ ];
3884
+ }).s("AmazonResourceSharing", "DeletePermission", {}).n("RAMClient", "DeletePermissionCommand").f(void 0, void 0).ser(se_DeletePermissionCommand).de(de_DeletePermissionCommand).build() {
3885
+ };
3886
+ __name(_DeletePermissionCommand, "DeletePermissionCommand");
3887
+ var DeletePermissionCommand = _DeletePermissionCommand;
3888
+
3889
+ // src/commands/DeletePermissionVersionCommand.ts
3890
+
3891
+
3892
+
3893
+
3894
+ var _DeletePermissionVersionCommand = class _DeletePermissionVersionCommand extends import_smithy_client.Command.classBuilder().ep({
3895
+ ...commonParams
3896
+ }).m(function(Command, cs, config, o) {
3897
+ return [
3898
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3899
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3900
+ ];
3901
+ }).s("AmazonResourceSharing", "DeletePermissionVersion", {}).n("RAMClient", "DeletePermissionVersionCommand").f(void 0, void 0).ser(se_DeletePermissionVersionCommand).de(de_DeletePermissionVersionCommand).build() {
3902
+ };
3903
+ __name(_DeletePermissionVersionCommand, "DeletePermissionVersionCommand");
3904
+ var DeletePermissionVersionCommand = _DeletePermissionVersionCommand;
3905
+
3906
+ // src/commands/DeleteResourceShareCommand.ts
3907
+
3908
+
3909
+
3910
+
3911
+ var _DeleteResourceShareCommand = class _DeleteResourceShareCommand extends import_smithy_client.Command.classBuilder().ep({
3912
+ ...commonParams
3913
+ }).m(function(Command, cs, config, o) {
3914
+ return [
3915
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3916
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3917
+ ];
3918
+ }).s("AmazonResourceSharing", "DeleteResourceShare", {}).n("RAMClient", "DeleteResourceShareCommand").f(void 0, void 0).ser(se_DeleteResourceShareCommand).de(de_DeleteResourceShareCommand).build() {
3919
+ };
3920
+ __name(_DeleteResourceShareCommand, "DeleteResourceShareCommand");
3921
+ var DeleteResourceShareCommand = _DeleteResourceShareCommand;
3922
+
3923
+ // src/commands/DisassociateResourceShareCommand.ts
3924
+
3925
+
3926
+
3927
+
3928
+ var _DisassociateResourceShareCommand = class _DisassociateResourceShareCommand extends import_smithy_client.Command.classBuilder().ep({
3929
+ ...commonParams
3930
+ }).m(function(Command, cs, config, o) {
3931
+ return [
3932
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3933
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3934
+ ];
3935
+ }).s("AmazonResourceSharing", "DisassociateResourceShare", {}).n("RAMClient", "DisassociateResourceShareCommand").f(void 0, void 0).ser(se_DisassociateResourceShareCommand).de(de_DisassociateResourceShareCommand).build() {
3936
+ };
3937
+ __name(_DisassociateResourceShareCommand, "DisassociateResourceShareCommand");
3938
+ var DisassociateResourceShareCommand = _DisassociateResourceShareCommand;
3939
+
3940
+ // src/commands/DisassociateResourceSharePermissionCommand.ts
3941
+
3942
+
3943
+
3944
+
3945
+ var _DisassociateResourceSharePermissionCommand = class _DisassociateResourceSharePermissionCommand extends import_smithy_client.Command.classBuilder().ep({
3946
+ ...commonParams
3947
+ }).m(function(Command, cs, config, o) {
3948
+ return [
3949
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3950
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3951
+ ];
3952
+ }).s("AmazonResourceSharing", "DisassociateResourceSharePermission", {}).n("RAMClient", "DisassociateResourceSharePermissionCommand").f(void 0, void 0).ser(se_DisassociateResourceSharePermissionCommand).de(de_DisassociateResourceSharePermissionCommand).build() {
3953
+ };
3954
+ __name(_DisassociateResourceSharePermissionCommand, "DisassociateResourceSharePermissionCommand");
3955
+ var DisassociateResourceSharePermissionCommand = _DisassociateResourceSharePermissionCommand;
3956
+
3957
+ // src/commands/EnableSharingWithAwsOrganizationCommand.ts
3958
+
3959
+
3960
+
3961
+
3962
+ var _EnableSharingWithAwsOrganizationCommand = class _EnableSharingWithAwsOrganizationCommand extends import_smithy_client.Command.classBuilder().ep({
3963
+ ...commonParams
3964
+ }).m(function(Command, cs, config, o) {
3965
+ return [
3966
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3967
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3968
+ ];
3969
+ }).s("AmazonResourceSharing", "EnableSharingWithAwsOrganization", {}).n("RAMClient", "EnableSharingWithAwsOrganizationCommand").f(void 0, void 0).ser(se_EnableSharingWithAwsOrganizationCommand).de(de_EnableSharingWithAwsOrganizationCommand).build() {
3970
+ };
3971
+ __name(_EnableSharingWithAwsOrganizationCommand, "EnableSharingWithAwsOrganizationCommand");
3972
+ var EnableSharingWithAwsOrganizationCommand = _EnableSharingWithAwsOrganizationCommand;
3973
+
3974
+ // src/commands/GetPermissionCommand.ts
3975
+
3976
+
3977
+
3978
+
3979
+ var _GetPermissionCommand = class _GetPermissionCommand extends import_smithy_client.Command.classBuilder().ep({
3980
+ ...commonParams
3981
+ }).m(function(Command, cs, config, o) {
3982
+ return [
3983
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3984
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3985
+ ];
3986
+ }).s("AmazonResourceSharing", "GetPermission", {}).n("RAMClient", "GetPermissionCommand").f(void 0, void 0).ser(se_GetPermissionCommand).de(de_GetPermissionCommand).build() {
3987
+ };
3988
+ __name(_GetPermissionCommand, "GetPermissionCommand");
3989
+ var GetPermissionCommand = _GetPermissionCommand;
3990
+
3991
+ // src/commands/GetResourcePoliciesCommand.ts
3992
+
3993
+
3994
+
3995
+
3996
+ var _GetResourcePoliciesCommand = class _GetResourcePoliciesCommand extends import_smithy_client.Command.classBuilder().ep({
3997
+ ...commonParams
3998
+ }).m(function(Command, cs, config, o) {
3999
+ return [
4000
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4001
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4002
+ ];
4003
+ }).s("AmazonResourceSharing", "GetResourcePolicies", {}).n("RAMClient", "GetResourcePoliciesCommand").f(void 0, void 0).ser(se_GetResourcePoliciesCommand).de(de_GetResourcePoliciesCommand).build() {
4004
+ };
4005
+ __name(_GetResourcePoliciesCommand, "GetResourcePoliciesCommand");
4006
+ var GetResourcePoliciesCommand = _GetResourcePoliciesCommand;
4007
+
4008
+ // src/commands/GetResourceShareAssociationsCommand.ts
4009
+
4010
+
4011
+
4012
+
4013
+ var _GetResourceShareAssociationsCommand = class _GetResourceShareAssociationsCommand extends import_smithy_client.Command.classBuilder().ep({
4014
+ ...commonParams
4015
+ }).m(function(Command, cs, config, o) {
4016
+ return [
4017
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4018
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4019
+ ];
4020
+ }).s("AmazonResourceSharing", "GetResourceShareAssociations", {}).n("RAMClient", "GetResourceShareAssociationsCommand").f(void 0, void 0).ser(se_GetResourceShareAssociationsCommand).de(de_GetResourceShareAssociationsCommand).build() {
4021
+ };
4022
+ __name(_GetResourceShareAssociationsCommand, "GetResourceShareAssociationsCommand");
4023
+ var GetResourceShareAssociationsCommand = _GetResourceShareAssociationsCommand;
4024
+
4025
+ // src/commands/GetResourceShareInvitationsCommand.ts
4026
+
4027
+
4028
+
4029
+
4030
+ var _GetResourceShareInvitationsCommand = class _GetResourceShareInvitationsCommand extends import_smithy_client.Command.classBuilder().ep({
4031
+ ...commonParams
4032
+ }).m(function(Command, cs, config, o) {
4033
+ return [
4034
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4035
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4036
+ ];
4037
+ }).s("AmazonResourceSharing", "GetResourceShareInvitations", {}).n("RAMClient", "GetResourceShareInvitationsCommand").f(void 0, void 0).ser(se_GetResourceShareInvitationsCommand).de(de_GetResourceShareInvitationsCommand).build() {
4038
+ };
4039
+ __name(_GetResourceShareInvitationsCommand, "GetResourceShareInvitationsCommand");
4040
+ var GetResourceShareInvitationsCommand = _GetResourceShareInvitationsCommand;
4041
+
4042
+ // src/commands/GetResourceSharesCommand.ts
4043
+
4044
+
4045
+
4046
+
4047
+ var _GetResourceSharesCommand = class _GetResourceSharesCommand extends import_smithy_client.Command.classBuilder().ep({
4048
+ ...commonParams
4049
+ }).m(function(Command, cs, config, o) {
4050
+ return [
4051
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4052
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4053
+ ];
4054
+ }).s("AmazonResourceSharing", "GetResourceShares", {}).n("RAMClient", "GetResourceSharesCommand").f(void 0, void 0).ser(se_GetResourceSharesCommand).de(de_GetResourceSharesCommand).build() {
4055
+ };
4056
+ __name(_GetResourceSharesCommand, "GetResourceSharesCommand");
4057
+ var GetResourceSharesCommand = _GetResourceSharesCommand;
4058
+
4059
+ // src/commands/ListPendingInvitationResourcesCommand.ts
4060
+
4061
+
4062
+
4063
+
4064
+ var _ListPendingInvitationResourcesCommand = class _ListPendingInvitationResourcesCommand extends import_smithy_client.Command.classBuilder().ep({
4065
+ ...commonParams
4066
+ }).m(function(Command, cs, config, o) {
4067
+ return [
4068
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4069
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4070
+ ];
4071
+ }).s("AmazonResourceSharing", "ListPendingInvitationResources", {}).n("RAMClient", "ListPendingInvitationResourcesCommand").f(void 0, void 0).ser(se_ListPendingInvitationResourcesCommand).de(de_ListPendingInvitationResourcesCommand).build() {
4072
+ };
4073
+ __name(_ListPendingInvitationResourcesCommand, "ListPendingInvitationResourcesCommand");
4074
+ var ListPendingInvitationResourcesCommand = _ListPendingInvitationResourcesCommand;
4075
+
4076
+ // src/commands/ListPermissionAssociationsCommand.ts
4077
+
4078
+
4079
+
4080
+
4081
+ var _ListPermissionAssociationsCommand = class _ListPermissionAssociationsCommand extends import_smithy_client.Command.classBuilder().ep({
4082
+ ...commonParams
4083
+ }).m(function(Command, cs, config, o) {
4084
+ return [
4085
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4086
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4087
+ ];
4088
+ }).s("AmazonResourceSharing", "ListPermissionAssociations", {}).n("RAMClient", "ListPermissionAssociationsCommand").f(void 0, void 0).ser(se_ListPermissionAssociationsCommand).de(de_ListPermissionAssociationsCommand).build() {
4089
+ };
4090
+ __name(_ListPermissionAssociationsCommand, "ListPermissionAssociationsCommand");
4091
+ var ListPermissionAssociationsCommand = _ListPermissionAssociationsCommand;
4092
+
4093
+ // src/commands/ListPermissionsCommand.ts
4094
+
4095
+
4096
+
4097
+
4098
+ var _ListPermissionsCommand = class _ListPermissionsCommand extends import_smithy_client.Command.classBuilder().ep({
4099
+ ...commonParams
4100
+ }).m(function(Command, cs, config, o) {
4101
+ return [
4102
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4103
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4104
+ ];
4105
+ }).s("AmazonResourceSharing", "ListPermissions", {}).n("RAMClient", "ListPermissionsCommand").f(void 0, void 0).ser(se_ListPermissionsCommand).de(de_ListPermissionsCommand).build() {
4106
+ };
4107
+ __name(_ListPermissionsCommand, "ListPermissionsCommand");
4108
+ var ListPermissionsCommand = _ListPermissionsCommand;
4109
+
4110
+ // src/commands/ListPermissionVersionsCommand.ts
4111
+
4112
+
4113
+
4114
+
4115
+ var _ListPermissionVersionsCommand = class _ListPermissionVersionsCommand extends import_smithy_client.Command.classBuilder().ep({
4116
+ ...commonParams
4117
+ }).m(function(Command, cs, config, o) {
4118
+ return [
4119
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4120
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4121
+ ];
4122
+ }).s("AmazonResourceSharing", "ListPermissionVersions", {}).n("RAMClient", "ListPermissionVersionsCommand").f(void 0, void 0).ser(se_ListPermissionVersionsCommand).de(de_ListPermissionVersionsCommand).build() {
4123
+ };
4124
+ __name(_ListPermissionVersionsCommand, "ListPermissionVersionsCommand");
4125
+ var ListPermissionVersionsCommand = _ListPermissionVersionsCommand;
4126
+
4127
+ // src/commands/ListPrincipalsCommand.ts
4128
+
4129
+
4130
+
4131
+
4132
+ var _ListPrincipalsCommand = class _ListPrincipalsCommand extends import_smithy_client.Command.classBuilder().ep({
4133
+ ...commonParams
4134
+ }).m(function(Command, cs, config, o) {
4135
+ return [
4136
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4137
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4138
+ ];
4139
+ }).s("AmazonResourceSharing", "ListPrincipals", {}).n("RAMClient", "ListPrincipalsCommand").f(void 0, void 0).ser(se_ListPrincipalsCommand).de(de_ListPrincipalsCommand).build() {
4140
+ };
4141
+ __name(_ListPrincipalsCommand, "ListPrincipalsCommand");
4142
+ var ListPrincipalsCommand = _ListPrincipalsCommand;
4143
+
4144
+ // src/commands/ListReplacePermissionAssociationsWorkCommand.ts
4145
+
4146
+
4147
+
4148
+
4149
+ var _ListReplacePermissionAssociationsWorkCommand = class _ListReplacePermissionAssociationsWorkCommand extends import_smithy_client.Command.classBuilder().ep({
4150
+ ...commonParams
4151
+ }).m(function(Command, cs, config, o) {
4152
+ return [
4153
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4154
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4155
+ ];
4156
+ }).s("AmazonResourceSharing", "ListReplacePermissionAssociationsWork", {}).n("RAMClient", "ListReplacePermissionAssociationsWorkCommand").f(void 0, void 0).ser(se_ListReplacePermissionAssociationsWorkCommand).de(de_ListReplacePermissionAssociationsWorkCommand).build() {
4157
+ };
4158
+ __name(_ListReplacePermissionAssociationsWorkCommand, "ListReplacePermissionAssociationsWorkCommand");
4159
+ var ListReplacePermissionAssociationsWorkCommand = _ListReplacePermissionAssociationsWorkCommand;
4160
+
4161
+ // src/commands/ListResourcesCommand.ts
4162
+
4163
+
4164
+
4165
+
4166
+ var _ListResourcesCommand = class _ListResourcesCommand extends import_smithy_client.Command.classBuilder().ep({
4167
+ ...commonParams
4168
+ }).m(function(Command, cs, config, o) {
4169
+ return [
4170
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4171
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4172
+ ];
4173
+ }).s("AmazonResourceSharing", "ListResources", {}).n("RAMClient", "ListResourcesCommand").f(void 0, void 0).ser(se_ListResourcesCommand).de(de_ListResourcesCommand).build() {
4174
+ };
4175
+ __name(_ListResourcesCommand, "ListResourcesCommand");
4176
+ var ListResourcesCommand = _ListResourcesCommand;
4177
+
4178
+ // src/commands/ListResourceSharePermissionsCommand.ts
4179
+
4180
+
4181
+
4182
+
4183
+ var _ListResourceSharePermissionsCommand = class _ListResourceSharePermissionsCommand extends import_smithy_client.Command.classBuilder().ep({
4184
+ ...commonParams
4185
+ }).m(function(Command, cs, config, o) {
4186
+ return [
4187
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4188
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4189
+ ];
4190
+ }).s("AmazonResourceSharing", "ListResourceSharePermissions", {}).n("RAMClient", "ListResourceSharePermissionsCommand").f(void 0, void 0).ser(se_ListResourceSharePermissionsCommand).de(de_ListResourceSharePermissionsCommand).build() {
4191
+ };
4192
+ __name(_ListResourceSharePermissionsCommand, "ListResourceSharePermissionsCommand");
4193
+ var ListResourceSharePermissionsCommand = _ListResourceSharePermissionsCommand;
4194
+
4195
+ // src/commands/ListResourceTypesCommand.ts
4196
+
4197
+
4198
+
4199
+
4200
+ var _ListResourceTypesCommand = class _ListResourceTypesCommand extends import_smithy_client.Command.classBuilder().ep({
4201
+ ...commonParams
4202
+ }).m(function(Command, cs, config, o) {
4203
+ return [
4204
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4205
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4206
+ ];
4207
+ }).s("AmazonResourceSharing", "ListResourceTypes", {}).n("RAMClient", "ListResourceTypesCommand").f(void 0, void 0).ser(se_ListResourceTypesCommand).de(de_ListResourceTypesCommand).build() {
4208
+ };
4209
+ __name(_ListResourceTypesCommand, "ListResourceTypesCommand");
4210
+ var ListResourceTypesCommand = _ListResourceTypesCommand;
4211
+
4212
+ // src/commands/PromotePermissionCreatedFromPolicyCommand.ts
4213
+
4214
+
4215
+
4216
+
4217
+ var _PromotePermissionCreatedFromPolicyCommand = class _PromotePermissionCreatedFromPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
4218
+ ...commonParams
4219
+ }).m(function(Command, cs, config, o) {
4220
+ return [
4221
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4222
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4223
+ ];
4224
+ }).s("AmazonResourceSharing", "PromotePermissionCreatedFromPolicy", {}).n("RAMClient", "PromotePermissionCreatedFromPolicyCommand").f(void 0, void 0).ser(se_PromotePermissionCreatedFromPolicyCommand).de(de_PromotePermissionCreatedFromPolicyCommand).build() {
4225
+ };
4226
+ __name(_PromotePermissionCreatedFromPolicyCommand, "PromotePermissionCreatedFromPolicyCommand");
4227
+ var PromotePermissionCreatedFromPolicyCommand = _PromotePermissionCreatedFromPolicyCommand;
4228
+
4229
+ // src/commands/PromoteResourceShareCreatedFromPolicyCommand.ts
4230
+
4231
+
4232
+
4233
+
4234
+ var _PromoteResourceShareCreatedFromPolicyCommand = class _PromoteResourceShareCreatedFromPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
4235
+ ...commonParams
4236
+ }).m(function(Command, cs, config, o) {
4237
+ return [
4238
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4239
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4240
+ ];
4241
+ }).s("AmazonResourceSharing", "PromoteResourceShareCreatedFromPolicy", {}).n("RAMClient", "PromoteResourceShareCreatedFromPolicyCommand").f(void 0, void 0).ser(se_PromoteResourceShareCreatedFromPolicyCommand).de(de_PromoteResourceShareCreatedFromPolicyCommand).build() {
4242
+ };
4243
+ __name(_PromoteResourceShareCreatedFromPolicyCommand, "PromoteResourceShareCreatedFromPolicyCommand");
4244
+ var PromoteResourceShareCreatedFromPolicyCommand = _PromoteResourceShareCreatedFromPolicyCommand;
4245
+
4246
+ // src/commands/RejectResourceShareInvitationCommand.ts
4247
+
4248
+
4249
+
4250
+
4251
+ var _RejectResourceShareInvitationCommand = class _RejectResourceShareInvitationCommand extends import_smithy_client.Command.classBuilder().ep({
4252
+ ...commonParams
4253
+ }).m(function(Command, cs, config, o) {
4254
+ return [
4255
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4256
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4257
+ ];
4258
+ }).s("AmazonResourceSharing", "RejectResourceShareInvitation", {}).n("RAMClient", "RejectResourceShareInvitationCommand").f(void 0, void 0).ser(se_RejectResourceShareInvitationCommand).de(de_RejectResourceShareInvitationCommand).build() {
4259
+ };
4260
+ __name(_RejectResourceShareInvitationCommand, "RejectResourceShareInvitationCommand");
4261
+ var RejectResourceShareInvitationCommand = _RejectResourceShareInvitationCommand;
4262
+
4263
+ // src/commands/ReplacePermissionAssociationsCommand.ts
4264
+
4265
+
4266
+
4267
+
4268
+ var _ReplacePermissionAssociationsCommand = class _ReplacePermissionAssociationsCommand extends import_smithy_client.Command.classBuilder().ep({
4269
+ ...commonParams
4270
+ }).m(function(Command, cs, config, o) {
4271
+ return [
4272
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4273
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4274
+ ];
4275
+ }).s("AmazonResourceSharing", "ReplacePermissionAssociations", {}).n("RAMClient", "ReplacePermissionAssociationsCommand").f(void 0, void 0).ser(se_ReplacePermissionAssociationsCommand).de(de_ReplacePermissionAssociationsCommand).build() {
4276
+ };
4277
+ __name(_ReplacePermissionAssociationsCommand, "ReplacePermissionAssociationsCommand");
4278
+ var ReplacePermissionAssociationsCommand = _ReplacePermissionAssociationsCommand;
4279
+
4280
+ // src/commands/SetDefaultPermissionVersionCommand.ts
4281
+
4282
+
4283
+
4284
+
4285
+ var _SetDefaultPermissionVersionCommand = class _SetDefaultPermissionVersionCommand extends import_smithy_client.Command.classBuilder().ep({
4286
+ ...commonParams
4287
+ }).m(function(Command, cs, config, o) {
4288
+ return [
4289
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4290
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4291
+ ];
4292
+ }).s("AmazonResourceSharing", "SetDefaultPermissionVersion", {}).n("RAMClient", "SetDefaultPermissionVersionCommand").f(void 0, void 0).ser(se_SetDefaultPermissionVersionCommand).de(de_SetDefaultPermissionVersionCommand).build() {
4293
+ };
4294
+ __name(_SetDefaultPermissionVersionCommand, "SetDefaultPermissionVersionCommand");
4295
+ var SetDefaultPermissionVersionCommand = _SetDefaultPermissionVersionCommand;
4296
+
4297
+ // src/commands/TagResourceCommand.ts
4298
+
4299
+
4300
+
4301
+
4302
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
4303
+ ...commonParams
4304
+ }).m(function(Command, cs, config, o) {
4305
+ return [
4306
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4307
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4308
+ ];
4309
+ }).s("AmazonResourceSharing", "TagResource", {}).n("RAMClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
4310
+ };
4311
+ __name(_TagResourceCommand, "TagResourceCommand");
4312
+ var TagResourceCommand = _TagResourceCommand;
4313
+
4314
+ // src/commands/UntagResourceCommand.ts
4315
+
4316
+
4317
+
4318
+
4319
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
4320
+ ...commonParams
4321
+ }).m(function(Command, cs, config, o) {
4322
+ return [
4323
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4324
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4325
+ ];
4326
+ }).s("AmazonResourceSharing", "UntagResource", {}).n("RAMClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
4327
+ };
4328
+ __name(_UntagResourceCommand, "UntagResourceCommand");
4329
+ var UntagResourceCommand = _UntagResourceCommand;
4330
+
4331
+ // src/commands/UpdateResourceShareCommand.ts
4332
+
4333
+
4334
+
4335
+
4336
+ var _UpdateResourceShareCommand = class _UpdateResourceShareCommand extends import_smithy_client.Command.classBuilder().ep({
4337
+ ...commonParams
4338
+ }).m(function(Command, cs, config, o) {
4339
+ return [
4340
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4341
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4342
+ ];
4343
+ }).s("AmazonResourceSharing", "UpdateResourceShare", {}).n("RAMClient", "UpdateResourceShareCommand").f(void 0, void 0).ser(se_UpdateResourceShareCommand).de(de_UpdateResourceShareCommand).build() {
4344
+ };
4345
+ __name(_UpdateResourceShareCommand, "UpdateResourceShareCommand");
4346
+ var UpdateResourceShareCommand = _UpdateResourceShareCommand;
4347
+
4348
+ // src/RAM.ts
4349
+ var commands = {
4350
+ AcceptResourceShareInvitationCommand,
4351
+ AssociateResourceShareCommand,
4352
+ AssociateResourceSharePermissionCommand,
4353
+ CreatePermissionCommand,
4354
+ CreatePermissionVersionCommand,
4355
+ CreateResourceShareCommand,
4356
+ DeletePermissionCommand,
4357
+ DeletePermissionVersionCommand,
4358
+ DeleteResourceShareCommand,
4359
+ DisassociateResourceShareCommand,
4360
+ DisassociateResourceSharePermissionCommand,
4361
+ EnableSharingWithAwsOrganizationCommand,
4362
+ GetPermissionCommand,
4363
+ GetResourcePoliciesCommand,
4364
+ GetResourceShareAssociationsCommand,
4365
+ GetResourceShareInvitationsCommand,
4366
+ GetResourceSharesCommand,
4367
+ ListPendingInvitationResourcesCommand,
4368
+ ListPermissionAssociationsCommand,
4369
+ ListPermissionsCommand,
4370
+ ListPermissionVersionsCommand,
4371
+ ListPrincipalsCommand,
4372
+ ListReplacePermissionAssociationsWorkCommand,
4373
+ ListResourcesCommand,
4374
+ ListResourceSharePermissionsCommand,
4375
+ ListResourceTypesCommand,
4376
+ PromotePermissionCreatedFromPolicyCommand,
4377
+ PromoteResourceShareCreatedFromPolicyCommand,
4378
+ RejectResourceShareInvitationCommand,
4379
+ ReplacePermissionAssociationsCommand,
4380
+ SetDefaultPermissionVersionCommand,
4381
+ TagResourceCommand,
4382
+ UntagResourceCommand,
4383
+ UpdateResourceShareCommand
4384
+ };
4385
+ var _RAM = class _RAM extends RAMClient {
4386
+ };
4387
+ __name(_RAM, "RAM");
4388
+ var RAM = _RAM;
4389
+ (0, import_smithy_client.createAggregatedClient)(commands, RAM);
4390
+
4391
+ // src/pagination/GetResourcePoliciesPaginator.ts
4392
+
4393
+ var paginateGetResourcePolicies = (0, import_core.createPaginator)(RAMClient, GetResourcePoliciesCommand, "nextToken", "nextToken", "maxResults");
4394
+
4395
+ // src/pagination/GetResourceShareAssociationsPaginator.ts
4396
+
4397
+ var paginateGetResourceShareAssociations = (0, import_core.createPaginator)(RAMClient, GetResourceShareAssociationsCommand, "nextToken", "nextToken", "maxResults");
4398
+
4399
+ // src/pagination/GetResourceShareInvitationsPaginator.ts
4400
+
4401
+ var paginateGetResourceShareInvitations = (0, import_core.createPaginator)(RAMClient, GetResourceShareInvitationsCommand, "nextToken", "nextToken", "maxResults");
4402
+
4403
+ // src/pagination/GetResourceSharesPaginator.ts
4404
+
4405
+ var paginateGetResourceShares = (0, import_core.createPaginator)(RAMClient, GetResourceSharesCommand, "nextToken", "nextToken", "maxResults");
4406
+
4407
+ // src/pagination/ListPendingInvitationResourcesPaginator.ts
4408
+
4409
+ var paginateListPendingInvitationResources = (0, import_core.createPaginator)(RAMClient, ListPendingInvitationResourcesCommand, "nextToken", "nextToken", "maxResults");
4410
+
4411
+ // src/pagination/ListPermissionAssociationsPaginator.ts
4412
+
4413
+ var paginateListPermissionAssociations = (0, import_core.createPaginator)(RAMClient, ListPermissionAssociationsCommand, "nextToken", "nextToken", "maxResults");
4414
+
4415
+ // src/pagination/ListPermissionVersionsPaginator.ts
4416
+
4417
+ var paginateListPermissionVersions = (0, import_core.createPaginator)(RAMClient, ListPermissionVersionsCommand, "nextToken", "nextToken", "maxResults");
4418
+
4419
+ // src/pagination/ListPermissionsPaginator.ts
4420
+
4421
+ var paginateListPermissions = (0, import_core.createPaginator)(RAMClient, ListPermissionsCommand, "nextToken", "nextToken", "maxResults");
4422
+
4423
+ // src/pagination/ListPrincipalsPaginator.ts
4424
+
4425
+ var paginateListPrincipals = (0, import_core.createPaginator)(RAMClient, ListPrincipalsCommand, "nextToken", "nextToken", "maxResults");
4426
+
4427
+ // src/pagination/ListReplacePermissionAssociationsWorkPaginator.ts
4428
+
4429
+ var paginateListReplacePermissionAssociationsWork = (0, import_core.createPaginator)(RAMClient, ListReplacePermissionAssociationsWorkCommand, "nextToken", "nextToken", "maxResults");
4430
+
4431
+ // src/pagination/ListResourceSharePermissionsPaginator.ts
4432
+
4433
+ var paginateListResourceSharePermissions = (0, import_core.createPaginator)(RAMClient, ListResourceSharePermissionsCommand, "nextToken", "nextToken", "maxResults");
4434
+
4435
+ // src/pagination/ListResourceTypesPaginator.ts
4436
+
4437
+ var paginateListResourceTypes = (0, import_core.createPaginator)(RAMClient, ListResourceTypesCommand, "nextToken", "nextToken", "maxResults");
4438
+
4439
+ // src/pagination/ListResourcesPaginator.ts
4440
+
4441
+ var paginateListResources = (0, import_core.createPaginator)(RAMClient, ListResourcesCommand, "nextToken", "nextToken", "maxResults");
4442
+
4443
+ // src/index.ts
4444
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
4445
+ // Annotate the CommonJS export names for ESM import in node:
4446
+
4447
+ 0 && (module.exports = {
4448
+ AcceptResourceShareInvitationCommand,
4449
+ AssociateResourceShareCommand,
4450
+ AssociateResourceSharePermissionCommand,
4451
+ CreatePermissionCommand,
4452
+ CreatePermissionVersionCommand,
4453
+ CreateResourceShareCommand,
4454
+ DeletePermissionCommand,
4455
+ DeletePermissionVersionCommand,
4456
+ DeleteResourceShareCommand,
4457
+ DisassociateResourceShareCommand,
4458
+ DisassociateResourceSharePermissionCommand,
4459
+ EnableSharingWithAwsOrganizationCommand,
4460
+ GetPermissionCommand,
4461
+ GetResourcePoliciesCommand,
4462
+ GetResourceShareAssociationsCommand,
4463
+ GetResourceShareInvitationsCommand,
4464
+ GetResourceSharesCommand,
4465
+ IdempotentParameterMismatchException,
4466
+ InvalidClientTokenException,
4467
+ InvalidMaxResultsException,
4468
+ InvalidNextTokenException,
4469
+ InvalidParameterException,
4470
+ InvalidPolicyException,
4471
+ InvalidResourceTypeException,
4472
+ InvalidStateTransitionException,
4473
+ ListPendingInvitationResourcesCommand,
4474
+ ListPermissionAssociationsCommand,
4475
+ ListPermissionVersionsCommand,
4476
+ ListPermissionsCommand,
4477
+ ListPrincipalsCommand,
4478
+ ListReplacePermissionAssociationsWorkCommand,
4479
+ ListResourceSharePermissionsCommand,
4480
+ ListResourceTypesCommand,
4481
+ ListResourcesCommand,
4482
+ MalformedArnException,
4483
+ MalformedPolicyTemplateException,
4484
+ MissingRequiredParameterException,
4485
+ OperationNotPermittedException,
4486
+ PermissionAlreadyExistsException,
4487
+ PermissionFeatureSet,
4488
+ PermissionLimitExceededException,
4489
+ PermissionStatus,
4490
+ PermissionType,
4491
+ PermissionTypeFilter,
4492
+ PermissionVersionsLimitExceededException,
4493
+ PromotePermissionCreatedFromPolicyCommand,
4494
+ PromoteResourceShareCreatedFromPolicyCommand,
4495
+ RAM,
4496
+ RAMClient,
4497
+ RAMServiceException,
4498
+ RejectResourceShareInvitationCommand,
4499
+ ReplacePermissionAssociationsCommand,
4500
+ ReplacePermissionAssociationsWorkStatus,
4501
+ ResourceArnNotFoundException,
4502
+ ResourceOwner,
4503
+ ResourceRegionScope,
4504
+ ResourceRegionScopeFilter,
4505
+ ResourceShareAssociationStatus,
4506
+ ResourceShareAssociationType,
4507
+ ResourceShareFeatureSet,
4508
+ ResourceShareInvitationAlreadyAcceptedException,
4509
+ ResourceShareInvitationAlreadyRejectedException,
4510
+ ResourceShareInvitationArnNotFoundException,
4511
+ ResourceShareInvitationExpiredException,
4512
+ ResourceShareInvitationStatus,
4513
+ ResourceShareLimitExceededException,
4514
+ ResourceShareStatus,
4515
+ ResourceStatus,
4516
+ ServerInternalException,
4517
+ ServiceUnavailableException,
4518
+ SetDefaultPermissionVersionCommand,
4519
+ TagLimitExceededException,
4520
+ TagPolicyViolationException,
4521
+ TagResourceCommand,
4522
+ ThrottlingException,
4523
+ UnknownResourceException,
4524
+ UnmatchedPolicyPermissionException,
4525
+ UntagResourceCommand,
4526
+ UpdateResourceShareCommand,
4527
+ __Client,
4528
+ paginateGetResourcePolicies,
4529
+ paginateGetResourceShareAssociations,
4530
+ paginateGetResourceShareInvitations,
4531
+ paginateGetResourceShares,
4532
+ paginateListPendingInvitationResources,
4533
+ paginateListPermissionAssociations,
4534
+ paginateListPermissionVersions,
4535
+ paginateListPermissions,
4536
+ paginateListPrincipals,
4537
+ paginateListReplacePermissionAssociationsWork,
4538
+ paginateListResourceSharePermissions,
4539
+ paginateListResourceTypes,
4540
+ paginateListResources
4541
+ });
4542
+