@aws-sdk/client-serverlessapplicationrepository 3.490.0 → 3.495.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 (31) hide show
  1. package/dist-cjs/ServerlessApplicationRepository.js +1 -39
  2. package/dist-cjs/ServerlessApplicationRepositoryClient.js +1 -43
  3. package/dist-cjs/commands/CreateApplicationCommand.js +1 -28
  4. package/dist-cjs/commands/CreateApplicationVersionCommand.js +1 -28
  5. package/dist-cjs/commands/CreateCloudFormationChangeSetCommand.js +1 -28
  6. package/dist-cjs/commands/CreateCloudFormationTemplateCommand.js +1 -28
  7. package/dist-cjs/commands/DeleteApplicationCommand.js +1 -28
  8. package/dist-cjs/commands/GetApplicationCommand.js +1 -28
  9. package/dist-cjs/commands/GetApplicationPolicyCommand.js +1 -28
  10. package/dist-cjs/commands/GetCloudFormationTemplateCommand.js +1 -28
  11. package/dist-cjs/commands/ListApplicationDependenciesCommand.js +1 -28
  12. package/dist-cjs/commands/ListApplicationVersionsCommand.js +1 -28
  13. package/dist-cjs/commands/ListApplicationsCommand.js +1 -28
  14. package/dist-cjs/commands/PutApplicationPolicyCommand.js +1 -28
  15. package/dist-cjs/commands/UnshareApplicationCommand.js +1 -28
  16. package/dist-cjs/commands/UpdateApplicationCommand.js +1 -28
  17. package/dist-cjs/commands/index.js +1 -17
  18. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  19. package/dist-cjs/extensionConfiguration.js +1 -2
  20. package/dist-cjs/index.js +1790 -11
  21. package/dist-cjs/models/ServerlessApplicationRepositoryServiceException.js +1 -12
  22. package/dist-cjs/models/index.js +1 -4
  23. package/dist-cjs/models/models_0.js +1 -105
  24. package/dist-cjs/pagination/Interfaces.js +1 -2
  25. package/dist-cjs/pagination/ListApplicationDependenciesPaginator.js +1 -7
  26. package/dist-cjs/pagination/ListApplicationVersionsPaginator.js +1 -7
  27. package/dist-cjs/pagination/ListApplicationsPaginator.js +1 -7
  28. package/dist-cjs/pagination/index.js +1 -7
  29. package/dist-cjs/protocols/Aws_restJson1.js +1 -1236
  30. package/dist-cjs/runtimeExtensions.js +1 -22
  31. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,1791 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServerlessApplicationRepositoryServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./ServerlessApplicationRepositoryClient"), exports);
