@aws-sdk/client-serverlessapplicationrepository 3.310.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_restJson1.js +306 -490
- package/dist-es/protocols/Aws_restJson1.js +283 -467
- package/package.json +6 -6
|
@@ -12,23 +12,23 @@ const se_CreateApplicationCommand = async (input, context) => {
|
|
|
12
12
|
};
|
|
13
13
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
|
|
14
14
|
let body;
|
|
15
|
-
body = JSON.stringify({
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
});
|
|
15
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
16
|
+
author: [, , `Author`],
|
|
17
|
+
description: [, , `Description`],
|
|
18
|
+
homePageUrl: [, , `HomePageUrl`],
|
|
19
|
+
labels: [, (_) => (0, smithy_client_1._json)(_), `Labels`],
|
|
20
|
+
licenseBody: [, , `LicenseBody`],
|
|
21
|
+
licenseUrl: [, , `LicenseUrl`],
|
|
22
|
+
name: [, , `Name`],
|
|
23
|
+
readmeBody: [, , `ReadmeBody`],
|
|
24
|
+
readmeUrl: [, , `ReadmeUrl`],
|
|
25
|
+
semanticVersion: [, , `SemanticVersion`],
|
|
26
|
+
sourceCodeArchiveUrl: [, , `SourceCodeArchiveUrl`],
|
|
27
|
+
sourceCodeUrl: [, , `SourceCodeUrl`],
|
|
28
|
+
spdxLicenseId: [, , `SpdxLicenseId`],
|
|
29
|
+
templateBody: [, , `TemplateBody`],
|
|
30
|
+
templateUrl: [, , `TemplateUrl`],
|
|
31
|
+
}));
|
|
32
32
|
return new protocol_http_1.HttpRequest({
|
|
33
33
|
protocol,
|
|
34
34
|
hostname,
|
|
@@ -50,12 +50,12 @@ const se_CreateApplicationVersionCommand = async (input, context) => {
|
|
|
50
50
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
51
51
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SemanticVersion", () => input.SemanticVersion, "{SemanticVersion}", false);
|
|
52
52
|
let body;
|
|
53
|
-
body = JSON.stringify({
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
});
|
|
53
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
54
|
+
sourceCodeArchiveUrl: [, , `SourceCodeArchiveUrl`],
|
|
55
|
+
sourceCodeUrl: [, , `SourceCodeUrl`],
|
|
56
|
+
templateBody: [, , `TemplateBody`],
|
|
57
|
+
templateUrl: [, , `TemplateUrl`],
|
|
58
|
+
}));
|
|
59
59
|
return new protocol_http_1.HttpRequest({
|
|
60
60
|
protocol,
|
|
61
61
|
hostname,
|
|
@@ -75,24 +75,20 @@ const se_CreateCloudFormationChangeSetCommand = async (input, context) => {
|
|
|
75
75
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}/changesets";
|
|
76
76
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
77
77
|
let body;
|
|
78
|
-
body = JSON.stringify({
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
...(input.StackName != null && { stackName: input.StackName }),
|
|
93
|
-
...(input.Tags != null && { tags: se___listOfTag(input.Tags, context) }),
|
|
94
|
-
...(input.TemplateId != null && { templateId: input.TemplateId }),
|
|
95
|
-
});
|
|
78
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
79
|
+
capabilities: [, (_) => (0, smithy_client_1._json)(_), `Capabilities`],
|
|
80
|
+
changeSetName: [, , `ChangeSetName`],
|
|
81
|
+
clientToken: [, , `ClientToken`],
|
|
82
|
+
description: [, , `Description`],
|
|
83
|
+
notificationArns: [, (_) => (0, smithy_client_1._json)(_), `NotificationArns`],
|
|
84
|
+
parameterOverrides: [, (_) => se___listOfParameterValue(_, context), `ParameterOverrides`],
|
|
85
|
+
resourceTypes: [, (_) => (0, smithy_client_1._json)(_), `ResourceTypes`],
|
|
86
|
+
rollbackConfiguration: [, (_) => se_RollbackConfiguration(_, context), `RollbackConfiguration`],
|
|
87
|
+
semanticVersion: [, , `SemanticVersion`],
|
|
88
|
+
stackName: [, , `StackName`],
|
|
89
|
+
tags: [, (_) => se___listOfTag(_, context), `Tags`],
|
|
90
|
+
templateId: [, , `TemplateId`],
|
|
91
|
+
}));
|
|
96
92
|
return new protocol_http_1.HttpRequest({
|
|
97
93
|
protocol,
|
|
98
94
|
hostname,
|
|
@@ -112,9 +108,9 @@ const se_CreateCloudFormationTemplateCommand = async (input, context) => {
|
|
|
112
108
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}/templates";
|
|
113
109
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
114
110
|
let body;
|
|
115
|
-
body = JSON.stringify({
|
|
116
|
-
|
|
117
|
-
});
|
|
111
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
112
|
+
semanticVersion: [, , `SemanticVersion`],
|
|
113
|
+
}));
|
|
118
114
|
return new protocol_http_1.HttpRequest({
|
|
119
115
|
protocol,
|
|
120
116
|
hostname,
|
|
@@ -148,7 +144,7 @@ const se_GetApplicationCommand = async (input, context) => {
|
|
|
148
144
|
const headers = {};
|
|
149
145
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}";
|
|
150
146
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
151
|
-
const query = map({
|
|
147
|
+
const query = (0, smithy_client_1.map)({
|
|
152
148
|
semanticVersion: [, input.SemanticVersion],
|
|
153
149
|
});
|
|
154
150
|
let body;
|
|
@@ -206,7 +202,7 @@ const se_ListApplicationDependenciesCommand = async (input, context) => {
|
|
|
206
202
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
207
203
|
"/applications/{ApplicationId}/dependencies";
|
|
208
204
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
209
|
-
const query = map({
|
|
205
|
+
const query = (0, smithy_client_1.map)({
|
|
210
206
|
maxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
|
|
211
207
|
nextToken: [, input.NextToken],
|
|
212
208
|
semanticVersion: [, input.SemanticVersion],
|
|
@@ -228,7 +224,7 @@ const se_ListApplicationsCommand = async (input, context) => {
|
|
|
228
224
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
229
225
|
const headers = {};
|
|
230
226
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
|
|
231
|
-
const query = map({
|
|
227
|
+
const query = (0, smithy_client_1.map)({
|
|
232
228
|
maxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
|
|
233
229
|
nextToken: [, input.NextToken],
|
|
234
230
|
});
|
|
@@ -250,7 +246,7 @@ const se_ListApplicationVersionsCommand = async (input, context) => {
|
|
|
250
246
|
const headers = {};
|
|
251
247
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}/versions";
|
|
252
248
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
253
|
-
const query = map({
|
|
249
|
+
const query = (0, smithy_client_1.map)({
|
|
254
250
|
maxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
|
|
255
251
|
nextToken: [, input.NextToken],
|
|
256
252
|
});
|
|
@@ -275,9 +271,9 @@ const se_PutApplicationPolicyCommand = async (input, context) => {
|
|
|
275
271
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}/policy";
|
|
276
272
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
277
273
|
let body;
|
|
278
|
-
body = JSON.stringify({
|
|
279
|
-
|
|
280
|
-
});
|
|
274
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
275
|
+
statements: [, (_) => se___listOfApplicationPolicyStatement(_, context), `Statements`],
|
|
276
|
+
}));
|
|
281
277
|
return new protocol_http_1.HttpRequest({
|
|
282
278
|
protocol,
|
|
283
279
|
hostname,
|
|
@@ -297,9 +293,9 @@ const se_UnshareApplicationCommand = async (input, context) => {
|
|
|
297
293
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}/unshare";
|
|
298
294
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
299
295
|
let body;
|
|
300
|
-
body = JSON.stringify({
|
|
301
|
-
|
|
302
|
-
});
|
|
296
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
297
|
+
organizationId: [, , `OrganizationId`],
|
|
298
|
+
}));
|
|
303
299
|
return new protocol_http_1.HttpRequest({
|
|
304
300
|
protocol,
|
|
305
301
|
hostname,
|
|
@@ -319,14 +315,14 @@ const se_UpdateApplicationCommand = async (input, context) => {
|
|
|
319
315
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}";
|
|
320
316
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
321
317
|
let body;
|
|
322
|
-
body = JSON.stringify({
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
});
|
|
318
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
319
|
+
author: [, , `Author`],
|
|
320
|
+
description: [, , `Description`],
|
|
321
|
+
homePageUrl: [, , `HomePageUrl`],
|
|
322
|
+
labels: [, (_) => (0, smithy_client_1._json)(_), `Labels`],
|
|
323
|
+
readmeBody: [, , `ReadmeBody`],
|
|
324
|
+
readmeUrl: [, , `ReadmeUrl`],
|
|
325
|
+
}));
|
|
330
326
|
return new protocol_http_1.HttpRequest({
|
|
331
327
|
protocol,
|
|
332
328
|
hostname,
|
|
@@ -342,49 +338,26 @@ const de_CreateApplicationCommand = async (output, context) => {
|
|
|
342
338
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
343
339
|
return de_CreateApplicationCommandError(output, context);
|
|
344
340
|
}
|
|
345
|
-
const contents = map({
|
|
341
|
+
const contents = (0, smithy_client_1.map)({
|
|
346
342
|
$metadata: deserializeMetadata(output),
|
|
347
343
|
});
|
|
348
344
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
contents.IsVerifiedAuthor = (0, smithy_client_1.expectBoolean)(data.isVerifiedAuthor);
|
|
366
|
-
}
|
|
367
|
-
if (data.labels != null) {
|
|
368
|
-
contents.Labels = de___listOf__string(data.labels, context);
|
|
369
|
-
}
|
|
370
|
-
if (data.licenseUrl != null) {
|
|
371
|
-
contents.LicenseUrl = (0, smithy_client_1.expectString)(data.licenseUrl);
|
|
372
|
-
}
|
|
373
|
-
if (data.name != null) {
|
|
374
|
-
contents.Name = (0, smithy_client_1.expectString)(data.name);
|
|
375
|
-
}
|
|
376
|
-
if (data.readmeUrl != null) {
|
|
377
|
-
contents.ReadmeUrl = (0, smithy_client_1.expectString)(data.readmeUrl);
|
|
378
|
-
}
|
|
379
|
-
if (data.spdxLicenseId != null) {
|
|
380
|
-
contents.SpdxLicenseId = (0, smithy_client_1.expectString)(data.spdxLicenseId);
|
|
381
|
-
}
|
|
382
|
-
if (data.verifiedAuthorUrl != null) {
|
|
383
|
-
contents.VerifiedAuthorUrl = (0, smithy_client_1.expectString)(data.verifiedAuthorUrl);
|
|
384
|
-
}
|
|
385
|
-
if (data.version != null) {
|
|
386
|
-
contents.Version = de_Version(data.version, context);
|
|
387
|
-
}
|
|
345
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
346
|
+
ApplicationId: [, smithy_client_1.expectString, `applicationId`],
|
|
347
|
+
Author: [, smithy_client_1.expectString, `author`],
|
|
348
|
+
CreationTime: [, smithy_client_1.expectString, `creationTime`],
|
|
349
|
+
Description: [, smithy_client_1.expectString, `description`],
|
|
350
|
+
HomePageUrl: [, smithy_client_1.expectString, `homePageUrl`],
|
|
351
|
+
IsVerifiedAuthor: [, smithy_client_1.expectBoolean, `isVerifiedAuthor`],
|
|
352
|
+
Labels: [, smithy_client_1._json, `labels`],
|
|
353
|
+
LicenseUrl: [, smithy_client_1.expectString, `licenseUrl`],
|
|
354
|
+
Name: [, smithy_client_1.expectString, `name`],
|
|
355
|
+
ReadmeUrl: [, smithy_client_1.expectString, `readmeUrl`],
|
|
356
|
+
SpdxLicenseId: [, smithy_client_1.expectString, `spdxLicenseId`],
|
|
357
|
+
VerifiedAuthorUrl: [, smithy_client_1.expectString, `verifiedAuthorUrl`],
|
|
358
|
+
Version: [, (_) => de_Version(_, context), `version`],
|
|
359
|
+
});
|
|
360
|
+
Object.assign(contents, doc);
|
|
388
361
|
return contents;
|
|
389
362
|
};
|
|
390
363
|
exports.de_CreateApplicationCommand = de_CreateApplicationCommand;
|
|
@@ -412,10 +385,9 @@ const de_CreateApplicationCommandError = async (output, context) => {
|
|
|
412
385
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
413
386
|
default:
|
|
414
387
|
const parsedBody = parsedOutput.body;
|
|
415
|
-
|
|
388
|
+
return throwDefaultError({
|
|
416
389
|
output,
|
|
417
390
|
parsedBody,
|
|
418
|
-
exceptionCtor: ServerlessApplicationRepositoryServiceException_1.ServerlessApplicationRepositoryServiceException,
|
|
419
391
|
errorCode,
|
|
420
392
|
});
|
|
421
393
|
}
|
|
@@ -424,37 +396,22 @@ const de_CreateApplicationVersionCommand = async (output, context) => {
|
|
|
424
396
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
425
397
|
return de_CreateApplicationVersionCommandError(output, context);
|
|
426
398
|
}
|
|
427
|
-
const contents = map({
|
|
399
|
+
const contents = (0, smithy_client_1.map)({
|
|
428
400
|
$metadata: deserializeMetadata(output),
|
|
429
401
|
});
|
|
430
402
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
if (data.resourcesSupported != null) {
|
|
444
|
-
contents.ResourcesSupported = (0, smithy_client_1.expectBoolean)(data.resourcesSupported);
|
|
445
|
-
}
|
|
446
|
-
if (data.semanticVersion != null) {
|
|
447
|
-
contents.SemanticVersion = (0, smithy_client_1.expectString)(data.semanticVersion);
|
|
448
|
-
}
|
|
449
|
-
if (data.sourceCodeArchiveUrl != null) {
|
|
450
|
-
contents.SourceCodeArchiveUrl = (0, smithy_client_1.expectString)(data.sourceCodeArchiveUrl);
|
|
451
|
-
}
|
|
452
|
-
if (data.sourceCodeUrl != null) {
|
|
453
|
-
contents.SourceCodeUrl = (0, smithy_client_1.expectString)(data.sourceCodeUrl);
|
|
454
|
-
}
|
|
455
|
-
if (data.templateUrl != null) {
|
|
456
|
-
contents.TemplateUrl = (0, smithy_client_1.expectString)(data.templateUrl);
|
|
457
|
-
}
|
|
403
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
404
|
+
ApplicationId: [, smithy_client_1.expectString, `applicationId`],
|
|
405
|
+
CreationTime: [, smithy_client_1.expectString, `creationTime`],
|
|
406
|
+
ParameterDefinitions: [, (_) => de___listOfParameterDefinition(_, context), `parameterDefinitions`],
|
|
407
|
+
RequiredCapabilities: [, smithy_client_1._json, `requiredCapabilities`],
|
|
408
|
+
ResourcesSupported: [, smithy_client_1.expectBoolean, `resourcesSupported`],
|
|
409
|
+
SemanticVersion: [, smithy_client_1.expectString, `semanticVersion`],
|
|
410
|
+
SourceCodeArchiveUrl: [, smithy_client_1.expectString, `sourceCodeArchiveUrl`],
|
|
411
|
+
SourceCodeUrl: [, smithy_client_1.expectString, `sourceCodeUrl`],
|
|
412
|
+
TemplateUrl: [, smithy_client_1.expectString, `templateUrl`],
|
|
413
|
+
});
|
|
414
|
+
Object.assign(contents, doc);
|
|
458
415
|
return contents;
|
|
459
416
|
};
|
|
460
417
|
exports.de_CreateApplicationVersionCommand = de_CreateApplicationVersionCommand;
|
|
@@ -482,10 +439,9 @@ const de_CreateApplicationVersionCommandError = async (output, context) => {
|
|
|
482
439
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
483
440
|
default:
|
|
484
441
|
const parsedBody = parsedOutput.body;
|
|
485
|
-
|
|
442
|
+
return throwDefaultError({
|
|
486
443
|
output,
|
|
487
444
|
parsedBody,
|
|
488
|
-
exceptionCtor: ServerlessApplicationRepositoryServiceException_1.ServerlessApplicationRepositoryServiceException,
|
|
489
445
|
errorCode,
|
|
490
446
|
});
|
|
491
447
|
}
|
|
@@ -494,22 +450,17 @@ const de_CreateCloudFormationChangeSetCommand = async (output, context) => {
|
|
|
494
450
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
495
451
|
return de_CreateCloudFormationChangeSetCommandError(output, context);
|
|
496
452
|
}
|
|
497
|
-
const contents = map({
|
|
453
|
+
const contents = (0, smithy_client_1.map)({
|
|
498
454
|
$metadata: deserializeMetadata(output),
|
|
499
455
|
});
|
|
500
456
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
contents.SemanticVersion = (0, smithy_client_1.expectString)(data.semanticVersion);
|
|
509
|
-
}
|
|
510
|
-
if (data.stackId != null) {
|
|
511
|
-
contents.StackId = (0, smithy_client_1.expectString)(data.stackId);
|
|
512
|
-
}
|
|
457
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
458
|
+
ApplicationId: [, smithy_client_1.expectString, `applicationId`],
|
|
459
|
+
ChangeSetId: [, smithy_client_1.expectString, `changeSetId`],
|
|
460
|
+
SemanticVersion: [, smithy_client_1.expectString, `semanticVersion`],
|
|
461
|
+
StackId: [, smithy_client_1.expectString, `stackId`],
|
|
462
|
+
});
|
|
463
|
+
Object.assign(contents, doc);
|
|
513
464
|
return contents;
|
|
514
465
|
};
|
|
515
466
|
exports.de_CreateCloudFormationChangeSetCommand = de_CreateCloudFormationChangeSetCommand;
|
|
@@ -534,10 +485,9 @@ const de_CreateCloudFormationChangeSetCommandError = async (output, context) =>
|
|
|
534
485
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
535
486
|
default:
|
|
536
487
|
const parsedBody = parsedOutput.body;
|
|
537
|
-
|
|
488
|
+
return throwDefaultError({
|
|
538
489
|
output,
|
|
539
490
|
parsedBody,
|
|
540
|
-
exceptionCtor: ServerlessApplicationRepositoryServiceException_1.ServerlessApplicationRepositoryServiceException,
|
|
541
491
|
errorCode,
|
|
542
492
|
});
|
|
543
493
|
}
|
|
@@ -546,31 +496,20 @@ const de_CreateCloudFormationTemplateCommand = async (output, context) => {
|
|
|
546
496
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
547
497
|
return de_CreateCloudFormationTemplateCommandError(output, context);
|
|
548
498
|
}
|
|
549
|
-
const contents = map({
|
|
499
|
+
const contents = (0, smithy_client_1.map)({
|
|
550
500
|
$metadata: deserializeMetadata(output),
|
|
551
501
|
});
|
|
552
502
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
contents.SemanticVersion = (0, smithy_client_1.expectString)(data.semanticVersion);
|
|
564
|
-
}
|
|
565
|
-
if (data.status != null) {
|
|
566
|
-
contents.Status = (0, smithy_client_1.expectString)(data.status);
|
|
567
|
-
}
|
|
568
|
-
if (data.templateId != null) {
|
|
569
|
-
contents.TemplateId = (0, smithy_client_1.expectString)(data.templateId);
|
|
570
|
-
}
|
|
571
|
-
if (data.templateUrl != null) {
|
|
572
|
-
contents.TemplateUrl = (0, smithy_client_1.expectString)(data.templateUrl);
|
|
573
|
-
}
|
|
503
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
504
|
+
ApplicationId: [, smithy_client_1.expectString, `applicationId`],
|
|
505
|
+
CreationTime: [, smithy_client_1.expectString, `creationTime`],
|
|
506
|
+
ExpirationTime: [, smithy_client_1.expectString, `expirationTime`],
|
|
507
|
+
SemanticVersion: [, smithy_client_1.expectString, `semanticVersion`],
|
|
508
|
+
Status: [, smithy_client_1.expectString, `status`],
|
|
509
|
+
TemplateId: [, smithy_client_1.expectString, `templateId`],
|
|
510
|
+
TemplateUrl: [, smithy_client_1.expectString, `templateUrl`],
|
|
511
|
+
});
|
|
512
|
+
Object.assign(contents, doc);
|
|
574
513
|
return contents;
|
|
575
514
|
};
|
|
576
515
|
exports.de_CreateCloudFormationTemplateCommand = de_CreateCloudFormationTemplateCommand;
|
|
@@ -598,10 +537,9 @@ const de_CreateCloudFormationTemplateCommandError = async (output, context) => {
|
|
|
598
537
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
599
538
|
default:
|
|
600
539
|
const parsedBody = parsedOutput.body;
|
|
601
|
-
|
|
540
|
+
return throwDefaultError({
|
|
602
541
|
output,
|
|
603
542
|
parsedBody,
|
|
604
|
-
exceptionCtor: ServerlessApplicationRepositoryServiceException_1.ServerlessApplicationRepositoryServiceException,
|
|
605
543
|
errorCode,
|
|
606
544
|
});
|
|
607
545
|
}
|
|
@@ -610,7 +548,7 @@ const de_DeleteApplicationCommand = async (output, context) => {
|
|
|
610
548
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
611
549
|
return de_DeleteApplicationCommandError(output, context);
|
|
612
550
|
}
|
|
613
|
-
const contents = map({
|
|
551
|
+
const contents = (0, smithy_client_1.map)({
|
|
614
552
|
$metadata: deserializeMetadata(output),
|
|
615
553
|
});
|
|
616
554
|
await collectBody(output.body, context);
|
|
@@ -644,10 +582,9 @@ const de_DeleteApplicationCommandError = async (output, context) => {
|
|
|
644
582
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
645
583
|
default:
|
|
646
584
|
const parsedBody = parsedOutput.body;
|
|
647
|
-
|
|
585
|
+
return throwDefaultError({
|
|
648
586
|
output,
|
|
649
587
|
parsedBody,
|
|
650
|
-
exceptionCtor: ServerlessApplicationRepositoryServiceException_1.ServerlessApplicationRepositoryServiceException,
|
|
651
588
|
errorCode,
|
|
652
589
|
});
|
|
653
590
|
}
|
|
@@ -656,49 +593,26 @@ const de_GetApplicationCommand = async (output, context) => {
|
|
|
656
593
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
657
594
|
return de_GetApplicationCommandError(output, context);
|
|
658
595
|
}
|
|
659
|
-
const contents = map({
|
|
596
|
+
const contents = (0, smithy_client_1.map)({
|
|
660
597
|
$metadata: deserializeMetadata(output),
|
|
661
598
|
});
|
|
662
599
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
contents.IsVerifiedAuthor = (0, smithy_client_1.expectBoolean)(data.isVerifiedAuthor);
|
|
680
|
-
}
|
|
681
|
-
if (data.labels != null) {
|
|
682
|
-
contents.Labels = de___listOf__string(data.labels, context);
|
|
683
|
-
}
|
|
684
|
-
if (data.licenseUrl != null) {
|
|
685
|
-
contents.LicenseUrl = (0, smithy_client_1.expectString)(data.licenseUrl);
|
|
686
|
-
}
|
|
687
|
-
if (data.name != null) {
|
|
688
|
-
contents.Name = (0, smithy_client_1.expectString)(data.name);
|
|
689
|
-
}
|
|
690
|
-
if (data.readmeUrl != null) {
|
|
691
|
-
contents.ReadmeUrl = (0, smithy_client_1.expectString)(data.readmeUrl);
|
|
692
|
-
}
|
|
693
|
-
if (data.spdxLicenseId != null) {
|
|
694
|
-
contents.SpdxLicenseId = (0, smithy_client_1.expectString)(data.spdxLicenseId);
|
|
695
|
-
}
|
|
696
|
-
if (data.verifiedAuthorUrl != null) {
|
|
697
|
-
contents.VerifiedAuthorUrl = (0, smithy_client_1.expectString)(data.verifiedAuthorUrl);
|
|
698
|
-
}
|
|
699
|
-
if (data.version != null) {
|
|
700
|
-
contents.Version = de_Version(data.version, context);
|
|
701
|
-
}
|
|
600
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
601
|
+
ApplicationId: [, smithy_client_1.expectString, `applicationId`],
|
|
602
|
+
Author: [, smithy_client_1.expectString, `author`],
|
|
603
|
+
CreationTime: [, smithy_client_1.expectString, `creationTime`],
|
|
604
|
+
Description: [, smithy_client_1.expectString, `description`],
|
|
605
|
+
HomePageUrl: [, smithy_client_1.expectString, `homePageUrl`],
|
|
606
|
+
IsVerifiedAuthor: [, smithy_client_1.expectBoolean, `isVerifiedAuthor`],
|
|
607
|
+
Labels: [, smithy_client_1._json, `labels`],
|
|
608
|
+
LicenseUrl: [, smithy_client_1.expectString, `licenseUrl`],
|
|
609
|
+
Name: [, smithy_client_1.expectString, `name`],
|
|
610
|
+
ReadmeUrl: [, smithy_client_1.expectString, `readmeUrl`],
|
|
611
|
+
SpdxLicenseId: [, smithy_client_1.expectString, `spdxLicenseId`],
|
|
612
|
+
VerifiedAuthorUrl: [, smithy_client_1.expectString, `verifiedAuthorUrl`],
|
|
613
|
+
Version: [, (_) => de_Version(_, context), `version`],
|
|
614
|
+
});
|
|
615
|
+
Object.assign(contents, doc);
|
|
702
616
|
return contents;
|
|
703
617
|
};
|
|
704
618
|
exports.de_GetApplicationCommand = de_GetApplicationCommand;
|
|
@@ -726,10 +640,9 @@ const de_GetApplicationCommandError = async (output, context) => {
|
|
|
726
640
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
727
641
|
default:
|
|
728
642
|
const parsedBody = parsedOutput.body;
|
|
729
|
-
|
|
643
|
+
return throwDefaultError({
|
|
730
644
|
output,
|
|
731
645
|
parsedBody,
|
|
732
|
-
exceptionCtor: ServerlessApplicationRepositoryServiceException_1.ServerlessApplicationRepositoryServiceException,
|
|
733
646
|
errorCode,
|
|
734
647
|
});
|
|
735
648
|
}
|
|
@@ -738,13 +651,14 @@ const de_GetApplicationPolicyCommand = async (output, context) => {
|
|
|
738
651
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
739
652
|
return de_GetApplicationPolicyCommandError(output, context);
|
|
740
653
|
}
|
|
741
|
-
const contents = map({
|
|
654
|
+
const contents = (0, smithy_client_1.map)({
|
|
742
655
|
$metadata: deserializeMetadata(output),
|
|
743
656
|
});
|
|
744
657
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
}
|
|
658
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
659
|
+
Statements: [, (_) => de___listOfApplicationPolicyStatement(_, context), `statements`],
|
|
660
|
+
});
|
|
661
|
+
Object.assign(contents, doc);
|
|
748
662
|
return contents;
|
|
749
663
|
};
|
|
750
664
|
exports.de_GetApplicationPolicyCommand = de_GetApplicationPolicyCommand;
|
|
@@ -772,10 +686,9 @@ const de_GetApplicationPolicyCommandError = async (output, context) => {
|
|
|
772
686
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
773
687
|
default:
|
|
774
688
|
const parsedBody = parsedOutput.body;
|
|
775
|
-
|
|
689
|
+
return throwDefaultError({
|
|
776
690
|
output,
|
|
777
691
|
parsedBody,
|
|
778
|
-
exceptionCtor: ServerlessApplicationRepositoryServiceException_1.ServerlessApplicationRepositoryServiceException,
|
|
779
692
|
errorCode,
|
|
780
693
|
});
|
|
781
694
|
}
|
|
@@ -784,31 +697,20 @@ const de_GetCloudFormationTemplateCommand = async (output, context) => {
|
|
|
784
697
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
785
698
|
return de_GetCloudFormationTemplateCommandError(output, context);
|
|
786
699
|
}
|
|
787
|
-
const contents = map({
|
|
700
|
+
const contents = (0, smithy_client_1.map)({
|
|
788
701
|
$metadata: deserializeMetadata(output),
|
|
789
702
|
});
|
|
790
703
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
contents.SemanticVersion = (0, smithy_client_1.expectString)(data.semanticVersion);
|
|
802
|
-
}
|
|
803
|
-
if (data.status != null) {
|
|
804
|
-
contents.Status = (0, smithy_client_1.expectString)(data.status);
|
|
805
|
-
}
|
|
806
|
-
if (data.templateId != null) {
|
|
807
|
-
contents.TemplateId = (0, smithy_client_1.expectString)(data.templateId);
|
|
808
|
-
}
|
|
809
|
-
if (data.templateUrl != null) {
|
|
810
|
-
contents.TemplateUrl = (0, smithy_client_1.expectString)(data.templateUrl);
|
|
811
|
-
}
|
|
704
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
705
|
+
ApplicationId: [, smithy_client_1.expectString, `applicationId`],
|
|
706
|
+
CreationTime: [, smithy_client_1.expectString, `creationTime`],
|
|
707
|
+
ExpirationTime: [, smithy_client_1.expectString, `expirationTime`],
|
|
708
|
+
SemanticVersion: [, smithy_client_1.expectString, `semanticVersion`],
|
|
709
|
+
Status: [, smithy_client_1.expectString, `status`],
|
|
710
|
+
TemplateId: [, smithy_client_1.expectString, `templateId`],
|
|
711
|
+
TemplateUrl: [, smithy_client_1.expectString, `templateUrl`],
|
|
712
|
+
});
|
|
713
|
+
Object.assign(contents, doc);
|
|
812
714
|
return contents;
|
|
813
715
|
};
|
|
814
716
|
exports.de_GetCloudFormationTemplateCommand = de_GetCloudFormationTemplateCommand;
|
|
@@ -836,10 +738,9 @@ const de_GetCloudFormationTemplateCommandError = async (output, context) => {
|
|
|
836
738
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
837
739
|
default:
|
|
838
740
|
const parsedBody = parsedOutput.body;
|
|
839
|
-
|
|
741
|
+
return throwDefaultError({
|
|
840
742
|
output,
|
|
841
743
|
parsedBody,
|
|
842
|
-
exceptionCtor: ServerlessApplicationRepositoryServiceException_1.ServerlessApplicationRepositoryServiceException,
|
|
843
744
|
errorCode,
|
|
844
745
|
});
|
|
845
746
|
}
|
|
@@ -848,16 +749,15 @@ const de_ListApplicationDependenciesCommand = async (output, context) => {
|
|
|
848
749
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
849
750
|
return de_ListApplicationDependenciesCommandError(output, context);
|
|
850
751
|
}
|
|
851
|
-
const contents = map({
|
|
752
|
+
const contents = (0, smithy_client_1.map)({
|
|
852
753
|
$metadata: deserializeMetadata(output),
|
|
853
754
|
});
|
|
854
755
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
}
|
|
756
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
757
|
+
Dependencies: [, (_) => de___listOfApplicationDependencySummary(_, context), `dependencies`],
|
|
758
|
+
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
759
|
+
});
|
|
760
|
+
Object.assign(contents, doc);
|
|
861
761
|
return contents;
|
|
862
762
|
};
|
|
863
763
|
exports.de_ListApplicationDependenciesCommand = de_ListApplicationDependenciesCommand;
|
|
@@ -885,10 +785,9 @@ const de_ListApplicationDependenciesCommandError = async (output, context) => {
|
|
|
885
785
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
886
786
|
default:
|
|
887
787
|
const parsedBody = parsedOutput.body;
|
|
888
|
-
|
|
788
|
+
return throwDefaultError({
|
|
889
789
|
output,
|
|
890
790
|
parsedBody,
|
|
891
|
-
exceptionCtor: ServerlessApplicationRepositoryServiceException_1.ServerlessApplicationRepositoryServiceException,
|
|
892
791
|
errorCode,
|
|
893
792
|
});
|
|
894
793
|
}
|
|
@@ -897,16 +796,15 @@ const de_ListApplicationsCommand = async (output, context) => {
|
|
|
897
796
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
898
797
|
return de_ListApplicationsCommandError(output, context);
|
|
899
798
|
}
|
|
900
|
-
const contents = map({
|
|
799
|
+
const contents = (0, smithy_client_1.map)({
|
|
901
800
|
$metadata: deserializeMetadata(output),
|
|
902
801
|
});
|
|
903
802
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
}
|
|
803
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
804
|
+
Applications: [, (_) => de___listOfApplicationSummary(_, context), `applications`],
|
|
805
|
+
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
806
|
+
});
|
|
807
|
+
Object.assign(contents, doc);
|
|
910
808
|
return contents;
|
|
911
809
|
};
|
|
912
810
|
exports.de_ListApplicationsCommand = de_ListApplicationsCommand;
|
|
@@ -931,10 +829,9 @@ const de_ListApplicationsCommandError = async (output, context) => {
|
|
|
931
829
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
932
830
|
default:
|
|
933
831
|
const parsedBody = parsedOutput.body;
|
|
934
|
-
|
|
832
|
+
return throwDefaultError({
|
|
935
833
|
output,
|
|
936
834
|
parsedBody,
|
|
937
|
-
exceptionCtor: ServerlessApplicationRepositoryServiceException_1.ServerlessApplicationRepositoryServiceException,
|
|
938
835
|
errorCode,
|
|
939
836
|
});
|
|
940
837
|
}
|
|
@@ -943,16 +840,15 @@ const de_ListApplicationVersionsCommand = async (output, context) => {
|
|
|
943
840
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
944
841
|
return de_ListApplicationVersionsCommandError(output, context);
|
|
945
842
|
}
|
|
946
|
-
const contents = map({
|
|
843
|
+
const contents = (0, smithy_client_1.map)({
|
|
947
844
|
$metadata: deserializeMetadata(output),
|
|
948
845
|
});
|
|
949
846
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
}
|
|
847
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
848
|
+
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
849
|
+
Versions: [, (_) => de___listOfVersionSummary(_, context), `versions`],
|
|
850
|
+
});
|
|
851
|
+
Object.assign(contents, doc);
|
|
956
852
|
return contents;
|
|
957
853
|
};
|
|
958
854
|
exports.de_ListApplicationVersionsCommand = de_ListApplicationVersionsCommand;
|
|
@@ -980,10 +876,9 @@ const de_ListApplicationVersionsCommandError = async (output, context) => {
|
|
|
980
876
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
981
877
|
default:
|
|
982
878
|
const parsedBody = parsedOutput.body;
|
|
983
|
-
|
|
879
|
+
return throwDefaultError({
|
|
984
880
|
output,
|
|
985
881
|
parsedBody,
|
|
986
|
-
exceptionCtor: ServerlessApplicationRepositoryServiceException_1.ServerlessApplicationRepositoryServiceException,
|
|
987
882
|
errorCode,
|
|
988
883
|
});
|
|
989
884
|
}
|
|
@@ -992,13 +887,14 @@ const de_PutApplicationPolicyCommand = async (output, context) => {
|
|
|
992
887
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
993
888
|
return de_PutApplicationPolicyCommandError(output, context);
|
|
994
889
|
}
|
|
995
|
-
const contents = map({
|
|
890
|
+
const contents = (0, smithy_client_1.map)({
|
|
996
891
|
$metadata: deserializeMetadata(output),
|
|
997
892
|
});
|
|
998
893
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
}
|
|
894
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
895
|
+
Statements: [, (_) => de___listOfApplicationPolicyStatement(_, context), `statements`],
|
|
896
|
+
});
|
|
897
|
+
Object.assign(contents, doc);
|
|
1002
898
|
return contents;
|
|
1003
899
|
};
|
|
1004
900
|
exports.de_PutApplicationPolicyCommand = de_PutApplicationPolicyCommand;
|
|
@@ -1026,10 +922,9 @@ const de_PutApplicationPolicyCommandError = async (output, context) => {
|
|
|
1026
922
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1027
923
|
default:
|
|
1028
924
|
const parsedBody = parsedOutput.body;
|
|
1029
|
-
|
|
925
|
+
return throwDefaultError({
|
|
1030
926
|
output,
|
|
1031
927
|
parsedBody,
|
|
1032
|
-
exceptionCtor: ServerlessApplicationRepositoryServiceException_1.ServerlessApplicationRepositoryServiceException,
|
|
1033
928
|
errorCode,
|
|
1034
929
|
});
|
|
1035
930
|
}
|
|
@@ -1038,7 +933,7 @@ const de_UnshareApplicationCommand = async (output, context) => {
|
|
|
1038
933
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1039
934
|
return de_UnshareApplicationCommandError(output, context);
|
|
1040
935
|
}
|
|
1041
|
-
const contents = map({
|
|
936
|
+
const contents = (0, smithy_client_1.map)({
|
|
1042
937
|
$metadata: deserializeMetadata(output),
|
|
1043
938
|
});
|
|
1044
939
|
await collectBody(output.body, context);
|
|
@@ -1069,10 +964,9 @@ const de_UnshareApplicationCommandError = async (output, context) => {
|
|
|
1069
964
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1070
965
|
default:
|
|
1071
966
|
const parsedBody = parsedOutput.body;
|
|
1072
|
-
|
|
967
|
+
return throwDefaultError({
|
|
1073
968
|
output,
|
|
1074
969
|
parsedBody,
|
|
1075
|
-
exceptionCtor: ServerlessApplicationRepositoryServiceException_1.ServerlessApplicationRepositoryServiceException,
|
|
1076
970
|
errorCode,
|
|
1077
971
|
});
|
|
1078
972
|
}
|
|
@@ -1081,49 +975,26 @@ const de_UpdateApplicationCommand = async (output, context) => {
|
|
|
1081
975
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1082
976
|
return de_UpdateApplicationCommandError(output, context);
|
|
1083
977
|
}
|
|
1084
|
-
const contents = map({
|
|
978
|
+
const contents = (0, smithy_client_1.map)({
|
|
1085
979
|
$metadata: deserializeMetadata(output),
|
|
1086
980
|
});
|
|
1087
981
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
}
|
|
1103
|
-
|
|
1104
|
-
contents.IsVerifiedAuthor = (0, smithy_client_1.expectBoolean)(data.isVerifiedAuthor);
|
|
1105
|
-
}
|
|
1106
|
-
if (data.labels != null) {
|
|
1107
|
-
contents.Labels = de___listOf__string(data.labels, context);
|
|
1108
|
-
}
|
|
1109
|
-
if (data.licenseUrl != null) {
|
|
1110
|
-
contents.LicenseUrl = (0, smithy_client_1.expectString)(data.licenseUrl);
|
|
1111
|
-
}
|
|
1112
|
-
if (data.name != null) {
|
|
1113
|
-
contents.Name = (0, smithy_client_1.expectString)(data.name);
|
|
1114
|
-
}
|
|
1115
|
-
if (data.readmeUrl != null) {
|
|
1116
|
-
contents.ReadmeUrl = (0, smithy_client_1.expectString)(data.readmeUrl);
|
|
1117
|
-
}
|
|
1118
|
-
if (data.spdxLicenseId != null) {
|
|
1119
|
-
contents.SpdxLicenseId = (0, smithy_client_1.expectString)(data.spdxLicenseId);
|
|
1120
|
-
}
|
|
1121
|
-
if (data.verifiedAuthorUrl != null) {
|
|
1122
|
-
contents.VerifiedAuthorUrl = (0, smithy_client_1.expectString)(data.verifiedAuthorUrl);
|
|
1123
|
-
}
|
|
1124
|
-
if (data.version != null) {
|
|
1125
|
-
contents.Version = de_Version(data.version, context);
|
|
1126
|
-
}
|
|
982
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
983
|
+
ApplicationId: [, smithy_client_1.expectString, `applicationId`],
|
|
984
|
+
Author: [, smithy_client_1.expectString, `author`],
|
|
985
|
+
CreationTime: [, smithy_client_1.expectString, `creationTime`],
|
|
986
|
+
Description: [, smithy_client_1.expectString, `description`],
|
|
987
|
+
HomePageUrl: [, smithy_client_1.expectString, `homePageUrl`],
|
|
988
|
+
IsVerifiedAuthor: [, smithy_client_1.expectBoolean, `isVerifiedAuthor`],
|
|
989
|
+
Labels: [, smithy_client_1._json, `labels`],
|
|
990
|
+
LicenseUrl: [, smithy_client_1.expectString, `licenseUrl`],
|
|
991
|
+
Name: [, smithy_client_1.expectString, `name`],
|
|
992
|
+
ReadmeUrl: [, smithy_client_1.expectString, `readmeUrl`],
|
|
993
|
+
SpdxLicenseId: [, smithy_client_1.expectString, `spdxLicenseId`],
|
|
994
|
+
VerifiedAuthorUrl: [, smithy_client_1.expectString, `verifiedAuthorUrl`],
|
|
995
|
+
Version: [, (_) => de_Version(_, context), `version`],
|
|
996
|
+
});
|
|
997
|
+
Object.assign(contents, doc);
|
|
1127
998
|
return contents;
|
|
1128
999
|
};
|
|
1129
1000
|
exports.de_UpdateApplicationCommand = de_UpdateApplicationCommand;
|
|
@@ -1154,24 +1025,22 @@ const de_UpdateApplicationCommandError = async (output, context) => {
|
|
|
1154
1025
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1155
1026
|
default:
|
|
1156
1027
|
const parsedBody = parsedOutput.body;
|
|
1157
|
-
|
|
1028
|
+
return throwDefaultError({
|
|
1158
1029
|
output,
|
|
1159
1030
|
parsedBody,
|
|
1160
|
-
exceptionCtor: ServerlessApplicationRepositoryServiceException_1.ServerlessApplicationRepositoryServiceException,
|
|
1161
1031
|
errorCode,
|
|
1162
1032
|
});
|
|
1163
1033
|
}
|
|
1164
1034
|
};
|
|
1165
|
-
const
|
|
1035
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(ServerlessApplicationRepositoryServiceException_1.ServerlessApplicationRepositoryServiceException);
|
|
1166
1036
|
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
1167
|
-
const contents = map({});
|
|
1037
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1168
1038
|
const data = parsedOutput.body;
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
}
|
|
1039
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1040
|
+
ErrorCode: [, smithy_client_1.expectString, `errorCode`],
|
|
1041
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
1042
|
+
});
|
|
1043
|
+
Object.assign(contents, doc);
|
|
1175
1044
|
const exception = new models_0_1.BadRequestException({
|
|
1176
1045
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1177
1046
|
...contents,
|
|
@@ -1179,14 +1048,13 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
1179
1048
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1180
1049
|
};
|
|
1181
1050
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1182
|
-
const contents = map({});
|
|
1051
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1183
1052
|
const data = parsedOutput.body;
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
}
|
|
1053
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1054
|
+
ErrorCode: [, smithy_client_1.expectString, `errorCode`],
|
|
1055
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
1056
|
+
});
|
|
1057
|
+
Object.assign(contents, doc);
|
|
1190
1058
|
const exception = new models_0_1.ConflictException({
|
|
1191
1059
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1192
1060
|
...contents,
|
|
@@ -1194,14 +1062,13 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1194
1062
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1195
1063
|
};
|
|
1196
1064
|
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
1197
|
-
const contents = map({});
|
|
1065
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1198
1066
|
const data = parsedOutput.body;
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
}
|
|
1067
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1068
|
+
ErrorCode: [, smithy_client_1.expectString, `errorCode`],
|
|
1069
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
1070
|
+
});
|
|
1071
|
+
Object.assign(contents, doc);
|
|
1205
1072
|
const exception = new models_0_1.ForbiddenException({
|
|
1206
1073
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1207
1074
|
...contents,
|
|
@@ -1209,14 +1076,13 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
|
1209
1076
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1210
1077
|
};
|
|
1211
1078
|
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
1212
|
-
const contents = map({});
|
|
1079
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1213
1080
|
const data = parsedOutput.body;
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
}
|
|
1081
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1082
|
+
ErrorCode: [, smithy_client_1.expectString, `errorCode`],
|
|
1083
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
1084
|
+
});
|
|
1085
|
+
Object.assign(contents, doc);
|
|
1220
1086
|
const exception = new models_0_1.InternalServerErrorException({
|
|
1221
1087
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1222
1088
|
...contents,
|
|
@@ -1224,14 +1090,13 @@ const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
1224
1090
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1225
1091
|
};
|
|
1226
1092
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1227
|
-
const contents = map({});
|
|
1093
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1228
1094
|
const data = parsedOutput.body;
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
}
|
|
1095
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1096
|
+
ErrorCode: [, smithy_client_1.expectString, `errorCode`],
|
|
1097
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
1098
|
+
});
|
|
1099
|
+
Object.assign(contents, doc);
|
|
1235
1100
|
const exception = new models_0_1.NotFoundException({
|
|
1236
1101
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1237
1102
|
...contents,
|
|
@@ -1239,27 +1104,19 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1239
1104
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1240
1105
|
};
|
|
1241
1106
|
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
1242
|
-
const contents = map({});
|
|
1107
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1243
1108
|
const data = parsedOutput.body;
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
}
|
|
1109
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1110
|
+
ErrorCode: [, smithy_client_1.expectString, `errorCode`],
|
|
1111
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
1112
|
+
});
|
|
1113
|
+
Object.assign(contents, doc);
|
|
1250
1114
|
const exception = new models_0_1.TooManyRequestsException({
|
|
1251
1115
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1252
1116
|
...contents,
|
|
1253
1117
|
});
|
|
1254
1118
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1255
1119
|
};
|
|
1256
|
-
const se___listOf__string = (input, context) => {
|
|
1257
|
-
return input
|
|
1258
|
-
.filter((e) => e != null)
|
|
1259
|
-
.map((entry) => {
|
|
1260
|
-
return entry;
|
|
1261
|
-
});
|
|
1262
|
-
};
|
|
1263
1120
|
const se___listOfApplicationPolicyStatement = (input, context) => {
|
|
1264
1121
|
return input
|
|
1265
1122
|
.filter((e) => e != null)
|
|
@@ -1289,57 +1146,41 @@ const se___listOfTag = (input, context) => {
|
|
|
1289
1146
|
});
|
|
1290
1147
|
};
|
|
1291
1148
|
const se_ApplicationPolicyStatement = (input, context) => {
|
|
1292
|
-
return {
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
};
|
|
1149
|
+
return (0, smithy_client_1.take)(input, {
|
|
1150
|
+
actions: [, smithy_client_1._json, `Actions`],
|
|
1151
|
+
principalOrgIDs: [, smithy_client_1._json, `PrincipalOrgIDs`],
|
|
1152
|
+
principals: [, smithy_client_1._json, `Principals`],
|
|
1153
|
+
statementId: [, , `StatementId`],
|
|
1154
|
+
});
|
|
1298
1155
|
};
|
|
1299
1156
|
const se_ParameterValue = (input, context) => {
|
|
1300
|
-
return {
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
};
|
|
1157
|
+
return (0, smithy_client_1.take)(input, {
|
|
1158
|
+
name: [, , `Name`],
|
|
1159
|
+
value: [, , `Value`],
|
|
1160
|
+
});
|
|
1304
1161
|
};
|
|
1305
1162
|
const se_RollbackConfiguration = (input, context) => {
|
|
1306
|
-
return {
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
}),
|
|
1311
|
-
};
|
|
1163
|
+
return (0, smithy_client_1.take)(input, {
|
|
1164
|
+
monitoringTimeInMinutes: [, , `MonitoringTimeInMinutes`],
|
|
1165
|
+
rollbackTriggers: [, (_) => se___listOfRollbackTrigger(_, context), `RollbackTriggers`],
|
|
1166
|
+
});
|
|
1312
1167
|
};
|
|
1313
1168
|
const se_RollbackTrigger = (input, context) => {
|
|
1314
|
-
return {
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
};
|
|
1169
|
+
return (0, smithy_client_1.take)(input, {
|
|
1170
|
+
arn: [, , `Arn`],
|
|
1171
|
+
type: [, , `Type`],
|
|
1172
|
+
});
|
|
1318
1173
|
};
|
|
1319
1174
|
const se_Tag = (input, context) => {
|
|
1320
|
-
return {
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
};
|
|
1324
|
-
};
|
|
1325
|
-
const de___listOf__string = (output, context) => {
|
|
1326
|
-
const retVal = (output || [])
|
|
1327
|
-
.filter((e) => e != null)
|
|
1328
|
-
.map((entry) => {
|
|
1329
|
-
if (entry === null) {
|
|
1330
|
-
return null;
|
|
1331
|
-
}
|
|
1332
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1175
|
+
return (0, smithy_client_1.take)(input, {
|
|
1176
|
+
key: [, , `Key`],
|
|
1177
|
+
value: [, , `Value`],
|
|
1333
1178
|
});
|
|
1334
|
-
return retVal;
|
|
1335
1179
|
};
|
|
1336
1180
|
const de___listOfApplicationDependencySummary = (output, context) => {
|
|
1337
1181
|
const retVal = (output || [])
|
|
1338
1182
|
.filter((e) => e != null)
|
|
1339
1183
|
.map((entry) => {
|
|
1340
|
-
if (entry === null) {
|
|
1341
|
-
return null;
|
|
1342
|
-
}
|
|
1343
1184
|
return de_ApplicationDependencySummary(entry, context);
|
|
1344
1185
|
});
|
|
1345
1186
|
return retVal;
|
|
@@ -1348,9 +1189,6 @@ const de___listOfApplicationPolicyStatement = (output, context) => {
|
|
|
1348
1189
|
const retVal = (output || [])
|
|
1349
1190
|
.filter((e) => e != null)
|
|
1350
1191
|
.map((entry) => {
|
|
1351
|
-
if (entry === null) {
|
|
1352
|
-
return null;
|
|
1353
|
-
}
|
|
1354
1192
|
return de_ApplicationPolicyStatement(entry, context);
|
|
1355
1193
|
});
|
|
1356
1194
|
return retVal;
|
|
@@ -1359,31 +1197,14 @@ const de___listOfApplicationSummary = (output, context) => {
|
|
|
1359
1197
|
const retVal = (output || [])
|
|
1360
1198
|
.filter((e) => e != null)
|
|
1361
1199
|
.map((entry) => {
|
|
1362
|
-
if (entry === null) {
|
|
1363
|
-
return null;
|
|
1364
|
-
}
|
|
1365
1200
|
return de_ApplicationSummary(entry, context);
|
|
1366
1201
|
});
|
|
1367
1202
|
return retVal;
|
|
1368
1203
|
};
|
|
1369
|
-
const de___listOfCapability = (output, context) => {
|
|
1370
|
-
const retVal = (output || [])
|
|
1371
|
-
.filter((e) => e != null)
|
|
1372
|
-
.map((entry) => {
|
|
1373
|
-
if (entry === null) {
|
|
1374
|
-
return null;
|
|
1375
|
-
}
|
|
1376
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1377
|
-
});
|
|
1378
|
-
return retVal;
|
|
1379
|
-
};
|
|
1380
1204
|
const de___listOfParameterDefinition = (output, context) => {
|
|
1381
1205
|
const retVal = (output || [])
|
|
1382
1206
|
.filter((e) => e != null)
|
|
1383
1207
|
.map((entry) => {
|
|
1384
|
-
if (entry === null) {
|
|
1385
|
-
return null;
|
|
1386
|
-
}
|
|
1387
1208
|
return de_ParameterDefinition(entry, context);
|
|
1388
1209
|
});
|
|
1389
1210
|
return retVal;
|
|
@@ -1392,78 +1213,73 @@ const de___listOfVersionSummary = (output, context) => {
|
|
|
1392
1213
|
const retVal = (output || [])
|
|
1393
1214
|
.filter((e) => e != null)
|
|
1394
1215
|
.map((entry) => {
|
|
1395
|
-
if (entry === null) {
|
|
1396
|
-
return null;
|
|
1397
|
-
}
|
|
1398
1216
|
return de_VersionSummary(entry, context);
|
|
1399
1217
|
});
|
|
1400
1218
|
return retVal;
|
|
1401
1219
|
};
|
|
1402
1220
|
const de_ApplicationDependencySummary = (output, context) => {
|
|
1403
|
-
return {
|
|
1404
|
-
ApplicationId:
|
|
1405
|
-
SemanticVersion:
|
|
1406
|
-
};
|
|
1221
|
+
return (0, smithy_client_1.take)(output, {
|
|
1222
|
+
ApplicationId: [, smithy_client_1.expectString, `applicationId`],
|
|
1223
|
+
SemanticVersion: [, smithy_client_1.expectString, `semanticVersion`],
|
|
1224
|
+
});
|
|
1407
1225
|
};
|
|
1408
1226
|
const de_ApplicationPolicyStatement = (output, context) => {
|
|
1409
|
-
return {
|
|
1410
|
-
Actions:
|
|
1411
|
-
PrincipalOrgIDs:
|
|
1412
|
-
Principals:
|
|
1413
|
-
StatementId:
|
|
1414
|
-
};
|
|
1227
|
+
return (0, smithy_client_1.take)(output, {
|
|
1228
|
+
Actions: [, smithy_client_1._json, `actions`],
|
|
1229
|
+
PrincipalOrgIDs: [, smithy_client_1._json, `principalOrgIDs`],
|
|
1230
|
+
Principals: [, smithy_client_1._json, `principals`],
|
|
1231
|
+
StatementId: [, smithy_client_1.expectString, `statementId`],
|
|
1232
|
+
});
|
|
1415
1233
|
};
|
|
1416
1234
|
const de_ApplicationSummary = (output, context) => {
|
|
1417
|
-
return {
|
|
1418
|
-
ApplicationId:
|
|
1419
|
-
Author:
|
|
1420
|
-
CreationTime:
|
|
1421
|
-
Description:
|
|
1422
|
-
HomePageUrl:
|
|
1423
|
-
Labels:
|
|
1424
|
-
Name:
|
|
1425
|
-
SpdxLicenseId:
|
|
1426
|
-
};
|
|
1235
|
+
return (0, smithy_client_1.take)(output, {
|
|
1236
|
+
ApplicationId: [, smithy_client_1.expectString, `applicationId`],
|
|
1237
|
+
Author: [, smithy_client_1.expectString, `author`],
|
|
1238
|
+
CreationTime: [, smithy_client_1.expectString, `creationTime`],
|
|
1239
|
+
Description: [, smithy_client_1.expectString, `description`],
|
|
1240
|
+
HomePageUrl: [, smithy_client_1.expectString, `homePageUrl`],
|
|
1241
|
+
Labels: [, smithy_client_1._json, `labels`],
|
|
1242
|
+
Name: [, smithy_client_1.expectString, `name`],
|
|
1243
|
+
SpdxLicenseId: [, smithy_client_1.expectString, `spdxLicenseId`],
|
|
1244
|
+
});
|
|
1427
1245
|
};
|
|
1428
1246
|
const de_ParameterDefinition = (output, context) => {
|
|
1429
|
-
return {
|
|
1430
|
-
AllowedPattern:
|
|
1431
|
-
AllowedValues:
|
|
1432
|
-
ConstraintDescription:
|
|
1433
|
-
DefaultValue:
|
|
1434
|
-
Description:
|
|
1435
|
-
MaxLength:
|
|
1436
|
-
MaxValue:
|
|
1437
|
-
MinLength:
|
|
1438
|
-
MinValue:
|
|
1439
|
-
Name:
|
|
1440
|
-
NoEcho:
|
|
1441
|
-
ReferencedByResources:
|
|
1442
|
-
Type:
|
|
1443
|
-
};
|
|
1247
|
+
return (0, smithy_client_1.take)(output, {
|
|
1248
|
+
AllowedPattern: [, smithy_client_1.expectString, `allowedPattern`],
|
|
1249
|
+
AllowedValues: [, smithy_client_1._json, `allowedValues`],
|
|
1250
|
+
ConstraintDescription: [, smithy_client_1.expectString, `constraintDescription`],
|
|
1251
|
+
DefaultValue: [, smithy_client_1.expectString, `defaultValue`],
|
|
1252
|
+
Description: [, smithy_client_1.expectString, `description`],
|
|
1253
|
+
MaxLength: [, smithy_client_1.expectInt32, `maxLength`],
|
|
1254
|
+
MaxValue: [, smithy_client_1.expectInt32, `maxValue`],
|
|
1255
|
+
MinLength: [, smithy_client_1.expectInt32, `minLength`],
|
|
1256
|
+
MinValue: [, smithy_client_1.expectInt32, `minValue`],
|
|
1257
|
+
Name: [, smithy_client_1.expectString, `name`],
|
|
1258
|
+
NoEcho: [, smithy_client_1.expectBoolean, `noEcho`],
|
|
1259
|
+
ReferencedByResources: [, smithy_client_1._json, `referencedByResources`],
|
|
1260
|
+
Type: [, smithy_client_1.expectString, `type`],
|
|
1261
|
+
});
|
|
1444
1262
|
};
|
|
1445
1263
|
const de_Version = (output, context) => {
|
|
1446
|
-
return {
|
|
1447
|
-
ApplicationId:
|
|
1448
|
-
CreationTime:
|
|
1449
|
-
ParameterDefinitions:
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
TemplateUrl: (0, smithy_client_1.expectString)(output.templateUrl),
|
|
1458
|
-
};
|
|
1264
|
+
return (0, smithy_client_1.take)(output, {
|
|
1265
|
+
ApplicationId: [, smithy_client_1.expectString, `applicationId`],
|
|
1266
|
+
CreationTime: [, smithy_client_1.expectString, `creationTime`],
|
|
1267
|
+
ParameterDefinitions: (_) => [, de___listOfParameterDefinition(_, context), `parameterDefinitions`],
|
|
1268
|
+
RequiredCapabilities: [, smithy_client_1._json, `requiredCapabilities`],
|
|
1269
|
+
ResourcesSupported: [, smithy_client_1.expectBoolean, `resourcesSupported`],
|
|
1270
|
+
SemanticVersion: [, smithy_client_1.expectString, `semanticVersion`],
|
|
1271
|
+
SourceCodeArchiveUrl: [, smithy_client_1.expectString, `sourceCodeArchiveUrl`],
|
|
1272
|
+
SourceCodeUrl: [, smithy_client_1.expectString, `sourceCodeUrl`],
|
|
1273
|
+
TemplateUrl: [, smithy_client_1.expectString, `templateUrl`],
|
|
1274
|
+
});
|
|
1459
1275
|
};
|
|
1460
1276
|
const de_VersionSummary = (output, context) => {
|
|
1461
|
-
return {
|
|
1462
|
-
ApplicationId:
|
|
1463
|
-
CreationTime:
|
|
1464
|
-
SemanticVersion:
|
|
1465
|
-
SourceCodeUrl:
|
|
1466
|
-
};
|
|
1277
|
+
return (0, smithy_client_1.take)(output, {
|
|
1278
|
+
ApplicationId: [, smithy_client_1.expectString, `applicationId`],
|
|
1279
|
+
CreationTime: [, smithy_client_1.expectString, `creationTime`],
|
|
1280
|
+
SemanticVersion: [, smithy_client_1.expectString, `semanticVersion`],
|
|
1281
|
+
SourceCodeUrl: [, smithy_client_1.expectString, `sourceCodeUrl`],
|
|
1282
|
+
});
|
|
1467
1283
|
};
|
|
1468
1284
|
const deserializeMetadata = (output) => ({
|
|
1469
1285
|
httpStatusCode: output.statusCode,
|