@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, NotFoundException, TooManyRequestsException, } from "../models/models_0";
|
|
4
4
|
import { ServerlessApplicationRepositoryServiceException as __BaseException } from "../models/ServerlessApplicationRepositoryServiceException";
|
|
5
5
|
export const se_CreateApplicationCommand = async (input, context) => {
|
|
@@ -9,23 +9,23 @@ export const se_CreateApplicationCommand = async (input, context) => {
|
|
|
9
9
|
};
|
|
10
10
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify({
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
});
|
|
12
|
+
body = JSON.stringify(take(input, {
|
|
13
|
+
author: [, , `Author`],
|
|
14
|
+
description: [, , `Description`],
|
|
15
|
+
homePageUrl: [, , `HomePageUrl`],
|
|
16
|
+
labels: [, (_) => _json(_), `Labels`],
|
|
17
|
+
licenseBody: [, , `LicenseBody`],
|
|
18
|
+
licenseUrl: [, , `LicenseUrl`],
|
|
19
|
+
name: [, , `Name`],
|
|
20
|
+
readmeBody: [, , `ReadmeBody`],
|
|
21
|
+
readmeUrl: [, , `ReadmeUrl`],
|
|
22
|
+
semanticVersion: [, , `SemanticVersion`],
|
|
23
|
+
sourceCodeArchiveUrl: [, , `SourceCodeArchiveUrl`],
|
|
24
|
+
sourceCodeUrl: [, , `SourceCodeUrl`],
|
|
25
|
+
spdxLicenseId: [, , `SpdxLicenseId`],
|
|
26
|
+
templateBody: [, , `TemplateBody`],
|
|
27
|
+
templateUrl: [, , `TemplateUrl`],
|
|
28
|
+
}));
|
|
29
29
|
return new __HttpRequest({
|
|
30
30
|
protocol,
|
|
31
31
|
hostname,
|
|
@@ -46,12 +46,12 @@ export const se_CreateApplicationVersionCommand = async (input, context) => {
|
|
|
46
46
|
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
47
47
|
resolvedPath = __resolvedPath(resolvedPath, input, "SemanticVersion", () => input.SemanticVersion, "{SemanticVersion}", false);
|
|
48
48
|
let body;
|
|
49
|
-
body = JSON.stringify({
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
});
|
|
49
|
+
body = JSON.stringify(take(input, {
|
|
50
|
+
sourceCodeArchiveUrl: [, , `SourceCodeArchiveUrl`],
|
|
51
|
+
sourceCodeUrl: [, , `SourceCodeUrl`],
|
|
52
|
+
templateBody: [, , `TemplateBody`],
|
|
53
|
+
templateUrl: [, , `TemplateUrl`],
|
|
54
|
+
}));
|
|
55
55
|
return new __HttpRequest({
|
|
56
56
|
protocol,
|
|
57
57
|
hostname,
|
|
@@ -70,24 +70,20 @@ export const se_CreateCloudFormationChangeSetCommand = async (input, context) =>
|
|
|
70
70
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}/changesets";
|
|
71
71
|
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
72
72
|
let body;
|
|
73
|
-
body = JSON.stringify({
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
...(input.StackName != null && { stackName: input.StackName }),
|
|
88
|
-
...(input.Tags != null && { tags: se___listOfTag(input.Tags, context) }),
|
|
89
|
-
...(input.TemplateId != null && { templateId: input.TemplateId }),
|
|
90
|
-
});
|
|
73
|
+
body = JSON.stringify(take(input, {
|
|
74
|
+
capabilities: [, (_) => _json(_), `Capabilities`],
|
|
75
|
+
changeSetName: [, , `ChangeSetName`],
|
|
76
|
+
clientToken: [, , `ClientToken`],
|
|
77
|
+
description: [, , `Description`],
|
|
78
|
+
notificationArns: [, (_) => _json(_), `NotificationArns`],
|
|
79
|
+
parameterOverrides: [, (_) => se___listOfParameterValue(_, context), `ParameterOverrides`],
|
|
80
|
+
resourceTypes: [, (_) => _json(_), `ResourceTypes`],
|
|
81
|
+
rollbackConfiguration: [, (_) => se_RollbackConfiguration(_, context), `RollbackConfiguration`],
|
|
82
|
+
semanticVersion: [, , `SemanticVersion`],
|
|
83
|
+
stackName: [, , `StackName`],
|
|
84
|
+
tags: [, (_) => se___listOfTag(_, context), `Tags`],
|
|
85
|
+
templateId: [, , `TemplateId`],
|
|
86
|
+
}));
|
|
91
87
|
return new __HttpRequest({
|
|
92
88
|
protocol,
|
|
93
89
|
hostname,
|
|
@@ -106,9 +102,9 @@ export const se_CreateCloudFormationTemplateCommand = async (input, context) =>
|
|
|
106
102
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}/templates";
|
|
107
103
|
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
108
104
|
let body;
|
|
109
|
-
body = JSON.stringify({
|
|
110
|
-
|
|
111
|
-
});
|
|
105
|
+
body = JSON.stringify(take(input, {
|
|
106
|
+
semanticVersion: [, , `SemanticVersion`],
|
|
107
|
+
}));
|
|
112
108
|
return new __HttpRequest({
|
|
113
109
|
protocol,
|
|
114
110
|
hostname,
|
|
@@ -261,9 +257,9 @@ export const se_PutApplicationPolicyCommand = async (input, context) => {
|
|
|
261
257
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}/policy";
|
|
262
258
|
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
263
259
|
let body;
|
|
264
|
-
body = JSON.stringify({
|
|
265
|
-
|
|
266
|
-
});
|
|
260
|
+
body = JSON.stringify(take(input, {
|
|
261
|
+
statements: [, (_) => se___listOfApplicationPolicyStatement(_, context), `Statements`],
|
|
262
|
+
}));
|
|
267
263
|
return new __HttpRequest({
|
|
268
264
|
protocol,
|
|
269
265
|
hostname,
|
|
@@ -282,9 +278,9 @@ export const se_UnshareApplicationCommand = async (input, context) => {
|
|
|
282
278
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}/unshare";
|
|
283
279
|
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
284
280
|
let body;
|
|
285
|
-
body = JSON.stringify({
|
|
286
|
-
|
|
287
|
-
});
|
|
281
|
+
body = JSON.stringify(take(input, {
|
|
282
|
+
organizationId: [, , `OrganizationId`],
|
|
283
|
+
}));
|
|
288
284
|
return new __HttpRequest({
|
|
289
285
|
protocol,
|
|
290
286
|
hostname,
|
|
@@ -303,14 +299,14 @@ export const se_UpdateApplicationCommand = async (input, context) => {
|
|
|
303
299
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}";
|
|
304
300
|
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
305
301
|
let body;
|
|
306
|
-
body = JSON.stringify({
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
});
|
|
302
|
+
body = JSON.stringify(take(input, {
|
|
303
|
+
author: [, , `Author`],
|
|
304
|
+
description: [, , `Description`],
|
|
305
|
+
homePageUrl: [, , `HomePageUrl`],
|
|
306
|
+
labels: [, (_) => _json(_), `Labels`],
|
|
307
|
+
readmeBody: [, , `ReadmeBody`],
|
|
308
|
+
readmeUrl: [, , `ReadmeUrl`],
|
|
309
|
+
}));
|
|
314
310
|
return new __HttpRequest({
|
|
315
311
|
protocol,
|
|
316
312
|
hostname,
|
|
@@ -329,45 +325,22 @@ export const de_CreateApplicationCommand = async (output, context) => {
|
|
|
329
325
|
$metadata: deserializeMetadata(output),
|
|
330
326
|
});
|
|
331
327
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
contents.IsVerifiedAuthor = __expectBoolean(data.isVerifiedAuthor);
|
|
349
|
-
}
|
|
350
|
-
if (data.labels != null) {
|
|
351
|
-
contents.Labels = de___listOf__string(data.labels, context);
|
|
352
|
-
}
|
|
353
|
-
if (data.licenseUrl != null) {
|
|
354
|
-
contents.LicenseUrl = __expectString(data.licenseUrl);
|
|
355
|
-
}
|
|
356
|
-
if (data.name != null) {
|
|
357
|
-
contents.Name = __expectString(data.name);
|
|
358
|
-
}
|
|
359
|
-
if (data.readmeUrl != null) {
|
|
360
|
-
contents.ReadmeUrl = __expectString(data.readmeUrl);
|
|
361
|
-
}
|
|
362
|
-
if (data.spdxLicenseId != null) {
|
|
363
|
-
contents.SpdxLicenseId = __expectString(data.spdxLicenseId);
|
|
364
|
-
}
|
|
365
|
-
if (data.verifiedAuthorUrl != null) {
|
|
366
|
-
contents.VerifiedAuthorUrl = __expectString(data.verifiedAuthorUrl);
|
|
367
|
-
}
|
|
368
|
-
if (data.version != null) {
|
|
369
|
-
contents.Version = de_Version(data.version, context);
|
|
370
|
-
}
|
|
328
|
+
const doc = take(data, {
|
|
329
|
+
ApplicationId: [, __expectString, `applicationId`],
|
|
330
|
+
Author: [, __expectString, `author`],
|
|
331
|
+
CreationTime: [, __expectString, `creationTime`],
|
|
332
|
+
Description: [, __expectString, `description`],
|
|
333
|
+
HomePageUrl: [, __expectString, `homePageUrl`],
|
|
334
|
+
IsVerifiedAuthor: [, __expectBoolean, `isVerifiedAuthor`],
|
|
335
|
+
Labels: [, _json, `labels`],
|
|
336
|
+
LicenseUrl: [, __expectString, `licenseUrl`],
|
|
337
|
+
Name: [, __expectString, `name`],
|
|
338
|
+
ReadmeUrl: [, __expectString, `readmeUrl`],
|
|
339
|
+
SpdxLicenseId: [, __expectString, `spdxLicenseId`],
|
|
340
|
+
VerifiedAuthorUrl: [, __expectString, `verifiedAuthorUrl`],
|
|
341
|
+
Version: [, (_) => de_Version(_, context), `version`],
|
|
342
|
+
});
|
|
343
|
+
Object.assign(contents, doc);
|
|
371
344
|
return contents;
|
|
372
345
|
};
|
|
373
346
|
const de_CreateApplicationCommandError = async (output, context) => {
|
|
@@ -394,10 +367,9 @@ const de_CreateApplicationCommandError = async (output, context) => {
|
|
|
394
367
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
395
368
|
default:
|
|
396
369
|
const parsedBody = parsedOutput.body;
|
|
397
|
-
throwDefaultError({
|
|
370
|
+
return throwDefaultError({
|
|
398
371
|
output,
|
|
399
372
|
parsedBody,
|
|
400
|
-
exceptionCtor: __BaseException,
|
|
401
373
|
errorCode,
|
|
402
374
|
});
|
|
403
375
|
}
|
|
@@ -410,33 +382,18 @@ export const de_CreateApplicationVersionCommand = async (output, context) => {
|
|
|
410
382
|
$metadata: deserializeMetadata(output),
|
|
411
383
|
});
|
|
412
384
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
if (data.resourcesSupported != null) {
|
|
426
|
-
contents.ResourcesSupported = __expectBoolean(data.resourcesSupported);
|
|
427
|
-
}
|
|
428
|
-
if (data.semanticVersion != null) {
|
|
429
|
-
contents.SemanticVersion = __expectString(data.semanticVersion);
|
|
430
|
-
}
|
|
431
|
-
if (data.sourceCodeArchiveUrl != null) {
|
|
432
|
-
contents.SourceCodeArchiveUrl = __expectString(data.sourceCodeArchiveUrl);
|
|
433
|
-
}
|
|
434
|
-
if (data.sourceCodeUrl != null) {
|
|
435
|
-
contents.SourceCodeUrl = __expectString(data.sourceCodeUrl);
|
|
436
|
-
}
|
|
437
|
-
if (data.templateUrl != null) {
|
|
438
|
-
contents.TemplateUrl = __expectString(data.templateUrl);
|
|
439
|
-
}
|
|
385
|
+
const doc = take(data, {
|
|
386
|
+
ApplicationId: [, __expectString, `applicationId`],
|
|
387
|
+
CreationTime: [, __expectString, `creationTime`],
|
|
388
|
+
ParameterDefinitions: [, (_) => de___listOfParameterDefinition(_, context), `parameterDefinitions`],
|
|
389
|
+
RequiredCapabilities: [, _json, `requiredCapabilities`],
|
|
390
|
+
ResourcesSupported: [, __expectBoolean, `resourcesSupported`],
|
|
391
|
+
SemanticVersion: [, __expectString, `semanticVersion`],
|
|
392
|
+
SourceCodeArchiveUrl: [, __expectString, `sourceCodeArchiveUrl`],
|
|
393
|
+
SourceCodeUrl: [, __expectString, `sourceCodeUrl`],
|
|
394
|
+
TemplateUrl: [, __expectString, `templateUrl`],
|
|
395
|
+
});
|
|
396
|
+
Object.assign(contents, doc);
|
|
440
397
|
return contents;
|
|
441
398
|
};
|
|
442
399
|
const de_CreateApplicationVersionCommandError = async (output, context) => {
|
|
@@ -463,10 +420,9 @@ const de_CreateApplicationVersionCommandError = async (output, context) => {
|
|
|
463
420
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
464
421
|
default:
|
|
465
422
|
const parsedBody = parsedOutput.body;
|
|
466
|
-
throwDefaultError({
|
|
423
|
+
return throwDefaultError({
|
|
467
424
|
output,
|
|
468
425
|
parsedBody,
|
|
469
|
-
exceptionCtor: __BaseException,
|
|
470
426
|
errorCode,
|
|
471
427
|
});
|
|
472
428
|
}
|
|
@@ -479,18 +435,13 @@ export const de_CreateCloudFormationChangeSetCommand = async (output, context) =
|
|
|
479
435
|
$metadata: deserializeMetadata(output),
|
|
480
436
|
});
|
|
481
437
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
contents.SemanticVersion = __expectString(data.semanticVersion);
|
|
490
|
-
}
|
|
491
|
-
if (data.stackId != null) {
|
|
492
|
-
contents.StackId = __expectString(data.stackId);
|
|
493
|
-
}
|
|
438
|
+
const doc = take(data, {
|
|
439
|
+
ApplicationId: [, __expectString, `applicationId`],
|
|
440
|
+
ChangeSetId: [, __expectString, `changeSetId`],
|
|
441
|
+
SemanticVersion: [, __expectString, `semanticVersion`],
|
|
442
|
+
StackId: [, __expectString, `stackId`],
|
|
443
|
+
});
|
|
444
|
+
Object.assign(contents, doc);
|
|
494
445
|
return contents;
|
|
495
446
|
};
|
|
496
447
|
const de_CreateCloudFormationChangeSetCommandError = async (output, context) => {
|
|
@@ -514,10 +465,9 @@ const de_CreateCloudFormationChangeSetCommandError = async (output, context) =>
|
|
|
514
465
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
515
466
|
default:
|
|
516
467
|
const parsedBody = parsedOutput.body;
|
|
517
|
-
throwDefaultError({
|
|
468
|
+
return throwDefaultError({
|
|
518
469
|
output,
|
|
519
470
|
parsedBody,
|
|
520
|
-
exceptionCtor: __BaseException,
|
|
521
471
|
errorCode,
|
|
522
472
|
});
|
|
523
473
|
}
|
|
@@ -530,27 +480,16 @@ export const de_CreateCloudFormationTemplateCommand = async (output, context) =>
|
|
|
530
480
|
$metadata: deserializeMetadata(output),
|
|
531
481
|
});
|
|
532
482
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
contents.SemanticVersion = __expectString(data.semanticVersion);
|
|
544
|
-
}
|
|
545
|
-
if (data.status != null) {
|
|
546
|
-
contents.Status = __expectString(data.status);
|
|
547
|
-
}
|
|
548
|
-
if (data.templateId != null) {
|
|
549
|
-
contents.TemplateId = __expectString(data.templateId);
|
|
550
|
-
}
|
|
551
|
-
if (data.templateUrl != null) {
|
|
552
|
-
contents.TemplateUrl = __expectString(data.templateUrl);
|
|
553
|
-
}
|
|
483
|
+
const doc = take(data, {
|
|
484
|
+
ApplicationId: [, __expectString, `applicationId`],
|
|
485
|
+
CreationTime: [, __expectString, `creationTime`],
|
|
486
|
+
ExpirationTime: [, __expectString, `expirationTime`],
|
|
487
|
+
SemanticVersion: [, __expectString, `semanticVersion`],
|
|
488
|
+
Status: [, __expectString, `status`],
|
|
489
|
+
TemplateId: [, __expectString, `templateId`],
|
|
490
|
+
TemplateUrl: [, __expectString, `templateUrl`],
|
|
491
|
+
});
|
|
492
|
+
Object.assign(contents, doc);
|
|
554
493
|
return contents;
|
|
555
494
|
};
|
|
556
495
|
const de_CreateCloudFormationTemplateCommandError = async (output, context) => {
|
|
@@ -577,10 +516,9 @@ const de_CreateCloudFormationTemplateCommandError = async (output, context) => {
|
|
|
577
516
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
578
517
|
default:
|
|
579
518
|
const parsedBody = parsedOutput.body;
|
|
580
|
-
throwDefaultError({
|
|
519
|
+
return throwDefaultError({
|
|
581
520
|
output,
|
|
582
521
|
parsedBody,
|
|
583
|
-
exceptionCtor: __BaseException,
|
|
584
522
|
errorCode,
|
|
585
523
|
});
|
|
586
524
|
}
|
|
@@ -622,10 +560,9 @@ const de_DeleteApplicationCommandError = async (output, context) => {
|
|
|
622
560
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
623
561
|
default:
|
|
624
562
|
const parsedBody = parsedOutput.body;
|
|
625
|
-
throwDefaultError({
|
|
563
|
+
return throwDefaultError({
|
|
626
564
|
output,
|
|
627
565
|
parsedBody,
|
|
628
|
-
exceptionCtor: __BaseException,
|
|
629
566
|
errorCode,
|
|
630
567
|
});
|
|
631
568
|
}
|
|
@@ -638,45 +575,22 @@ export const de_GetApplicationCommand = async (output, context) => {
|
|
|
638
575
|
$metadata: deserializeMetadata(output),
|
|
639
576
|
});
|
|
640
577
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
contents.IsVerifiedAuthor = __expectBoolean(data.isVerifiedAuthor);
|
|
658
|
-
}
|
|
659
|
-
if (data.labels != null) {
|
|
660
|
-
contents.Labels = de___listOf__string(data.labels, context);
|
|
661
|
-
}
|
|
662
|
-
if (data.licenseUrl != null) {
|
|
663
|
-
contents.LicenseUrl = __expectString(data.licenseUrl);
|
|
664
|
-
}
|
|
665
|
-
if (data.name != null) {
|
|
666
|
-
contents.Name = __expectString(data.name);
|
|
667
|
-
}
|
|
668
|
-
if (data.readmeUrl != null) {
|
|
669
|
-
contents.ReadmeUrl = __expectString(data.readmeUrl);
|
|
670
|
-
}
|
|
671
|
-
if (data.spdxLicenseId != null) {
|
|
672
|
-
contents.SpdxLicenseId = __expectString(data.spdxLicenseId);
|
|
673
|
-
}
|
|
674
|
-
if (data.verifiedAuthorUrl != null) {
|
|
675
|
-
contents.VerifiedAuthorUrl = __expectString(data.verifiedAuthorUrl);
|
|
676
|
-
}
|
|
677
|
-
if (data.version != null) {
|
|
678
|
-
contents.Version = de_Version(data.version, context);
|
|
679
|
-
}
|
|
578
|
+
const doc = take(data, {
|
|
579
|
+
ApplicationId: [, __expectString, `applicationId`],
|
|
580
|
+
Author: [, __expectString, `author`],
|
|
581
|
+
CreationTime: [, __expectString, `creationTime`],
|
|
582
|
+
Description: [, __expectString, `description`],
|
|
583
|
+
HomePageUrl: [, __expectString, `homePageUrl`],
|
|
584
|
+
IsVerifiedAuthor: [, __expectBoolean, `isVerifiedAuthor`],
|
|
585
|
+
Labels: [, _json, `labels`],
|
|
586
|
+
LicenseUrl: [, __expectString, `licenseUrl`],
|
|
587
|
+
Name: [, __expectString, `name`],
|
|
588
|
+
ReadmeUrl: [, __expectString, `readmeUrl`],
|
|
589
|
+
SpdxLicenseId: [, __expectString, `spdxLicenseId`],
|
|
590
|
+
VerifiedAuthorUrl: [, __expectString, `verifiedAuthorUrl`],
|
|
591
|
+
Version: [, (_) => de_Version(_, context), `version`],
|
|
592
|
+
});
|
|
593
|
+
Object.assign(contents, doc);
|
|
680
594
|
return contents;
|
|
681
595
|
};
|
|
682
596
|
const de_GetApplicationCommandError = async (output, context) => {
|
|
@@ -703,10 +617,9 @@ const de_GetApplicationCommandError = async (output, context) => {
|
|
|
703
617
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
704
618
|
default:
|
|
705
619
|
const parsedBody = parsedOutput.body;
|
|
706
|
-
throwDefaultError({
|
|
620
|
+
return throwDefaultError({
|
|
707
621
|
output,
|
|
708
622
|
parsedBody,
|
|
709
|
-
exceptionCtor: __BaseException,
|
|
710
623
|
errorCode,
|
|
711
624
|
});
|
|
712
625
|
}
|
|
@@ -719,9 +632,10 @@ export const de_GetApplicationPolicyCommand = async (output, context) => {
|
|
|
719
632
|
$metadata: deserializeMetadata(output),
|
|
720
633
|
});
|
|
721
634
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
}
|
|
635
|
+
const doc = take(data, {
|
|
636
|
+
Statements: [, (_) => de___listOfApplicationPolicyStatement(_, context), `statements`],
|
|
637
|
+
});
|
|
638
|
+
Object.assign(contents, doc);
|
|
725
639
|
return contents;
|
|
726
640
|
};
|
|
727
641
|
const de_GetApplicationPolicyCommandError = async (output, context) => {
|
|
@@ -748,10 +662,9 @@ const de_GetApplicationPolicyCommandError = async (output, context) => {
|
|
|
748
662
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
749
663
|
default:
|
|
750
664
|
const parsedBody = parsedOutput.body;
|
|
751
|
-
throwDefaultError({
|
|
665
|
+
return throwDefaultError({
|
|
752
666
|
output,
|
|
753
667
|
parsedBody,
|
|
754
|
-
exceptionCtor: __BaseException,
|
|
755
668
|
errorCode,
|
|
756
669
|
});
|
|
757
670
|
}
|
|
@@ -764,27 +677,16 @@ export const de_GetCloudFormationTemplateCommand = async (output, context) => {
|
|
|
764
677
|
$metadata: deserializeMetadata(output),
|
|
765
678
|
});
|
|
766
679
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
contents.SemanticVersion = __expectString(data.semanticVersion);
|
|
778
|
-
}
|
|
779
|
-
if (data.status != null) {
|
|
780
|
-
contents.Status = __expectString(data.status);
|
|
781
|
-
}
|
|
782
|
-
if (data.templateId != null) {
|
|
783
|
-
contents.TemplateId = __expectString(data.templateId);
|
|
784
|
-
}
|
|
785
|
-
if (data.templateUrl != null) {
|
|
786
|
-
contents.TemplateUrl = __expectString(data.templateUrl);
|
|
787
|
-
}
|
|
680
|
+
const doc = take(data, {
|
|
681
|
+
ApplicationId: [, __expectString, `applicationId`],
|
|
682
|
+
CreationTime: [, __expectString, `creationTime`],
|
|
683
|
+
ExpirationTime: [, __expectString, `expirationTime`],
|
|
684
|
+
SemanticVersion: [, __expectString, `semanticVersion`],
|
|
685
|
+
Status: [, __expectString, `status`],
|
|
686
|
+
TemplateId: [, __expectString, `templateId`],
|
|
687
|
+
TemplateUrl: [, __expectString, `templateUrl`],
|
|
688
|
+
});
|
|
689
|
+
Object.assign(contents, doc);
|
|
788
690
|
return contents;
|
|
789
691
|
};
|
|
790
692
|
const de_GetCloudFormationTemplateCommandError = async (output, context) => {
|
|
@@ -811,10 +713,9 @@ const de_GetCloudFormationTemplateCommandError = async (output, context) => {
|
|
|
811
713
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
812
714
|
default:
|
|
813
715
|
const parsedBody = parsedOutput.body;
|
|
814
|
-
throwDefaultError({
|
|
716
|
+
return throwDefaultError({
|
|
815
717
|
output,
|
|
816
718
|
parsedBody,
|
|
817
|
-
exceptionCtor: __BaseException,
|
|
818
719
|
errorCode,
|
|
819
720
|
});
|
|
820
721
|
}
|
|
@@ -827,12 +728,11 @@ export const de_ListApplicationDependenciesCommand = async (output, context) =>
|
|
|
827
728
|
$metadata: deserializeMetadata(output),
|
|
828
729
|
});
|
|
829
730
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
}
|
|
731
|
+
const doc = take(data, {
|
|
732
|
+
Dependencies: [, (_) => de___listOfApplicationDependencySummary(_, context), `dependencies`],
|
|
733
|
+
NextToken: [, __expectString, `nextToken`],
|
|
734
|
+
});
|
|
735
|
+
Object.assign(contents, doc);
|
|
836
736
|
return contents;
|
|
837
737
|
};
|
|
838
738
|
const de_ListApplicationDependenciesCommandError = async (output, context) => {
|
|
@@ -859,10 +759,9 @@ const de_ListApplicationDependenciesCommandError = async (output, context) => {
|
|
|
859
759
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
860
760
|
default:
|
|
861
761
|
const parsedBody = parsedOutput.body;
|
|
862
|
-
throwDefaultError({
|
|
762
|
+
return throwDefaultError({
|
|
863
763
|
output,
|
|
864
764
|
parsedBody,
|
|
865
|
-
exceptionCtor: __BaseException,
|
|
866
765
|
errorCode,
|
|
867
766
|
});
|
|
868
767
|
}
|
|
@@ -875,12 +774,11 @@ export const de_ListApplicationsCommand = async (output, context) => {
|
|
|
875
774
|
$metadata: deserializeMetadata(output),
|
|
876
775
|
});
|
|
877
776
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
}
|
|
777
|
+
const doc = take(data, {
|
|
778
|
+
Applications: [, (_) => de___listOfApplicationSummary(_, context), `applications`],
|
|
779
|
+
NextToken: [, __expectString, `nextToken`],
|
|
780
|
+
});
|
|
781
|
+
Object.assign(contents, doc);
|
|
884
782
|
return contents;
|
|
885
783
|
};
|
|
886
784
|
const de_ListApplicationsCommandError = async (output, context) => {
|
|
@@ -904,10 +802,9 @@ const de_ListApplicationsCommandError = async (output, context) => {
|
|
|
904
802
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
905
803
|
default:
|
|
906
804
|
const parsedBody = parsedOutput.body;
|
|
907
|
-
throwDefaultError({
|
|
805
|
+
return throwDefaultError({
|
|
908
806
|
output,
|
|
909
807
|
parsedBody,
|
|
910
|
-
exceptionCtor: __BaseException,
|
|
911
808
|
errorCode,
|
|
912
809
|
});
|
|
913
810
|
}
|
|
@@ -920,12 +817,11 @@ export const de_ListApplicationVersionsCommand = async (output, context) => {
|
|
|
920
817
|
$metadata: deserializeMetadata(output),
|
|
921
818
|
});
|
|
922
819
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
}
|
|
820
|
+
const doc = take(data, {
|
|
821
|
+
NextToken: [, __expectString, `nextToken`],
|
|
822
|
+
Versions: [, (_) => de___listOfVersionSummary(_, context), `versions`],
|
|
823
|
+
});
|
|
824
|
+
Object.assign(contents, doc);
|
|
929
825
|
return contents;
|
|
930
826
|
};
|
|
931
827
|
const de_ListApplicationVersionsCommandError = async (output, context) => {
|
|
@@ -952,10 +848,9 @@ const de_ListApplicationVersionsCommandError = async (output, context) => {
|
|
|
952
848
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
953
849
|
default:
|
|
954
850
|
const parsedBody = parsedOutput.body;
|
|
955
|
-
throwDefaultError({
|
|
851
|
+
return throwDefaultError({
|
|
956
852
|
output,
|
|
957
853
|
parsedBody,
|
|
958
|
-
exceptionCtor: __BaseException,
|
|
959
854
|
errorCode,
|
|
960
855
|
});
|
|
961
856
|
}
|
|
@@ -968,9 +863,10 @@ export const de_PutApplicationPolicyCommand = async (output, context) => {
|
|
|
968
863
|
$metadata: deserializeMetadata(output),
|
|
969
864
|
});
|
|
970
865
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
}
|
|
866
|
+
const doc = take(data, {
|
|
867
|
+
Statements: [, (_) => de___listOfApplicationPolicyStatement(_, context), `statements`],
|
|
868
|
+
});
|
|
869
|
+
Object.assign(contents, doc);
|
|
974
870
|
return contents;
|
|
975
871
|
};
|
|
976
872
|
const de_PutApplicationPolicyCommandError = async (output, context) => {
|
|
@@ -997,10 +893,9 @@ const de_PutApplicationPolicyCommandError = async (output, context) => {
|
|
|
997
893
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
998
894
|
default:
|
|
999
895
|
const parsedBody = parsedOutput.body;
|
|
1000
|
-
throwDefaultError({
|
|
896
|
+
return throwDefaultError({
|
|
1001
897
|
output,
|
|
1002
898
|
parsedBody,
|
|
1003
|
-
exceptionCtor: __BaseException,
|
|
1004
899
|
errorCode,
|
|
1005
900
|
});
|
|
1006
901
|
}
|
|
@@ -1039,10 +934,9 @@ const de_UnshareApplicationCommandError = async (output, context) => {
|
|
|
1039
934
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1040
935
|
default:
|
|
1041
936
|
const parsedBody = parsedOutput.body;
|
|
1042
|
-
throwDefaultError({
|
|
937
|
+
return throwDefaultError({
|
|
1043
938
|
output,
|
|
1044
939
|
parsedBody,
|
|
1045
|
-
exceptionCtor: __BaseException,
|
|
1046
940
|
errorCode,
|
|
1047
941
|
});
|
|
1048
942
|
}
|
|
@@ -1055,45 +949,22 @@ export const de_UpdateApplicationCommand = async (output, context) => {
|
|
|
1055
949
|
$metadata: deserializeMetadata(output),
|
|
1056
950
|
});
|
|
1057
951
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
}
|
|
1073
|
-
|
|
1074
|
-
contents.IsVerifiedAuthor = __expectBoolean(data.isVerifiedAuthor);
|
|
1075
|
-
}
|
|
1076
|
-
if (data.labels != null) {
|
|
1077
|
-
contents.Labels = de___listOf__string(data.labels, context);
|
|
1078
|
-
}
|
|
1079
|
-
if (data.licenseUrl != null) {
|
|
1080
|
-
contents.LicenseUrl = __expectString(data.licenseUrl);
|
|
1081
|
-
}
|
|
1082
|
-
if (data.name != null) {
|
|
1083
|
-
contents.Name = __expectString(data.name);
|
|
1084
|
-
}
|
|
1085
|
-
if (data.readmeUrl != null) {
|
|
1086
|
-
contents.ReadmeUrl = __expectString(data.readmeUrl);
|
|
1087
|
-
}
|
|
1088
|
-
if (data.spdxLicenseId != null) {
|
|
1089
|
-
contents.SpdxLicenseId = __expectString(data.spdxLicenseId);
|
|
1090
|
-
}
|
|
1091
|
-
if (data.verifiedAuthorUrl != null) {
|
|
1092
|
-
contents.VerifiedAuthorUrl = __expectString(data.verifiedAuthorUrl);
|
|
1093
|
-
}
|
|
1094
|
-
if (data.version != null) {
|
|
1095
|
-
contents.Version = de_Version(data.version, context);
|
|
1096
|
-
}
|
|
952
|
+
const doc = take(data, {
|
|
953
|
+
ApplicationId: [, __expectString, `applicationId`],
|
|
954
|
+
Author: [, __expectString, `author`],
|
|
955
|
+
CreationTime: [, __expectString, `creationTime`],
|
|
956
|
+
Description: [, __expectString, `description`],
|
|
957
|
+
HomePageUrl: [, __expectString, `homePageUrl`],
|
|
958
|
+
IsVerifiedAuthor: [, __expectBoolean, `isVerifiedAuthor`],
|
|
959
|
+
Labels: [, _json, `labels`],
|
|
960
|
+
LicenseUrl: [, __expectString, `licenseUrl`],
|
|
961
|
+
Name: [, __expectString, `name`],
|
|
962
|
+
ReadmeUrl: [, __expectString, `readmeUrl`],
|
|
963
|
+
SpdxLicenseId: [, __expectString, `spdxLicenseId`],
|
|
964
|
+
VerifiedAuthorUrl: [, __expectString, `verifiedAuthorUrl`],
|
|
965
|
+
Version: [, (_) => de_Version(_, context), `version`],
|
|
966
|
+
});
|
|
967
|
+
Object.assign(contents, doc);
|
|
1097
968
|
return contents;
|
|
1098
969
|
};
|
|
1099
970
|
const de_UpdateApplicationCommandError = async (output, context) => {
|
|
@@ -1123,24 +994,22 @@ const de_UpdateApplicationCommandError = async (output, context) => {
|
|
|
1123
994
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1124
995
|
default:
|
|
1125
996
|
const parsedBody = parsedOutput.body;
|
|
1126
|
-
throwDefaultError({
|
|
997
|
+
return throwDefaultError({
|
|
1127
998
|
output,
|
|
1128
999
|
parsedBody,
|
|
1129
|
-
exceptionCtor: __BaseException,
|
|
1130
1000
|
errorCode,
|
|
1131
1001
|
});
|
|
1132
1002
|
}
|
|
1133
1003
|
};
|
|
1134
|
-
const
|
|
1004
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1135
1005
|
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
1136
1006
|
const contents = map({});
|
|
1137
1007
|
const data = parsedOutput.body;
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
}
|
|
1008
|
+
const doc = take(data, {
|
|
1009
|
+
ErrorCode: [, __expectString, `errorCode`],
|
|
1010
|
+
Message: [, __expectString, `message`],
|
|
1011
|
+
});
|
|
1012
|
+
Object.assign(contents, doc);
|
|
1144
1013
|
const exception = new BadRequestException({
|
|
1145
1014
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1146
1015
|
...contents,
|
|
@@ -1150,12 +1019,11 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
1150
1019
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1151
1020
|
const contents = map({});
|
|
1152
1021
|
const data = parsedOutput.body;
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
}
|
|
1022
|
+
const doc = take(data, {
|
|
1023
|
+
ErrorCode: [, __expectString, `errorCode`],
|
|
1024
|
+
Message: [, __expectString, `message`],
|
|
1025
|
+
});
|
|
1026
|
+
Object.assign(contents, doc);
|
|
1159
1027
|
const exception = new ConflictException({
|
|
1160
1028
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1161
1029
|
...contents,
|
|
@@ -1165,12 +1033,11 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1165
1033
|
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
1166
1034
|
const contents = map({});
|
|
1167
1035
|
const data = parsedOutput.body;
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
}
|
|
1036
|
+
const doc = take(data, {
|
|
1037
|
+
ErrorCode: [, __expectString, `errorCode`],
|
|
1038
|
+
Message: [, __expectString, `message`],
|
|
1039
|
+
});
|
|
1040
|
+
Object.assign(contents, doc);
|
|
1174
1041
|
const exception = new ForbiddenException({
|
|
1175
1042
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1176
1043
|
...contents,
|
|
@@ -1180,12 +1047,11 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
|
1180
1047
|
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
1181
1048
|
const contents = map({});
|
|
1182
1049
|
const data = parsedOutput.body;
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
}
|
|
1050
|
+
const doc = take(data, {
|
|
1051
|
+
ErrorCode: [, __expectString, `errorCode`],
|
|
1052
|
+
Message: [, __expectString, `message`],
|
|
1053
|
+
});
|
|
1054
|
+
Object.assign(contents, doc);
|
|
1189
1055
|
const exception = new InternalServerErrorException({
|
|
1190
1056
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1191
1057
|
...contents,
|
|
@@ -1195,12 +1061,11 @@ const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
1195
1061
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1196
1062
|
const contents = map({});
|
|
1197
1063
|
const data = parsedOutput.body;
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
}
|
|
1064
|
+
const doc = take(data, {
|
|
1065
|
+
ErrorCode: [, __expectString, `errorCode`],
|
|
1066
|
+
Message: [, __expectString, `message`],
|
|
1067
|
+
});
|
|
1068
|
+
Object.assign(contents, doc);
|
|
1204
1069
|
const exception = new NotFoundException({
|
|
1205
1070
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1206
1071
|
...contents,
|
|
@@ -1210,25 +1075,17 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1210
1075
|
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
1211
1076
|
const contents = map({});
|
|
1212
1077
|
const data = parsedOutput.body;
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
}
|
|
1078
|
+
const doc = take(data, {
|
|
1079
|
+
ErrorCode: [, __expectString, `errorCode`],
|
|
1080
|
+
Message: [, __expectString, `message`],
|
|
1081
|
+
});
|
|
1082
|
+
Object.assign(contents, doc);
|
|
1219
1083
|
const exception = new TooManyRequestsException({
|
|
1220
1084
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1221
1085
|
...contents,
|
|
1222
1086
|
});
|
|
1223
1087
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1224
1088
|
};
|
|
1225
|
-
const se___listOf__string = (input, context) => {
|
|
1226
|
-
return input
|
|
1227
|
-
.filter((e) => e != null)
|
|
1228
|
-
.map((entry) => {
|
|
1229
|
-
return entry;
|
|
1230
|
-
});
|
|
1231
|
-
};
|
|
1232
1089
|
const se___listOfApplicationPolicyStatement = (input, context) => {
|
|
1233
1090
|
return input
|
|
1234
1091
|
.filter((e) => e != null)
|
|
@@ -1258,57 +1115,41 @@ const se___listOfTag = (input, context) => {
|
|
|
1258
1115
|
});
|
|
1259
1116
|
};
|
|
1260
1117
|
const se_ApplicationPolicyStatement = (input, context) => {
|
|
1261
|
-
return {
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
};
|
|
1118
|
+
return take(input, {
|
|
1119
|
+
actions: [, _json, `Actions`],
|
|
1120
|
+
principalOrgIDs: [, _json, `PrincipalOrgIDs`],
|
|
1121
|
+
principals: [, _json, `Principals`],
|
|
1122
|
+
statementId: [, , `StatementId`],
|
|
1123
|
+
});
|
|
1267
1124
|
};
|
|
1268
1125
|
const se_ParameterValue = (input, context) => {
|
|
1269
|
-
return {
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
};
|
|
1126
|
+
return take(input, {
|
|
1127
|
+
name: [, , `Name`],
|
|
1128
|
+
value: [, , `Value`],
|
|
1129
|
+
});
|
|
1273
1130
|
};
|
|
1274
1131
|
const se_RollbackConfiguration = (input, context) => {
|
|
1275
|
-
return {
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
}),
|
|
1280
|
-
};
|
|
1132
|
+
return take(input, {
|
|
1133
|
+
monitoringTimeInMinutes: [, , `MonitoringTimeInMinutes`],
|
|
1134
|
+
rollbackTriggers: [, (_) => se___listOfRollbackTrigger(_, context), `RollbackTriggers`],
|
|
1135
|
+
});
|
|
1281
1136
|
};
|
|
1282
1137
|
const se_RollbackTrigger = (input, context) => {
|
|
1283
|
-
return {
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
};
|
|
1138
|
+
return take(input, {
|
|
1139
|
+
arn: [, , `Arn`],
|
|
1140
|
+
type: [, , `Type`],
|
|
1141
|
+
});
|
|
1287
1142
|
};
|
|
1288
1143
|
const se_Tag = (input, context) => {
|
|
1289
|
-
return {
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
};
|
|
1293
|
-
};
|
|
1294
|
-
const de___listOf__string = (output, context) => {
|
|
1295
|
-
const retVal = (output || [])
|
|
1296
|
-
.filter((e) => e != null)
|
|
1297
|
-
.map((entry) => {
|
|
1298
|
-
if (entry === null) {
|
|
1299
|
-
return null;
|
|
1300
|
-
}
|
|
1301
|
-
return __expectString(entry);
|
|
1144
|
+
return take(input, {
|
|
1145
|
+
key: [, , `Key`],
|
|
1146
|
+
value: [, , `Value`],
|
|
1302
1147
|
});
|
|
1303
|
-
return retVal;
|
|
1304
1148
|
};
|
|
1305
1149
|
const de___listOfApplicationDependencySummary = (output, context) => {
|
|
1306
1150
|
const retVal = (output || [])
|
|
1307
1151
|
.filter((e) => e != null)
|
|
1308
1152
|
.map((entry) => {
|
|
1309
|
-
if (entry === null) {
|
|
1310
|
-
return null;
|
|
1311
|
-
}
|
|
1312
1153
|
return de_ApplicationDependencySummary(entry, context);
|
|
1313
1154
|
});
|
|
1314
1155
|
return retVal;
|
|
@@ -1317,9 +1158,6 @@ const de___listOfApplicationPolicyStatement = (output, context) => {
|
|
|
1317
1158
|
const retVal = (output || [])
|
|
1318
1159
|
.filter((e) => e != null)
|
|
1319
1160
|
.map((entry) => {
|
|
1320
|
-
if (entry === null) {
|
|
1321
|
-
return null;
|
|
1322
|
-
}
|
|
1323
1161
|
return de_ApplicationPolicyStatement(entry, context);
|
|
1324
1162
|
});
|
|
1325
1163
|
return retVal;
|
|
@@ -1328,31 +1166,14 @@ const de___listOfApplicationSummary = (output, context) => {
|
|
|
1328
1166
|
const retVal = (output || [])
|
|
1329
1167
|
.filter((e) => e != null)
|
|
1330
1168
|
.map((entry) => {
|
|
1331
|
-
if (entry === null) {
|
|
1332
|
-
return null;
|
|
1333
|
-
}
|
|
1334
1169
|
return de_ApplicationSummary(entry, context);
|
|
1335
1170
|
});
|
|
1336
1171
|
return retVal;
|
|
1337
1172
|
};
|
|
1338
|
-
const de___listOfCapability = (output, context) => {
|
|
1339
|
-
const retVal = (output || [])
|
|
1340
|
-
.filter((e) => e != null)
|
|
1341
|
-
.map((entry) => {
|
|
1342
|
-
if (entry === null) {
|
|
1343
|
-
return null;
|
|
1344
|
-
}
|
|
1345
|
-
return __expectString(entry);
|
|
1346
|
-
});
|
|
1347
|
-
return retVal;
|
|
1348
|
-
};
|
|
1349
1173
|
const de___listOfParameterDefinition = (output, context) => {
|
|
1350
1174
|
const retVal = (output || [])
|
|
1351
1175
|
.filter((e) => e != null)
|
|
1352
1176
|
.map((entry) => {
|
|
1353
|
-
if (entry === null) {
|
|
1354
|
-
return null;
|
|
1355
|
-
}
|
|
1356
1177
|
return de_ParameterDefinition(entry, context);
|
|
1357
1178
|
});
|
|
1358
1179
|
return retVal;
|
|
@@ -1361,78 +1182,73 @@ const de___listOfVersionSummary = (output, context) => {
|
|
|
1361
1182
|
const retVal = (output || [])
|
|
1362
1183
|
.filter((e) => e != null)
|
|
1363
1184
|
.map((entry) => {
|
|
1364
|
-
if (entry === null) {
|
|
1365
|
-
return null;
|
|
1366
|
-
}
|
|
1367
1185
|
return de_VersionSummary(entry, context);
|
|
1368
1186
|
});
|
|
1369
1187
|
return retVal;
|
|
1370
1188
|
};
|
|
1371
1189
|
const de_ApplicationDependencySummary = (output, context) => {
|
|
1372
|
-
return {
|
|
1373
|
-
ApplicationId: __expectString
|
|
1374
|
-
SemanticVersion: __expectString
|
|
1375
|
-
};
|
|
1190
|
+
return take(output, {
|
|
1191
|
+
ApplicationId: [, __expectString, `applicationId`],
|
|
1192
|
+
SemanticVersion: [, __expectString, `semanticVersion`],
|
|
1193
|
+
});
|
|
1376
1194
|
};
|
|
1377
1195
|
const de_ApplicationPolicyStatement = (output, context) => {
|
|
1378
|
-
return {
|
|
1379
|
-
Actions:
|
|
1380
|
-
PrincipalOrgIDs:
|
|
1381
|
-
Principals:
|
|
1382
|
-
StatementId: __expectString
|
|
1383
|
-
};
|
|
1196
|
+
return take(output, {
|
|
1197
|
+
Actions: [, _json, `actions`],
|
|
1198
|
+
PrincipalOrgIDs: [, _json, `principalOrgIDs`],
|
|
1199
|
+
Principals: [, _json, `principals`],
|
|
1200
|
+
StatementId: [, __expectString, `statementId`],
|
|
1201
|
+
});
|
|
1384
1202
|
};
|
|
1385
1203
|
const de_ApplicationSummary = (output, context) => {
|
|
1386
|
-
return {
|
|
1387
|
-
ApplicationId: __expectString
|
|
1388
|
-
Author: __expectString
|
|
1389
|
-
CreationTime: __expectString
|
|
1390
|
-
Description: __expectString
|
|
1391
|
-
HomePageUrl: __expectString
|
|
1392
|
-
Labels:
|
|
1393
|
-
Name: __expectString
|
|
1394
|
-
SpdxLicenseId: __expectString
|
|
1395
|
-
};
|
|
1204
|
+
return take(output, {
|
|
1205
|
+
ApplicationId: [, __expectString, `applicationId`],
|
|
1206
|
+
Author: [, __expectString, `author`],
|
|
1207
|
+
CreationTime: [, __expectString, `creationTime`],
|
|
1208
|
+
Description: [, __expectString, `description`],
|
|
1209
|
+
HomePageUrl: [, __expectString, `homePageUrl`],
|
|
1210
|
+
Labels: [, _json, `labels`],
|
|
1211
|
+
Name: [, __expectString, `name`],
|
|
1212
|
+
SpdxLicenseId: [, __expectString, `spdxLicenseId`],
|
|
1213
|
+
});
|
|
1396
1214
|
};
|
|
1397
1215
|
const de_ParameterDefinition = (output, context) => {
|
|
1398
|
-
return {
|
|
1399
|
-
AllowedPattern: __expectString
|
|
1400
|
-
AllowedValues:
|
|
1401
|
-
ConstraintDescription: __expectString
|
|
1402
|
-
DefaultValue: __expectString
|
|
1403
|
-
Description: __expectString
|
|
1404
|
-
MaxLength: __expectInt32
|
|
1405
|
-
MaxValue: __expectInt32
|
|
1406
|
-
MinLength: __expectInt32
|
|
1407
|
-
MinValue: __expectInt32
|
|
1408
|
-
Name: __expectString
|
|
1409
|
-
NoEcho: __expectBoolean
|
|
1410
|
-
ReferencedByResources:
|
|
1411
|
-
Type: __expectString
|
|
1412
|
-
};
|
|
1216
|
+
return take(output, {
|
|
1217
|
+
AllowedPattern: [, __expectString, `allowedPattern`],
|
|
1218
|
+
AllowedValues: [, _json, `allowedValues`],
|
|
1219
|
+
ConstraintDescription: [, __expectString, `constraintDescription`],
|
|
1220
|
+
DefaultValue: [, __expectString, `defaultValue`],
|
|
1221
|
+
Description: [, __expectString, `description`],
|
|
1222
|
+
MaxLength: [, __expectInt32, `maxLength`],
|
|
1223
|
+
MaxValue: [, __expectInt32, `maxValue`],
|
|
1224
|
+
MinLength: [, __expectInt32, `minLength`],
|
|
1225
|
+
MinValue: [, __expectInt32, `minValue`],
|
|
1226
|
+
Name: [, __expectString, `name`],
|
|
1227
|
+
NoEcho: [, __expectBoolean, `noEcho`],
|
|
1228
|
+
ReferencedByResources: [, _json, `referencedByResources`],
|
|
1229
|
+
Type: [, __expectString, `type`],
|
|
1230
|
+
});
|
|
1413
1231
|
};
|
|
1414
1232
|
const de_Version = (output, context) => {
|
|
1415
|
-
return {
|
|
1416
|
-
ApplicationId: __expectString
|
|
1417
|
-
CreationTime: __expectString
|
|
1418
|
-
ParameterDefinitions:
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
TemplateUrl: __expectString(output.templateUrl),
|
|
1427
|
-
};
|
|
1233
|
+
return take(output, {
|
|
1234
|
+
ApplicationId: [, __expectString, `applicationId`],
|
|
1235
|
+
CreationTime: [, __expectString, `creationTime`],
|
|
1236
|
+
ParameterDefinitions: (_) => [, de___listOfParameterDefinition(_, context), `parameterDefinitions`],
|
|
1237
|
+
RequiredCapabilities: [, _json, `requiredCapabilities`],
|
|
1238
|
+
ResourcesSupported: [, __expectBoolean, `resourcesSupported`],
|
|
1239
|
+
SemanticVersion: [, __expectString, `semanticVersion`],
|
|
1240
|
+
SourceCodeArchiveUrl: [, __expectString, `sourceCodeArchiveUrl`],
|
|
1241
|
+
SourceCodeUrl: [, __expectString, `sourceCodeUrl`],
|
|
1242
|
+
TemplateUrl: [, __expectString, `templateUrl`],
|
|
1243
|
+
});
|
|
1428
1244
|
};
|
|
1429
1245
|
const de_VersionSummary = (output, context) => {
|
|
1430
|
-
return {
|
|
1431
|
-
ApplicationId: __expectString
|
|
1432
|
-
CreationTime: __expectString
|
|
1433
|
-
SemanticVersion: __expectString
|
|
1434
|
-
SourceCodeUrl: __expectString
|
|
1435
|
-
};
|
|
1246
|
+
return take(output, {
|
|
1247
|
+
ApplicationId: [, __expectString, `applicationId`],
|
|
1248
|
+
CreationTime: [, __expectString, `creationTime`],
|
|
1249
|
+
SemanticVersion: [, __expectString, `semanticVersion`],
|
|
1250
|
+
SourceCodeUrl: [, __expectString, `sourceCodeUrl`],
|
|
1251
|
+
});
|
|
1436
1252
|
};
|
|
1437
1253
|
const deserializeMetadata = (output) => ({
|
|
1438
1254
|
httpStatusCode: output.statusCode,
|