@aws-sdk/client-serverlessapplicationrepository 3.306.0 → 3.309.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/commands/CreateApplicationCommand.js +2 -2
- package/dist-cjs/commands/CreateApplicationVersionCommand.js +2 -2
- package/dist-cjs/commands/CreateCloudFormationChangeSetCommand.js +2 -2
- package/dist-cjs/commands/CreateCloudFormationTemplateCommand.js +2 -2
- package/dist-cjs/commands/DeleteApplicationCommand.js +2 -2
- package/dist-cjs/commands/GetApplicationCommand.js +2 -2
- package/dist-cjs/commands/GetApplicationPolicyCommand.js +2 -2
- package/dist-cjs/commands/GetCloudFormationTemplateCommand.js +2 -2
- package/dist-cjs/commands/ListApplicationDependenciesCommand.js +2 -2
- package/dist-cjs/commands/ListApplicationVersionsCommand.js +2 -2
- package/dist-cjs/commands/ListApplicationsCommand.js +2 -2
- package/dist-cjs/commands/PutApplicationPolicyCommand.js +2 -2
- package/dist-cjs/commands/UnshareApplicationCommand.js +2 -2
- package/dist-cjs/commands/UpdateApplicationCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +227 -245
- package/dist-es/commands/CreateApplicationCommand.js +3 -3
- package/dist-es/commands/CreateApplicationVersionCommand.js +3 -3
- package/dist-es/commands/CreateCloudFormationChangeSetCommand.js +3 -3
- package/dist-es/commands/CreateCloudFormationTemplateCommand.js +3 -3
- package/dist-es/commands/DeleteApplicationCommand.js +3 -3
- package/dist-es/commands/GetApplicationCommand.js +3 -3
- package/dist-es/commands/GetApplicationPolicyCommand.js +3 -3
- package/dist-es/commands/GetCloudFormationTemplateCommand.js +3 -3
- package/dist-es/commands/ListApplicationDependenciesCommand.js +3 -3
- package/dist-es/commands/ListApplicationVersionsCommand.js +3 -3
- package/dist-es/commands/ListApplicationsCommand.js +3 -3
- package/dist-es/commands/PutApplicationPolicyCommand.js +3 -3
- package/dist-es/commands/UnshareApplicationCommand.js +3 -3
- package/dist-es/commands/UpdateApplicationCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +198 -216
- package/dist-types/protocols/Aws_restJson1.d.ts +112 -28
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +28 -28
- package/package.json +6 -6
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, resolvedPath as __resolvedPath, throwDefaultError, } 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
|
-
export const
|
|
5
|
+
export const se_CreateApplicationCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
@@ -13,7 +13,7 @@ export const serializeAws_restJson1CreateApplicationCommand = async (input, cont
|
|
|
13
13
|
...(input.Author != null && { author: input.Author }),
|
|
14
14
|
...(input.Description != null && { description: input.Description }),
|
|
15
15
|
...(input.HomePageUrl != null && { homePageUrl: input.HomePageUrl }),
|
|
16
|
-
...(input.Labels != null && { labels:
|
|
16
|
+
...(input.Labels != null && { labels: se___listOf__string(input.Labels, context) }),
|
|
17
17
|
...(input.LicenseBody != null && { licenseBody: input.LicenseBody }),
|
|
18
18
|
...(input.LicenseUrl != null && { licenseUrl: input.LicenseUrl }),
|
|
19
19
|
...(input.Name != null && { name: input.Name }),
|
|
@@ -36,7 +36,7 @@ export const serializeAws_restJson1CreateApplicationCommand = async (input, cont
|
|
|
36
36
|
body,
|
|
37
37
|
});
|
|
38
38
|
};
|
|
39
|
-
export const
|
|
39
|
+
export const se_CreateApplicationVersionCommand = async (input, context) => {
|
|
40
40
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
41
41
|
const headers = {
|
|
42
42
|
"content-type": "application/json",
|
|
@@ -62,7 +62,7 @@ export const serializeAws_restJson1CreateApplicationVersionCommand = async (inpu
|
|
|
62
62
|
body,
|
|
63
63
|
});
|
|
64
64
|
};
|
|
65
|
-
export const
|
|
65
|
+
export const se_CreateCloudFormationChangeSetCommand = async (input, context) => {
|
|
66
66
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
67
67
|
const headers = {
|
|
68
68
|
"content-type": "application/json",
|
|
@@ -71,27 +71,21 @@ export const serializeAws_restJson1CreateCloudFormationChangeSetCommand = async
|
|
|
71
71
|
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
72
72
|
let body;
|
|
73
73
|
body = JSON.stringify({
|
|
74
|
-
...(input.Capabilities != null && {
|
|
75
|
-
capabilities: serializeAws_restJson1__listOf__string(input.Capabilities, context),
|
|
76
|
-
}),
|
|
74
|
+
...(input.Capabilities != null && { capabilities: se___listOf__string(input.Capabilities, context) }),
|
|
77
75
|
...(input.ChangeSetName != null && { changeSetName: input.ChangeSetName }),
|
|
78
76
|
...(input.ClientToken != null && { clientToken: input.ClientToken }),
|
|
79
77
|
...(input.Description != null && { description: input.Description }),
|
|
80
|
-
...(input.NotificationArns != null && {
|
|
81
|
-
notificationArns: serializeAws_restJson1__listOf__string(input.NotificationArns, context),
|
|
82
|
-
}),
|
|
78
|
+
...(input.NotificationArns != null && { notificationArns: se___listOf__string(input.NotificationArns, context) }),
|
|
83
79
|
...(input.ParameterOverrides != null && {
|
|
84
|
-
parameterOverrides:
|
|
85
|
-
}),
|
|
86
|
-
...(input.ResourceTypes != null && {
|
|
87
|
-
resourceTypes: serializeAws_restJson1__listOf__string(input.ResourceTypes, context),
|
|
80
|
+
parameterOverrides: se___listOfParameterValue(input.ParameterOverrides, context),
|
|
88
81
|
}),
|
|
82
|
+
...(input.ResourceTypes != null && { resourceTypes: se___listOf__string(input.ResourceTypes, context) }),
|
|
89
83
|
...(input.RollbackConfiguration != null && {
|
|
90
|
-
rollbackConfiguration:
|
|
84
|
+
rollbackConfiguration: se_RollbackConfiguration(input.RollbackConfiguration, context),
|
|
91
85
|
}),
|
|
92
86
|
...(input.SemanticVersion != null && { semanticVersion: input.SemanticVersion }),
|
|
93
87
|
...(input.StackName != null && { stackName: input.StackName }),
|
|
94
|
-
...(input.Tags != null && { tags:
|
|
88
|
+
...(input.Tags != null && { tags: se___listOfTag(input.Tags, context) }),
|
|
95
89
|
...(input.TemplateId != null && { templateId: input.TemplateId }),
|
|
96
90
|
});
|
|
97
91
|
return new __HttpRequest({
|
|
@@ -104,7 +98,7 @@ export const serializeAws_restJson1CreateCloudFormationChangeSetCommand = async
|
|
|
104
98
|
body,
|
|
105
99
|
});
|
|
106
100
|
};
|
|
107
|
-
export const
|
|
101
|
+
export const se_CreateCloudFormationTemplateCommand = async (input, context) => {
|
|
108
102
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
109
103
|
const headers = {
|
|
110
104
|
"content-type": "application/json",
|
|
@@ -125,7 +119,7 @@ export const serializeAws_restJson1CreateCloudFormationTemplateCommand = async (
|
|
|
125
119
|
body,
|
|
126
120
|
});
|
|
127
121
|
};
|
|
128
|
-
export const
|
|
122
|
+
export const se_DeleteApplicationCommand = async (input, context) => {
|
|
129
123
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
130
124
|
const headers = {};
|
|
131
125
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}";
|
|
@@ -141,7 +135,7 @@ export const serializeAws_restJson1DeleteApplicationCommand = async (input, cont
|
|
|
141
135
|
body,
|
|
142
136
|
});
|
|
143
137
|
};
|
|
144
|
-
export const
|
|
138
|
+
export const se_GetApplicationCommand = async (input, context) => {
|
|
145
139
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
146
140
|
const headers = {};
|
|
147
141
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}";
|
|
@@ -161,7 +155,7 @@ export const serializeAws_restJson1GetApplicationCommand = async (input, context
|
|
|
161
155
|
body,
|
|
162
156
|
});
|
|
163
157
|
};
|
|
164
|
-
export const
|
|
158
|
+
export const se_GetApplicationPolicyCommand = async (input, context) => {
|
|
165
159
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
166
160
|
const headers = {};
|
|
167
161
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}/policy";
|
|
@@ -177,7 +171,7 @@ export const serializeAws_restJson1GetApplicationPolicyCommand = async (input, c
|
|
|
177
171
|
body,
|
|
178
172
|
});
|
|
179
173
|
};
|
|
180
|
-
export const
|
|
174
|
+
export const se_GetCloudFormationTemplateCommand = async (input, context) => {
|
|
181
175
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
182
176
|
const headers = {};
|
|
183
177
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -195,7 +189,7 @@ export const serializeAws_restJson1GetCloudFormationTemplateCommand = async (inp
|
|
|
195
189
|
body,
|
|
196
190
|
});
|
|
197
191
|
};
|
|
198
|
-
export const
|
|
192
|
+
export const se_ListApplicationDependenciesCommand = async (input, context) => {
|
|
199
193
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
200
194
|
const headers = {};
|
|
201
195
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -218,7 +212,7 @@ export const serializeAws_restJson1ListApplicationDependenciesCommand = async (i
|
|
|
218
212
|
body,
|
|
219
213
|
});
|
|
220
214
|
};
|
|
221
|
-
export const
|
|
215
|
+
export const se_ListApplicationsCommand = async (input, context) => {
|
|
222
216
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
223
217
|
const headers = {};
|
|
224
218
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
|
|
@@ -238,7 +232,7 @@ export const serializeAws_restJson1ListApplicationsCommand = async (input, conte
|
|
|
238
232
|
body,
|
|
239
233
|
});
|
|
240
234
|
};
|
|
241
|
-
export const
|
|
235
|
+
export const se_ListApplicationVersionsCommand = async (input, context) => {
|
|
242
236
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
243
237
|
const headers = {};
|
|
244
238
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}/versions";
|
|
@@ -259,7 +253,7 @@ export const serializeAws_restJson1ListApplicationVersionsCommand = async (input
|
|
|
259
253
|
body,
|
|
260
254
|
});
|
|
261
255
|
};
|
|
262
|
-
export const
|
|
256
|
+
export const se_PutApplicationPolicyCommand = async (input, context) => {
|
|
263
257
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
264
258
|
const headers = {
|
|
265
259
|
"content-type": "application/json",
|
|
@@ -268,9 +262,7 @@ export const serializeAws_restJson1PutApplicationPolicyCommand = async (input, c
|
|
|
268
262
|
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
269
263
|
let body;
|
|
270
264
|
body = JSON.stringify({
|
|
271
|
-
...(input.Statements != null && {
|
|
272
|
-
statements: serializeAws_restJson1__listOfApplicationPolicyStatement(input.Statements, context),
|
|
273
|
-
}),
|
|
265
|
+
...(input.Statements != null && { statements: se___listOfApplicationPolicyStatement(input.Statements, context) }),
|
|
274
266
|
});
|
|
275
267
|
return new __HttpRequest({
|
|
276
268
|
protocol,
|
|
@@ -282,7 +274,7 @@ export const serializeAws_restJson1PutApplicationPolicyCommand = async (input, c
|
|
|
282
274
|
body,
|
|
283
275
|
});
|
|
284
276
|
};
|
|
285
|
-
export const
|
|
277
|
+
export const se_UnshareApplicationCommand = async (input, context) => {
|
|
286
278
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
287
279
|
const headers = {
|
|
288
280
|
"content-type": "application/json",
|
|
@@ -303,7 +295,7 @@ export const serializeAws_restJson1UnshareApplicationCommand = async (input, con
|
|
|
303
295
|
body,
|
|
304
296
|
});
|
|
305
297
|
};
|
|
306
|
-
export const
|
|
298
|
+
export const se_UpdateApplicationCommand = async (input, context) => {
|
|
307
299
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
308
300
|
const headers = {
|
|
309
301
|
"content-type": "application/json",
|
|
@@ -315,7 +307,7 @@ export const serializeAws_restJson1UpdateApplicationCommand = async (input, cont
|
|
|
315
307
|
...(input.Author != null && { author: input.Author }),
|
|
316
308
|
...(input.Description != null && { description: input.Description }),
|
|
317
309
|
...(input.HomePageUrl != null && { homePageUrl: input.HomePageUrl }),
|
|
318
|
-
...(input.Labels != null && { labels:
|
|
310
|
+
...(input.Labels != null && { labels: se___listOf__string(input.Labels, context) }),
|
|
319
311
|
...(input.ReadmeBody != null && { readmeBody: input.ReadmeBody }),
|
|
320
312
|
...(input.ReadmeUrl != null && { readmeUrl: input.ReadmeUrl }),
|
|
321
313
|
});
|
|
@@ -329,9 +321,9 @@ export const serializeAws_restJson1UpdateApplicationCommand = async (input, cont
|
|
|
329
321
|
body,
|
|
330
322
|
});
|
|
331
323
|
};
|
|
332
|
-
export const
|
|
324
|
+
export const de_CreateApplicationCommand = async (output, context) => {
|
|
333
325
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
334
|
-
return
|
|
326
|
+
return de_CreateApplicationCommandError(output, context);
|
|
335
327
|
}
|
|
336
328
|
const contents = map({
|
|
337
329
|
$metadata: deserializeMetadata(output),
|
|
@@ -356,7 +348,7 @@ export const deserializeAws_restJson1CreateApplicationCommand = async (output, c
|
|
|
356
348
|
contents.IsVerifiedAuthor = __expectBoolean(data.isVerifiedAuthor);
|
|
357
349
|
}
|
|
358
350
|
if (data.labels != null) {
|
|
359
|
-
contents.Labels =
|
|
351
|
+
contents.Labels = de___listOf__string(data.labels, context);
|
|
360
352
|
}
|
|
361
353
|
if (data.licenseUrl != null) {
|
|
362
354
|
contents.LicenseUrl = __expectString(data.licenseUrl);
|
|
@@ -374,11 +366,11 @@ export const deserializeAws_restJson1CreateApplicationCommand = async (output, c
|
|
|
374
366
|
contents.VerifiedAuthorUrl = __expectString(data.verifiedAuthorUrl);
|
|
375
367
|
}
|
|
376
368
|
if (data.version != null) {
|
|
377
|
-
contents.Version =
|
|
369
|
+
contents.Version = de_Version(data.version, context);
|
|
378
370
|
}
|
|
379
371
|
return contents;
|
|
380
372
|
};
|
|
381
|
-
const
|
|
373
|
+
const de_CreateApplicationCommandError = async (output, context) => {
|
|
382
374
|
const parsedOutput = {
|
|
383
375
|
...output,
|
|
384
376
|
body: await parseErrorBody(output.body, context),
|
|
@@ -387,19 +379,19 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
387
379
|
switch (errorCode) {
|
|
388
380
|
case "BadRequestException":
|
|
389
381
|
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
390
|
-
throw await
|
|
382
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
391
383
|
case "ConflictException":
|
|
392
384
|
case "com.amazonaws.serverlessapplicationrepository#ConflictException":
|
|
393
|
-
throw await
|
|
385
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
394
386
|
case "ForbiddenException":
|
|
395
387
|
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
396
|
-
throw await
|
|
388
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
397
389
|
case "InternalServerErrorException":
|
|
398
390
|
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
399
|
-
throw await
|
|
391
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
400
392
|
case "TooManyRequestsException":
|
|
401
393
|
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
402
|
-
throw await
|
|
394
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
403
395
|
default:
|
|
404
396
|
const parsedBody = parsedOutput.body;
|
|
405
397
|
throwDefaultError({
|
|
@@ -410,9 +402,9 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
410
402
|
});
|
|
411
403
|
}
|
|
412
404
|
};
|
|
413
|
-
export const
|
|
405
|
+
export const de_CreateApplicationVersionCommand = async (output, context) => {
|
|
414
406
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
415
|
-
return
|
|
407
|
+
return de_CreateApplicationVersionCommandError(output, context);
|
|
416
408
|
}
|
|
417
409
|
const contents = map({
|
|
418
410
|
$metadata: deserializeMetadata(output),
|
|
@@ -425,10 +417,10 @@ export const deserializeAws_restJson1CreateApplicationVersionCommand = async (ou
|
|
|
425
417
|
contents.CreationTime = __expectString(data.creationTime);
|
|
426
418
|
}
|
|
427
419
|
if (data.parameterDefinitions != null) {
|
|
428
|
-
contents.ParameterDefinitions =
|
|
420
|
+
contents.ParameterDefinitions = de___listOfParameterDefinition(data.parameterDefinitions, context);
|
|
429
421
|
}
|
|
430
422
|
if (data.requiredCapabilities != null) {
|
|
431
|
-
contents.RequiredCapabilities =
|
|
423
|
+
contents.RequiredCapabilities = de___listOfCapability(data.requiredCapabilities, context);
|
|
432
424
|
}
|
|
433
425
|
if (data.resourcesSupported != null) {
|
|
434
426
|
contents.ResourcesSupported = __expectBoolean(data.resourcesSupported);
|
|
@@ -447,7 +439,7 @@ export const deserializeAws_restJson1CreateApplicationVersionCommand = async (ou
|
|
|
447
439
|
}
|
|
448
440
|
return contents;
|
|
449
441
|
};
|
|
450
|
-
const
|
|
442
|
+
const de_CreateApplicationVersionCommandError = async (output, context) => {
|
|
451
443
|
const parsedOutput = {
|
|
452
444
|
...output,
|
|
453
445
|
body: await parseErrorBody(output.body, context),
|
|
@@ -456,19 +448,19 @@ const deserializeAws_restJson1CreateApplicationVersionCommandError = async (outp
|
|
|
456
448
|
switch (errorCode) {
|
|
457
449
|
case "BadRequestException":
|
|
458
450
|
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
459
|
-
throw await
|
|
451
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
460
452
|
case "ConflictException":
|
|
461
453
|
case "com.amazonaws.serverlessapplicationrepository#ConflictException":
|
|
462
|
-
throw await
|
|
454
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
463
455
|
case "ForbiddenException":
|
|
464
456
|
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
465
|
-
throw await
|
|
457
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
466
458
|
case "InternalServerErrorException":
|
|
467
459
|
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
468
|
-
throw await
|
|
460
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
469
461
|
case "TooManyRequestsException":
|
|
470
462
|
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
471
|
-
throw await
|
|
463
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
472
464
|
default:
|
|
473
465
|
const parsedBody = parsedOutput.body;
|
|
474
466
|
throwDefaultError({
|
|
@@ -479,9 +471,9 @@ const deserializeAws_restJson1CreateApplicationVersionCommandError = async (outp
|
|
|
479
471
|
});
|
|
480
472
|
}
|
|
481
473
|
};
|
|
482
|
-
export const
|
|
474
|
+
export const de_CreateCloudFormationChangeSetCommand = async (output, context) => {
|
|
483
475
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
484
|
-
return
|
|
476
|
+
return de_CreateCloudFormationChangeSetCommandError(output, context);
|
|
485
477
|
}
|
|
486
478
|
const contents = map({
|
|
487
479
|
$metadata: deserializeMetadata(output),
|
|
@@ -501,7 +493,7 @@ export const deserializeAws_restJson1CreateCloudFormationChangeSetCommand = asyn
|
|
|
501
493
|
}
|
|
502
494
|
return contents;
|
|
503
495
|
};
|
|
504
|
-
const
|
|
496
|
+
const de_CreateCloudFormationChangeSetCommandError = async (output, context) => {
|
|
505
497
|
const parsedOutput = {
|
|
506
498
|
...output,
|
|
507
499
|
body: await parseErrorBody(output.body, context),
|
|
@@ -510,16 +502,16 @@ const deserializeAws_restJson1CreateCloudFormationChangeSetCommandError = async
|
|
|
510
502
|
switch (errorCode) {
|
|
511
503
|
case "BadRequestException":
|
|
512
504
|
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
513
|
-
throw await
|
|
505
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
514
506
|
case "ForbiddenException":
|
|
515
507
|
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
516
|
-
throw await
|
|
508
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
517
509
|
case "InternalServerErrorException":
|
|
518
510
|
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
519
|
-
throw await
|
|
511
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
520
512
|
case "TooManyRequestsException":
|
|
521
513
|
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
522
|
-
throw await
|
|
514
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
523
515
|
default:
|
|
524
516
|
const parsedBody = parsedOutput.body;
|
|
525
517
|
throwDefaultError({
|
|
@@ -530,9 +522,9 @@ const deserializeAws_restJson1CreateCloudFormationChangeSetCommandError = async
|
|
|
530
522
|
});
|
|
531
523
|
}
|
|
532
524
|
};
|
|
533
|
-
export const
|
|
525
|
+
export const de_CreateCloudFormationTemplateCommand = async (output, context) => {
|
|
534
526
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
535
|
-
return
|
|
527
|
+
return de_CreateCloudFormationTemplateCommandError(output, context);
|
|
536
528
|
}
|
|
537
529
|
const contents = map({
|
|
538
530
|
$metadata: deserializeMetadata(output),
|
|
@@ -561,7 +553,7 @@ export const deserializeAws_restJson1CreateCloudFormationTemplateCommand = async
|
|
|
561
553
|
}
|
|
562
554
|
return contents;
|
|
563
555
|
};
|
|
564
|
-
const
|
|
556
|
+
const de_CreateCloudFormationTemplateCommandError = async (output, context) => {
|
|
565
557
|
const parsedOutput = {
|
|
566
558
|
...output,
|
|
567
559
|
body: await parseErrorBody(output.body, context),
|
|
@@ -570,19 +562,19 @@ const deserializeAws_restJson1CreateCloudFormationTemplateCommandError = async (
|
|
|
570
562
|
switch (errorCode) {
|
|
571
563
|
case "BadRequestException":
|
|
572
564
|
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
573
|
-
throw await
|
|
565
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
574
566
|
case "ForbiddenException":
|
|
575
567
|
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
576
|
-
throw await
|
|
568
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
577
569
|
case "InternalServerErrorException":
|
|
578
570
|
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
579
|
-
throw await
|
|
571
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
580
572
|
case "NotFoundException":
|
|
581
573
|
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
582
|
-
throw await
|
|
574
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
583
575
|
case "TooManyRequestsException":
|
|
584
576
|
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
585
|
-
throw await
|
|
577
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
586
578
|
default:
|
|
587
579
|
const parsedBody = parsedOutput.body;
|
|
588
580
|
throwDefaultError({
|
|
@@ -593,9 +585,9 @@ const deserializeAws_restJson1CreateCloudFormationTemplateCommandError = async (
|
|
|
593
585
|
});
|
|
594
586
|
}
|
|
595
587
|
};
|
|
596
|
-
export const
|
|
588
|
+
export const de_DeleteApplicationCommand = async (output, context) => {
|
|
597
589
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
598
|
-
return
|
|
590
|
+
return de_DeleteApplicationCommandError(output, context);
|
|
599
591
|
}
|
|
600
592
|
const contents = map({
|
|
601
593
|
$metadata: deserializeMetadata(output),
|
|
@@ -603,7 +595,7 @@ export const deserializeAws_restJson1DeleteApplicationCommand = async (output, c
|
|
|
603
595
|
await collectBody(output.body, context);
|
|
604
596
|
return contents;
|
|
605
597
|
};
|
|
606
|
-
const
|
|
598
|
+
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
607
599
|
const parsedOutput = {
|
|
608
600
|
...output,
|
|
609
601
|
body: await parseErrorBody(output.body, context),
|
|
@@ -612,22 +604,22 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
612
604
|
switch (errorCode) {
|
|
613
605
|
case "BadRequestException":
|
|
614
606
|
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
615
|
-
throw await
|
|
607
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
616
608
|
case "ConflictException":
|
|
617
609
|
case "com.amazonaws.serverlessapplicationrepository#ConflictException":
|
|
618
|
-
throw await
|
|
610
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
619
611
|
case "ForbiddenException":
|
|
620
612
|
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
621
|
-
throw await
|
|
613
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
622
614
|
case "InternalServerErrorException":
|
|
623
615
|
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
624
|
-
throw await
|
|
616
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
625
617
|
case "NotFoundException":
|
|
626
618
|
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
627
|
-
throw await
|
|
619
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
628
620
|
case "TooManyRequestsException":
|
|
629
621
|
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
630
|
-
throw await
|
|
622
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
631
623
|
default:
|
|
632
624
|
const parsedBody = parsedOutput.body;
|
|
633
625
|
throwDefaultError({
|
|
@@ -638,9 +630,9 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
638
630
|
});
|
|
639
631
|
}
|
|
640
632
|
};
|
|
641
|
-
export const
|
|
633
|
+
export const de_GetApplicationCommand = async (output, context) => {
|
|
642
634
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
643
|
-
return
|
|
635
|
+
return de_GetApplicationCommandError(output, context);
|
|
644
636
|
}
|
|
645
637
|
const contents = map({
|
|
646
638
|
$metadata: deserializeMetadata(output),
|
|
@@ -665,7 +657,7 @@ export const deserializeAws_restJson1GetApplicationCommand = async (output, cont
|
|
|
665
657
|
contents.IsVerifiedAuthor = __expectBoolean(data.isVerifiedAuthor);
|
|
666
658
|
}
|
|
667
659
|
if (data.labels != null) {
|
|
668
|
-
contents.Labels =
|
|
660
|
+
contents.Labels = de___listOf__string(data.labels, context);
|
|
669
661
|
}
|
|
670
662
|
if (data.licenseUrl != null) {
|
|
671
663
|
contents.LicenseUrl = __expectString(data.licenseUrl);
|
|
@@ -683,11 +675,11 @@ export const deserializeAws_restJson1GetApplicationCommand = async (output, cont
|
|
|
683
675
|
contents.VerifiedAuthorUrl = __expectString(data.verifiedAuthorUrl);
|
|
684
676
|
}
|
|
685
677
|
if (data.version != null) {
|
|
686
|
-
contents.Version =
|
|
678
|
+
contents.Version = de_Version(data.version, context);
|
|
687
679
|
}
|
|
688
680
|
return contents;
|
|
689
681
|
};
|
|
690
|
-
const
|
|
682
|
+
const de_GetApplicationCommandError = async (output, context) => {
|
|
691
683
|
const parsedOutput = {
|
|
692
684
|
...output,
|
|
693
685
|
body: await parseErrorBody(output.body, context),
|
|
@@ -696,19 +688,19 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
696
688
|
switch (errorCode) {
|
|
697
689
|
case "BadRequestException":
|
|
698
690
|
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
699
|
-
throw await
|
|
691
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
700
692
|
case "ForbiddenException":
|
|
701
693
|
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
702
|
-
throw await
|
|
694
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
703
695
|
case "InternalServerErrorException":
|
|
704
696
|
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
705
|
-
throw await
|
|
697
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
706
698
|
case "NotFoundException":
|
|
707
699
|
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
708
|
-
throw await
|
|
700
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
709
701
|
case "TooManyRequestsException":
|
|
710
702
|
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
711
|
-
throw await
|
|
703
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
712
704
|
default:
|
|
713
705
|
const parsedBody = parsedOutput.body;
|
|
714
706
|
throwDefaultError({
|
|
@@ -719,20 +711,20 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
719
711
|
});
|
|
720
712
|
}
|
|
721
713
|
};
|
|
722
|
-
export const
|
|
714
|
+
export const de_GetApplicationPolicyCommand = async (output, context) => {
|
|
723
715
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
724
|
-
return
|
|
716
|
+
return de_GetApplicationPolicyCommandError(output, context);
|
|
725
717
|
}
|
|
726
718
|
const contents = map({
|
|
727
719
|
$metadata: deserializeMetadata(output),
|
|
728
720
|
});
|
|
729
721
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
730
722
|
if (data.statements != null) {
|
|
731
|
-
contents.Statements =
|
|
723
|
+
contents.Statements = de___listOfApplicationPolicyStatement(data.statements, context);
|
|
732
724
|
}
|
|
733
725
|
return contents;
|
|
734
726
|
};
|
|
735
|
-
const
|
|
727
|
+
const de_GetApplicationPolicyCommandError = async (output, context) => {
|
|
736
728
|
const parsedOutput = {
|
|
737
729
|
...output,
|
|
738
730
|
body: await parseErrorBody(output.body, context),
|
|
@@ -741,19 +733,19 @@ const deserializeAws_restJson1GetApplicationPolicyCommandError = async (output,
|
|
|
741
733
|
switch (errorCode) {
|
|
742
734
|
case "BadRequestException":
|
|
743
735
|
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
744
|
-
throw await
|
|
736
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
745
737
|
case "ForbiddenException":
|
|
746
738
|
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
747
|
-
throw await
|
|
739
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
748
740
|
case "InternalServerErrorException":
|
|
749
741
|
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
750
|
-
throw await
|
|
742
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
751
743
|
case "NotFoundException":
|
|
752
744
|
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
753
|
-
throw await
|
|
745
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
754
746
|
case "TooManyRequestsException":
|
|
755
747
|
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
756
|
-
throw await
|
|
748
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
757
749
|
default:
|
|
758
750
|
const parsedBody = parsedOutput.body;
|
|
759
751
|
throwDefaultError({
|
|
@@ -764,9 +756,9 @@ const deserializeAws_restJson1GetApplicationPolicyCommandError = async (output,
|
|
|
764
756
|
});
|
|
765
757
|
}
|
|
766
758
|
};
|
|
767
|
-
export const
|
|
759
|
+
export const de_GetCloudFormationTemplateCommand = async (output, context) => {
|
|
768
760
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
769
|
-
return
|
|
761
|
+
return de_GetCloudFormationTemplateCommandError(output, context);
|
|
770
762
|
}
|
|
771
763
|
const contents = map({
|
|
772
764
|
$metadata: deserializeMetadata(output),
|
|
@@ -795,7 +787,7 @@ export const deserializeAws_restJson1GetCloudFormationTemplateCommand = async (o
|
|
|
795
787
|
}
|
|
796
788
|
return contents;
|
|
797
789
|
};
|
|
798
|
-
const
|
|
790
|
+
const de_GetCloudFormationTemplateCommandError = async (output, context) => {
|
|
799
791
|
const parsedOutput = {
|
|
800
792
|
...output,
|
|
801
793
|
body: await parseErrorBody(output.body, context),
|
|
@@ -804,19 +796,19 @@ const deserializeAws_restJson1GetCloudFormationTemplateCommandError = async (out
|
|
|
804
796
|
switch (errorCode) {
|
|
805
797
|
case "BadRequestException":
|
|
806
798
|
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
807
|
-
throw await
|
|
799
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
808
800
|
case "ForbiddenException":
|
|
809
801
|
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
810
|
-
throw await
|
|
802
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
811
803
|
case "InternalServerErrorException":
|
|
812
804
|
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
813
|
-
throw await
|
|
805
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
814
806
|
case "NotFoundException":
|
|
815
807
|
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
816
|
-
throw await
|
|
808
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
817
809
|
case "TooManyRequestsException":
|
|
818
810
|
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
819
|
-
throw await
|
|
811
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
820
812
|
default:
|
|
821
813
|
const parsedBody = parsedOutput.body;
|
|
822
814
|
throwDefaultError({
|
|
@@ -827,23 +819,23 @@ const deserializeAws_restJson1GetCloudFormationTemplateCommandError = async (out
|
|
|
827
819
|
});
|
|
828
820
|
}
|
|
829
821
|
};
|
|
830
|
-
export const
|
|
822
|
+
export const de_ListApplicationDependenciesCommand = async (output, context) => {
|
|
831
823
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
832
|
-
return
|
|
824
|
+
return de_ListApplicationDependenciesCommandError(output, context);
|
|
833
825
|
}
|
|
834
826
|
const contents = map({
|
|
835
827
|
$metadata: deserializeMetadata(output),
|
|
836
828
|
});
|
|
837
829
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
838
830
|
if (data.dependencies != null) {
|
|
839
|
-
contents.Dependencies =
|
|
831
|
+
contents.Dependencies = de___listOfApplicationDependencySummary(data.dependencies, context);
|
|
840
832
|
}
|
|
841
833
|
if (data.nextToken != null) {
|
|
842
834
|
contents.NextToken = __expectString(data.nextToken);
|
|
843
835
|
}
|
|
844
836
|
return contents;
|
|
845
837
|
};
|
|
846
|
-
const
|
|
838
|
+
const de_ListApplicationDependenciesCommandError = async (output, context) => {
|
|
847
839
|
const parsedOutput = {
|
|
848
840
|
...output,
|
|
849
841
|
body: await parseErrorBody(output.body, context),
|
|
@@ -852,19 +844,19 @@ const deserializeAws_restJson1ListApplicationDependenciesCommandError = async (o
|
|
|
852
844
|
switch (errorCode) {
|
|
853
845
|
case "BadRequestException":
|
|
854
846
|
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
855
|
-
throw await
|
|
847
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
856
848
|
case "ForbiddenException":
|
|
857
849
|
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
858
|
-
throw await
|
|
850
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
859
851
|
case "InternalServerErrorException":
|
|
860
852
|
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
861
|
-
throw await
|
|
853
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
862
854
|
case "NotFoundException":
|
|
863
855
|
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
864
|
-
throw await
|
|
856
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
865
857
|
case "TooManyRequestsException":
|
|
866
858
|
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
867
|
-
throw await
|
|
859
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
868
860
|
default:
|
|
869
861
|
const parsedBody = parsedOutput.body;
|
|
870
862
|
throwDefaultError({
|
|
@@ -875,23 +867,23 @@ const deserializeAws_restJson1ListApplicationDependenciesCommandError = async (o
|
|
|
875
867
|
});
|
|
876
868
|
}
|
|
877
869
|
};
|
|
878
|
-
export const
|
|
870
|
+
export const de_ListApplicationsCommand = async (output, context) => {
|
|
879
871
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
880
|
-
return
|
|
872
|
+
return de_ListApplicationsCommandError(output, context);
|
|
881
873
|
}
|
|
882
874
|
const contents = map({
|
|
883
875
|
$metadata: deserializeMetadata(output),
|
|
884
876
|
});
|
|
885
877
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
886
878
|
if (data.applications != null) {
|
|
887
|
-
contents.Applications =
|
|
879
|
+
contents.Applications = de___listOfApplicationSummary(data.applications, context);
|
|
888
880
|
}
|
|
889
881
|
if (data.nextToken != null) {
|
|
890
882
|
contents.NextToken = __expectString(data.nextToken);
|
|
891
883
|
}
|
|
892
884
|
return contents;
|
|
893
885
|
};
|
|
894
|
-
const
|
|
886
|
+
const de_ListApplicationsCommandError = async (output, context) => {
|
|
895
887
|
const parsedOutput = {
|
|
896
888
|
...output,
|
|
897
889
|
body: await parseErrorBody(output.body, context),
|
|
@@ -900,16 +892,16 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
900
892
|
switch (errorCode) {
|
|
901
893
|
case "BadRequestException":
|
|
902
894
|
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
903
|
-
throw await
|
|
895
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
904
896
|
case "ForbiddenException":
|
|
905
897
|
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
906
|
-
throw await
|
|
898
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
907
899
|
case "InternalServerErrorException":
|
|
908
900
|
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
909
|
-
throw await
|
|
901
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
910
902
|
case "NotFoundException":
|
|
911
903
|
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
912
|
-
throw await
|
|
904
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
913
905
|
default:
|
|
914
906
|
const parsedBody = parsedOutput.body;
|
|
915
907
|
throwDefaultError({
|
|
@@ -920,9 +912,9 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
920
912
|
});
|
|
921
913
|
}
|
|
922
914
|
};
|
|
923
|
-
export const
|
|
915
|
+
export const de_ListApplicationVersionsCommand = async (output, context) => {
|
|
924
916
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
925
|
-
return
|
|
917
|
+
return de_ListApplicationVersionsCommandError(output, context);
|
|
926
918
|
}
|
|
927
919
|
const contents = map({
|
|
928
920
|
$metadata: deserializeMetadata(output),
|
|
@@ -932,11 +924,11 @@ export const deserializeAws_restJson1ListApplicationVersionsCommand = async (out
|
|
|
932
924
|
contents.NextToken = __expectString(data.nextToken);
|
|
933
925
|
}
|
|
934
926
|
if (data.versions != null) {
|
|
935
|
-
contents.Versions =
|
|
927
|
+
contents.Versions = de___listOfVersionSummary(data.versions, context);
|
|
936
928
|
}
|
|
937
929
|
return contents;
|
|
938
930
|
};
|
|
939
|
-
const
|
|
931
|
+
const de_ListApplicationVersionsCommandError = async (output, context) => {
|
|
940
932
|
const parsedOutput = {
|
|
941
933
|
...output,
|
|
942
934
|
body: await parseErrorBody(output.body, context),
|
|
@@ -945,19 +937,19 @@ const deserializeAws_restJson1ListApplicationVersionsCommandError = async (outpu
|
|
|
945
937
|
switch (errorCode) {
|
|
946
938
|
case "BadRequestException":
|
|
947
939
|
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
948
|
-
throw await
|
|
940
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
949
941
|
case "ForbiddenException":
|
|
950
942
|
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
951
|
-
throw await
|
|
943
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
952
944
|
case "InternalServerErrorException":
|
|
953
945
|
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
954
|
-
throw await
|
|
946
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
955
947
|
case "NotFoundException":
|
|
956
948
|
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
957
|
-
throw await
|
|
949
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
958
950
|
case "TooManyRequestsException":
|
|
959
951
|
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
960
|
-
throw await
|
|
952
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
961
953
|
default:
|
|
962
954
|
const parsedBody = parsedOutput.body;
|
|
963
955
|
throwDefaultError({
|
|
@@ -968,20 +960,20 @@ const deserializeAws_restJson1ListApplicationVersionsCommandError = async (outpu
|
|
|
968
960
|
});
|
|
969
961
|
}
|
|
970
962
|
};
|
|
971
|
-
export const
|
|
963
|
+
export const de_PutApplicationPolicyCommand = async (output, context) => {
|
|
972
964
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
973
|
-
return
|
|
965
|
+
return de_PutApplicationPolicyCommandError(output, context);
|
|
974
966
|
}
|
|
975
967
|
const contents = map({
|
|
976
968
|
$metadata: deserializeMetadata(output),
|
|
977
969
|
});
|
|
978
970
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
979
971
|
if (data.statements != null) {
|
|
980
|
-
contents.Statements =
|
|
972
|
+
contents.Statements = de___listOfApplicationPolicyStatement(data.statements, context);
|
|
981
973
|
}
|
|
982
974
|
return contents;
|
|
983
975
|
};
|
|
984
|
-
const
|
|
976
|
+
const de_PutApplicationPolicyCommandError = async (output, context) => {
|
|
985
977
|
const parsedOutput = {
|
|
986
978
|
...output,
|
|
987
979
|
body: await parseErrorBody(output.body, context),
|
|
@@ -990,19 +982,19 @@ const deserializeAws_restJson1PutApplicationPolicyCommandError = async (output,
|
|
|
990
982
|
switch (errorCode) {
|
|
991
983
|
case "BadRequestException":
|
|
992
984
|
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
993
|
-
throw await
|
|
985
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
994
986
|
case "ForbiddenException":
|
|
995
987
|
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
996
|
-
throw await
|
|
988
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
997
989
|
case "InternalServerErrorException":
|
|
998
990
|
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
999
|
-
throw await
|
|
991
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1000
992
|
case "NotFoundException":
|
|
1001
993
|
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
1002
|
-
throw await
|
|
994
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1003
995
|
case "TooManyRequestsException":
|
|
1004
996
|
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
1005
|
-
throw await
|
|
997
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1006
998
|
default:
|
|
1007
999
|
const parsedBody = parsedOutput.body;
|
|
1008
1000
|
throwDefaultError({
|
|
@@ -1013,9 +1005,9 @@ const deserializeAws_restJson1PutApplicationPolicyCommandError = async (output,
|
|
|
1013
1005
|
});
|
|
1014
1006
|
}
|
|
1015
1007
|
};
|
|
1016
|
-
export const
|
|
1008
|
+
export const de_UnshareApplicationCommand = async (output, context) => {
|
|
1017
1009
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1018
|
-
return
|
|
1010
|
+
return de_UnshareApplicationCommandError(output, context);
|
|
1019
1011
|
}
|
|
1020
1012
|
const contents = map({
|
|
1021
1013
|
$metadata: deserializeMetadata(output),
|
|
@@ -1023,7 +1015,7 @@ export const deserializeAws_restJson1UnshareApplicationCommand = async (output,
|
|
|
1023
1015
|
await collectBody(output.body, context);
|
|
1024
1016
|
return contents;
|
|
1025
1017
|
};
|
|
1026
|
-
const
|
|
1018
|
+
const de_UnshareApplicationCommandError = async (output, context) => {
|
|
1027
1019
|
const parsedOutput = {
|
|
1028
1020
|
...output,
|
|
1029
1021
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1032,19 +1024,19 @@ const deserializeAws_restJson1UnshareApplicationCommandError = async (output, co
|
|
|
1032
1024
|
switch (errorCode) {
|
|
1033
1025
|
case "BadRequestException":
|
|
1034
1026
|
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
1035
|
-
throw await
|
|
1027
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1036
1028
|
case "ForbiddenException":
|
|
1037
1029
|
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
1038
|
-
throw await
|
|
1030
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1039
1031
|
case "InternalServerErrorException":
|
|
1040
1032
|
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
1041
|
-
throw await
|
|
1033
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1042
1034
|
case "NotFoundException":
|
|
1043
1035
|
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
1044
|
-
throw await
|
|
1036
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1045
1037
|
case "TooManyRequestsException":
|
|
1046
1038
|
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
1047
|
-
throw await
|
|
1039
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1048
1040
|
default:
|
|
1049
1041
|
const parsedBody = parsedOutput.body;
|
|
1050
1042
|
throwDefaultError({
|
|
@@ -1055,9 +1047,9 @@ const deserializeAws_restJson1UnshareApplicationCommandError = async (output, co
|
|
|
1055
1047
|
});
|
|
1056
1048
|
}
|
|
1057
1049
|
};
|
|
1058
|
-
export const
|
|
1050
|
+
export const de_UpdateApplicationCommand = async (output, context) => {
|
|
1059
1051
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1060
|
-
return
|
|
1052
|
+
return de_UpdateApplicationCommandError(output, context);
|
|
1061
1053
|
}
|
|
1062
1054
|
const contents = map({
|
|
1063
1055
|
$metadata: deserializeMetadata(output),
|
|
@@ -1082,7 +1074,7 @@ export const deserializeAws_restJson1UpdateApplicationCommand = async (output, c
|
|
|
1082
1074
|
contents.IsVerifiedAuthor = __expectBoolean(data.isVerifiedAuthor);
|
|
1083
1075
|
}
|
|
1084
1076
|
if (data.labels != null) {
|
|
1085
|
-
contents.Labels =
|
|
1077
|
+
contents.Labels = de___listOf__string(data.labels, context);
|
|
1086
1078
|
}
|
|
1087
1079
|
if (data.licenseUrl != null) {
|
|
1088
1080
|
contents.LicenseUrl = __expectString(data.licenseUrl);
|
|
@@ -1100,11 +1092,11 @@ export const deserializeAws_restJson1UpdateApplicationCommand = async (output, c
|
|
|
1100
1092
|
contents.VerifiedAuthorUrl = __expectString(data.verifiedAuthorUrl);
|
|
1101
1093
|
}
|
|
1102
1094
|
if (data.version != null) {
|
|
1103
|
-
contents.Version =
|
|
1095
|
+
contents.Version = de_Version(data.version, context);
|
|
1104
1096
|
}
|
|
1105
1097
|
return contents;
|
|
1106
1098
|
};
|
|
1107
|
-
const
|
|
1099
|
+
const de_UpdateApplicationCommandError = async (output, context) => {
|
|
1108
1100
|
const parsedOutput = {
|
|
1109
1101
|
...output,
|
|
1110
1102
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1113,22 +1105,22 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
1113
1105
|
switch (errorCode) {
|
|
1114
1106
|
case "BadRequestException":
|
|
1115
1107
|
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
1116
|
-
throw await
|
|
1108
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1117
1109
|
case "ConflictException":
|
|
1118
1110
|
case "com.amazonaws.serverlessapplicationrepository#ConflictException":
|
|
1119
|
-
throw await
|
|
1111
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1120
1112
|
case "ForbiddenException":
|
|
1121
1113
|
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
1122
|
-
throw await
|
|
1114
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1123
1115
|
case "InternalServerErrorException":
|
|
1124
1116
|
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
1125
|
-
throw await
|
|
1117
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1126
1118
|
case "NotFoundException":
|
|
1127
1119
|
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
1128
|
-
throw await
|
|
1120
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1129
1121
|
case "TooManyRequestsException":
|
|
1130
1122
|
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
1131
|
-
throw await
|
|
1123
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1132
1124
|
default:
|
|
1133
1125
|
const parsedBody = parsedOutput.body;
|
|
1134
1126
|
throwDefaultError({
|
|
@@ -1140,7 +1132,7 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
1140
1132
|
}
|
|
1141
1133
|
};
|
|
1142
1134
|
const map = __map;
|
|
1143
|
-
const
|
|
1135
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
1144
1136
|
const contents = map({});
|
|
1145
1137
|
const data = parsedOutput.body;
|
|
1146
1138
|
if (data.errorCode != null) {
|
|
@@ -1155,7 +1147,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
1155
1147
|
});
|
|
1156
1148
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1157
1149
|
};
|
|
1158
|
-
const
|
|
1150
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1159
1151
|
const contents = map({});
|
|
1160
1152
|
const data = parsedOutput.body;
|
|
1161
1153
|
if (data.errorCode != null) {
|
|
@@ -1170,7 +1162,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
1170
1162
|
});
|
|
1171
1163
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1172
1164
|
};
|
|
1173
|
-
const
|
|
1165
|
+
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
1174
1166
|
const contents = map({});
|
|
1175
1167
|
const data = parsedOutput.body;
|
|
1176
1168
|
if (data.errorCode != null) {
|
|
@@ -1185,7 +1177,7 @@ const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput,
|
|
|
1185
1177
|
});
|
|
1186
1178
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1187
1179
|
};
|
|
1188
|
-
const
|
|
1180
|
+
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
1189
1181
|
const contents = map({});
|
|
1190
1182
|
const data = parsedOutput.body;
|
|
1191
1183
|
if (data.errorCode != null) {
|
|
@@ -1200,7 +1192,7 @@ const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (pars
|
|
|
1200
1192
|
});
|
|
1201
1193
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1202
1194
|
};
|
|
1203
|
-
const
|
|
1195
|
+
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1204
1196
|
const contents = map({});
|
|
1205
1197
|
const data = parsedOutput.body;
|
|
1206
1198
|
if (data.errorCode != null) {
|
|
@@ -1215,7 +1207,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
|
|
|
1215
1207
|
});
|
|
1216
1208
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1217
1209
|
};
|
|
1218
|
-
const
|
|
1210
|
+
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
1219
1211
|
const contents = map({});
|
|
1220
1212
|
const data = parsedOutput.body;
|
|
1221
1213
|
if (data.errorCode != null) {
|
|
@@ -1230,78 +1222,76 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
|
|
|
1230
1222
|
});
|
|
1231
1223
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1232
1224
|
};
|
|
1233
|
-
const
|
|
1225
|
+
const se___listOf__string = (input, context) => {
|
|
1234
1226
|
return input
|
|
1235
1227
|
.filter((e) => e != null)
|
|
1236
1228
|
.map((entry) => {
|
|
1237
1229
|
return entry;
|
|
1238
1230
|
});
|
|
1239
1231
|
};
|
|
1240
|
-
const
|
|
1232
|
+
const se___listOfApplicationPolicyStatement = (input, context) => {
|
|
1241
1233
|
return input
|
|
1242
1234
|
.filter((e) => e != null)
|
|
1243
1235
|
.map((entry) => {
|
|
1244
|
-
return
|
|
1236
|
+
return se_ApplicationPolicyStatement(entry, context);
|
|
1245
1237
|
});
|
|
1246
1238
|
};
|
|
1247
|
-
const
|
|
1239
|
+
const se___listOfParameterValue = (input, context) => {
|
|
1248
1240
|
return input
|
|
1249
1241
|
.filter((e) => e != null)
|
|
1250
1242
|
.map((entry) => {
|
|
1251
|
-
return
|
|
1243
|
+
return se_ParameterValue(entry, context);
|
|
1252
1244
|
});
|
|
1253
1245
|
};
|
|
1254
|
-
const
|
|
1246
|
+
const se___listOfRollbackTrigger = (input, context) => {
|
|
1255
1247
|
return input
|
|
1256
1248
|
.filter((e) => e != null)
|
|
1257
1249
|
.map((entry) => {
|
|
1258
|
-
return
|
|
1250
|
+
return se_RollbackTrigger(entry, context);
|
|
1259
1251
|
});
|
|
1260
1252
|
};
|
|
1261
|
-
const
|
|
1253
|
+
const se___listOfTag = (input, context) => {
|
|
1262
1254
|
return input
|
|
1263
1255
|
.filter((e) => e != null)
|
|
1264
1256
|
.map((entry) => {
|
|
1265
|
-
return
|
|
1257
|
+
return se_Tag(entry, context);
|
|
1266
1258
|
});
|
|
1267
1259
|
};
|
|
1268
|
-
const
|
|
1260
|
+
const se_ApplicationPolicyStatement = (input, context) => {
|
|
1269
1261
|
return {
|
|
1270
|
-
...(input.Actions != null && { actions:
|
|
1271
|
-
...(input.PrincipalOrgIDs != null && {
|
|
1272
|
-
|
|
1273
|
-
}),
|
|
1274
|
-
...(input.Principals != null && { principals: serializeAws_restJson1__listOf__string(input.Principals, context) }),
|
|
1262
|
+
...(input.Actions != null && { actions: se___listOf__string(input.Actions, context) }),
|
|
1263
|
+
...(input.PrincipalOrgIDs != null && { principalOrgIDs: se___listOf__string(input.PrincipalOrgIDs, context) }),
|
|
1264
|
+
...(input.Principals != null && { principals: se___listOf__string(input.Principals, context) }),
|
|
1275
1265
|
...(input.StatementId != null && { statementId: input.StatementId }),
|
|
1276
1266
|
};
|
|
1277
1267
|
};
|
|
1278
|
-
const
|
|
1268
|
+
const se_ParameterValue = (input, context) => {
|
|
1279
1269
|
return {
|
|
1280
1270
|
...(input.Name != null && { name: input.Name }),
|
|
1281
1271
|
...(input.Value != null && { value: input.Value }),
|
|
1282
1272
|
};
|
|
1283
1273
|
};
|
|
1284
|
-
const
|
|
1274
|
+
const se_RollbackConfiguration = (input, context) => {
|
|
1285
1275
|
return {
|
|
1286
1276
|
...(input.MonitoringTimeInMinutes != null && { monitoringTimeInMinutes: input.MonitoringTimeInMinutes }),
|
|
1287
1277
|
...(input.RollbackTriggers != null && {
|
|
1288
|
-
rollbackTriggers:
|
|
1278
|
+
rollbackTriggers: se___listOfRollbackTrigger(input.RollbackTriggers, context),
|
|
1289
1279
|
}),
|
|
1290
1280
|
};
|
|
1291
1281
|
};
|
|
1292
|
-
const
|
|
1282
|
+
const se_RollbackTrigger = (input, context) => {
|
|
1293
1283
|
return {
|
|
1294
1284
|
...(input.Arn != null && { arn: input.Arn }),
|
|
1295
1285
|
...(input.Type != null && { type: input.Type }),
|
|
1296
1286
|
};
|
|
1297
1287
|
};
|
|
1298
|
-
const
|
|
1288
|
+
const se_Tag = (input, context) => {
|
|
1299
1289
|
return {
|
|
1300
1290
|
...(input.Key != null && { key: input.Key }),
|
|
1301
1291
|
...(input.Value != null && { value: input.Value }),
|
|
1302
1292
|
};
|
|
1303
1293
|
};
|
|
1304
|
-
const
|
|
1294
|
+
const de___listOf__string = (output, context) => {
|
|
1305
1295
|
const retVal = (output || [])
|
|
1306
1296
|
.filter((e) => e != null)
|
|
1307
1297
|
.map((entry) => {
|
|
@@ -1312,40 +1302,40 @@ const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
|
1312
1302
|
});
|
|
1313
1303
|
return retVal;
|
|
1314
1304
|
};
|
|
1315
|
-
const
|
|
1305
|
+
const de___listOfApplicationDependencySummary = (output, context) => {
|
|
1316
1306
|
const retVal = (output || [])
|
|
1317
1307
|
.filter((e) => e != null)
|
|
1318
1308
|
.map((entry) => {
|
|
1319
1309
|
if (entry === null) {
|
|
1320
1310
|
return null;
|
|
1321
1311
|
}
|
|
1322
|
-
return
|
|
1312
|
+
return de_ApplicationDependencySummary(entry, context);
|
|
1323
1313
|
});
|
|
1324
1314
|
return retVal;
|
|
1325
1315
|
};
|
|
1326
|
-
const
|
|
1316
|
+
const de___listOfApplicationPolicyStatement = (output, context) => {
|
|
1327
1317
|
const retVal = (output || [])
|
|
1328
1318
|
.filter((e) => e != null)
|
|
1329
1319
|
.map((entry) => {
|
|
1330
1320
|
if (entry === null) {
|
|
1331
1321
|
return null;
|
|
1332
1322
|
}
|
|
1333
|
-
return
|
|
1323
|
+
return de_ApplicationPolicyStatement(entry, context);
|
|
1334
1324
|
});
|
|
1335
1325
|
return retVal;
|
|
1336
1326
|
};
|
|
1337
|
-
const
|
|
1327
|
+
const de___listOfApplicationSummary = (output, context) => {
|
|
1338
1328
|
const retVal = (output || [])
|
|
1339
1329
|
.filter((e) => e != null)
|
|
1340
1330
|
.map((entry) => {
|
|
1341
1331
|
if (entry === null) {
|
|
1342
1332
|
return null;
|
|
1343
1333
|
}
|
|
1344
|
-
return
|
|
1334
|
+
return de_ApplicationSummary(entry, context);
|
|
1345
1335
|
});
|
|
1346
1336
|
return retVal;
|
|
1347
1337
|
};
|
|
1348
|
-
const
|
|
1338
|
+
const de___listOfCapability = (output, context) => {
|
|
1349
1339
|
const retVal = (output || [])
|
|
1350
1340
|
.filter((e) => e != null)
|
|
1351
1341
|
.map((entry) => {
|
|
@@ -1356,62 +1346,58 @@ const deserializeAws_restJson1__listOfCapability = (output, context) => {
|
|
|
1356
1346
|
});
|
|
1357
1347
|
return retVal;
|
|
1358
1348
|
};
|
|
1359
|
-
const
|
|
1349
|
+
const de___listOfParameterDefinition = (output, context) => {
|
|
1360
1350
|
const retVal = (output || [])
|
|
1361
1351
|
.filter((e) => e != null)
|
|
1362
1352
|
.map((entry) => {
|
|
1363
1353
|
if (entry === null) {
|
|
1364
1354
|
return null;
|
|
1365
1355
|
}
|
|
1366
|
-
return
|
|
1356
|
+
return de_ParameterDefinition(entry, context);
|
|
1367
1357
|
});
|
|
1368
1358
|
return retVal;
|
|
1369
1359
|
};
|
|
1370
|
-
const
|
|
1360
|
+
const de___listOfVersionSummary = (output, context) => {
|
|
1371
1361
|
const retVal = (output || [])
|
|
1372
1362
|
.filter((e) => e != null)
|
|
1373
1363
|
.map((entry) => {
|
|
1374
1364
|
if (entry === null) {
|
|
1375
1365
|
return null;
|
|
1376
1366
|
}
|
|
1377
|
-
return
|
|
1367
|
+
return de_VersionSummary(entry, context);
|
|
1378
1368
|
});
|
|
1379
1369
|
return retVal;
|
|
1380
1370
|
};
|
|
1381
|
-
const
|
|
1371
|
+
const de_ApplicationDependencySummary = (output, context) => {
|
|
1382
1372
|
return {
|
|
1383
1373
|
ApplicationId: __expectString(output.applicationId),
|
|
1384
1374
|
SemanticVersion: __expectString(output.semanticVersion),
|
|
1385
1375
|
};
|
|
1386
1376
|
};
|
|
1387
|
-
const
|
|
1377
|
+
const de_ApplicationPolicyStatement = (output, context) => {
|
|
1388
1378
|
return {
|
|
1389
|
-
Actions: output.actions != null ?
|
|
1390
|
-
PrincipalOrgIDs: output.principalOrgIDs != null
|
|
1391
|
-
|
|
1392
|
-
: undefined,
|
|
1393
|
-
Principals: output.principals != null ? deserializeAws_restJson1__listOf__string(output.principals, context) : undefined,
|
|
1379
|
+
Actions: output.actions != null ? de___listOf__string(output.actions, context) : undefined,
|
|
1380
|
+
PrincipalOrgIDs: output.principalOrgIDs != null ? de___listOf__string(output.principalOrgIDs, context) : undefined,
|
|
1381
|
+
Principals: output.principals != null ? de___listOf__string(output.principals, context) : undefined,
|
|
1394
1382
|
StatementId: __expectString(output.statementId),
|
|
1395
1383
|
};
|
|
1396
1384
|
};
|
|
1397
|
-
const
|
|
1385
|
+
const de_ApplicationSummary = (output, context) => {
|
|
1398
1386
|
return {
|
|
1399
1387
|
ApplicationId: __expectString(output.applicationId),
|
|
1400
1388
|
Author: __expectString(output.author),
|
|
1401
1389
|
CreationTime: __expectString(output.creationTime),
|
|
1402
1390
|
Description: __expectString(output.description),
|
|
1403
1391
|
HomePageUrl: __expectString(output.homePageUrl),
|
|
1404
|
-
Labels: output.labels != null ?
|
|
1392
|
+
Labels: output.labels != null ? de___listOf__string(output.labels, context) : undefined,
|
|
1405
1393
|
Name: __expectString(output.name),
|
|
1406
1394
|
SpdxLicenseId: __expectString(output.spdxLicenseId),
|
|
1407
1395
|
};
|
|
1408
1396
|
};
|
|
1409
|
-
const
|
|
1397
|
+
const de_ParameterDefinition = (output, context) => {
|
|
1410
1398
|
return {
|
|
1411
1399
|
AllowedPattern: __expectString(output.allowedPattern),
|
|
1412
|
-
AllowedValues: output.allowedValues != null
|
|
1413
|
-
? deserializeAws_restJson1__listOf__string(output.allowedValues, context)
|
|
1414
|
-
: undefined,
|
|
1400
|
+
AllowedValues: output.allowedValues != null ? de___listOf__string(output.allowedValues, context) : undefined,
|
|
1415
1401
|
ConstraintDescription: __expectString(output.constraintDescription),
|
|
1416
1402
|
DefaultValue: __expectString(output.defaultValue),
|
|
1417
1403
|
Description: __expectString(output.description),
|
|
@@ -1421,22 +1407,18 @@ const deserializeAws_restJson1ParameterDefinition = (output, context) => {
|
|
|
1421
1407
|
MinValue: __expectInt32(output.minValue),
|
|
1422
1408
|
Name: __expectString(output.name),
|
|
1423
1409
|
NoEcho: __expectBoolean(output.noEcho),
|
|
1424
|
-
ReferencedByResources: output.referencedByResources != null
|
|
1425
|
-
? deserializeAws_restJson1__listOf__string(output.referencedByResources, context)
|
|
1426
|
-
: undefined,
|
|
1410
|
+
ReferencedByResources: output.referencedByResources != null ? de___listOf__string(output.referencedByResources, context) : undefined,
|
|
1427
1411
|
Type: __expectString(output.type),
|
|
1428
1412
|
};
|
|
1429
1413
|
};
|
|
1430
|
-
const
|
|
1414
|
+
const de_Version = (output, context) => {
|
|
1431
1415
|
return {
|
|
1432
1416
|
ApplicationId: __expectString(output.applicationId),
|
|
1433
1417
|
CreationTime: __expectString(output.creationTime),
|
|
1434
1418
|
ParameterDefinitions: output.parameterDefinitions != null
|
|
1435
|
-
?
|
|
1436
|
-
: undefined,
|
|
1437
|
-
RequiredCapabilities: output.requiredCapabilities != null
|
|
1438
|
-
? deserializeAws_restJson1__listOfCapability(output.requiredCapabilities, context)
|
|
1419
|
+
? de___listOfParameterDefinition(output.parameterDefinitions, context)
|
|
1439
1420
|
: undefined,
|
|
1421
|
+
RequiredCapabilities: output.requiredCapabilities != null ? de___listOfCapability(output.requiredCapabilities, context) : undefined,
|
|
1440
1422
|
ResourcesSupported: __expectBoolean(output.resourcesSupported),
|
|
1441
1423
|
SemanticVersion: __expectString(output.semanticVersion),
|
|
1442
1424
|
SourceCodeArchiveUrl: __expectString(output.sourceCodeArchiveUrl),
|
|
@@ -1444,7 +1426,7 @@ const deserializeAws_restJson1Version = (output, context) => {
|
|
|
1444
1426
|
TemplateUrl: __expectString(output.templateUrl),
|
|
1445
1427
|
};
|
|
1446
1428
|
};
|
|
1447
|
-
const
|
|
1429
|
+
const de_VersionSummary = (output, context) => {
|
|
1448
1430
|
return {
|
|
1449
1431
|
ApplicationId: __expectString(output.applicationId),
|
|
1450
1432
|
CreationTime: __expectString(output.creationTime),
|