@aws-sdk/client-imagebuilder 3.450.0 → 3.453.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/README.md +80 -0
- package/dist-cjs/Imagebuilder.js +20 -0
- package/dist-cjs/commands/CancelLifecycleExecutionCommand.js +51 -0
- package/dist-cjs/commands/CreateLifecyclePolicyCommand.js +51 -0
- package/dist-cjs/commands/DeleteLifecyclePolicyCommand.js +51 -0
- package/dist-cjs/commands/GetLifecycleExecutionCommand.js +51 -0
- package/dist-cjs/commands/GetLifecyclePolicyCommand.js +51 -0
- package/dist-cjs/commands/ListLifecycleExecutionResourcesCommand.js +51 -0
- package/dist-cjs/commands/ListLifecycleExecutionsCommand.js +51 -0
- package/dist-cjs/commands/ListLifecyclePoliciesCommand.js +51 -0
- package/dist-cjs/commands/StartResourceStateUpdateCommand.js +51 -0
- package/dist-cjs/commands/UpdateLifecyclePolicyCommand.js +51 -0
- package/dist-cjs/commands/index.js +10 -0
- package/dist-cjs/models/models_0.js +50 -1
- package/dist-cjs/pagination/ListLifecycleExecutionResourcesPaginator.js +29 -0
- package/dist-cjs/pagination/ListLifecycleExecutionsPaginator.js +29 -0
- package/dist-cjs/pagination/ListLifecyclePoliciesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_restJson1.js +907 -15
- package/dist-es/Imagebuilder.js +20 -0
- package/dist-es/commands/CancelLifecycleExecutionCommand.js +47 -0
- package/dist-es/commands/CreateLifecyclePolicyCommand.js +47 -0
- package/dist-es/commands/DeleteLifecyclePolicyCommand.js +47 -0
- package/dist-es/commands/GetLifecycleExecutionCommand.js +47 -0
- package/dist-es/commands/GetLifecyclePolicyCommand.js +47 -0
- package/dist-es/commands/ListLifecycleExecutionResourcesCommand.js +47 -0
- package/dist-es/commands/ListLifecycleExecutionsCommand.js +47 -0
- package/dist-es/commands/ListLifecyclePoliciesCommand.js +47 -0
- package/dist-es/commands/StartResourceStateUpdateCommand.js +47 -0
- package/dist-es/commands/UpdateLifecyclePolicyCommand.js +47 -0
- package/dist-es/commands/index.js +10 -0
- package/dist-es/models/models_0.js +49 -0
- package/dist-es/pagination/ListLifecycleExecutionResourcesPaginator.js +25 -0
- package/dist-es/pagination/ListLifecycleExecutionsPaginator.js +25 -0
- package/dist-es/pagination/ListLifecyclePoliciesPaginator.js +25 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +885 -13
- package/dist-types/Imagebuilder.d.ts +70 -0
- package/dist-types/ImagebuilderClient.d.ts +12 -2
- package/dist-types/commands/CancelLifecycleExecutionCommand.d.ts +103 -0
- package/dist-types/commands/CreateLifecyclePolicyCommand.d.ts +165 -0
- package/dist-types/commands/DeleteLifecyclePolicyCommand.d.ts +98 -0
- package/dist-types/commands/GetImageCommand.d.ts +4 -2
- package/dist-types/commands/GetLifecycleExecutionCommand.d.ts +106 -0
- package/dist-types/commands/GetLifecyclePolicyCommand.d.ts +153 -0
- package/dist-types/commands/ListImageBuildVersionsCommand.d.ts +4 -2
- package/dist-types/commands/ListImagePipelineImagesCommand.d.ts +4 -2
- package/dist-types/commands/ListLifecycleExecutionResourcesCommand.d.ts +132 -0
- package/dist-types/commands/ListLifecycleExecutionsCommand.d.ts +114 -0
- package/dist-types/commands/ListLifecyclePoliciesCommand.d.ts +122 -0
- package/dist-types/commands/StartResourceStateUpdateCommand.d.ts +136 -0
- package/dist-types/commands/UpdateLifecyclePolicyCommand.d.ts +159 -0
- package/dist-types/commands/index.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +1224 -114
- package/dist-types/pagination/ListLifecycleExecutionResourcesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListLifecycleExecutionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListLifecyclePoliciesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
- package/dist-types/ts3.4/Imagebuilder.d.ts +170 -0
- package/dist-types/ts3.4/ImagebuilderClient.d.ts +62 -2
- package/dist-types/ts3.4/commands/CancelLifecycleExecutionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateLifecyclePolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteLifecyclePolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetLifecycleExecutionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetLifecyclePolicyCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListLifecycleExecutionResourcesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListLifecycleExecutionsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListLifecyclePoliciesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartResourceStateUpdateCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateLifecyclePolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +10 -0
- package/dist-types/ts3.4/models/models_0.d.ts +283 -0
- package/dist-types/ts3.4/pagination/ListLifecycleExecutionResourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListLifecycleExecutionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListLifecyclePoliciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +120 -0
- package/package.json +35 -35
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
|
|
2
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { ImagebuilderServiceException as __BaseException } from "../models/ImagebuilderServiceException";
|
|
5
5
|
import { CallRateLimitExceededException, ClientException, ForbiddenException, IdempotentParameterMismatchException, InvalidPaginationTokenException, InvalidParameterCombinationException, InvalidParameterException, InvalidParameterValueException, InvalidRequestException, InvalidVersionNumberException, ResourceAlreadyExistsException, ResourceDependencyException, ResourceInUseException, ResourceNotFoundException, ServiceException, ServiceQuotaExceededException, ServiceUnavailableException, } from "../models/models_0";
|
|
@@ -24,6 +24,27 @@ export const se_CancelImageCreationCommand = async (input, context) => {
|
|
|
24
24
|
body,
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
|
+
export const se_CancelLifecycleExecutionCommand = async (input, context) => {
|
|
28
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
29
|
+
const headers = {
|
|
30
|
+
"content-type": "application/json",
|
|
31
|
+
};
|
|
32
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CancelLifecycleExecution";
|
|
33
|
+
let body;
|
|
34
|
+
body = JSON.stringify(take(input, {
|
|
35
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
36
|
+
lifecycleExecutionId: [],
|
|
37
|
+
}));
|
|
38
|
+
return new __HttpRequest({
|
|
39
|
+
protocol,
|
|
40
|
+
hostname,
|
|
41
|
+
port,
|
|
42
|
+
method: "PUT",
|
|
43
|
+
headers,
|
|
44
|
+
path: resolvedPath,
|
|
45
|
+
body,
|
|
46
|
+
});
|
|
47
|
+
};
|
|
27
48
|
export const se_CreateComponentCommand = async (input, context) => {
|
|
28
49
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
29
50
|
const headers = {
|
|
@@ -235,6 +256,34 @@ export const se_CreateInfrastructureConfigurationCommand = async (input, context
|
|
|
235
256
|
body,
|
|
236
257
|
});
|
|
237
258
|
};
|
|
259
|
+
export const se_CreateLifecyclePolicyCommand = async (input, context) => {
|
|
260
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
261
|
+
const headers = {
|
|
262
|
+
"content-type": "application/json",
|
|
263
|
+
};
|
|
264
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateLifecyclePolicy";
|
|
265
|
+
let body;
|
|
266
|
+
body = JSON.stringify(take(input, {
|
|
267
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
268
|
+
description: [],
|
|
269
|
+
executionRole: [],
|
|
270
|
+
name: [],
|
|
271
|
+
policyDetails: (_) => _json(_),
|
|
272
|
+
resourceSelection: (_) => _json(_),
|
|
273
|
+
resourceType: [],
|
|
274
|
+
status: [],
|
|
275
|
+
tags: (_) => _json(_),
|
|
276
|
+
}));
|
|
277
|
+
return new __HttpRequest({
|
|
278
|
+
protocol,
|
|
279
|
+
hostname,
|
|
280
|
+
port,
|
|
281
|
+
method: "PUT",
|
|
282
|
+
headers,
|
|
283
|
+
path: resolvedPath,
|
|
284
|
+
body,
|
|
285
|
+
});
|
|
286
|
+
};
|
|
238
287
|
export const se_DeleteComponentCommand = async (input, context) => {
|
|
239
288
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
240
289
|
const headers = {};
|
|
@@ -374,6 +423,25 @@ export const se_DeleteInfrastructureConfigurationCommand = async (input, context
|
|
|
374
423
|
body,
|
|
375
424
|
});
|
|
376
425
|
};
|
|
426
|
+
export const se_DeleteLifecyclePolicyCommand = async (input, context) => {
|
|
427
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
428
|
+
const headers = {};
|
|
429
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteLifecyclePolicy";
|
|
430
|
+
const query = map({
|
|
431
|
+
lifecyclePolicyArn: [, __expectNonNull(input.lifecyclePolicyArn, `lifecyclePolicyArn`)],
|
|
432
|
+
});
|
|
433
|
+
let body;
|
|
434
|
+
return new __HttpRequest({
|
|
435
|
+
protocol,
|
|
436
|
+
hostname,
|
|
437
|
+
port,
|
|
438
|
+
method: "DELETE",
|
|
439
|
+
headers,
|
|
440
|
+
path: resolvedPath,
|
|
441
|
+
query,
|
|
442
|
+
body,
|
|
443
|
+
});
|
|
444
|
+
};
|
|
377
445
|
export const se_GetComponentCommand = async (input, context) => {
|
|
378
446
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
379
447
|
const headers = {};
|
|
@@ -589,6 +657,44 @@ export const se_GetInfrastructureConfigurationCommand = async (input, context) =
|
|
|
589
657
|
body,
|
|
590
658
|
});
|
|
591
659
|
};
|
|
660
|
+
export const se_GetLifecycleExecutionCommand = async (input, context) => {
|
|
661
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
662
|
+
const headers = {};
|
|
663
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetLifecycleExecution";
|
|
664
|
+
const query = map({
|
|
665
|
+
lifecycleExecutionId: [, __expectNonNull(input.lifecycleExecutionId, `lifecycleExecutionId`)],
|
|
666
|
+
});
|
|
667
|
+
let body;
|
|
668
|
+
return new __HttpRequest({
|
|
669
|
+
protocol,
|
|
670
|
+
hostname,
|
|
671
|
+
port,
|
|
672
|
+
method: "GET",
|
|
673
|
+
headers,
|
|
674
|
+
path: resolvedPath,
|
|
675
|
+
query,
|
|
676
|
+
body,
|
|
677
|
+
});
|
|
678
|
+
};
|
|
679
|
+
export const se_GetLifecyclePolicyCommand = async (input, context) => {
|
|
680
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
681
|
+
const headers = {};
|
|
682
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetLifecyclePolicy";
|
|
683
|
+
const query = map({
|
|
684
|
+
lifecyclePolicyArn: [, __expectNonNull(input.lifecyclePolicyArn, `lifecyclePolicyArn`)],
|
|
685
|
+
});
|
|
686
|
+
let body;
|
|
687
|
+
return new __HttpRequest({
|
|
688
|
+
protocol,
|
|
689
|
+
hostname,
|
|
690
|
+
port,
|
|
691
|
+
method: "GET",
|
|
692
|
+
headers,
|
|
693
|
+
path: resolvedPath,
|
|
694
|
+
query,
|
|
695
|
+
body,
|
|
696
|
+
});
|
|
697
|
+
};
|
|
592
698
|
export const se_GetWorkflowExecutionCommand = async (input, context) => {
|
|
593
699
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
594
700
|
const headers = {};
|
|
@@ -979,6 +1085,73 @@ export const se_ListInfrastructureConfigurationsCommand = async (input, context)
|
|
|
979
1085
|
body,
|
|
980
1086
|
});
|
|
981
1087
|
};
|
|
1088
|
+
export const se_ListLifecycleExecutionResourcesCommand = async (input, context) => {
|
|
1089
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1090
|
+
const headers = {
|
|
1091
|
+
"content-type": "application/json",
|
|
1092
|
+
};
|
|
1093
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListLifecycleExecutionResources";
|
|
1094
|
+
let body;
|
|
1095
|
+
body = JSON.stringify(take(input, {
|
|
1096
|
+
lifecycleExecutionId: [],
|
|
1097
|
+
maxResults: [],
|
|
1098
|
+
nextToken: [],
|
|
1099
|
+
parentResourceId: [],
|
|
1100
|
+
}));
|
|
1101
|
+
return new __HttpRequest({
|
|
1102
|
+
protocol,
|
|
1103
|
+
hostname,
|
|
1104
|
+
port,
|
|
1105
|
+
method: "POST",
|
|
1106
|
+
headers,
|
|
1107
|
+
path: resolvedPath,
|
|
1108
|
+
body,
|
|
1109
|
+
});
|
|
1110
|
+
};
|
|
1111
|
+
export const se_ListLifecycleExecutionsCommand = async (input, context) => {
|
|
1112
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1113
|
+
const headers = {
|
|
1114
|
+
"content-type": "application/json",
|
|
1115
|
+
};
|
|
1116
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListLifecycleExecutions";
|
|
1117
|
+
let body;
|
|
1118
|
+
body = JSON.stringify(take(input, {
|
|
1119
|
+
maxResults: [],
|
|
1120
|
+
nextToken: [],
|
|
1121
|
+
resourceArn: [],
|
|
1122
|
+
}));
|
|
1123
|
+
return new __HttpRequest({
|
|
1124
|
+
protocol,
|
|
1125
|
+
hostname,
|
|
1126
|
+
port,
|
|
1127
|
+
method: "POST",
|
|
1128
|
+
headers,
|
|
1129
|
+
path: resolvedPath,
|
|
1130
|
+
body,
|
|
1131
|
+
});
|
|
1132
|
+
};
|
|
1133
|
+
export const se_ListLifecyclePoliciesCommand = async (input, context) => {
|
|
1134
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1135
|
+
const headers = {
|
|
1136
|
+
"content-type": "application/json",
|
|
1137
|
+
};
|
|
1138
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListLifecyclePolicies";
|
|
1139
|
+
let body;
|
|
1140
|
+
body = JSON.stringify(take(input, {
|
|
1141
|
+
filters: (_) => _json(_),
|
|
1142
|
+
maxResults: [],
|
|
1143
|
+
nextToken: [],
|
|
1144
|
+
}));
|
|
1145
|
+
return new __HttpRequest({
|
|
1146
|
+
protocol,
|
|
1147
|
+
hostname,
|
|
1148
|
+
port,
|
|
1149
|
+
method: "POST",
|
|
1150
|
+
headers,
|
|
1151
|
+
path: resolvedPath,
|
|
1152
|
+
body,
|
|
1153
|
+
});
|
|
1154
|
+
};
|
|
982
1155
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
983
1156
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
984
1157
|
const headers = {};
|
|
@@ -1144,6 +1317,32 @@ export const se_StartImagePipelineExecutionCommand = async (input, context) => {
|
|
|
1144
1317
|
body,
|
|
1145
1318
|
});
|
|
1146
1319
|
};
|
|
1320
|
+
export const se_StartResourceStateUpdateCommand = async (input, context) => {
|
|
1321
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1322
|
+
const headers = {
|
|
1323
|
+
"content-type": "application/json",
|
|
1324
|
+
};
|
|
1325
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartResourceStateUpdate";
|
|
1326
|
+
let body;
|
|
1327
|
+
body = JSON.stringify(take(input, {
|
|
1328
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1329
|
+
exclusionRules: (_) => _json(_),
|
|
1330
|
+
executionRole: [],
|
|
1331
|
+
includeResources: (_) => _json(_),
|
|
1332
|
+
resourceArn: [],
|
|
1333
|
+
state: (_) => _json(_),
|
|
1334
|
+
updateAt: (_) => Math.round(_.getTime() / 1000),
|
|
1335
|
+
}));
|
|
1336
|
+
return new __HttpRequest({
|
|
1337
|
+
protocol,
|
|
1338
|
+
hostname,
|
|
1339
|
+
port,
|
|
1340
|
+
method: "PUT",
|
|
1341
|
+
headers,
|
|
1342
|
+
path: resolvedPath,
|
|
1343
|
+
body,
|
|
1344
|
+
});
|
|
1345
|
+
};
|
|
1147
1346
|
export const se_TagResourceCommand = async (input, context) => {
|
|
1148
1347
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1149
1348
|
const headers = {
|
|
@@ -1274,6 +1473,33 @@ export const se_UpdateInfrastructureConfigurationCommand = async (input, context
|
|
|
1274
1473
|
body,
|
|
1275
1474
|
});
|
|
1276
1475
|
};
|
|
1476
|
+
export const se_UpdateLifecyclePolicyCommand = async (input, context) => {
|
|
1477
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1478
|
+
const headers = {
|
|
1479
|
+
"content-type": "application/json",
|
|
1480
|
+
};
|
|
1481
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateLifecyclePolicy";
|
|
1482
|
+
let body;
|
|
1483
|
+
body = JSON.stringify(take(input, {
|
|
1484
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1485
|
+
description: [],
|
|
1486
|
+
executionRole: [],
|
|
1487
|
+
lifecyclePolicyArn: [],
|
|
1488
|
+
policyDetails: (_) => _json(_),
|
|
1489
|
+
resourceSelection: (_) => _json(_),
|
|
1490
|
+
resourceType: [],
|
|
1491
|
+
status: [],
|
|
1492
|
+
}));
|
|
1493
|
+
return new __HttpRequest({
|
|
1494
|
+
protocol,
|
|
1495
|
+
hostname,
|
|
1496
|
+
port,
|
|
1497
|
+
method: "PUT",
|
|
1498
|
+
headers,
|
|
1499
|
+
path: resolvedPath,
|
|
1500
|
+
body,
|
|
1501
|
+
});
|
|
1502
|
+
};
|
|
1277
1503
|
export const de_CancelImageCreationCommand = async (output, context) => {
|
|
1278
1504
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1279
1505
|
return de_CancelImageCreationCommandError(output, context);
|
|
@@ -1330,6 +1556,60 @@ const de_CancelImageCreationCommandError = async (output, context) => {
|
|
|
1330
1556
|
});
|
|
1331
1557
|
}
|
|
1332
1558
|
};
|
|
1559
|
+
export const de_CancelLifecycleExecutionCommand = async (output, context) => {
|
|
1560
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1561
|
+
return de_CancelLifecycleExecutionCommandError(output, context);
|
|
1562
|
+
}
|
|
1563
|
+
const contents = map({
|
|
1564
|
+
$metadata: deserializeMetadata(output),
|
|
1565
|
+
});
|
|
1566
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1567
|
+
const doc = take(data, {
|
|
1568
|
+
lifecycleExecutionId: __expectString,
|
|
1569
|
+
});
|
|
1570
|
+
Object.assign(contents, doc);
|
|
1571
|
+
return contents;
|
|
1572
|
+
};
|
|
1573
|
+
const de_CancelLifecycleExecutionCommandError = async (output, context) => {
|
|
1574
|
+
const parsedOutput = {
|
|
1575
|
+
...output,
|
|
1576
|
+
body: await parseErrorBody(output.body, context),
|
|
1577
|
+
};
|
|
1578
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1579
|
+
switch (errorCode) {
|
|
1580
|
+
case "CallRateLimitExceededException":
|
|
1581
|
+
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
1582
|
+
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
1583
|
+
case "ClientException":
|
|
1584
|
+
case "com.amazonaws.imagebuilder#ClientException":
|
|
1585
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1586
|
+
case "ForbiddenException":
|
|
1587
|
+
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
1588
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1589
|
+
case "IdempotentParameterMismatchException":
|
|
1590
|
+
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
1591
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1592
|
+
case "InvalidRequestException":
|
|
1593
|
+
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
1594
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1595
|
+
case "ResourceInUseException":
|
|
1596
|
+
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
1597
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1598
|
+
case "ServiceException":
|
|
1599
|
+
case "com.amazonaws.imagebuilder#ServiceException":
|
|
1600
|
+
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1601
|
+
case "ServiceUnavailableException":
|
|
1602
|
+
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
1603
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1604
|
+
default:
|
|
1605
|
+
const parsedBody = parsedOutput.body;
|
|
1606
|
+
return throwDefaultError({
|
|
1607
|
+
output,
|
|
1608
|
+
parsedBody,
|
|
1609
|
+
errorCode,
|
|
1610
|
+
});
|
|
1611
|
+
}
|
|
1612
|
+
};
|
|
1333
1613
|
export const de_CreateComponentCommand = async (output, context) => {
|
|
1334
1614
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1335
1615
|
return de_CreateComponentCommandError(output, context);
|
|
@@ -1773,22 +2053,22 @@ const de_CreateInfrastructureConfigurationCommandError = async (output, context)
|
|
|
1773
2053
|
});
|
|
1774
2054
|
}
|
|
1775
2055
|
};
|
|
1776
|
-
export const
|
|
2056
|
+
export const de_CreateLifecyclePolicyCommand = async (output, context) => {
|
|
1777
2057
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1778
|
-
return
|
|
2058
|
+
return de_CreateLifecyclePolicyCommandError(output, context);
|
|
1779
2059
|
}
|
|
1780
2060
|
const contents = map({
|
|
1781
2061
|
$metadata: deserializeMetadata(output),
|
|
1782
2062
|
});
|
|
1783
2063
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1784
2064
|
const doc = take(data, {
|
|
1785
|
-
|
|
1786
|
-
|
|
2065
|
+
clientToken: __expectString,
|
|
2066
|
+
lifecyclePolicyArn: __expectString,
|
|
1787
2067
|
});
|
|
1788
2068
|
Object.assign(contents, doc);
|
|
1789
2069
|
return contents;
|
|
1790
2070
|
};
|
|
1791
|
-
const
|
|
2071
|
+
const de_CreateLifecyclePolicyCommandError = async (output, context) => {
|
|
1792
2072
|
const parsedOutput = {
|
|
1793
2073
|
...output,
|
|
1794
2074
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1804,15 +2084,24 @@ const de_DeleteComponentCommandError = async (output, context) => {
|
|
|
1804
2084
|
case "ForbiddenException":
|
|
1805
2085
|
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
1806
2086
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2087
|
+
case "IdempotentParameterMismatchException":
|
|
2088
|
+
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
2089
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1807
2090
|
case "InvalidRequestException":
|
|
1808
2091
|
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
1809
2092
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1810
|
-
case "
|
|
1811
|
-
case "com.amazonaws.imagebuilder#
|
|
1812
|
-
throw await
|
|
2093
|
+
case "ResourceAlreadyExistsException":
|
|
2094
|
+
case "com.amazonaws.imagebuilder#ResourceAlreadyExistsException":
|
|
2095
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2096
|
+
case "ResourceInUseException":
|
|
2097
|
+
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
2098
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1813
2099
|
case "ServiceException":
|
|
1814
2100
|
case "com.amazonaws.imagebuilder#ServiceException":
|
|
1815
2101
|
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2102
|
+
case "ServiceQuotaExceededException":
|
|
2103
|
+
case "com.amazonaws.imagebuilder#ServiceQuotaExceededException":
|
|
2104
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1816
2105
|
case "ServiceUnavailableException":
|
|
1817
2106
|
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
1818
2107
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1825,7 +2114,59 @@ const de_DeleteComponentCommandError = async (output, context) => {
|
|
|
1825
2114
|
});
|
|
1826
2115
|
}
|
|
1827
2116
|
};
|
|
1828
|
-
export const
|
|
2117
|
+
export const de_DeleteComponentCommand = async (output, context) => {
|
|
2118
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2119
|
+
return de_DeleteComponentCommandError(output, context);
|
|
2120
|
+
}
|
|
2121
|
+
const contents = map({
|
|
2122
|
+
$metadata: deserializeMetadata(output),
|
|
2123
|
+
});
|
|
2124
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2125
|
+
const doc = take(data, {
|
|
2126
|
+
componentBuildVersionArn: __expectString,
|
|
2127
|
+
requestId: __expectString,
|
|
2128
|
+
});
|
|
2129
|
+
Object.assign(contents, doc);
|
|
2130
|
+
return contents;
|
|
2131
|
+
};
|
|
2132
|
+
const de_DeleteComponentCommandError = async (output, context) => {
|
|
2133
|
+
const parsedOutput = {
|
|
2134
|
+
...output,
|
|
2135
|
+
body: await parseErrorBody(output.body, context),
|
|
2136
|
+
};
|
|
2137
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2138
|
+
switch (errorCode) {
|
|
2139
|
+
case "CallRateLimitExceededException":
|
|
2140
|
+
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2141
|
+
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2142
|
+
case "ClientException":
|
|
2143
|
+
case "com.amazonaws.imagebuilder#ClientException":
|
|
2144
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2145
|
+
case "ForbiddenException":
|
|
2146
|
+
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2147
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2148
|
+
case "InvalidRequestException":
|
|
2149
|
+
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2150
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2151
|
+
case "ResourceDependencyException":
|
|
2152
|
+
case "com.amazonaws.imagebuilder#ResourceDependencyException":
|
|
2153
|
+
throw await de_ResourceDependencyExceptionRes(parsedOutput, context);
|
|
2154
|
+
case "ServiceException":
|
|
2155
|
+
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2156
|
+
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2157
|
+
case "ServiceUnavailableException":
|
|
2158
|
+
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2159
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2160
|
+
default:
|
|
2161
|
+
const parsedBody = parsedOutput.body;
|
|
2162
|
+
return throwDefaultError({
|
|
2163
|
+
output,
|
|
2164
|
+
parsedBody,
|
|
2165
|
+
errorCode,
|
|
2166
|
+
});
|
|
2167
|
+
}
|
|
2168
|
+
};
|
|
2169
|
+
export const de_DeleteContainerRecipeCommand = async (output, context) => {
|
|
1829
2170
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1830
2171
|
return de_DeleteContainerRecipeCommandError(output, context);
|
|
1831
2172
|
}
|
|
@@ -2137,6 +2478,57 @@ const de_DeleteInfrastructureConfigurationCommandError = async (output, context)
|
|
|
2137
2478
|
});
|
|
2138
2479
|
}
|
|
2139
2480
|
};
|
|
2481
|
+
export const de_DeleteLifecyclePolicyCommand = async (output, context) => {
|
|
2482
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2483
|
+
return de_DeleteLifecyclePolicyCommandError(output, context);
|
|
2484
|
+
}
|
|
2485
|
+
const contents = map({
|
|
2486
|
+
$metadata: deserializeMetadata(output),
|
|
2487
|
+
});
|
|
2488
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2489
|
+
const doc = take(data, {
|
|
2490
|
+
lifecyclePolicyArn: __expectString,
|
|
2491
|
+
});
|
|
2492
|
+
Object.assign(contents, doc);
|
|
2493
|
+
return contents;
|
|
2494
|
+
};
|
|
2495
|
+
const de_DeleteLifecyclePolicyCommandError = async (output, context) => {
|
|
2496
|
+
const parsedOutput = {
|
|
2497
|
+
...output,
|
|
2498
|
+
body: await parseErrorBody(output.body, context),
|
|
2499
|
+
};
|
|
2500
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2501
|
+
switch (errorCode) {
|
|
2502
|
+
case "CallRateLimitExceededException":
|
|
2503
|
+
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2504
|
+
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2505
|
+
case "ClientException":
|
|
2506
|
+
case "com.amazonaws.imagebuilder#ClientException":
|
|
2507
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2508
|
+
case "ForbiddenException":
|
|
2509
|
+
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2510
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2511
|
+
case "InvalidRequestException":
|
|
2512
|
+
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2513
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2514
|
+
case "ResourceDependencyException":
|
|
2515
|
+
case "com.amazonaws.imagebuilder#ResourceDependencyException":
|
|
2516
|
+
throw await de_ResourceDependencyExceptionRes(parsedOutput, context);
|
|
2517
|
+
case "ServiceException":
|
|
2518
|
+
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2519
|
+
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2520
|
+
case "ServiceUnavailableException":
|
|
2521
|
+
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2522
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2523
|
+
default:
|
|
2524
|
+
const parsedBody = parsedOutput.body;
|
|
2525
|
+
return throwDefaultError({
|
|
2526
|
+
output,
|
|
2527
|
+
parsedBody,
|
|
2528
|
+
errorCode,
|
|
2529
|
+
});
|
|
2530
|
+
}
|
|
2531
|
+
};
|
|
2140
2532
|
export const de_GetComponentCommand = async (output, context) => {
|
|
2141
2533
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2142
2534
|
return de_GetComponentCommandError(output, context);
|
|
@@ -2391,7 +2783,7 @@ export const de_GetImageCommand = async (output, context) => {
|
|
|
2391
2783
|
});
|
|
2392
2784
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2393
2785
|
const doc = take(data, {
|
|
2394
|
-
image:
|
|
2786
|
+
image: (_) => de_Image(_, context),
|
|
2395
2787
|
requestId: __expectString,
|
|
2396
2788
|
});
|
|
2397
2789
|
Object.assign(contents, doc);
|
|
@@ -2676,6 +3068,102 @@ const de_GetInfrastructureConfigurationCommandError = async (output, context) =>
|
|
|
2676
3068
|
});
|
|
2677
3069
|
}
|
|
2678
3070
|
};
|
|
3071
|
+
export const de_GetLifecycleExecutionCommand = async (output, context) => {
|
|
3072
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3073
|
+
return de_GetLifecycleExecutionCommandError(output, context);
|
|
3074
|
+
}
|
|
3075
|
+
const contents = map({
|
|
3076
|
+
$metadata: deserializeMetadata(output),
|
|
3077
|
+
});
|
|
3078
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3079
|
+
const doc = take(data, {
|
|
3080
|
+
lifecycleExecution: (_) => de_LifecycleExecution(_, context),
|
|
3081
|
+
});
|
|
3082
|
+
Object.assign(contents, doc);
|
|
3083
|
+
return contents;
|
|
3084
|
+
};
|
|
3085
|
+
const de_GetLifecycleExecutionCommandError = async (output, context) => {
|
|
3086
|
+
const parsedOutput = {
|
|
3087
|
+
...output,
|
|
3088
|
+
body: await parseErrorBody(output.body, context),
|
|
3089
|
+
};
|
|
3090
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3091
|
+
switch (errorCode) {
|
|
3092
|
+
case "CallRateLimitExceededException":
|
|
3093
|
+
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3094
|
+
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3095
|
+
case "ClientException":
|
|
3096
|
+
case "com.amazonaws.imagebuilder#ClientException":
|
|
3097
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3098
|
+
case "ForbiddenException":
|
|
3099
|
+
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3100
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3101
|
+
case "InvalidRequestException":
|
|
3102
|
+
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3103
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3104
|
+
case "ServiceException":
|
|
3105
|
+
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3106
|
+
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3107
|
+
case "ServiceUnavailableException":
|
|
3108
|
+
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3109
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3110
|
+
default:
|
|
3111
|
+
const parsedBody = parsedOutput.body;
|
|
3112
|
+
return throwDefaultError({
|
|
3113
|
+
output,
|
|
3114
|
+
parsedBody,
|
|
3115
|
+
errorCode,
|
|
3116
|
+
});
|
|
3117
|
+
}
|
|
3118
|
+
};
|
|
3119
|
+
export const de_GetLifecyclePolicyCommand = async (output, context) => {
|
|
3120
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3121
|
+
return de_GetLifecyclePolicyCommandError(output, context);
|
|
3122
|
+
}
|
|
3123
|
+
const contents = map({
|
|
3124
|
+
$metadata: deserializeMetadata(output),
|
|
3125
|
+
});
|
|
3126
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3127
|
+
const doc = take(data, {
|
|
3128
|
+
lifecyclePolicy: (_) => de_LifecyclePolicy(_, context),
|
|
3129
|
+
});
|
|
3130
|
+
Object.assign(contents, doc);
|
|
3131
|
+
return contents;
|
|
3132
|
+
};
|
|
3133
|
+
const de_GetLifecyclePolicyCommandError = async (output, context) => {
|
|
3134
|
+
const parsedOutput = {
|
|
3135
|
+
...output,
|
|
3136
|
+
body: await parseErrorBody(output.body, context),
|
|
3137
|
+
};
|
|
3138
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3139
|
+
switch (errorCode) {
|
|
3140
|
+
case "CallRateLimitExceededException":
|
|
3141
|
+
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3142
|
+
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3143
|
+
case "ClientException":
|
|
3144
|
+
case "com.amazonaws.imagebuilder#ClientException":
|
|
3145
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3146
|
+
case "ForbiddenException":
|
|
3147
|
+
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3148
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3149
|
+
case "InvalidRequestException":
|
|
3150
|
+
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3151
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3152
|
+
case "ServiceException":
|
|
3153
|
+
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3154
|
+
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3155
|
+
case "ServiceUnavailableException":
|
|
3156
|
+
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3157
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3158
|
+
default:
|
|
3159
|
+
const parsedBody = parsedOutput.body;
|
|
3160
|
+
return throwDefaultError({
|
|
3161
|
+
output,
|
|
3162
|
+
parsedBody,
|
|
3163
|
+
errorCode,
|
|
3164
|
+
});
|
|
3165
|
+
}
|
|
3166
|
+
};
|
|
2679
3167
|
export const de_GetWorkflowExecutionCommand = async (output, context) => {
|
|
2680
3168
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2681
3169
|
return de_GetWorkflowExecutionCommandError(output, context);
|
|
@@ -3124,7 +3612,7 @@ export const de_ListImageBuildVersionsCommand = async (output, context) => {
|
|
|
3124
3612
|
});
|
|
3125
3613
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3126
3614
|
const doc = take(data, {
|
|
3127
|
-
imageSummaryList:
|
|
3615
|
+
imageSummaryList: (_) => de_ImageSummaryList(_, context),
|
|
3128
3616
|
nextToken: __expectString,
|
|
3129
3617
|
requestId: __expectString,
|
|
3130
3618
|
});
|
|
@@ -3233,7 +3721,7 @@ export const de_ListImagePipelineImagesCommand = async (output, context) => {
|
|
|
3233
3721
|
});
|
|
3234
3722
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3235
3723
|
const doc = take(data, {
|
|
3236
|
-
imageSummaryList:
|
|
3724
|
+
imageSummaryList: (_) => de_ImageSummaryList(_, context),
|
|
3237
3725
|
nextToken: __expectString,
|
|
3238
3726
|
requestId: __expectString,
|
|
3239
3727
|
});
|
|
@@ -3599,6 +4087,164 @@ const de_ListInfrastructureConfigurationsCommandError = async (output, context)
|
|
|
3599
4087
|
});
|
|
3600
4088
|
}
|
|
3601
4089
|
};
|
|
4090
|
+
export const de_ListLifecycleExecutionResourcesCommand = async (output, context) => {
|
|
4091
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4092
|
+
return de_ListLifecycleExecutionResourcesCommandError(output, context);
|
|
4093
|
+
}
|
|
4094
|
+
const contents = map({
|
|
4095
|
+
$metadata: deserializeMetadata(output),
|
|
4096
|
+
});
|
|
4097
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4098
|
+
const doc = take(data, {
|
|
4099
|
+
lifecycleExecutionId: __expectString,
|
|
4100
|
+
lifecycleExecutionState: _json,
|
|
4101
|
+
nextToken: __expectString,
|
|
4102
|
+
resources: _json,
|
|
4103
|
+
});
|
|
4104
|
+
Object.assign(contents, doc);
|
|
4105
|
+
return contents;
|
|
4106
|
+
};
|
|
4107
|
+
const de_ListLifecycleExecutionResourcesCommandError = async (output, context) => {
|
|
4108
|
+
const parsedOutput = {
|
|
4109
|
+
...output,
|
|
4110
|
+
body: await parseErrorBody(output.body, context),
|
|
4111
|
+
};
|
|
4112
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4113
|
+
switch (errorCode) {
|
|
4114
|
+
case "CallRateLimitExceededException":
|
|
4115
|
+
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4116
|
+
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4117
|
+
case "ClientException":
|
|
4118
|
+
case "com.amazonaws.imagebuilder#ClientException":
|
|
4119
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4120
|
+
case "ForbiddenException":
|
|
4121
|
+
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4122
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4123
|
+
case "InvalidPaginationTokenException":
|
|
4124
|
+
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
4125
|
+
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
4126
|
+
case "InvalidRequestException":
|
|
4127
|
+
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4128
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4129
|
+
case "ServiceException":
|
|
4130
|
+
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4131
|
+
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4132
|
+
case "ServiceUnavailableException":
|
|
4133
|
+
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4134
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4135
|
+
default:
|
|
4136
|
+
const parsedBody = parsedOutput.body;
|
|
4137
|
+
return throwDefaultError({
|
|
4138
|
+
output,
|
|
4139
|
+
parsedBody,
|
|
4140
|
+
errorCode,
|
|
4141
|
+
});
|
|
4142
|
+
}
|
|
4143
|
+
};
|
|
4144
|
+
export const de_ListLifecycleExecutionsCommand = async (output, context) => {
|
|
4145
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4146
|
+
return de_ListLifecycleExecutionsCommandError(output, context);
|
|
4147
|
+
}
|
|
4148
|
+
const contents = map({
|
|
4149
|
+
$metadata: deserializeMetadata(output),
|
|
4150
|
+
});
|
|
4151
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4152
|
+
const doc = take(data, {
|
|
4153
|
+
lifecycleExecutions: (_) => de_LifecycleExecutionsList(_, context),
|
|
4154
|
+
nextToken: __expectString,
|
|
4155
|
+
});
|
|
4156
|
+
Object.assign(contents, doc);
|
|
4157
|
+
return contents;
|
|
4158
|
+
};
|
|
4159
|
+
const de_ListLifecycleExecutionsCommandError = async (output, context) => {
|
|
4160
|
+
const parsedOutput = {
|
|
4161
|
+
...output,
|
|
4162
|
+
body: await parseErrorBody(output.body, context),
|
|
4163
|
+
};
|
|
4164
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4165
|
+
switch (errorCode) {
|
|
4166
|
+
case "CallRateLimitExceededException":
|
|
4167
|
+
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4168
|
+
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4169
|
+
case "ClientException":
|
|
4170
|
+
case "com.amazonaws.imagebuilder#ClientException":
|
|
4171
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4172
|
+
case "ForbiddenException":
|
|
4173
|
+
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4174
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4175
|
+
case "InvalidPaginationTokenException":
|
|
4176
|
+
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
4177
|
+
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
4178
|
+
case "InvalidRequestException":
|
|
4179
|
+
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4180
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4181
|
+
case "ServiceException":
|
|
4182
|
+
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4183
|
+
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4184
|
+
case "ServiceUnavailableException":
|
|
4185
|
+
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4186
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4187
|
+
default:
|
|
4188
|
+
const parsedBody = parsedOutput.body;
|
|
4189
|
+
return throwDefaultError({
|
|
4190
|
+
output,
|
|
4191
|
+
parsedBody,
|
|
4192
|
+
errorCode,
|
|
4193
|
+
});
|
|
4194
|
+
}
|
|
4195
|
+
};
|
|
4196
|
+
export const de_ListLifecyclePoliciesCommand = async (output, context) => {
|
|
4197
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4198
|
+
return de_ListLifecyclePoliciesCommandError(output, context);
|
|
4199
|
+
}
|
|
4200
|
+
const contents = map({
|
|
4201
|
+
$metadata: deserializeMetadata(output),
|
|
4202
|
+
});
|
|
4203
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4204
|
+
const doc = take(data, {
|
|
4205
|
+
lifecyclePolicySummaryList: (_) => de_LifecyclePolicySummaryList(_, context),
|
|
4206
|
+
nextToken: __expectString,
|
|
4207
|
+
});
|
|
4208
|
+
Object.assign(contents, doc);
|
|
4209
|
+
return contents;
|
|
4210
|
+
};
|
|
4211
|
+
const de_ListLifecyclePoliciesCommandError = async (output, context) => {
|
|
4212
|
+
const parsedOutput = {
|
|
4213
|
+
...output,
|
|
4214
|
+
body: await parseErrorBody(output.body, context),
|
|
4215
|
+
};
|
|
4216
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4217
|
+
switch (errorCode) {
|
|
4218
|
+
case "CallRateLimitExceededException":
|
|
4219
|
+
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4220
|
+
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4221
|
+
case "ClientException":
|
|
4222
|
+
case "com.amazonaws.imagebuilder#ClientException":
|
|
4223
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4224
|
+
case "ForbiddenException":
|
|
4225
|
+
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4226
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4227
|
+
case "InvalidPaginationTokenException":
|
|
4228
|
+
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
4229
|
+
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
4230
|
+
case "InvalidRequestException":
|
|
4231
|
+
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4232
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4233
|
+
case "ServiceException":
|
|
4234
|
+
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4235
|
+
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4236
|
+
case "ServiceUnavailableException":
|
|
4237
|
+
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4238
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4239
|
+
default:
|
|
4240
|
+
const parsedBody = parsedOutput.body;
|
|
4241
|
+
return throwDefaultError({
|
|
4242
|
+
output,
|
|
4243
|
+
parsedBody,
|
|
4244
|
+
errorCode,
|
|
4245
|
+
});
|
|
4246
|
+
}
|
|
4247
|
+
};
|
|
3602
4248
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
3603
4249
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3604
4250
|
return de_ListTagsForResourceCommandError(output, context);
|
|
@@ -4029,6 +4675,64 @@ const de_StartImagePipelineExecutionCommandError = async (output, context) => {
|
|
|
4029
4675
|
});
|
|
4030
4676
|
}
|
|
4031
4677
|
};
|
|
4678
|
+
export const de_StartResourceStateUpdateCommand = async (output, context) => {
|
|
4679
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4680
|
+
return de_StartResourceStateUpdateCommandError(output, context);
|
|
4681
|
+
}
|
|
4682
|
+
const contents = map({
|
|
4683
|
+
$metadata: deserializeMetadata(output),
|
|
4684
|
+
});
|
|
4685
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4686
|
+
const doc = take(data, {
|
|
4687
|
+
lifecycleExecutionId: __expectString,
|
|
4688
|
+
resourceArn: __expectString,
|
|
4689
|
+
});
|
|
4690
|
+
Object.assign(contents, doc);
|
|
4691
|
+
return contents;
|
|
4692
|
+
};
|
|
4693
|
+
const de_StartResourceStateUpdateCommandError = async (output, context) => {
|
|
4694
|
+
const parsedOutput = {
|
|
4695
|
+
...output,
|
|
4696
|
+
body: await parseErrorBody(output.body, context),
|
|
4697
|
+
};
|
|
4698
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4699
|
+
switch (errorCode) {
|
|
4700
|
+
case "CallRateLimitExceededException":
|
|
4701
|
+
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4702
|
+
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4703
|
+
case "ClientException":
|
|
4704
|
+
case "com.amazonaws.imagebuilder#ClientException":
|
|
4705
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4706
|
+
case "ForbiddenException":
|
|
4707
|
+
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4708
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4709
|
+
case "IdempotentParameterMismatchException":
|
|
4710
|
+
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
4711
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
4712
|
+
case "InvalidRequestException":
|
|
4713
|
+
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4714
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4715
|
+
case "ResourceInUseException":
|
|
4716
|
+
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
4717
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
4718
|
+
case "ResourceNotFoundException":
|
|
4719
|
+
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
4720
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4721
|
+
case "ServiceException":
|
|
4722
|
+
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4723
|
+
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4724
|
+
case "ServiceUnavailableException":
|
|
4725
|
+
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4726
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4727
|
+
default:
|
|
4728
|
+
const parsedBody = parsedOutput.body;
|
|
4729
|
+
return throwDefaultError({
|
|
4730
|
+
output,
|
|
4731
|
+
parsedBody,
|
|
4732
|
+
errorCode,
|
|
4733
|
+
});
|
|
4734
|
+
}
|
|
4735
|
+
};
|
|
4032
4736
|
export const de_TagResourceCommand = async (output, context) => {
|
|
4033
4737
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4034
4738
|
return de_TagResourceCommandError(output, context);
|
|
@@ -4270,6 +4974,63 @@ const de_UpdateInfrastructureConfigurationCommandError = async (output, context)
|
|
|
4270
4974
|
});
|
|
4271
4975
|
}
|
|
4272
4976
|
};
|
|
4977
|
+
export const de_UpdateLifecyclePolicyCommand = async (output, context) => {
|
|
4978
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4979
|
+
return de_UpdateLifecyclePolicyCommandError(output, context);
|
|
4980
|
+
}
|
|
4981
|
+
const contents = map({
|
|
4982
|
+
$metadata: deserializeMetadata(output),
|
|
4983
|
+
});
|
|
4984
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4985
|
+
const doc = take(data, {
|
|
4986
|
+
lifecyclePolicyArn: __expectString,
|
|
4987
|
+
});
|
|
4988
|
+
Object.assign(contents, doc);
|
|
4989
|
+
return contents;
|
|
4990
|
+
};
|
|
4991
|
+
const de_UpdateLifecyclePolicyCommandError = async (output, context) => {
|
|
4992
|
+
const parsedOutput = {
|
|
4993
|
+
...output,
|
|
4994
|
+
body: await parseErrorBody(output.body, context),
|
|
4995
|
+
};
|
|
4996
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4997
|
+
switch (errorCode) {
|
|
4998
|
+
case "CallRateLimitExceededException":
|
|
4999
|
+
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
5000
|
+
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
5001
|
+
case "ClientException":
|
|
5002
|
+
case "com.amazonaws.imagebuilder#ClientException":
|
|
5003
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
5004
|
+
case "ForbiddenException":
|
|
5005
|
+
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
5006
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5007
|
+
case "IdempotentParameterMismatchException":
|
|
5008
|
+
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
5009
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
5010
|
+
case "InvalidParameterCombinationException":
|
|
5011
|
+
case "com.amazonaws.imagebuilder#InvalidParameterCombinationException":
|
|
5012
|
+
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
5013
|
+
case "InvalidRequestException":
|
|
5014
|
+
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
5015
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5016
|
+
case "ResourceInUseException":
|
|
5017
|
+
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
5018
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
5019
|
+
case "ServiceException":
|
|
5020
|
+
case "com.amazonaws.imagebuilder#ServiceException":
|
|
5021
|
+
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5022
|
+
case "ServiceUnavailableException":
|
|
5023
|
+
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
5024
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5025
|
+
default:
|
|
5026
|
+
const parsedBody = parsedOutput.body;
|
|
5027
|
+
return throwDefaultError({
|
|
5028
|
+
output,
|
|
5029
|
+
parsedBody,
|
|
5030
|
+
errorCode,
|
|
5031
|
+
});
|
|
5032
|
+
}
|
|
5033
|
+
};
|
|
4273
5034
|
const throwDefaultError = withBaseException(__BaseException);
|
|
4274
5035
|
const de_CallRateLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
4275
5036
|
const contents = map({});
|
|
@@ -4518,6 +5279,34 @@ const de_CvssScoreList = (output, context) => {
|
|
|
4518
5279
|
});
|
|
4519
5280
|
return retVal;
|
|
4520
5281
|
};
|
|
5282
|
+
const de_Image = (output, context) => {
|
|
5283
|
+
return take(output, {
|
|
5284
|
+
arn: __expectString,
|
|
5285
|
+
buildType: __expectString,
|
|
5286
|
+
containerRecipe: _json,
|
|
5287
|
+
dateCreated: __expectString,
|
|
5288
|
+
deprecationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
5289
|
+
distributionConfiguration: _json,
|
|
5290
|
+
enhancedImageMetadataEnabled: __expectBoolean,
|
|
5291
|
+
imageRecipe: _json,
|
|
5292
|
+
imageScanningConfiguration: _json,
|
|
5293
|
+
imageSource: __expectString,
|
|
5294
|
+
imageTestsConfiguration: _json,
|
|
5295
|
+
infrastructureConfiguration: _json,
|
|
5296
|
+
lifecycleExecutionId: __expectString,
|
|
5297
|
+
name: __expectString,
|
|
5298
|
+
osVersion: __expectString,
|
|
5299
|
+
outputResources: _json,
|
|
5300
|
+
platform: __expectString,
|
|
5301
|
+
scanState: _json,
|
|
5302
|
+
sourcePipelineArn: __expectString,
|
|
5303
|
+
sourcePipelineName: __expectString,
|
|
5304
|
+
state: _json,
|
|
5305
|
+
tags: _json,
|
|
5306
|
+
type: __expectString,
|
|
5307
|
+
version: __expectString,
|
|
5308
|
+
});
|
|
5309
|
+
};
|
|
4521
5310
|
const de_ImageScanFinding = (output, context) => {
|
|
4522
5311
|
return take(output, {
|
|
4523
5312
|
awsAccountId: __expectString,
|
|
@@ -4544,11 +5333,94 @@ const de_ImageScanFindingsList = (output, context) => {
|
|
|
4544
5333
|
});
|
|
4545
5334
|
return retVal;
|
|
4546
5335
|
};
|
|
5336
|
+
const de_ImageSummary = (output, context) => {
|
|
5337
|
+
return take(output, {
|
|
5338
|
+
arn: __expectString,
|
|
5339
|
+
buildType: __expectString,
|
|
5340
|
+
dateCreated: __expectString,
|
|
5341
|
+
deprecationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
5342
|
+
imageSource: __expectString,
|
|
5343
|
+
lifecycleExecutionId: __expectString,
|
|
5344
|
+
name: __expectString,
|
|
5345
|
+
osVersion: __expectString,
|
|
5346
|
+
outputResources: _json,
|
|
5347
|
+
owner: __expectString,
|
|
5348
|
+
platform: __expectString,
|
|
5349
|
+
state: _json,
|
|
5350
|
+
tags: _json,
|
|
5351
|
+
type: __expectString,
|
|
5352
|
+
version: __expectString,
|
|
5353
|
+
});
|
|
5354
|
+
};
|
|
5355
|
+
const de_ImageSummaryList = (output, context) => {
|
|
5356
|
+
const retVal = (output || [])
|
|
5357
|
+
.filter((e) => e != null)
|
|
5358
|
+
.map((entry) => {
|
|
5359
|
+
return de_ImageSummary(entry, context);
|
|
5360
|
+
});
|
|
5361
|
+
return retVal;
|
|
5362
|
+
};
|
|
4547
5363
|
const de_InspectorScoreDetails = (output, context) => {
|
|
4548
5364
|
return take(output, {
|
|
4549
5365
|
adjustedCvss: (_) => de_CvssScoreDetails(_, context),
|
|
4550
5366
|
});
|
|
4551
5367
|
};
|
|
5368
|
+
const de_LifecycleExecution = (output, context) => {
|
|
5369
|
+
return take(output, {
|
|
5370
|
+
endTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
5371
|
+
lifecycleExecutionId: __expectString,
|
|
5372
|
+
lifecyclePolicyArn: __expectString,
|
|
5373
|
+
resourcesImpactedSummary: _json,
|
|
5374
|
+
startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
5375
|
+
state: _json,
|
|
5376
|
+
});
|
|
5377
|
+
};
|
|
5378
|
+
const de_LifecycleExecutionsList = (output, context) => {
|
|
5379
|
+
const retVal = (output || [])
|
|
5380
|
+
.filter((e) => e != null)
|
|
5381
|
+
.map((entry) => {
|
|
5382
|
+
return de_LifecycleExecution(entry, context);
|
|
5383
|
+
});
|
|
5384
|
+
return retVal;
|
|
5385
|
+
};
|
|
5386
|
+
const de_LifecyclePolicy = (output, context) => {
|
|
5387
|
+
return take(output, {
|
|
5388
|
+
arn: __expectString,
|
|
5389
|
+
dateCreated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
5390
|
+
dateLastRun: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
5391
|
+
dateUpdated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
5392
|
+
description: __expectString,
|
|
5393
|
+
executionRole: __expectString,
|
|
5394
|
+
name: __expectString,
|
|
5395
|
+
policyDetails: _json,
|
|
5396
|
+
resourceSelection: _json,
|
|
5397
|
+
resourceType: __expectString,
|
|
5398
|
+
status: __expectString,
|
|
5399
|
+
tags: _json,
|
|
5400
|
+
});
|
|
5401
|
+
};
|
|
5402
|
+
const de_LifecyclePolicySummary = (output, context) => {
|
|
5403
|
+
return take(output, {
|
|
5404
|
+
arn: __expectString,
|
|
5405
|
+
dateCreated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
5406
|
+
dateLastRun: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
5407
|
+
dateUpdated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
5408
|
+
description: __expectString,
|
|
5409
|
+
executionRole: __expectString,
|
|
5410
|
+
name: __expectString,
|
|
5411
|
+
resourceType: __expectString,
|
|
5412
|
+
status: __expectString,
|
|
5413
|
+
tags: _json,
|
|
5414
|
+
});
|
|
5415
|
+
};
|
|
5416
|
+
const de_LifecyclePolicySummaryList = (output, context) => {
|
|
5417
|
+
const retVal = (output || [])
|
|
5418
|
+
.filter((e) => e != null)
|
|
5419
|
+
.map((entry) => {
|
|
5420
|
+
return de_LifecyclePolicySummary(entry, context);
|
|
5421
|
+
});
|
|
5422
|
+
return retVal;
|
|
5423
|
+
};
|
|
4552
5424
|
const de_PackageVulnerabilityDetails = (output, context) => {
|
|
4553
5425
|
return take(output, {
|
|
4554
5426
|
cvss: (_) => de_CvssScoreList(_, context),
|