6
- tslib_1.__exportStar(require("./ServerlessApplicationRepository"), 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 ServerlessApplicationRepositoryServiceException_1 = require("./models/ServerlessApplicationRepositoryServiceException");
12
- Object.defineProperty(exports, "ServerlessApplicationRepositoryServiceException", { enumerable: true, get: function () { return ServerlessApplicationRepositoryServiceException_1.ServerlessApplicationRepositoryServiceException; } });
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
+ BadRequestException: () => BadRequestException,
25
+ Capability: () => Capability,
26
+ ConflictException: () => ConflictException,
27
+ CreateApplicationCommand: () => CreateApplicationCommand,
28
+ CreateApplicationVersionCommand: () => CreateApplicationVersionCommand,
29
+ CreateCloudFormationChangeSetCommand: () => CreateCloudFormationChangeSetCommand,
30
+ CreateCloudFormationTemplateCommand: () => CreateCloudFormationTemplateCommand,
31
+ DeleteApplicationCommand: () => DeleteApplicationCommand,
32
+ ForbiddenException: () => ForbiddenException,
33
+ GetApplicationCommand: () => GetApplicationCommand,
34
+ GetApplicationPolicyCommand: () => GetApplicationPolicyCommand,
35
+ GetCloudFormationTemplateCommand: () => GetCloudFormationTemplateCommand,
36
+ InternalServerErrorException: () => InternalServerErrorException,
37
+ ListApplicationDependenciesCommand: () => ListApplicationDependenciesCommand,
38
+ ListApplicationVersionsCommand: () => ListApplicationVersionsCommand,
39
+ ListApplicationsCommand: () => ListApplicationsCommand,
40
+ NotFoundException: () => NotFoundException,
41
+ PutApplicationPolicyCommand: () => PutApplicationPolicyCommand,
42
+ ServerlessApplicationRepository: () => ServerlessApplicationRepository,
43
+ ServerlessApplicationRepositoryClient: () => ServerlessApplicationRepositoryClient,
44
+ ServerlessApplicationRepositoryServiceException: () => ServerlessApplicationRepositoryServiceException,
45
+ Status: () => Status,
46
+ TooManyRequestsException: () => TooManyRequestsException,
47
+ UnshareApplicationCommand: () => UnshareApplicationCommand,
48
+ UpdateApplicationCommand: () => UpdateApplicationCommand,
49
+ __Client: () => import_smithy_client.Client,
50
+ paginateListApplicationDependencies: () => paginateListApplicationDependencies,
51
+ paginateListApplicationVersions: () => paginateListApplicationVersions,
52
+ paginateListApplications: () => paginateListApplications
53
+ });
54
+ module.exports = __toCommonJS(src_exports);
55
+
56
+ // src/ServerlessApplicationRepositoryClient.ts
57
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
58
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
59
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
60
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
61
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
62
+ var import_config_resolver = require("@smithy/config-resolver");
63
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
64
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
65
+ var import_middleware_retry = require("@smithy/middleware-retry");
66
+
67
+
68
+ // src/endpoint/EndpointParameters.ts
69
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
70
+ return {
71
+ ...options,
72
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
73
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
74
+ defaultSigningName: "serverlessrepo"
75
+ };
76
+ }, "resolveClientEndpointParameters");
77
+ var commonParams = {
78
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
79
+ Endpoint: { type: "builtInParams", name: "endpoint" },
80
+ Region: { type: "builtInParams", name: "region" },
81
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
82
+ };
83
+
84
+ // src/ServerlessApplicationRepositoryClient.ts
85
+ var import_runtimeConfig = require("././runtimeConfig");
86
+
87
+ // src/runtimeExtensions.ts
88
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
89
+ var import_protocol_http = require("@smithy/protocol-http");
90
+ var import_smithy_client = require("@smithy/smithy-client");
91
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
92
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
93
+ const extensionConfiguration = {
94
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
95
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
96
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
97
+ };
98
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
99
+ return {
100
+ ...runtimeConfig,
101
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
102
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
103
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
104
+ };
105
+ }, "resolveRuntimeExtensions");
106
+
107
+ // src/ServerlessApplicationRepositoryClient.ts
108
+ var _ServerlessApplicationRepositoryClient = class _ServerlessApplicationRepositoryClient extends import_smithy_client.Client {
109
+ constructor(...[configuration]) {
110
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
111
+ const _config_1 = resolveClientEndpointParameters(_config_0);
112
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
113
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
114
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
115
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
116
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
117
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
118
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
119
+ super(_config_8);
120
+ this.config = _config_8;
121
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
122
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
123
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
124
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
125
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
126
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
127
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
128
+ }
129
+ /**
130
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
131
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
132
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
133
+ */
134
+ destroy() {
135
+ super.destroy();
136
+ }
137
+ };
138
+ __name(_ServerlessApplicationRepositoryClient, "ServerlessApplicationRepositoryClient");
139
+ var ServerlessApplicationRepositoryClient = _ServerlessApplicationRepositoryClient;
140
+
141
+ // src/ServerlessApplicationRepository.ts
142
+
143
+
144
+ // src/commands/CreateApplicationCommand.ts
145
+
146
+ var import_middleware_serde = require("@smithy/middleware-serde");
147
+
148
+ var import_types = require("@smithy/types");
149
+
150
+ // src/protocols/Aws_restJson1.ts
151
+ var import_core = require("@smithy/core");
152
+
153
+
154
+ // src/models/ServerlessApplicationRepositoryServiceException.ts
155
+
156
+ var _ServerlessApplicationRepositoryServiceException = class _ServerlessApplicationRepositoryServiceException extends import_smithy_client.ServiceException {
157
+ /**
158
+ * @internal
159
+ */
160
+ constructor(options) {
161
+ super(options);
162
+ Object.setPrototypeOf(this, _ServerlessApplicationRepositoryServiceException.prototype);
163
+ }
164
+ };
165
+ __name(_ServerlessApplicationRepositoryServiceException, "ServerlessApplicationRepositoryServiceException");
166
+ var ServerlessApplicationRepositoryServiceException = _ServerlessApplicationRepositoryServiceException;
167
+
168
+ // src/models/models_0.ts
169
+ var Capability = {
170
+ CAPABILITY_AUTO_EXPAND: "CAPABILITY_AUTO_EXPAND",
171
+ CAPABILITY_IAM: "CAPABILITY_IAM",
172
+ CAPABILITY_NAMED_IAM: "CAPABILITY_NAMED_IAM",
173
+ CAPABILITY_RESOURCE_POLICY: "CAPABILITY_RESOURCE_POLICY"
174
+ };
175
+ var _BadRequestException = class _BadRequestException extends ServerlessApplicationRepositoryServiceException {
176
+ /**
177
+ * @internal
178
+ */
179
+ constructor(opts) {
180
+ super({
181
+ name: "BadRequestException",
182
+ $fault: "client",
183
+ ...opts
184
+ });
185
+ this.name = "BadRequestException";
186
+ this.$fault = "client";
187
+ Object.setPrototypeOf(this, _BadRequestException.prototype);
188
+ this.ErrorCode = opts.ErrorCode;
189
+ this.Message = opts.Message;
190
+ }
191
+ };
192
+ __name(_BadRequestException, "BadRequestException");
193
+ var BadRequestException = _BadRequestException;
194
+ var _ConflictException = class _ConflictException extends ServerlessApplicationRepositoryServiceException {
195
+ /**
196
+ * @internal
197
+ */
198
+ constructor(opts) {
199
+ super({
200
+ name: "ConflictException",
201
+ $fault: "client",
202
+ ...opts
203
+ });
204
+ this.name = "ConflictException";
205
+ this.$fault = "client";
206
+ Object.setPrototypeOf(this, _ConflictException.prototype);
207
+ this.ErrorCode = opts.ErrorCode;
208
+ this.Message = opts.Message;
209
+ }
210
+ };
211
+ __name(_ConflictException, "ConflictException");
212
+ var ConflictException = _ConflictException;
213
+ var _ForbiddenException = class _ForbiddenException extends ServerlessApplicationRepositoryServiceException {
214
+ /**
215
+ * @internal
216
+ */
217
+ constructor(opts) {
218
+ super({
219
+ name: "ForbiddenException",
220
+ $fault: "client",
221
+ ...opts
222
+ });
223
+ this.name = "ForbiddenException";
224
+ this.$fault = "client";
225
+ Object.setPrototypeOf(this, _ForbiddenException.prototype);
226
+ this.ErrorCode = opts.ErrorCode;
227
+ this.Message = opts.Message;
228
+ }
229
+ };
230
+ __name(_ForbiddenException, "ForbiddenException");
231
+ var ForbiddenException = _ForbiddenException;
232
+ var _InternalServerErrorException = class _InternalServerErrorException extends ServerlessApplicationRepositoryServiceException {
233
+ /**
234
+ * @internal
235
+ */
236
+ constructor(opts) {
237
+ super({
238
+ name: "InternalServerErrorException",
239
+ $fault: "server",
240
+ ...opts
241
+ });
242
+ this.name = "InternalServerErrorException";
243
+ this.$fault = "server";
244
+ Object.setPrototypeOf(this, _InternalServerErrorException.prototype);
245
+ this.ErrorCode = opts.ErrorCode;
246
+ this.Message = opts.Message;
247
+ }
248
+ };
249
+ __name(_InternalServerErrorException, "InternalServerErrorException");
250
+ var InternalServerErrorException = _InternalServerErrorException;
251
+ var _TooManyRequestsException = class _TooManyRequestsException extends ServerlessApplicationRepositoryServiceException {
252
+ /**
253
+ * @internal
254
+ */
255
+ constructor(opts) {
256
+ super({
257
+ name: "TooManyRequestsException",
258
+ $fault: "client",
259
+ ...opts
260
+ });
261
+ this.name = "TooManyRequestsException";
262
+ this.$fault = "client";
263
+ Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
264
+ this.ErrorCode = opts.ErrorCode;
265
+ this.Message = opts.Message;
266
+ }
267
+ };
268
+ __name(_TooManyRequestsException, "TooManyRequestsException");
269
+ var TooManyRequestsException = _TooManyRequestsException;
270
+ var Status = {
271
+ ACTIVE: "ACTIVE",
272
+ EXPIRED: "EXPIRED",
273
+ PREPARING: "PREPARING"
274
+ };
275
+ var _NotFoundException = class _NotFoundException extends ServerlessApplicationRepositoryServiceException {
276
+ /**
277
+ * @internal
278
+ */
279
+ constructor(opts) {
280
+ super({
281
+ name: "NotFoundException",
282
+ $fault: "client",
283
+ ...opts
284
+ });
285
+ this.name = "NotFoundException";
286
+ this.$fault = "client";
287
+ Object.setPrototypeOf(this, _NotFoundException.prototype);
288
+ this.ErrorCode = opts.ErrorCode;
289
+ this.Message = opts.Message;
290
+ }
291
+ };
292
+ __name(_NotFoundException, "NotFoundException");
293
+ var NotFoundException = _NotFoundException;
294
+
295
+ // src/protocols/Aws_restJson1.ts
296
+ var se_CreateApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
297
+ const b = (0, import_core.requestBuilder)(input, context);
298
+ const headers = {
299
+ "content-type": "application/json"
300
+ };
301
+ b.bp("/applications");
302
+ let body;
303
+ body = JSON.stringify(
304
+ (0, import_smithy_client.take)(input, {
305
+ author: [, , `Author`],
306
+ description: [, , `Description`],
307
+ homePageUrl: [, , `HomePageUrl`],
308
+ labels: [, (_) => (0, import_smithy_client._json)(_), `Labels`],
309
+ licenseBody: [, , `LicenseBody`],
310
+ licenseUrl: [, , `LicenseUrl`],
311
+ name: [, , `Name`],
312
+ readmeBody: [, , `ReadmeBody`],
313
+ readmeUrl: [, , `ReadmeUrl`],
314
+ semanticVersion: [, , `SemanticVersion`],
315
+ sourceCodeArchiveUrl: [, , `SourceCodeArchiveUrl`],
316
+ sourceCodeUrl: [, , `SourceCodeUrl`],
317
+ spdxLicenseId: [, , `SpdxLicenseId`],
318
+ templateBody: [, , `TemplateBody`],
319
+ templateUrl: [, , `TemplateUrl`]
320
+ })
321
+ );
322
+ b.m("POST").h(headers).b(body);
323
+ return b.build();
324
+ }, "se_CreateApplicationCommand");
325
+ var se_CreateApplicationVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
326
+ const b = (0, import_core.requestBuilder)(input, context);
327
+ const headers = {
328
+ "content-type": "application/json"
329
+ };
330
+ b.bp("/applications/{ApplicationId}/versions/{SemanticVersion}");
331
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
332
+ b.p("SemanticVersion", () => input.SemanticVersion, "{SemanticVersion}", false);
333
+ let body;
334
+ body = JSON.stringify(
335
+ (0, import_smithy_client.take)(input, {
336
+ sourceCodeArchiveUrl: [, , `SourceCodeArchiveUrl`],
337
+ sourceCodeUrl: [, , `SourceCodeUrl`],
338
+ templateBody: [, , `TemplateBody`],
339
+ templateUrl: [, , `TemplateUrl`]
340
+ })
341
+ );
342
+ b.m("PUT").h(headers).b(body);
343
+ return b.build();
344
+ }, "se_CreateApplicationVersionCommand");
345
+ var se_CreateCloudFormationChangeSetCommand = /* @__PURE__ */ __name(async (input, context) => {
346
+ const b = (0, import_core.requestBuilder)(input, context);
347
+ const headers = {
348
+ "content-type": "application/json"
349
+ };
350
+ b.bp("/applications/{ApplicationId}/changesets");
351
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
352
+ let body;
353
+ body = JSON.stringify(
354
+ (0, import_smithy_client.take)(input, {
355
+ capabilities: [, (_) => (0, import_smithy_client._json)(_), `Capabilities`],
356
+ changeSetName: [, , `ChangeSetName`],
357
+ clientToken: [, , `ClientToken`],
358
+ description: [, , `Description`],
359
+ notificationArns: [, (_) => (0, import_smithy_client._json)(_), `NotificationArns`],
360
+ parameterOverrides: [, (_) => se___listOfParameterValue(_, context), `ParameterOverrides`],
361
+ resourceTypes: [, (_) => (0, import_smithy_client._json)(_), `ResourceTypes`],
362
+ rollbackConfiguration: [, (_) => se_RollbackConfiguration(_, context), `RollbackConfiguration`],
363
+ semanticVersion: [, , `SemanticVersion`],
364
+ stackName: [, , `StackName`],
365
+ tags: [, (_) => se___listOfTag(_, context), `Tags`],
366
+ templateId: [, , `TemplateId`]
367
+ })
368
+ );
369
+ b.m("POST").h(headers).b(body);
370
+ return b.build();
371
+ }, "se_CreateCloudFormationChangeSetCommand");
372
+ var se_CreateCloudFormationTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
373
+ const b = (0, import_core.requestBuilder)(input, context);
374
+ const headers = {
375
+ "content-type": "application/json"
376
+ };
377
+ b.bp("/applications/{ApplicationId}/templates");
378
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
379
+ let body;
380
+ body = JSON.stringify(
381
+ (0, import_smithy_client.take)(input, {
382
+ semanticVersion: [, , `SemanticVersion`]
383
+ })
384
+ );
385
+ b.m("POST").h(headers).b(body);
386
+ return b.build();
387
+ }, "se_CreateCloudFormationTemplateCommand");
388
+ var se_DeleteApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
389
+ const b = (0, import_core.requestBuilder)(input, context);
390
+ const headers = {};
391
+ b.bp("/applications/{ApplicationId}");
392
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
393
+ let body;
394
+ b.m("DELETE").h(headers).b(body);
395
+ return b.build();
396
+ }, "se_DeleteApplicationCommand");
397
+ var se_GetApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
398
+ const b = (0, import_core.requestBuilder)(input, context);
399
+ const headers = {};
400
+ b.bp("/applications/{ApplicationId}");
401
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
402
+ const query = (0, import_smithy_client.map)({
403
+ [_sV]: [, input[_SV]]
404
+ });
405
+ let body;
406
+ b.m("GET").h(headers).q(query).b(body);
407
+ return b.build();
408
+ }, "se_GetApplicationCommand");
409
+ var se_GetApplicationPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
410
+ const b = (0, import_core.requestBuilder)(input, context);
411
+ const headers = {};
412
+ b.bp("/applications/{ApplicationId}/policy");
413
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
414
+ let body;
415
+ b.m("GET").h(headers).b(body);
416
+ return b.build();
417
+ }, "se_GetApplicationPolicyCommand");
418
+ var se_GetCloudFormationTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
419
+ const b = (0, import_core.requestBuilder)(input, context);
420
+ const headers = {};
421
+ b.bp("/applications/{ApplicationId}/templates/{TemplateId}");
422
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
423
+ b.p("TemplateId", () => input.TemplateId, "{TemplateId}", false);
424
+ let body;
425
+ b.m("GET").h(headers).b(body);
426
+ return b.build();
427
+ }, "se_GetCloudFormationTemplateCommand");
428
+ var se_ListApplicationDependenciesCommand = /* @__PURE__ */ __name(async (input, context) => {
429
+ const b = (0, import_core.requestBuilder)(input, context);
430
+ const headers = {};
431
+ b.bp("/applications/{ApplicationId}/dependencies");
432
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
433
+ const query = (0, import_smithy_client.map)({
434
+ [_mI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
435
+ [_nT]: [, input[_NT]],
436
+ [_sV]: [, input[_SV]]
437
+ });
438
+ let body;
439
+ b.m("GET").h(headers).q(query).b(body);
440
+ return b.build();
441
+ }, "se_ListApplicationDependenciesCommand");
442
+ var se_ListApplicationsCommand = /* @__PURE__ */ __name(async (input, context) => {
443
+ const b = (0, import_core.requestBuilder)(input, context);
444
+ const headers = {};
445
+ b.bp("/applications");
446
+ const query = (0, import_smithy_client.map)({
447
+ [_mI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
448
+ [_nT]: [, input[_NT]]
449
+ });
450
+ let body;
451
+ b.m("GET").h(headers).q(query).b(body);
452
+ return b.build();
453
+ }, "se_ListApplicationsCommand");
454
+ var se_ListApplicationVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
455
+ const b = (0, import_core.requestBuilder)(input, context);
456
+ const headers = {};
457
+ b.bp("/applications/{ApplicationId}/versions");
458
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
459
+ const query = (0, import_smithy_client.map)({
460
+ [_mI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
461
+ [_nT]: [, input[_NT]]
462
+ });
463
+ let body;
464
+ b.m("GET").h(headers).q(query).b(body);
465
+ return b.build();
466
+ }, "se_ListApplicationVersionsCommand");
467
+ var se_PutApplicationPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
468
+ const b = (0, import_core.requestBuilder)(input, context);
469
+ const headers = {
470
+ "content-type": "application/json"
471
+ };
472
+ b.bp("/applications/{ApplicationId}/policy");
473
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
474
+ let body;
475
+ body = JSON.stringify(
476
+ (0, import_smithy_client.take)(input, {
477
+ statements: [, (_) => se___listOfApplicationPolicyStatement(_, context), `Statements`]
478
+ })
479
+ );
480
+ b.m("PUT").h(headers).b(body);
481
+ return b.build();
482
+ }, "se_PutApplicationPolicyCommand");
483
+ var se_UnshareApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
484
+ const b = (0, import_core.requestBuilder)(input, context);
485
+ const headers = {
486
+ "content-type": "application/json"
487
+ };
488
+ b.bp("/applications/{ApplicationId}/unshare");
489
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
490
+ let body;
491
+ body = JSON.stringify(
492
+ (0, import_smithy_client.take)(input, {
493
+ organizationId: [, , `OrganizationId`]
494
+ })
495
+ );
496
+ b.m("POST").h(headers).b(body);
497
+ return b.build();
498
+ }, "se_UnshareApplicationCommand");
499
+ var se_UpdateApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
500
+ const b = (0, import_core.requestBuilder)(input, context);
501
+ const headers = {
502
+ "content-type": "application/json"
503
+ };
504
+ b.bp("/applications/{ApplicationId}");
505
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
506
+ let body;
507
+ body = JSON.stringify(
508
+ (0, import_smithy_client.take)(input, {
509
+ author: [, , `Author`],
510
+ description: [, , `Description`],
511
+ homePageUrl: [, , `HomePageUrl`],
512
+ labels: [, (_) => (0, import_smithy_client._json)(_), `Labels`],
513
+ readmeBody: [, , `ReadmeBody`],
514
+ readmeUrl: [, , `ReadmeUrl`]
515
+ })
516
+ );
517
+ b.m("PATCH").h(headers).b(body);
518
+ return b.build();
519
+ }, "se_UpdateApplicationCommand");
520
+ var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
521
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
522
+ return de_CreateApplicationCommandError(output, context);
523
+ }
524
+ const contents = (0, import_smithy_client.map)({
525
+ $metadata: deserializeMetadata(output)
526
+ });
527
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
528
+ const doc = (0, import_smithy_client.take)(data, {
529
+ ApplicationId: [, import_smithy_client.expectString, `applicationId`],
530
+ Author: [, import_smithy_client.expectString, `author`],
531
+ CreationTime: [, import_smithy_client.expectString, `creationTime`],
532
+ Description: [, import_smithy_client.expectString, `description`],
533
+ HomePageUrl: [, import_smithy_client.expectString, `homePageUrl`],
534
+ IsVerifiedAuthor: [, import_smithy_client.expectBoolean, `isVerifiedAuthor`],
535
+ Labels: [, import_smithy_client._json, `labels`],
536
+ LicenseUrl: [, import_smithy_client.expectString, `licenseUrl`],
537
+ Name: [, import_smithy_client.expectString, `name`],
538
+ ReadmeUrl: [, import_smithy_client.expectString, `readmeUrl`],
539
+ SpdxLicenseId: [, import_smithy_client.expectString, `spdxLicenseId`],
540
+ VerifiedAuthorUrl: [, import_smithy_client.expectString, `verifiedAuthorUrl`],
541
+ Version: [, (_) => de_Version(_, context), `version`]
542
+ });
543
+ Object.assign(contents, doc);
544
+ return contents;
545
+ }, "de_CreateApplicationCommand");
546
+ var de_CreateApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
547
+ const parsedOutput = {
548
+ ...output,
549
+ body: await parseErrorBody(output.body, context)
550
+ };
551
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
552
+ switch (errorCode) {
553
+ case "BadRequestException":
554
+ case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
555
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
556
+ case "ConflictException":
557
+ case "com.amazonaws.serverlessapplicationrepository#ConflictException":
558
+ throw await de_ConflictExceptionRes(parsedOutput, context);
559
+ case "ForbiddenException":
560
+ case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
561
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
562
+ case "InternalServerErrorException":
563
+ case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
564
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
565
+ case "TooManyRequestsException":
566
+ case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
567
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
568
+ default:
569
+ const parsedBody = parsedOutput.body;
570
+ return throwDefaultError({
571
+ output,
572
+ parsedBody,
573
+ errorCode
574
+ });
575
+ }
576
+ }, "de_CreateApplicationCommandError");
577
+ var de_CreateApplicationVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
578
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
579
+ return de_CreateApplicationVersionCommandError(output, context);
580
+ }
581
+ const contents = (0, import_smithy_client.map)({
582
+ $metadata: deserializeMetadata(output)
583
+ });
584
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
585
+ const doc = (0, import_smithy_client.take)(data, {
586
+ ApplicationId: [, import_smithy_client.expectString, `applicationId`],
587
+ CreationTime: [, import_smithy_client.expectString, `creationTime`],
588
+ ParameterDefinitions: [, (_) => de___listOfParameterDefinition(_, context), `parameterDefinitions`],
589
+ RequiredCapabilities: [, import_smithy_client._json, `requiredCapabilities`],
590
+ ResourcesSupported: [, import_smithy_client.expectBoolean, `resourcesSupported`],
591
+ SemanticVersion: [, import_smithy_client.expectString, `semanticVersion`],
592
+ SourceCodeArchiveUrl: [, import_smithy_client.expectString, `sourceCodeArchiveUrl`],
593
+ SourceCodeUrl: [, import_smithy_client.expectString, `sourceCodeUrl`],
594
+ TemplateUrl: [, import_smithy_client.expectString, `templateUrl`]
595
+ });
596
+ Object.assign(contents, doc);
597
+ return contents;
598
+ }, "de_CreateApplicationVersionCommand");
599
+ var de_CreateApplicationVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
600
+ const parsedOutput = {
601
+ ...output,
602
+ body: await parseErrorBody(output.body, context)
603
+ };
604
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
605
+ switch (errorCode) {
606
+ case "BadRequestException":
607
+ case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
608
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
609
+ case "ConflictException":
610
+ case "com.amazonaws.serverlessapplicationrepository#ConflictException":
611
+ throw await de_ConflictExceptionRes(parsedOutput, context);
612
+ case "ForbiddenException":
613
+ case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
614
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
615
+ case "InternalServerErrorException":
616
+ case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
617
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
618
+ case "TooManyRequestsException":
619
+ case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
620
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
621
+ default:
622
+ const parsedBody = parsedOutput.body;
623
+ return throwDefaultError({
624
+ output,
625
+ parsedBody,
626
+ errorCode
627
+ });
628
+ }
629
+ }, "de_CreateApplicationVersionCommandError");
630
+ var de_CreateCloudFormationChangeSetCommand = /* @__PURE__ */ __name(async (output, context) => {
631
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
632
+ return de_CreateCloudFormationChangeSetCommandError(output, context);
633
+ }
634
+ const contents = (0, import_smithy_client.map)({
635
+ $metadata: deserializeMetadata(output)
636
+ });
637
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
638
+ const doc = (0, import_smithy_client.take)(data, {
639
+ ApplicationId: [, import_smithy_client.expectString, `applicationId`],
640
+ ChangeSetId: [, import_smithy_client.expectString, `changeSetId`],
641
+ SemanticVersion: [, import_smithy_client.expectString, `semanticVersion`],
642
+ StackId: [, import_smithy_client.expectString, `stackId`]
643
+ });
644
+ Object.assign(contents, doc);
645
+ return contents;
646
+ }, "de_CreateCloudFormationChangeSetCommand");
647
+ var de_CreateCloudFormationChangeSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
648
+ const parsedOutput = {
649
+ ...output,
650
+ body: await parseErrorBody(output.body, context)
651
+ };
652
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
653
+ switch (errorCode) {
654
+ case "BadRequestException":
655
+ case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
656
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
657
+ case "ForbiddenException":
658
+ case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
659
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
660
+ case "InternalServerErrorException":
661
+ case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
662
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
663
+ case "TooManyRequestsException":
664
+ case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
665
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
666
+ default:
667
+ const parsedBody = parsedOutput.body;
668
+ return throwDefaultError({
669
+ output,
670
+ parsedBody,
671
+ errorCode
672
+ });
673
+ }
674
+ }, "de_CreateCloudFormationChangeSetCommandError");
675
+ var de_CreateCloudFormationTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
676
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
677
+ return de_CreateCloudFormationTemplateCommandError(output, context);
678
+ }
679
+ const contents = (0, import_smithy_client.map)({
680
+ $metadata: deserializeMetadata(output)
681
+ });
682
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
683
+ const doc = (0, import_smithy_client.take)(data, {
684
+ ApplicationId: [, import_smithy_client.expectString, `applicationId`],
685
+ CreationTime: [, import_smithy_client.expectString, `creationTime`],
686
+ ExpirationTime: [, import_smithy_client.expectString, `expirationTime`],
687
+ SemanticVersion: [, import_smithy_client.expectString, `semanticVersion`],
688
+ Status: [, import_smithy_client.expectString, `status`],
689
+ TemplateId: [, import_smithy_client.expectString, `templateId`],
690
+ TemplateUrl: [, import_smithy_client.expectString, `templateUrl`]
691
+ });
692
+ Object.assign(contents, doc);
693
+ return contents;
694
+ }, "de_CreateCloudFormationTemplateCommand");
695
+ var de_CreateCloudFormationTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
696
+ const parsedOutput = {
697
+ ...output,
698
+ body: await parseErrorBody(output.body, context)
699
+ };
700
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
701
+ switch (errorCode) {
702
+ case "BadRequestException":
703
+ case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
704
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
705
+ case "ForbiddenException":
706
+ case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
707
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
708
+ case "InternalServerErrorException":
709
+ case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
710
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
711
+ case "NotFoundException":
712
+ case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
713
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
714
+ case "TooManyRequestsException":
715
+ case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
716
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
717
+ default:
718
+ const parsedBody = parsedOutput.body;
719
+ return throwDefaultError({
720
+ output,
721
+ parsedBody,
722
+ errorCode
723
+ });
724
+ }
725
+ }, "de_CreateCloudFormationTemplateCommandError");
726
+ var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
727
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
728
+ return de_DeleteApplicationCommandError(output, context);
729
+ }
730
+ const contents = (0, import_smithy_client.map)({
731
+ $metadata: deserializeMetadata(output)
732
+ });
733
+ await (0, import_smithy_client.collectBody)(output.body, context);
734
+ return contents;
735
+ }, "de_DeleteApplicationCommand");
736
+ var de_DeleteApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
737
+ const parsedOutput = {
738
+ ...output,
739
+ body: await parseErrorBody(output.body, context)
740
+ };
741
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
742
+ switch (errorCode) {
743
+ case "BadRequestException":
744
+ case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
745
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
746
+ case "ConflictException":
747
+ case "com.amazonaws.serverlessapplicationrepository#ConflictException":
748
+ throw await de_ConflictExceptionRes(parsedOutput, context);
749
+ case "ForbiddenException":
750
+ case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
751
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
752
+ case "InternalServerErrorException":
753
+ case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
754
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
755
+ case "NotFoundException":
756
+ case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
757
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
758
+ case "TooManyRequestsException":
759
+ case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
760
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
761
+ default:
762
+ const parsedBody = parsedOutput.body;
763
+ return throwDefaultError({
764
+ output,
765
+ parsedBody,
766
+ errorCode
767
+ });
768
+ }
769
+ }, "de_DeleteApplicationCommandError");
770
+ var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
771
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
772
+ return de_GetApplicationCommandError(output, context);
773
+ }
774
+ const contents = (0, import_smithy_client.map)({
775
+ $metadata: deserializeMetadata(output)
776
+ });
777
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
778
+ const doc = (0, import_smithy_client.take)(data, {
779
+ ApplicationId: [, import_smithy_client.expectString, `applicationId`],
780
+ Author: [, import_smithy_client.expectString, `author`],
781
+ CreationTime: [, import_smithy_client.expectString, `creationTime`],
782
+ Description: [, import_smithy_client.expectString, `description`],
783
+ HomePageUrl: [, import_smithy_client.expectString, `homePageUrl`],
784
+ IsVerifiedAuthor: [, import_smithy_client.expectBoolean, `isVerifiedAuthor`],
785
+ Labels: [, import_smithy_client._json, `labels`],
786
+ LicenseUrl: [, import_smithy_client.expectString, `licenseUrl`],
787
+ Name: [, import_smithy_client.expectString, `name`],
788
+ ReadmeUrl: [, import_smithy_client.expectString, `readmeUrl`],
789
+ SpdxLicenseId: [, import_smithy_client.expectString, `spdxLicenseId`],
790
+ VerifiedAuthorUrl: [, import_smithy_client.expectString, `verifiedAuthorUrl`],
791
+ Version: [, (_) => de_Version(_, context), `version`]
792
+ });
793
+ Object.assign(contents, doc);
794
+ return contents;
795
+ }, "de_GetApplicationCommand");
796
+ var de_GetApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
797
+ const parsedOutput = {
798
+ ...output,
799
+ body: await parseErrorBody(output.body, context)
800
+ };
801
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
802
+ switch (errorCode) {
803
+ case "BadRequestException":
804
+ case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
805
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
806
+ case "ForbiddenException":
807
+ case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
808
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
809
+ case "InternalServerErrorException":
810
+ case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
811
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
812
+ case "NotFoundException":
813
+ case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
814
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
815
+ case "TooManyRequestsException":
816
+ case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
817
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
818
+ default:
819
+ const parsedBody = parsedOutput.body;
820
+ return throwDefaultError({
821
+ output,
822
+ parsedBody,
823
+ errorCode
824
+ });
825
+ }
826
+ }, "de_GetApplicationCommandError");
827
+ var de_GetApplicationPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
828
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
829
+ return de_GetApplicationPolicyCommandError(output, context);
830
+ }
831
+ const contents = (0, import_smithy_client.map)({
832
+ $metadata: deserializeMetadata(output)
833
+ });
834
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
835
+ const doc = (0, import_smithy_client.take)(data, {
836
+ Statements: [, (_) => de___listOfApplicationPolicyStatement(_, context), `statements`]
837
+ });
838
+ Object.assign(contents, doc);
839
+ return contents;
840
+ }, "de_GetApplicationPolicyCommand");
841
+ var de_GetApplicationPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
842
+ const parsedOutput = {
843
+ ...output,
844
+ body: await parseErrorBody(output.body, context)
845
+ };
846
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
847
+ switch (errorCode) {
848
+ case "BadRequestException":
849
+ case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
850
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
851
+ case "ForbiddenException":
852
+ case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
853
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
854
+ case "InternalServerErrorException":
855
+ case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
856
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
857
+ case "NotFoundException":
858
+ case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
859
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
860
+ case "TooManyRequestsException":
861
+ case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
862
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
863
+ default:
864
+ const parsedBody = parsedOutput.body;
865
+ return throwDefaultError({
866
+ output,
867
+ parsedBody,
868
+ errorCode
869
+ });
870
+ }
871
+ }, "de_GetApplicationPolicyCommandError");
872
+ var de_GetCloudFormationTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
873
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
874
+ return de_GetCloudFormationTemplateCommandError(output, context);
875
+ }
876
+ const contents = (0, import_smithy_client.map)({
877
+ $metadata: deserializeMetadata(output)
878
+ });
879
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
880
+ const doc = (0, import_smithy_client.take)(data, {
881
+ ApplicationId: [, import_smithy_client.expectString, `applicationId`],
882
+ CreationTime: [, import_smithy_client.expectString, `creationTime`],
883
+ ExpirationTime: [, import_smithy_client.expectString, `expirationTime`],
884
+ SemanticVersion: [, import_smithy_client.expectString, `semanticVersion`],
885
+ Status: [, import_smithy_client.expectString, `status`],
886
+ TemplateId: [, import_smithy_client.expectString, `templateId`],
887
+ TemplateUrl: [, import_smithy_client.expectString, `templateUrl`]
888
+ });
889
+ Object.assign(contents, doc);
890
+ return contents;
891
+ }, "de_GetCloudFormationTemplateCommand");
892
+ var de_GetCloudFormationTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
893
+ const parsedOutput = {
894
+ ...output,
895
+ body: await parseErrorBody(output.body, context)
896
+ };
897
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
898
+ switch (errorCode) {
899
+ case "BadRequestException":
900
+ case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
901
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
902
+ case "ForbiddenException":
903
+ case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
904
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
905
+ case "InternalServerErrorException":
906
+ case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
907
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
908
+ case "NotFoundException":
909
+ case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
910
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
911
+ case "TooManyRequestsException":
912
+ case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
913
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
914
+ default:
915
+ const parsedBody = parsedOutput.body;
916
+ return throwDefaultError({
917
+ output,
918
+ parsedBody,
919
+ errorCode
920
+ });
921
+ }
922
+ }, "de_GetCloudFormationTemplateCommandError");
923
+ var de_ListApplicationDependenciesCommand = /* @__PURE__ */ __name(async (output, context) => {
924
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
925
+ return de_ListApplicationDependenciesCommandError(output, context);
926
+ }
927
+ const contents = (0, import_smithy_client.map)({
928
+ $metadata: deserializeMetadata(output)
929
+ });
930
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
931
+ const doc = (0, import_smithy_client.take)(data, {
932
+ Dependencies: [, (_) => de___listOfApplicationDependencySummary(_, context), `dependencies`],
933
+ NextToken: [, import_smithy_client.expectString, `nextToken`]
934
+ });
935
+ Object.assign(contents, doc);
936
+ return contents;
937
+ }, "de_ListApplicationDependenciesCommand");
938
+ var de_ListApplicationDependenciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
939
+ const parsedOutput = {
940
+ ...output,
941
+ body: await parseErrorBody(output.body, context)
942
+ };
943
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
944
+ switch (errorCode) {
945
+ case "BadRequestException":
946
+ case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
947
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
948
+ case "ForbiddenException":
949
+ case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
950
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
951
+ case "InternalServerErrorException":
952
+ case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
953
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
954
+ case "NotFoundException":
955
+ case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
956
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
957
+ case "TooManyRequestsException":
958
+ case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
959
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
960
+ default:
961
+ const parsedBody = parsedOutput.body;
962
+ return throwDefaultError({
963
+ output,
964
+ parsedBody,
965
+ errorCode
966
+ });
967
+ }
968
+ }, "de_ListApplicationDependenciesCommandError");
969
+ var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
970
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
971
+ return de_ListApplicationsCommandError(output, context);
972
+ }
973
+ const contents = (0, import_smithy_client.map)({
974
+ $metadata: deserializeMetadata(output)
975
+ });
976
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
977
+ const doc = (0, import_smithy_client.take)(data, {
978
+ Applications: [, (_) => de___listOfApplicationSummary(_, context), `applications`],
979
+ NextToken: [, import_smithy_client.expectString, `nextToken`]
980
+ });
981
+ Object.assign(contents, doc);
982
+ return contents;
983
+ }, "de_ListApplicationsCommand");
984
+ var de_ListApplicationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
985
+ const parsedOutput = {
986
+ ...output,
987
+ body: await parseErrorBody(output.body, context)
988
+ };
989
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
990
+ switch (errorCode) {
991
+ case "BadRequestException":
992
+ case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
993
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
994
+ case "ForbiddenException":
995
+ case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
996
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
997
+ case "InternalServerErrorException":
998
+ case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
999
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1000
+ case "NotFoundException":
1001
+ case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
1002
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1003
+ default:
1004
+ const parsedBody = parsedOutput.body;
1005
+ return throwDefaultError({
1006
+ output,
1007
+ parsedBody,
1008
+ errorCode
1009
+ });
1010
+ }
1011
+ }, "de_ListApplicationsCommandError");
1012
+ var de_ListApplicationVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1013
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1014
+ return de_ListApplicationVersionsCommandError(output, context);
1015
+ }
1016
+ const contents = (0, import_smithy_client.map)({
1017
+ $metadata: deserializeMetadata(output)
1018
+ });
1019
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1020
+ const doc = (0, import_smithy_client.take)(data, {
1021
+ NextToken: [, import_smithy_client.expectString, `nextToken`],
1022
+ Versions: [, (_) => de___listOfVersionSummary(_, context), `versions`]
1023
+ });
1024
+ Object.assign(contents, doc);
1025
+ return contents;
1026
+ }, "de_ListApplicationVersionsCommand");
1027
+ var de_ListApplicationVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1028
+ const parsedOutput = {
1029
+ ...output,
1030
+ body: await parseErrorBody(output.body, context)
1031
+ };
1032
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1033
+ switch (errorCode) {
1034
+ case "BadRequestException":
1035
+ case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
1036
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1037
+ case "ForbiddenException":
1038
+ case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
1039
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1040
+ case "InternalServerErrorException":
1041
+ case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
1042
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1043
+ case "NotFoundException":
1044
+ case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
1045
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1046
+ case "TooManyRequestsException":
1047
+ case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
1048
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1049
+ default:
1050
+ const parsedBody = parsedOutput.body;
1051
+ return throwDefaultError({
1052
+ output,
1053
+ parsedBody,
1054
+ errorCode
1055
+ });
1056
+ }
1057
+ }, "de_ListApplicationVersionsCommandError");
1058
+ var de_PutApplicationPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1059
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1060
+ return de_PutApplicationPolicyCommandError(output, context);
1061
+ }
1062
+ const contents = (0, import_smithy_client.map)({
1063
+ $metadata: deserializeMetadata(output)
1064
+ });
1065
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1066
+ const doc = (0, import_smithy_client.take)(data, {
1067
+ Statements: [, (_) => de___listOfApplicationPolicyStatement(_, context), `statements`]
1068
+ });
1069
+ Object.assign(contents, doc);
1070
+ return contents;
1071
+ }, "de_PutApplicationPolicyCommand");
1072
+ var de_PutApplicationPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1073
+ const parsedOutput = {
1074
+ ...output,
1075
+ body: await parseErrorBody(output.body, context)
1076
+ };
1077
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1078
+ switch (errorCode) {
1079
+ case "BadRequestException":
1080
+ case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
1081
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1082
+ case "ForbiddenException":
1083
+ case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
1084
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1085
+ case "InternalServerErrorException":
1086
+ case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
1087
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1088
+ case "NotFoundException":
1089
+ case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
1090
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1091
+ case "TooManyRequestsException":
1092
+ case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
1093
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1094
+ default:
1095
+ const parsedBody = parsedOutput.body;
1096
+ return throwDefaultError({
1097
+ output,
1098
+ parsedBody,
1099
+ errorCode
1100
+ });
1101
+ }
1102
+ }, "de_PutApplicationPolicyCommandError");
1103
+ var de_UnshareApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
1104
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1105
+ return de_UnshareApplicationCommandError(output, context);
1106
+ }
1107
+ const contents = (0, import_smithy_client.map)({
1108
+ $metadata: deserializeMetadata(output)
1109
+ });
1110
+ await (0, import_smithy_client.collectBody)(output.body, context);
1111
+ return contents;
1112
+ }, "de_UnshareApplicationCommand");
1113
+ var de_UnshareApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1114
+ const parsedOutput = {
1115
+ ...output,
1116
+ body: await parseErrorBody(output.body, context)
1117
+ };
1118
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1119
+ switch (errorCode) {
1120
+ case "BadRequestException":
1121
+ case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
1122
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1123
+ case "ForbiddenException":
1124
+ case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
1125
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1126
+ case "InternalServerErrorException":
1127
+ case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
1128
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1129
+ case "NotFoundException":
1130
+ case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
1131
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1132
+ case "TooManyRequestsException":
1133
+ case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
1134
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1135
+ default:
1136
+ const parsedBody = parsedOutput.body;
1137
+ return throwDefaultError({
1138
+ output,
1139
+ parsedBody,
1140
+ errorCode
1141
+ });
1142
+ }
1143
+ }, "de_UnshareApplicationCommandError");
1144
+ var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
1145
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1146
+ return de_UpdateApplicationCommandError(output, context);
1147
+ }
1148
+ const contents = (0, import_smithy_client.map)({
1149
+ $metadata: deserializeMetadata(output)
1150
+ });
1151
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1152
+ const doc = (0, import_smithy_client.take)(data, {
1153
+ ApplicationId: [, import_smithy_client.expectString, `applicationId`],
1154
+ Author: [, import_smithy_client.expectString, `author`],
1155
+ CreationTime: [, import_smithy_client.expectString, `creationTime`],
1156
+ Description: [, import_smithy_client.expectString, `description`],
1157
+ HomePageUrl: [, import_smithy_client.expectString, `homePageUrl`],
1158
+ IsVerifiedAuthor: [, import_smithy_client.expectBoolean, `isVerifiedAuthor`],
1159
+ Labels: [, import_smithy_client._json, `labels`],
1160
+ LicenseUrl: [, import_smithy_client.expectString, `licenseUrl`],
1161
+ Name: [, import_smithy_client.expectString, `name`],
1162
+ ReadmeUrl: [, import_smithy_client.expectString, `readmeUrl`],
1163
+ SpdxLicenseId: [, import_smithy_client.expectString, `spdxLicenseId`],
1164
+ VerifiedAuthorUrl: [, import_smithy_client.expectString, `verifiedAuthorUrl`],
1165
+ Version: [, (_) => de_Version(_, context), `version`]
1166
+ });
1167
+ Object.assign(contents, doc);
1168
+ return contents;
1169
+ }, "de_UpdateApplicationCommand");
1170
+ var de_UpdateApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1171
+ const parsedOutput = {
1172
+ ...output,
1173
+ body: await parseErrorBody(output.body, context)
1174
+ };
1175
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1176
+ switch (errorCode) {
1177
+ case "BadRequestException":
1178
+ case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
1179
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1180
+ case "ConflictException":
1181
+ case "com.amazonaws.serverlessapplicationrepository#ConflictException":
1182
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1183
+ case "ForbiddenException":
1184
+ case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
1185
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1186
+ case "InternalServerErrorException":
1187
+ case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
1188
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1189
+ case "NotFoundException":
1190
+ case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
1191
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1192
+ case "TooManyRequestsException":
1193
+ case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
1194
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1195
+ default:
1196
+ const parsedBody = parsedOutput.body;
1197
+ return throwDefaultError({
1198
+ output,
1199
+ parsedBody,
1200
+ errorCode
1201
+ });
1202
+ }
1203
+ }, "de_UpdateApplicationCommandError");
1204
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(ServerlessApplicationRepositoryServiceException);
1205
+ var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1206
+ const contents = (0, import_smithy_client.map)({});
1207
+ const data = parsedOutput.body;
1208
+ const doc = (0, import_smithy_client.take)(data, {
1209
+ ErrorCode: [, import_smithy_client.expectString, `errorCode`],
1210
+ Message: [, import_smithy_client.expectString, `message`]
1211
+ });
1212
+ Object.assign(contents, doc);
1213
+ const exception = new BadRequestException({
1214
+ $metadata: deserializeMetadata(parsedOutput),
1215
+ ...contents
1216
+ });
1217
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1218
+ }, "de_BadRequestExceptionRes");
1219
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1220
+ const contents = (0, import_smithy_client.map)({});
1221
+ const data = parsedOutput.body;
1222
+ const doc = (0, import_smithy_client.take)(data, {
1223
+ ErrorCode: [, import_smithy_client.expectString, `errorCode`],
1224
+ Message: [, import_smithy_client.expectString, `message`]
1225
+ });
1226
+ Object.assign(contents, doc);
1227
+ const exception = new ConflictException({
1228
+ $metadata: deserializeMetadata(parsedOutput),
1229
+ ...contents
1230
+ });
1231
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1232
+ }, "de_ConflictExceptionRes");
1233
+ var de_ForbiddenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1234
+ const contents = (0, import_smithy_client.map)({});
1235
+ const data = parsedOutput.body;
1236
+ const doc = (0, import_smithy_client.take)(data, {
1237
+ ErrorCode: [, import_smithy_client.expectString, `errorCode`],
1238
+ Message: [, import_smithy_client.expectString, `message`]
1239
+ });
1240
+ Object.assign(contents, doc);
1241
+ const exception = new ForbiddenException({
1242
+ $metadata: deserializeMetadata(parsedOutput),
1243
+ ...contents
1244
+ });
1245
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1246
+ }, "de_ForbiddenExceptionRes");
1247
+ var de_InternalServerErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1248
+ const contents = (0, import_smithy_client.map)({});
1249
+ const data = parsedOutput.body;
1250
+ const doc = (0, import_smithy_client.take)(data, {
1251
+ ErrorCode: [, import_smithy_client.expectString, `errorCode`],
1252
+ Message: [, import_smithy_client.expectString, `message`]
1253
+ });
1254
+ Object.assign(contents, doc);
1255
+ const exception = new InternalServerErrorException({
1256
+ $metadata: deserializeMetadata(parsedOutput),
1257
+ ...contents
1258
+ });
1259
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1260
+ }, "de_InternalServerErrorExceptionRes");
1261
+ var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1262
+ const contents = (0, import_smithy_client.map)({});
1263
+ const data = parsedOutput.body;
1264
+ const doc = (0, import_smithy_client.take)(data, {
1265
+ ErrorCode: [, import_smithy_client.expectString, `errorCode`],
1266
+ Message: [, import_smithy_client.expectString, `message`]
1267
+ });
1268
+ Object.assign(contents, doc);
1269
+ const exception = new NotFoundException({
1270
+ $metadata: deserializeMetadata(parsedOutput),
1271
+ ...contents
1272
+ });
1273
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1274
+ }, "de_NotFoundExceptionRes");
1275
+ var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1276
+ const contents = (0, import_smithy_client.map)({});
1277
+ const data = parsedOutput.body;
1278
+ const doc = (0, import_smithy_client.take)(data, {
1279
+ ErrorCode: [, import_smithy_client.expectString, `errorCode`],
1280
+ Message: [, import_smithy_client.expectString, `message`]
1281
+ });
1282
+ Object.assign(contents, doc);
1283
+ const exception = new TooManyRequestsException({
1284
+ $metadata: deserializeMetadata(parsedOutput),
1285
+ ...contents
1286
+ });
1287
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1288
+ }, "de_TooManyRequestsExceptionRes");
1289
+ var se___listOfApplicationPolicyStatement = /* @__PURE__ */ __name((input, context) => {
1290
+ return input.filter((e) => e != null).map((entry) => {
1291
+ return se_ApplicationPolicyStatement(entry, context);
1292
+ });
1293
+ }, "se___listOfApplicationPolicyStatement");
1294
+ var se___listOfParameterValue = /* @__PURE__ */ __name((input, context) => {
1295
+ return input.filter((e) => e != null).map((entry) => {
1296
+ return se_ParameterValue(entry, context);
1297
+ });
1298
+ }, "se___listOfParameterValue");
1299
+ var se___listOfRollbackTrigger = /* @__PURE__ */ __name((input, context) => {
1300
+ return input.filter((e) => e != null).map((entry) => {
1301
+ return se_RollbackTrigger(entry, context);
1302
+ });
1303
+ }, "se___listOfRollbackTrigger");
1304
+ var se___listOfTag = /* @__PURE__ */ __name((input, context) => {
1305
+ return input.filter((e) => e != null).map((entry) => {
1306
+ return se_Tag(entry, context);
1307
+ });
1308
+ }, "se___listOfTag");
1309
+ var se_ApplicationPolicyStatement = /* @__PURE__ */ __name((input, context) => {
1310
+ return (0, import_smithy_client.take)(input, {
1311
+ actions: [, import_smithy_client._json, `Actions`],
1312
+ principalOrgIDs: [, import_smithy_client._json, `PrincipalOrgIDs`],
1313
+ principals: [, import_smithy_client._json, `Principals`],
1314
+ statementId: [, , `StatementId`]
1315
+ });
1316
+ }, "se_ApplicationPolicyStatement");
1317
+ var se_ParameterValue = /* @__PURE__ */ __name((input, context) => {
1318
+ return (0, import_smithy_client.take)(input, {
1319
+ name: [, , `Name`],
1320
+ value: [, , `Value`]
1321
+ });
1322
+ }, "se_ParameterValue");
1323
+ var se_RollbackConfiguration = /* @__PURE__ */ __name((input, context) => {
1324
+ return (0, import_smithy_client.take)(input, {
1325
+ monitoringTimeInMinutes: [, , `MonitoringTimeInMinutes`],
1326
+ rollbackTriggers: [, (_) => se___listOfRollbackTrigger(_, context), `RollbackTriggers`]
1327
+ });
1328
+ }, "se_RollbackConfiguration");
1329
+ var se_RollbackTrigger = /* @__PURE__ */ __name((input, context) => {
1330
+ return (0, import_smithy_client.take)(input, {
1331
+ arn: [, , `Arn`],
1332
+ type: [, , `Type`]
1333
+ });
1334
+ }, "se_RollbackTrigger");
1335
+ var se_Tag = /* @__PURE__ */ __name((input, context) => {
1336
+ return (0, import_smithy_client.take)(input, {
1337
+ key: [, , `Key`],
1338
+ value: [, , `Value`]
1339
+ });
1340
+ }, "se_Tag");
1341
+ var de___listOfApplicationDependencySummary = /* @__PURE__ */ __name((output, context) => {
1342
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1343
+ return de_ApplicationDependencySummary(entry, context);
1344
+ });
1345
+ return retVal;
1346
+ }, "de___listOfApplicationDependencySummary");
1347
+ var de___listOfApplicationPolicyStatement = /* @__PURE__ */ __name((output, context) => {
1348
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1349
+ return de_ApplicationPolicyStatement(entry, context);
1350
+ });
1351
+ return retVal;
1352
+ }, "de___listOfApplicationPolicyStatement");
1353
+ var de___listOfApplicationSummary = /* @__PURE__ */ __name((output, context) => {
1354
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1355
+ return de_ApplicationSummary(entry, context);
1356
+ });
1357
+ return retVal;
1358
+ }, "de___listOfApplicationSummary");
1359
+ var de___listOfParameterDefinition = /* @__PURE__ */ __name((output, context) => {
1360
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1361
+ return de_ParameterDefinition(entry, context);
1362
+ });
1363
+ return retVal;
1364
+ }, "de___listOfParameterDefinition");
1365
+ var de___listOfVersionSummary = /* @__PURE__ */ __name((output, context) => {
1366
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1367
+ return de_VersionSummary(entry, context);
1368
+ });
1369
+ return retVal;
1370
+ }, "de___listOfVersionSummary");
1371
+ var de_ApplicationDependencySummary = /* @__PURE__ */ __name((output, context) => {
1372
+ return (0, import_smithy_client.take)(output, {
1373
+ ApplicationId: [, import_smithy_client.expectString, `applicationId`],
1374
+ SemanticVersion: [, import_smithy_client.expectString, `semanticVersion`]
1375
+ });
1376
+ }, "de_ApplicationDependencySummary");
1377
+ var de_ApplicationPolicyStatement = /* @__PURE__ */ __name((output, context) => {
1378
+ return (0, import_smithy_client.take)(output, {
1379
+ Actions: [, import_smithy_client._json, `actions`],
1380
+ PrincipalOrgIDs: [, import_smithy_client._json, `principalOrgIDs`],
1381
+ Principals: [, import_smithy_client._json, `principals`],
1382
+ StatementId: [, import_smithy_client.expectString, `statementId`]
1383
+ });
1384
+ }, "de_ApplicationPolicyStatement");
1385
+ var de_ApplicationSummary = /* @__PURE__ */ __name((output, context) => {
1386
+ return (0, import_smithy_client.take)(output, {
1387
+ ApplicationId: [, import_smithy_client.expectString, `applicationId`],
1388
+ Author: [, import_smithy_client.expectString, `author`],
1389
+ CreationTime: [, import_smithy_client.expectString, `creationTime`],
1390
+ Description: [, import_smithy_client.expectString, `description`],
1391
+ HomePageUrl: [, import_smithy_client.expectString, `homePageUrl`],
1392
+ Labels: [, import_smithy_client._json, `labels`],
1393
+ Name: [, import_smithy_client.expectString, `name`],
1394
+ SpdxLicenseId: [, import_smithy_client.expectString, `spdxLicenseId`]
1395
+ });
1396
+ }, "de_ApplicationSummary");
1397
+ var de_ParameterDefinition = /* @__PURE__ */ __name((output, context) => {
1398
+ return (0, import_smithy_client.take)(output, {
1399
+ AllowedPattern: [, import_smithy_client.expectString, `allowedPattern`],
1400
+ AllowedValues: [, import_smithy_client._json, `allowedValues`],
1401
+ ConstraintDescription: [, import_smithy_client.expectString, `constraintDescription`],
1402
+ DefaultValue: [, import_smithy_client.expectString, `defaultValue`],
1403
+ Description: [, import_smithy_client.expectString, `description`],
1404
+ MaxLength: [, import_smithy_client.expectInt32, `maxLength`],
1405
+ MaxValue: [, import_smithy_client.expectInt32, `maxValue`],
1406
+ MinLength: [, import_smithy_client.expectInt32, `minLength`],
1407
+ MinValue: [, import_smithy_client.expectInt32, `minValue`],
1408
+ Name: [, import_smithy_client.expectString, `name`],
1409
+ NoEcho: [, import_smithy_client.expectBoolean, `noEcho`],
1410
+ ReferencedByResources: [, import_smithy_client._json, `referencedByResources`],
1411
+ Type: [, import_smithy_client.expectString, `type`]
1412
+ });
1413
+ }, "de_ParameterDefinition");
1414
+ var de_Version = /* @__PURE__ */ __name((output, context) => {
1415
+ return (0, import_smithy_client.take)(output, {
1416
+ ApplicationId: [, import_smithy_client.expectString, `applicationId`],
1417
+ CreationTime: [, import_smithy_client.expectString, `creationTime`],
1418
+ ParameterDefinitions: [, (_) => de___listOfParameterDefinition(_, context), `parameterDefinitions`],
1419
+ RequiredCapabilities: [, import_smithy_client._json, `requiredCapabilities`],
1420
+ ResourcesSupported: [, import_smithy_client.expectBoolean, `resourcesSupported`],
1421
+ SemanticVersion: [, import_smithy_client.expectString, `semanticVersion`],
1422
+ SourceCodeArchiveUrl: [, import_smithy_client.expectString, `sourceCodeArchiveUrl`],
1423
+ SourceCodeUrl: [, import_smithy_client.expectString, `sourceCodeUrl`],
1424
+ TemplateUrl: [, import_smithy_client.expectString, `templateUrl`]
1425
+ });
1426
+ }, "de_Version");
1427
+ var de_VersionSummary = /* @__PURE__ */ __name((output, context) => {
1428
+ return (0, import_smithy_client.take)(output, {
1429
+ ApplicationId: [, import_smithy_client.expectString, `applicationId`],
1430
+ CreationTime: [, import_smithy_client.expectString, `creationTime`],
1431
+ SemanticVersion: [, import_smithy_client.expectString, `semanticVersion`],
1432
+ SourceCodeUrl: [, import_smithy_client.expectString, `sourceCodeUrl`]
1433
+ });
1434
+ }, "de_VersionSummary");
1435
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1436
+ httpStatusCode: output.statusCode,
1437
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1438
+ extendedRequestId: output.headers["x-amz-id-2"],
1439
+ cfId: output.headers["x-amz-cf-id"]
1440
+ }), "deserializeMetadata");
1441
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
1442
+ var _MI = "MaxItems";
1443
+ var _NT = "NextToken";
1444
+ var _SV = "SemanticVersion";
1445
+ var _mI = "maxItems";
1446
+ var _nT = "nextToken";
1447
+ var _sV = "semanticVersion";
1448
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1449
+ if (encoded.length) {
1450
+ return JSON.parse(encoded);
1451
+ }
1452
+ return {};
1453
+ }), "parseBody");
1454
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
1455
+ const value = await parseBody(errorBody, context);
1456
+ value.message = value.message ?? value.Message;
1457
+ return value;
1458
+ }, "parseErrorBody");
1459
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
1460
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
1461
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
1462
+ let cleanValue = rawValue;
1463
+ if (typeof cleanValue === "number") {
1464
+ cleanValue = cleanValue.toString();
1465
+ }
1466
+ if (cleanValue.indexOf(",") >= 0) {
1467
+ cleanValue = cleanValue.split(",")[0];
1468
+ }
1469
+ if (cleanValue.indexOf(":") >= 0) {
1470
+ cleanValue = cleanValue.split(":")[0];
1471
+ }
1472
+ if (cleanValue.indexOf("#") >= 0) {
1473
+ cleanValue = cleanValue.split("#")[1];
1474
+ }
1475
+ return cleanValue;
1476
+ }, "sanitizeErrorCode");
1477
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
1478
+ if (headerKey !== void 0) {
1479
+ return sanitizeErrorCode(output.headers[headerKey]);
1480
+ }
1481
+ if (data.code !== void 0) {
1482
+ return sanitizeErrorCode(data.code);
1483
+ }
1484
+ if (data["__type"] !== void 0) {
1485
+ return sanitizeErrorCode(data["__type"]);
1486
+ }
1487
+ }, "loadRestJsonErrorCode");
1488
+
1489
+ // src/commands/CreateApplicationCommand.ts
1490
+ var _CreateApplicationCommand = class _CreateApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
1491
+ ...commonParams
1492
+ }).m(function(Command, cs, config, o) {
1493
+ return [
1494
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1495
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1496
+ ];
1497
+ }).s("ServerlessApplicationRepository", "CreateApplication", {}).n("ServerlessApplicationRepositoryClient", "CreateApplicationCommand").f(void 0, void 0).ser(se_CreateApplicationCommand).de(de_CreateApplicationCommand).build() {
1498
+ };
1499
+ __name(_CreateApplicationCommand, "CreateApplicationCommand");
1500
+ var CreateApplicationCommand = _CreateApplicationCommand;
1501
+
1502
+ // src/commands/CreateApplicationVersionCommand.ts
1503
+
1504
+
1505
+
1506
+
1507
+ var _CreateApplicationVersionCommand = class _CreateApplicationVersionCommand extends import_smithy_client.Command.classBuilder().ep({
1508
+ ...commonParams
1509
+ }).m(function(Command, cs, config, o) {
1510
+ return [
1511
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1512
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1513
+ ];
1514
+ }).s("ServerlessApplicationRepository", "CreateApplicationVersion", {}).n("ServerlessApplicationRepositoryClient", "CreateApplicationVersionCommand").f(void 0, void 0).ser(se_CreateApplicationVersionCommand).de(de_CreateApplicationVersionCommand).build() {
1515
+ };
1516
+ __name(_CreateApplicationVersionCommand, "CreateApplicationVersionCommand");
1517
+ var CreateApplicationVersionCommand = _CreateApplicationVersionCommand;
1518
+
1519
+ // src/commands/CreateCloudFormationChangeSetCommand.ts
1520
+
1521
+
1522
+
1523
+
1524
+ var _CreateCloudFormationChangeSetCommand = class _CreateCloudFormationChangeSetCommand extends import_smithy_client.Command.classBuilder().ep({
1525
+ ...commonParams
1526
+ }).m(function(Command, cs, config, o) {
1527
+ return [
1528
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1529
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1530
+ ];
1531
+ }).s("ServerlessApplicationRepository", "CreateCloudFormationChangeSet", {}).n("ServerlessApplicationRepositoryClient", "CreateCloudFormationChangeSetCommand").f(void 0, void 0).ser(se_CreateCloudFormationChangeSetCommand).de(de_CreateCloudFormationChangeSetCommand).build() {
1532
+ };
1533
+ __name(_CreateCloudFormationChangeSetCommand, "CreateCloudFormationChangeSetCommand");
1534
+ var CreateCloudFormationChangeSetCommand = _CreateCloudFormationChangeSetCommand;
1535
+
1536
+ // src/commands/CreateCloudFormationTemplateCommand.ts
1537
+
1538
+
1539
+
1540
+
1541
+ var _CreateCloudFormationTemplateCommand = class _CreateCloudFormationTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
1542
+ ...commonParams
1543
+ }).m(function(Command, cs, config, o) {
1544
+ return [
1545
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1546
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1547
+ ];
1548
+ }).s("ServerlessApplicationRepository", "CreateCloudFormationTemplate", {}).n("ServerlessApplicationRepositoryClient", "CreateCloudFormationTemplateCommand").f(void 0, void 0).ser(se_CreateCloudFormationTemplateCommand).de(de_CreateCloudFormationTemplateCommand).build() {
1549
+ };
1550
+ __name(_CreateCloudFormationTemplateCommand, "CreateCloudFormationTemplateCommand");
1551
+ var CreateCloudFormationTemplateCommand = _CreateCloudFormationTemplateCommand;
1552
+
1553
+ // src/commands/DeleteApplicationCommand.ts
1554
+
1555
+
1556
+
1557
+
1558
+ var _DeleteApplicationCommand = class _DeleteApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
1559
+ ...commonParams
1560
+ }).m(function(Command, cs, config, o) {
1561
+ return [
1562
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1563
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1564
+ ];
1565
+ }).s("ServerlessApplicationRepository", "DeleteApplication", {}).n("ServerlessApplicationRepositoryClient", "DeleteApplicationCommand").f(void 0, void 0).ser(se_DeleteApplicationCommand).de(de_DeleteApplicationCommand).build() {
1566
+ };
1567
+ __name(_DeleteApplicationCommand, "DeleteApplicationCommand");
1568
+ var DeleteApplicationCommand = _DeleteApplicationCommand;
1569
+
1570
+ // src/commands/GetApplicationCommand.ts
1571
+
1572
+
1573
+
1574
+
1575
+ var _GetApplicationCommand = class _GetApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
1576
+ ...commonParams
1577
+ }).m(function(Command, cs, config, o) {
1578
+ return [
1579
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1580
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1581
+ ];
1582
+ }).s("ServerlessApplicationRepository", "GetApplication", {}).n("ServerlessApplicationRepositoryClient", "GetApplicationCommand").f(void 0, void 0).ser(se_GetApplicationCommand).de(de_GetApplicationCommand).build() {
1583
+ };
1584
+ __name(_GetApplicationCommand, "GetApplicationCommand");
1585
+ var GetApplicationCommand = _GetApplicationCommand;
1586
+
1587
+ // src/commands/GetApplicationPolicyCommand.ts
1588
+
1589
+
1590
+
1591
+
1592
+ var _GetApplicationPolicyCommand = class _GetApplicationPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
1593
+ ...commonParams
1594
+ }).m(function(Command, cs, config, o) {
1595
+ return [
1596
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1597
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1598
+ ];
1599
+ }).s("ServerlessApplicationRepository", "GetApplicationPolicy", {}).n("ServerlessApplicationRepositoryClient", "GetApplicationPolicyCommand").f(void 0, void 0).ser(se_GetApplicationPolicyCommand).de(de_GetApplicationPolicyCommand).build() {
1600
+ };
1601
+ __name(_GetApplicationPolicyCommand, "GetApplicationPolicyCommand");
1602
+ var GetApplicationPolicyCommand = _GetApplicationPolicyCommand;
1603
+
1604
+ // src/commands/GetCloudFormationTemplateCommand.ts
1605
+
1606
+
1607
+
1608
+
1609
+ var _GetCloudFormationTemplateCommand = class _GetCloudFormationTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
1610
+ ...commonParams
1611
+ }).m(function(Command, cs, config, o) {
1612
+ return [
1613
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1614
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1615
+ ];
1616
+ }).s("ServerlessApplicationRepository", "GetCloudFormationTemplate", {}).n("ServerlessApplicationRepositoryClient", "GetCloudFormationTemplateCommand").f(void 0, void 0).ser(se_GetCloudFormationTemplateCommand).de(de_GetCloudFormationTemplateCommand).build() {
1617
+ };
1618
+ __name(_GetCloudFormationTemplateCommand, "GetCloudFormationTemplateCommand");
1619
+ var GetCloudFormationTemplateCommand = _GetCloudFormationTemplateCommand;
1620
+
1621
+ // src/commands/ListApplicationDependenciesCommand.ts
1622
+
1623
+
1624
+
1625
+
1626
+ var _ListApplicationDependenciesCommand = class _ListApplicationDependenciesCommand extends import_smithy_client.Command.classBuilder().ep({
1627
+ ...commonParams
1628
+ }).m(function(Command, cs, config, o) {
1629
+ return [
1630
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1631
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1632
+ ];
1633
+ }).s("ServerlessApplicationRepository", "ListApplicationDependencies", {}).n("ServerlessApplicationRepositoryClient", "ListApplicationDependenciesCommand").f(void 0, void 0).ser(se_ListApplicationDependenciesCommand).de(de_ListApplicationDependenciesCommand).build() {
1634
+ };
1635
+ __name(_ListApplicationDependenciesCommand, "ListApplicationDependenciesCommand");
1636
+ var ListApplicationDependenciesCommand = _ListApplicationDependenciesCommand;
1637
+
1638
+ // src/commands/ListApplicationsCommand.ts
1639
+
1640
+
1641
+
1642
+
1643
+ var _ListApplicationsCommand = class _ListApplicationsCommand extends import_smithy_client.Command.classBuilder().ep({
1644
+ ...commonParams
1645
+ }).m(function(Command, cs, config, o) {
1646
+ return [
1647
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1648
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1649
+ ];
1650
+ }).s("ServerlessApplicationRepository", "ListApplications", {}).n("ServerlessApplicationRepositoryClient", "ListApplicationsCommand").f(void 0, void 0).ser(se_ListApplicationsCommand).de(de_ListApplicationsCommand).build() {
1651
+ };
1652
+ __name(_ListApplicationsCommand, "ListApplicationsCommand");
1653
+ var ListApplicationsCommand = _ListApplicationsCommand;
1654
+
1655
+ // src/commands/ListApplicationVersionsCommand.ts
1656
+
1657
+
1658
+
1659
+
1660
+ var _ListApplicationVersionsCommand = class _ListApplicationVersionsCommand extends import_smithy_client.Command.classBuilder().ep({
1661
+ ...commonParams
1662
+ }).m(function(Command, cs, config, o) {
1663
+ return [
1664
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1665
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1666
+ ];
1667
+ }).s("ServerlessApplicationRepository", "ListApplicationVersions", {}).n("ServerlessApplicationRepositoryClient", "ListApplicationVersionsCommand").f(void 0, void 0).ser(se_ListApplicationVersionsCommand).de(de_ListApplicationVersionsCommand).build() {
1668
+ };
1669
+ __name(_ListApplicationVersionsCommand, "ListApplicationVersionsCommand");
1670
+ var ListApplicationVersionsCommand = _ListApplicationVersionsCommand;
1671
+
1672
+ // src/commands/PutApplicationPolicyCommand.ts
1673
+
1674
+
1675
+
1676
+
1677
+ var _PutApplicationPolicyCommand = class _PutApplicationPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
1678
+ ...commonParams
1679
+ }).m(function(Command, cs, config, o) {
1680
+ return [
1681
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1682
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1683
+ ];
1684
+ }).s("ServerlessApplicationRepository", "PutApplicationPolicy", {}).n("ServerlessApplicationRepositoryClient", "PutApplicationPolicyCommand").f(void 0, void 0).ser(se_PutApplicationPolicyCommand).de(de_PutApplicationPolicyCommand).build() {
1685
+ };
1686
+ __name(_PutApplicationPolicyCommand, "PutApplicationPolicyCommand");
1687
+ var PutApplicationPolicyCommand = _PutApplicationPolicyCommand;
1688
+
1689
+ // src/commands/UnshareApplicationCommand.ts
1690
+
1691
+
1692
+
1693
+
1694
+ var _UnshareApplicationCommand = class _UnshareApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
1695
+ ...commonParams
1696
+ }).m(function(Command, cs, config, o) {
1697
+ return [
1698
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1699
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1700
+ ];
1701
+ }).s("ServerlessApplicationRepository", "UnshareApplication", {}).n("ServerlessApplicationRepositoryClient", "UnshareApplicationCommand").f(void 0, void 0).ser(se_UnshareApplicationCommand).de(de_UnshareApplicationCommand).build() {
1702
+ };
1703
+ __name(_UnshareApplicationCommand, "UnshareApplicationCommand");
1704
+ var UnshareApplicationCommand = _UnshareApplicationCommand;
1705
+
1706
+ // src/commands/UpdateApplicationCommand.ts
1707
+
1708
+
1709
+
1710
+
1711
+ var _UpdateApplicationCommand = class _UpdateApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
1712
+ ...commonParams
1713
+ }).m(function(Command, cs, config, o) {
1714
+ return [
1715
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1716
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1717
+ ];
1718
+ }).s("ServerlessApplicationRepository", "UpdateApplication", {}).n("ServerlessApplicationRepositoryClient", "UpdateApplicationCommand").f(void 0, void 0).ser(se_UpdateApplicationCommand).de(de_UpdateApplicationCommand).build() {
1719
+ };
1720
+ __name(_UpdateApplicationCommand, "UpdateApplicationCommand");
1721
+ var UpdateApplicationCommand = _UpdateApplicationCommand;
1722
+
1723
+ // src/ServerlessApplicationRepository.ts
1724
+ var commands = {
1725
+ CreateApplicationCommand,
1726
+ CreateApplicationVersionCommand,
1727
+ CreateCloudFormationChangeSetCommand,
1728
+ CreateCloudFormationTemplateCommand,
1729
+ DeleteApplicationCommand,
1730
+ GetApplicationCommand,
1731
+ GetApplicationPolicyCommand,
1732
+ GetCloudFormationTemplateCommand,
1733
+ ListApplicationDependenciesCommand,
1734
+ ListApplicationsCommand,
1735
+ ListApplicationVersionsCommand,
1736
+ PutApplicationPolicyCommand,
1737
+ UnshareApplicationCommand,
1738
+ UpdateApplicationCommand
1739
+ };
1740
+ var _ServerlessApplicationRepository = class _ServerlessApplicationRepository extends ServerlessApplicationRepositoryClient {
1741
+ };
1742
+ __name(_ServerlessApplicationRepository, "ServerlessApplicationRepository");
1743
+ var ServerlessApplicationRepository = _ServerlessApplicationRepository;
1744
+ (0, import_smithy_client.createAggregatedClient)(commands, ServerlessApplicationRepository);
1745
+
1746
+ // src/pagination/ListApplicationDependenciesPaginator.ts
1747
+
1748
+ var paginateListApplicationDependencies = (0, import_core.createPaginator)(ServerlessApplicationRepositoryClient, ListApplicationDependenciesCommand, "NextToken", "NextToken", "MaxItems");
1749
+
1750
+ // src/pagination/ListApplicationVersionsPaginator.ts
1751
+
1752
+ var paginateListApplicationVersions = (0, import_core.createPaginator)(ServerlessApplicationRepositoryClient, ListApplicationVersionsCommand, "NextToken", "NextToken", "MaxItems");
1753
+
1754
+ // src/pagination/ListApplicationsPaginator.ts
1755
+
1756
+ var paginateListApplications = (0, import_core.createPaginator)(ServerlessApplicationRepositoryClient, ListApplicationsCommand, "NextToken", "NextToken", "MaxItems");
1757
+
1758
+ // src/index.ts
1759
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
1760
+ // Annotate the CommonJS export names for ESM import in node:
1761
+ 0 && (module.exports = {
1762
+ BadRequestException,
1763
+ Capability,
1764
+ ConflictException,
1765
+ CreateApplicationCommand,
1766
+ CreateApplicationVersionCommand,
1767
+ CreateCloudFormationChangeSetCommand,
1768
+ CreateCloudFormationTemplateCommand,
1769
+ DeleteApplicationCommand,
1770
+ ForbiddenException,
1771
+ GetApplicationCommand,
1772
+ GetApplicationPolicyCommand,
1773
+ GetCloudFormationTemplateCommand,
1774
+ InternalServerErrorException,
1775
+ ListApplicationDependenciesCommand,
1776
+ ListApplicationVersionsCommand,
1777
+ ListApplicationsCommand,
1778
+ NotFoundException,
1779
+ PutApplicationPolicyCommand,
1780
+ ServerlessApplicationRepository,
1781
+ ServerlessApplicationRepositoryClient,
1782
+ ServerlessApplicationRepositoryServiceException,
1783
+ Status,
1784
+ TooManyRequestsException,
1785
+ UnshareApplicationCommand,
1786
+ UpdateApplicationCommand,
1787
+ __Client,
1788
+ paginateListApplicationDependencies,
1789
+ paginateListApplicationVersions,
1790
+ paginateListApplications
1791
+ });