@aws-sdk/client-imagebuilder 3.451.0 → 3.454.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/README.md +80 -0
  2. package/dist-cjs/Imagebuilder.js +20 -0
  3. package/dist-cjs/commands/CancelLifecycleExecutionCommand.js +51 -0
  4. package/dist-cjs/commands/CreateLifecyclePolicyCommand.js +51 -0
  5. package/dist-cjs/commands/DeleteLifecyclePolicyCommand.js +51 -0
  6. package/dist-cjs/commands/GetLifecycleExecutionCommand.js +51 -0
  7. package/dist-cjs/commands/GetLifecyclePolicyCommand.js +51 -0
  8. package/dist-cjs/commands/ListLifecycleExecutionResourcesCommand.js +51 -0
  9. package/dist-cjs/commands/ListLifecycleExecutionsCommand.js +51 -0
  10. package/dist-cjs/commands/ListLifecyclePoliciesCommand.js +51 -0
  11. package/dist-cjs/commands/StartResourceStateUpdateCommand.js +51 -0
  12. package/dist-cjs/commands/UpdateLifecyclePolicyCommand.js +51 -0
  13. package/dist-cjs/commands/index.js +10 -0
  14. package/dist-cjs/models/models_0.js +50 -1
  15. package/dist-cjs/pagination/ListLifecycleExecutionResourcesPaginator.js +29 -0
  16. package/dist-cjs/pagination/ListLifecycleExecutionsPaginator.js +29 -0
  17. package/dist-cjs/pagination/ListLifecyclePoliciesPaginator.js +29 -0
  18. package/dist-cjs/pagination/index.js +3 -0
  19. package/dist-cjs/protocols/Aws_restJson1.js +907 -15
  20. package/dist-es/Imagebuilder.js +20 -0
  21. package/dist-es/commands/CancelLifecycleExecutionCommand.js +47 -0
  22. package/dist-es/commands/CreateLifecyclePolicyCommand.js +47 -0
  23. package/dist-es/commands/DeleteLifecyclePolicyCommand.js +47 -0
  24. package/dist-es/commands/GetLifecycleExecutionCommand.js +47 -0
  25. package/dist-es/commands/GetLifecyclePolicyCommand.js +47 -0
  26. package/dist-es/commands/ListLifecycleExecutionResourcesCommand.js +47 -0
  27. package/dist-es/commands/ListLifecycleExecutionsCommand.js +47 -0
  28. package/dist-es/commands/ListLifecyclePoliciesCommand.js +47 -0
  29. package/dist-es/commands/StartResourceStateUpdateCommand.js +47 -0
  30. package/dist-es/commands/UpdateLifecyclePolicyCommand.js +47 -0
  31. package/dist-es/commands/index.js +10 -0
  32. package/dist-es/models/models_0.js +49 -0
  33. package/dist-es/pagination/ListLifecycleExecutionResourcesPaginator.js +25 -0
  34. package/dist-es/pagination/ListLifecycleExecutionsPaginator.js +25 -0
  35. package/dist-es/pagination/ListLifecyclePoliciesPaginator.js +25 -0
  36. package/dist-es/pagination/index.js +3 -0
  37. package/dist-es/protocols/Aws_restJson1.js +885 -13
  38. package/dist-types/Imagebuilder.d.ts +70 -0
  39. package/dist-types/ImagebuilderClient.d.ts +12 -2
  40. package/dist-types/commands/CancelLifecycleExecutionCommand.d.ts +103 -0
  41. package/dist-types/commands/CreateLifecyclePolicyCommand.d.ts +165 -0
  42. package/dist-types/commands/DeleteLifecyclePolicyCommand.d.ts +98 -0
  43. package/dist-types/commands/GetImageCommand.d.ts +4 -2
  44. package/dist-types/commands/GetLifecycleExecutionCommand.d.ts +106 -0
  45. package/dist-types/commands/GetLifecyclePolicyCommand.d.ts +153 -0
  46. package/dist-types/commands/ListImageBuildVersionsCommand.d.ts +4 -2
  47. package/dist-types/commands/ListImagePipelineImagesCommand.d.ts +4 -2
  48. package/dist-types/commands/ListLifecycleExecutionResourcesCommand.d.ts +132 -0
  49. package/dist-types/commands/ListLifecycleExecutionsCommand.d.ts +114 -0
  50. package/dist-types/commands/ListLifecyclePoliciesCommand.d.ts +122 -0
  51. package/dist-types/commands/StartResourceStateUpdateCommand.d.ts +136 -0
  52. package/dist-types/commands/UpdateLifecyclePolicyCommand.d.ts +159 -0
  53. package/dist-types/commands/index.d.ts +10 -0
  54. package/dist-types/models/models_0.d.ts +1224 -114
  55. package/dist-types/pagination/ListLifecycleExecutionResourcesPaginator.d.ts +7 -0
  56. package/dist-types/pagination/ListLifecycleExecutionsPaginator.d.ts +7 -0
  57. package/dist-types/pagination/ListLifecyclePoliciesPaginator.d.ts +7 -0
  58. package/dist-types/pagination/index.d.ts +3 -0
  59. package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
  60. package/dist-types/ts3.4/Imagebuilder.d.ts +170 -0
  61. package/dist-types/ts3.4/ImagebuilderClient.d.ts +62 -2
  62. package/dist-types/ts3.4/commands/CancelLifecycleExecutionCommand.d.ts +42 -0
  63. package/dist-types/ts3.4/commands/CreateLifecyclePolicyCommand.d.ts +42 -0
  64. package/dist-types/ts3.4/commands/DeleteLifecyclePolicyCommand.d.ts +42 -0
  65. package/dist-types/ts3.4/commands/GetLifecycleExecutionCommand.d.ts +42 -0
  66. package/dist-types/ts3.4/commands/GetLifecyclePolicyCommand.d.ts +39 -0
  67. package/dist-types/ts3.4/commands/ListLifecycleExecutionResourcesCommand.d.ts +42 -0
  68. package/dist-types/ts3.4/commands/ListLifecycleExecutionsCommand.d.ts +42 -0
  69. package/dist-types/ts3.4/commands/ListLifecyclePoliciesCommand.d.ts +42 -0
  70. package/dist-types/ts3.4/commands/StartResourceStateUpdateCommand.d.ts +42 -0
  71. package/dist-types/ts3.4/commands/UpdateLifecyclePolicyCommand.d.ts +42 -0
  72. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  73. package/dist-types/ts3.4/models/models_0.d.ts +283 -0
  74. package/dist-types/ts3.4/pagination/ListLifecycleExecutionResourcesPaginator.d.ts +11 -0
  75. package/dist-types/ts3.4/pagination/ListLifecycleExecutionsPaginator.d.ts +11 -0
  76. package/dist-types/ts3.4/pagination/ListLifecyclePoliciesPaginator.d.ts +11 -0
  77. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  78. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +120 -0
  79. package/package.json +2 -2
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_PutImageRecipePolicyCommand = exports.se_PutImagePolicyCommand = exports.se_PutContainerRecipePolicyCommand = exports.se_PutComponentPolicyCommand = exports.se_ListWorkflowStepExecutionsCommand = exports.se_ListWorkflowExecutionsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListInfrastructureConfigurationsCommand = exports.se_ListImageScanFindingsCommand = exports.se_ListImageScanFindingAggregationsCommand = exports.se_ListImagesCommand = exports.se_ListImageRecipesCommand = exports.se_ListImagePipelinesCommand = exports.se_ListImagePipelineImagesCommand = exports.se_ListImagePackagesCommand = exports.se_ListImageBuildVersionsCommand = exports.se_ListDistributionConfigurationsCommand = exports.se_ListContainerRecipesCommand = exports.se_ListComponentsCommand = exports.se_ListComponentBuildVersionsCommand = exports.se_ImportVmImageCommand = exports.se_ImportComponentCommand = exports.se_GetWorkflowStepExecutionCommand = exports.se_GetWorkflowExecutionCommand = exports.se_GetInfrastructureConfigurationCommand = exports.se_GetImageRecipePolicyCommand = exports.se_GetImageRecipeCommand = exports.se_GetImagePolicyCommand = exports.se_GetImagePipelineCommand = exports.se_GetImageCommand = exports.se_GetDistributionConfigurationCommand = exports.se_GetContainerRecipePolicyCommand = exports.se_GetContainerRecipeCommand = exports.se_GetComponentPolicyCommand = exports.se_GetComponentCommand = exports.se_DeleteInfrastructureConfigurationCommand = exports.se_DeleteImageRecipeCommand = exports.se_DeleteImagePipelineCommand = exports.se_DeleteImageCommand = exports.se_DeleteDistributionConfigurationCommand = exports.se_DeleteContainerRecipeCommand = exports.se_DeleteComponentCommand = exports.se_CreateInfrastructureConfigurationCommand = exports.se_CreateImageRecipeCommand = exports.se_CreateImagePipelineCommand = exports.se_CreateImageCommand = exports.se_CreateDistributionConfigurationCommand = exports.se_CreateContainerRecipeCommand = exports.se_CreateComponentCommand = exports.se_CancelImageCreationCommand = void 0;
4
- exports.de_ListTagsForResourceCommand = exports.de_ListInfrastructureConfigurationsCommand = exports.de_ListImageScanFindingsCommand = exports.de_ListImageScanFindingAggregationsCommand = exports.de_ListImagesCommand = exports.de_ListImageRecipesCommand = exports.de_ListImagePipelinesCommand = exports.de_ListImagePipelineImagesCommand = exports.de_ListImagePackagesCommand = exports.de_ListImageBuildVersionsCommand = exports.de_ListDistributionConfigurationsCommand = exports.de_ListContainerRecipesCommand = exports.de_ListComponentsCommand = exports.de_ListComponentBuildVersionsCommand = exports.de_ImportVmImageCommand = exports.de_ImportComponentCommand = exports.de_GetWorkflowStepExecutionCommand = exports.de_GetWorkflowExecutionCommand = exports.de_GetInfrastructureConfigurationCommand = exports.de_GetImageRecipePolicyCommand = exports.de_GetImageRecipeCommand = exports.de_GetImagePolicyCommand = exports.de_GetImagePipelineCommand = exports.de_GetImageCommand = exports.de_GetDistributionConfigurationCommand = exports.de_GetContainerRecipePolicyCommand = exports.de_GetContainerRecipeCommand = exports.de_GetComponentPolicyCommand = exports.de_GetComponentCommand = exports.de_DeleteInfrastructureConfigurationCommand = exports.de_DeleteImageRecipeCommand = exports.de_DeleteImagePipelineCommand = exports.de_DeleteImageCommand = exports.de_DeleteDistributionConfigurationCommand = exports.de_DeleteContainerRecipeCommand = exports.de_DeleteComponentCommand = exports.de_CreateInfrastructureConfigurationCommand = exports.de_CreateImageRecipeCommand = exports.de_CreateImagePipelineCommand = exports.de_CreateImageCommand = exports.de_CreateDistributionConfigurationCommand = exports.de_CreateContainerRecipeCommand = exports.de_CreateComponentCommand = exports.de_CancelImageCreationCommand = exports.se_UpdateInfrastructureConfigurationCommand = exports.se_UpdateImagePipelineCommand = exports.se_UpdateDistributionConfigurationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartImagePipelineExecutionCommand = void 0;
5
- exports.de_UpdateInfrastructureConfigurationCommand = exports.de_UpdateImagePipelineCommand = exports.de_UpdateDistributionConfigurationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartImagePipelineExecutionCommand = exports.de_PutImageRecipePolicyCommand = exports.de_PutImagePolicyCommand = exports.de_PutContainerRecipePolicyCommand = exports.de_PutComponentPolicyCommand = exports.de_ListWorkflowStepExecutionsCommand = exports.de_ListWorkflowExecutionsCommand = void 0;
3
+ exports.se_ListLifecycleExecutionsCommand = exports.se_ListLifecycleExecutionResourcesCommand = exports.se_ListInfrastructureConfigurationsCommand = exports.se_ListImageScanFindingsCommand = exports.se_ListImageScanFindingAggregationsCommand = exports.se_ListImagesCommand = exports.se_ListImageRecipesCommand = exports.se_ListImagePipelinesCommand = exports.se_ListImagePipelineImagesCommand = exports.se_ListImagePackagesCommand = exports.se_ListImageBuildVersionsCommand = exports.se_ListDistributionConfigurationsCommand = exports.se_ListContainerRecipesCommand = exports.se_ListComponentsCommand = exports.se_ListComponentBuildVersionsCommand = exports.se_ImportVmImageCommand = exports.se_ImportComponentCommand = exports.se_GetWorkflowStepExecutionCommand = exports.se_GetWorkflowExecutionCommand = exports.se_GetLifecyclePolicyCommand = exports.se_GetLifecycleExecutionCommand = exports.se_GetInfrastructureConfigurationCommand = exports.se_GetImageRecipePolicyCommand = exports.se_GetImageRecipeCommand = exports.se_GetImagePolicyCommand = exports.se_GetImagePipelineCommand = exports.se_GetImageCommand = exports.se_GetDistributionConfigurationCommand = exports.se_GetContainerRecipePolicyCommand = exports.se_GetContainerRecipeCommand = exports.se_GetComponentPolicyCommand = exports.se_GetComponentCommand = exports.se_DeleteLifecyclePolicyCommand = exports.se_DeleteInfrastructureConfigurationCommand = exports.se_DeleteImageRecipeCommand = exports.se_DeleteImagePipelineCommand = exports.se_DeleteImageCommand = exports.se_DeleteDistributionConfigurationCommand = exports.se_DeleteContainerRecipeCommand = exports.se_DeleteComponentCommand = exports.se_CreateLifecyclePolicyCommand = exports.se_CreateInfrastructureConfigurationCommand = exports.se_CreateImageRecipeCommand = exports.se_CreateImagePipelineCommand = exports.se_CreateImageCommand = exports.se_CreateDistributionConfigurationCommand = exports.se_CreateContainerRecipeCommand = exports.se_CreateComponentCommand = exports.se_CancelLifecycleExecutionCommand = exports.se_CancelImageCreationCommand = void 0;
4
+ exports.de_ImportComponentCommand = exports.de_GetWorkflowStepExecutionCommand = exports.de_GetWorkflowExecutionCommand = exports.de_GetLifecyclePolicyCommand = exports.de_GetLifecycleExecutionCommand = exports.de_GetInfrastructureConfigurationCommand = exports.de_GetImageRecipePolicyCommand = exports.de_GetImageRecipeCommand = exports.de_GetImagePolicyCommand = exports.de_GetImagePipelineCommand = exports.de_GetImageCommand = exports.de_GetDistributionConfigurationCommand = exports.de_GetContainerRecipePolicyCommand = exports.de_GetContainerRecipeCommand = exports.de_GetComponentPolicyCommand = exports.de_GetComponentCommand = exports.de_DeleteLifecyclePolicyCommand = exports.de_DeleteInfrastructureConfigurationCommand = exports.de_DeleteImageRecipeCommand = exports.de_DeleteImagePipelineCommand = exports.de_DeleteImageCommand = exports.de_DeleteDistributionConfigurationCommand = exports.de_DeleteContainerRecipeCommand = exports.de_DeleteComponentCommand = exports.de_CreateLifecyclePolicyCommand = exports.de_CreateInfrastructureConfigurationCommand = exports.de_CreateImageRecipeCommand = exports.de_CreateImagePipelineCommand = exports.de_CreateImageCommand = exports.de_CreateDistributionConfigurationCommand = exports.de_CreateContainerRecipeCommand = exports.de_CreateComponentCommand = exports.de_CancelLifecycleExecutionCommand = exports.de_CancelImageCreationCommand = exports.se_UpdateLifecyclePolicyCommand = exports.se_UpdateInfrastructureConfigurationCommand = exports.se_UpdateImagePipelineCommand = exports.se_UpdateDistributionConfigurationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartResourceStateUpdateCommand = exports.se_StartImagePipelineExecutionCommand = exports.se_PutImageRecipePolicyCommand = exports.se_PutImagePolicyCommand = exports.se_PutContainerRecipePolicyCommand = exports.se_PutComponentPolicyCommand = exports.se_ListWorkflowStepExecutionsCommand = exports.se_ListWorkflowExecutionsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListLifecyclePoliciesCommand = void 0;
5
+ exports.de_UpdateLifecyclePolicyCommand = exports.de_UpdateInfrastructureConfigurationCommand = exports.de_UpdateImagePipelineCommand = exports.de_UpdateDistributionConfigurationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartResourceStateUpdateCommand = exports.de_StartImagePipelineExecutionCommand = exports.de_PutImageRecipePolicyCommand = exports.de_PutImagePolicyCommand = exports.de_PutContainerRecipePolicyCommand = exports.de_PutComponentPolicyCommand = exports.de_ListWorkflowStepExecutionsCommand = exports.de_ListWorkflowExecutionsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListLifecyclePoliciesCommand = exports.de_ListLifecycleExecutionsCommand = exports.de_ListLifecycleExecutionResourcesCommand = exports.de_ListInfrastructureConfigurationsCommand = exports.de_ListImageScanFindingsCommand = exports.de_ListImageScanFindingAggregationsCommand = exports.de_ListImagesCommand = exports.de_ListImageRecipesCommand = exports.de_ListImagePipelinesCommand = exports.de_ListImagePipelineImagesCommand = exports.de_ListImagePackagesCommand = exports.de_ListImageBuildVersionsCommand = exports.de_ListDistributionConfigurationsCommand = exports.de_ListContainerRecipesCommand = exports.de_ListComponentsCommand = exports.de_ListComponentBuildVersionsCommand = exports.de_ImportVmImageCommand = void 0;
6
6
  const protocol_http_1 = require("@smithy/protocol-http");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  const uuid_1 = require("uuid");
@@ -30,6 +30,28 @@ const se_CancelImageCreationCommand = async (input, context) => {
30
30
  });
31
31
  };
32
32
  exports.se_CancelImageCreationCommand = se_CancelImageCreationCommand;
33
+ const se_CancelLifecycleExecutionCommand = async (input, context) => {
34
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
35
+ const headers = {
36
+ "content-type": "application/json",
37
+ };
38
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CancelLifecycleExecution";
39
+ let body;
40
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
41
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
42
+ lifecycleExecutionId: [],
43
+ }));
44
+ return new protocol_http_1.HttpRequest({
45
+ protocol,
46
+ hostname,
47
+ port,
48
+ method: "PUT",
49
+ headers,
50
+ path: resolvedPath,
51
+ body,
52
+ });
53
+ };
54
+ exports.se_CancelLifecycleExecutionCommand = se_CancelLifecycleExecutionCommand;
33
55
  const se_CreateComponentCommand = async (input, context) => {
34
56
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
35
57
  const headers = {
@@ -248,6 +270,35 @@ const se_CreateInfrastructureConfigurationCommand = async (input, context) => {
248
270
  });
249
271
  };
250
272
  exports.se_CreateInfrastructureConfigurationCommand = se_CreateInfrastructureConfigurationCommand;
273
+ const se_CreateLifecyclePolicyCommand = async (input, context) => {
274
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
275
+ const headers = {
276
+ "content-type": "application/json",
277
+ };
278
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateLifecyclePolicy";
279
+ let body;
280
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
281
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
282
+ description: [],
283
+ executionRole: [],
284
+ name: [],
285
+ policyDetails: (_) => (0, smithy_client_1._json)(_),
286
+ resourceSelection: (_) => (0, smithy_client_1._json)(_),
287
+ resourceType: [],
288
+ status: [],
289
+ tags: (_) => (0, smithy_client_1._json)(_),
290
+ }));
291
+ return new protocol_http_1.HttpRequest({
292
+ protocol,
293
+ hostname,
294
+ port,
295
+ method: "PUT",
296
+ headers,
297
+ path: resolvedPath,
298
+ body,
299
+ });
300
+ };
301
+ exports.se_CreateLifecyclePolicyCommand = se_CreateLifecyclePolicyCommand;
251
302
  const se_DeleteComponentCommand = async (input, context) => {
252
303
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
253
304
  const headers = {};
@@ -394,6 +445,26 @@ const se_DeleteInfrastructureConfigurationCommand = async (input, context) => {
394
445
  });
395
446
  };
396
447
  exports.se_DeleteInfrastructureConfigurationCommand = se_DeleteInfrastructureConfigurationCommand;
448
+ const se_DeleteLifecyclePolicyCommand = async (input, context) => {
449
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
450
+ const headers = {};
451
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteLifecyclePolicy";
452
+ const query = (0, smithy_client_1.map)({
453
+ lifecyclePolicyArn: [, (0, smithy_client_1.expectNonNull)(input.lifecyclePolicyArn, `lifecyclePolicyArn`)],
454
+ });
455
+ let body;
456
+ return new protocol_http_1.HttpRequest({
457
+ protocol,
458
+ hostname,
459
+ port,
460
+ method: "DELETE",
461
+ headers,
462
+ path: resolvedPath,
463
+ query,
464
+ body,
465
+ });
466
+ };
467
+ exports.se_DeleteLifecyclePolicyCommand = se_DeleteLifecyclePolicyCommand;
397
468
  const se_GetComponentCommand = async (input, context) => {
398
469
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
399
470
  const headers = {};
@@ -620,6 +691,46 @@ const se_GetInfrastructureConfigurationCommand = async (input, context) => {
620
691
  });
621
692
  };
622
693
  exports.se_GetInfrastructureConfigurationCommand = se_GetInfrastructureConfigurationCommand;
694
+ const se_GetLifecycleExecutionCommand = async (input, context) => {
695
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
696
+ const headers = {};
697
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetLifecycleExecution";
698
+ const query = (0, smithy_client_1.map)({
699
+ lifecycleExecutionId: [, (0, smithy_client_1.expectNonNull)(input.lifecycleExecutionId, `lifecycleExecutionId`)],
700
+ });
701
+ let body;
702
+ return new protocol_http_1.HttpRequest({
703
+ protocol,
704
+ hostname,
705
+ port,
706
+ method: "GET",
707
+ headers,
708
+ path: resolvedPath,
709
+ query,
710
+ body,
711
+ });
712
+ };
713
+ exports.se_GetLifecycleExecutionCommand = se_GetLifecycleExecutionCommand;
714
+ const se_GetLifecyclePolicyCommand = async (input, context) => {
715
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
716
+ const headers = {};
717
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetLifecyclePolicy";
718
+ const query = (0, smithy_client_1.map)({
719
+ lifecyclePolicyArn: [, (0, smithy_client_1.expectNonNull)(input.lifecyclePolicyArn, `lifecyclePolicyArn`)],
720
+ });
721
+ let body;
722
+ return new protocol_http_1.HttpRequest({
723
+ protocol,
724
+ hostname,
725
+ port,
726
+ method: "GET",
727
+ headers,
728
+ path: resolvedPath,
729
+ query,
730
+ body,
731
+ });
732
+ };
733
+ exports.se_GetLifecyclePolicyCommand = se_GetLifecyclePolicyCommand;
623
734
  const se_GetWorkflowExecutionCommand = async (input, context) => {
624
735
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
625
736
  const headers = {};
@@ -1027,6 +1138,76 @@ const se_ListInfrastructureConfigurationsCommand = async (input, context) => {
1027
1138
  });
1028
1139
  };
1029
1140
  exports.se_ListInfrastructureConfigurationsCommand = se_ListInfrastructureConfigurationsCommand;
1141
+ const se_ListLifecycleExecutionResourcesCommand = async (input, context) => {
1142
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1143
+ const headers = {
1144
+ "content-type": "application/json",
1145
+ };
1146
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListLifecycleExecutionResources";
1147
+ let body;
1148
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1149
+ lifecycleExecutionId: [],
1150
+ maxResults: [],
1151
+ nextToken: [],
1152
+ parentResourceId: [],
1153
+ }));
1154
+ return new protocol_http_1.HttpRequest({
1155
+ protocol,
1156
+ hostname,
1157
+ port,
1158
+ method: "POST",
1159
+ headers,
1160
+ path: resolvedPath,
1161
+ body,
1162
+ });
1163
+ };
1164
+ exports.se_ListLifecycleExecutionResourcesCommand = se_ListLifecycleExecutionResourcesCommand;
1165
+ const se_ListLifecycleExecutionsCommand = async (input, context) => {
1166
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1167
+ const headers = {
1168
+ "content-type": "application/json",
1169
+ };
1170
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListLifecycleExecutions";
1171
+ let body;
1172
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1173
+ maxResults: [],
1174
+ nextToken: [],
1175
+ resourceArn: [],
1176
+ }));
1177
+ return new protocol_http_1.HttpRequest({
1178
+ protocol,
1179
+ hostname,
1180
+ port,
1181
+ method: "POST",
1182
+ headers,
1183
+ path: resolvedPath,
1184
+ body,
1185
+ });
1186
+ };
1187
+ exports.se_ListLifecycleExecutionsCommand = se_ListLifecycleExecutionsCommand;
1188
+ const se_ListLifecyclePoliciesCommand = async (input, context) => {
1189
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1190
+ const headers = {
1191
+ "content-type": "application/json",
1192
+ };
1193
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListLifecyclePolicies";
1194
+ let body;
1195
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1196
+ filters: (_) => (0, smithy_client_1._json)(_),
1197
+ maxResults: [],
1198
+ nextToken: [],
1199
+ }));
1200
+ return new protocol_http_1.HttpRequest({
1201
+ protocol,
1202
+ hostname,
1203
+ port,
1204
+ method: "POST",
1205
+ headers,
1206
+ path: resolvedPath,
1207
+ body,
1208
+ });
1209
+ };
1210
+ exports.se_ListLifecyclePoliciesCommand = se_ListLifecyclePoliciesCommand;
1030
1211
  const se_ListTagsForResourceCommand = async (input, context) => {
1031
1212
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1032
1213
  const headers = {};
@@ -1200,6 +1381,33 @@ const se_StartImagePipelineExecutionCommand = async (input, context) => {
1200
1381
  });
1201
1382
  };
1202
1383
  exports.se_StartImagePipelineExecutionCommand = se_StartImagePipelineExecutionCommand;
1384
+ const se_StartResourceStateUpdateCommand = async (input, context) => {
1385
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1386
+ const headers = {
1387
+ "content-type": "application/json",
1388
+ };
1389
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartResourceStateUpdate";
1390
+ let body;
1391
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1392
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1393
+ exclusionRules: (_) => (0, smithy_client_1._json)(_),
1394
+ executionRole: [],
1395
+ includeResources: (_) => (0, smithy_client_1._json)(_),
1396
+ resourceArn: [],
1397
+ state: (_) => (0, smithy_client_1._json)(_),
1398
+ updateAt: (_) => Math.round(_.getTime() / 1000),
1399
+ }));
1400
+ return new protocol_http_1.HttpRequest({
1401
+ protocol,
1402
+ hostname,
1403
+ port,
1404
+ method: "PUT",
1405
+ headers,
1406
+ path: resolvedPath,
1407
+ body,
1408
+ });
1409
+ };
1410
+ exports.se_StartResourceStateUpdateCommand = se_StartResourceStateUpdateCommand;
1203
1411
  const se_TagResourceCommand = async (input, context) => {
1204
1412
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1205
1413
  const headers = {
@@ -1335,6 +1543,34 @@ const se_UpdateInfrastructureConfigurationCommand = async (input, context) => {
1335
1543
  });
1336
1544
  };
1337
1545
  exports.se_UpdateInfrastructureConfigurationCommand = se_UpdateInfrastructureConfigurationCommand;
1546
+ const se_UpdateLifecyclePolicyCommand = async (input, context) => {
1547
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1548
+ const headers = {
1549
+ "content-type": "application/json",
1550
+ };
1551
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateLifecyclePolicy";
1552
+ let body;
1553
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1554
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1555
+ description: [],
1556
+ executionRole: [],
1557
+ lifecyclePolicyArn: [],
1558
+ policyDetails: (_) => (0, smithy_client_1._json)(_),
1559
+ resourceSelection: (_) => (0, smithy_client_1._json)(_),
1560
+ resourceType: [],
1561
+ status: [],
1562
+ }));
1563
+ return new protocol_http_1.HttpRequest({
1564
+ protocol,
1565
+ hostname,
1566
+ port,
1567
+ method: "PUT",
1568
+ headers,
1569
+ path: resolvedPath,
1570
+ body,
1571
+ });
1572
+ };
1573
+ exports.se_UpdateLifecyclePolicyCommand = se_UpdateLifecyclePolicyCommand;
1338
1574
  const de_CancelImageCreationCommand = async (output, context) => {
1339
1575
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1340
1576
  return de_CancelImageCreationCommandError(output, context);
@@ -1392,6 +1628,61 @@ const de_CancelImageCreationCommandError = async (output, context) => {
1392
1628
  });
1393
1629
  }
1394
1630
  };
1631
+ const de_CancelLifecycleExecutionCommand = async (output, context) => {
1632
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1633
+ return de_CancelLifecycleExecutionCommandError(output, context);
1634
+ }
1635
+ const contents = (0, smithy_client_1.map)({
1636
+ $metadata: deserializeMetadata(output),
1637
+ });
1638
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1639
+ const doc = (0, smithy_client_1.take)(data, {
1640
+ lifecycleExecutionId: smithy_client_1.expectString,
1641
+ });
1642
+ Object.assign(contents, doc);
1643
+ return contents;
1644
+ };
1645
+ exports.de_CancelLifecycleExecutionCommand = de_CancelLifecycleExecutionCommand;
1646
+ const de_CancelLifecycleExecutionCommandError = async (output, context) => {
1647
+ const parsedOutput = {
1648
+ ...output,
1649
+ body: await parseErrorBody(output.body, context),
1650
+ };
1651
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1652
+ switch (errorCode) {
1653
+ case "CallRateLimitExceededException":
1654
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
1655
+ throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
1656
+ case "ClientException":
1657
+ case "com.amazonaws.imagebuilder#ClientException":
1658
+ throw await de_ClientExceptionRes(parsedOutput, context);
1659
+ case "ForbiddenException":
1660
+ case "com.amazonaws.imagebuilder#ForbiddenException":
1661
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1662
+ case "IdempotentParameterMismatchException":
1663
+ case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
1664
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
1665
+ case "InvalidRequestException":
1666
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
1667
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1668
+ case "ResourceInUseException":
1669
+ case "com.amazonaws.imagebuilder#ResourceInUseException":
1670
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1671
+ case "ServiceException":
1672
+ case "com.amazonaws.imagebuilder#ServiceException":
1673
+ throw await de_ServiceExceptionRes(parsedOutput, context);
1674
+ case "ServiceUnavailableException":
1675
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
1676
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1677
+ default:
1678
+ const parsedBody = parsedOutput.body;
1679
+ return throwDefaultError({
1680
+ output,
1681
+ parsedBody,
1682
+ errorCode,
1683
+ });
1684
+ }
1685
+ };
1395
1686
  const de_CreateComponentCommand = async (output, context) => {
1396
1687
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1397
1688
  return de_CreateComponentCommandError(output, context);
@@ -1842,23 +2133,23 @@ const de_CreateInfrastructureConfigurationCommandError = async (output, context)
1842
2133
  });
1843
2134
  }
1844
2135
  };
1845
- const de_DeleteComponentCommand = async (output, context) => {
2136
+ const de_CreateLifecyclePolicyCommand = async (output, context) => {
1846
2137
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1847
- return de_DeleteComponentCommandError(output, context);
2138
+ return de_CreateLifecyclePolicyCommandError(output, context);
1848
2139
  }
1849
2140
  const contents = (0, smithy_client_1.map)({
1850
2141
  $metadata: deserializeMetadata(output),
1851
2142
  });
1852
2143
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1853
2144
  const doc = (0, smithy_client_1.take)(data, {
1854
- componentBuildVersionArn: smithy_client_1.expectString,
1855
- requestId: smithy_client_1.expectString,
2145
+ clientToken: smithy_client_1.expectString,
2146
+ lifecyclePolicyArn: smithy_client_1.expectString,
1856
2147
  });
1857
2148
  Object.assign(contents, doc);
1858
2149
  return contents;
1859
2150
  };
1860
- exports.de_DeleteComponentCommand = de_DeleteComponentCommand;
1861
- const de_DeleteComponentCommandError = async (output, context) => {
2151
+ exports.de_CreateLifecyclePolicyCommand = de_CreateLifecyclePolicyCommand;
2152
+ const de_CreateLifecyclePolicyCommandError = async (output, context) => {
1862
2153
  const parsedOutput = {
1863
2154
  ...output,
1864
2155
  body: await parseErrorBody(output.body, context),
@@ -1874,12 +2165,74 @@ const de_DeleteComponentCommandError = async (output, context) => {
1874
2165
  case "ForbiddenException":
1875
2166
  case "com.amazonaws.imagebuilder#ForbiddenException":
1876
2167
  throw await de_ForbiddenExceptionRes(parsedOutput, context);
2168
+ case "IdempotentParameterMismatchException":
2169
+ case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
2170
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
1877
2171
  case "InvalidRequestException":
1878
2172
  case "com.amazonaws.imagebuilder#InvalidRequestException":
1879
2173
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1880
- case "ResourceDependencyException":
1881
- case "com.amazonaws.imagebuilder#ResourceDependencyException":
1882
- throw await de_ResourceDependencyExceptionRes(parsedOutput, context);
2174
+ case "ResourceAlreadyExistsException":
2175
+ case "com.amazonaws.imagebuilder#ResourceAlreadyExistsException":
2176
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
2177
+ case "ResourceInUseException":
2178
+ case "com.amazonaws.imagebuilder#ResourceInUseException":
2179
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
2180
+ case "ServiceException":
2181
+ case "com.amazonaws.imagebuilder#ServiceException":
2182
+ throw await de_ServiceExceptionRes(parsedOutput, context);
2183
+ case "ServiceQuotaExceededException":
2184
+ case "com.amazonaws.imagebuilder#ServiceQuotaExceededException":
2185
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2186
+ case "ServiceUnavailableException":
2187
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
2188
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2189
+ default:
2190
+ const parsedBody = parsedOutput.body;
2191
+ return throwDefaultError({
2192
+ output,
2193
+ parsedBody,
2194
+ errorCode,
2195
+ });
2196
+ }
2197
+ };
2198
+ const de_DeleteComponentCommand = async (output, context) => {
2199
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2200
+ return de_DeleteComponentCommandError(output, context);
2201
+ }
2202
+ const contents = (0, smithy_client_1.map)({
2203
+ $metadata: deserializeMetadata(output),
2204
+ });
2205
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2206
+ const doc = (0, smithy_client_1.take)(data, {
2207
+ componentBuildVersionArn: smithy_client_1.expectString,
2208
+ requestId: smithy_client_1.expectString,
2209
+ });
2210
+ Object.assign(contents, doc);
2211
+ return contents;
2212
+ };
2213
+ exports.de_DeleteComponentCommand = de_DeleteComponentCommand;
2214
+ const de_DeleteComponentCommandError = async (output, context) => {
2215
+ const parsedOutput = {
2216
+ ...output,
2217
+ body: await parseErrorBody(output.body, context),
2218
+ };
2219
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2220
+ switch (errorCode) {
2221
+ case "CallRateLimitExceededException":
2222
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
2223
+ throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
2224
+ case "ClientException":
2225
+ case "com.amazonaws.imagebuilder#ClientException":
2226
+ throw await de_ClientExceptionRes(parsedOutput, context);
2227
+ case "ForbiddenException":
2228
+ case "com.amazonaws.imagebuilder#ForbiddenException":
2229
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2230
+ case "InvalidRequestException":
2231
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
2232
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2233
+ case "ResourceDependencyException":
2234
+ case "com.amazonaws.imagebuilder#ResourceDependencyException":
2235
+ throw await de_ResourceDependencyExceptionRes(parsedOutput, context);
1883
2236
  case "ServiceException":
1884
2237
  case "com.amazonaws.imagebuilder#ServiceException":
1885
2238
  throw await de_ServiceExceptionRes(parsedOutput, context);
@@ -2213,6 +2566,58 @@ const de_DeleteInfrastructureConfigurationCommandError = async (output, context)
2213
2566
  });
2214
2567
  }
2215
2568
  };
2569
+ const de_DeleteLifecyclePolicyCommand = async (output, context) => {
2570
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2571
+ return de_DeleteLifecyclePolicyCommandError(output, context);
2572
+ }
2573
+ const contents = (0, smithy_client_1.map)({
2574
+ $metadata: deserializeMetadata(output),
2575
+ });
2576
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2577
+ const doc = (0, smithy_client_1.take)(data, {
2578
+ lifecyclePolicyArn: smithy_client_1.expectString,
2579
+ });
2580
+ Object.assign(contents, doc);
2581
+ return contents;
2582
+ };
2583
+ exports.de_DeleteLifecyclePolicyCommand = de_DeleteLifecyclePolicyCommand;
2584
+ const de_DeleteLifecyclePolicyCommandError = async (output, context) => {
2585
+ const parsedOutput = {
2586
+ ...output,
2587
+ body: await parseErrorBody(output.body, context),
2588
+ };
2589
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2590
+ switch (errorCode) {
2591
+ case "CallRateLimitExceededException":
2592
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
2593
+ throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
2594
+ case "ClientException":
2595
+ case "com.amazonaws.imagebuilder#ClientException":
2596
+ throw await de_ClientExceptionRes(parsedOutput, context);
2597
+ case "ForbiddenException":
2598
+ case "com.amazonaws.imagebuilder#ForbiddenException":
2599
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2600
+ case "InvalidRequestException":
2601
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
2602
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2603
+ case "ResourceDependencyException":
2604
+ case "com.amazonaws.imagebuilder#ResourceDependencyException":
2605
+ throw await de_ResourceDependencyExceptionRes(parsedOutput, context);
2606
+ case "ServiceException":
2607
+ case "com.amazonaws.imagebuilder#ServiceException":
2608
+ throw await de_ServiceExceptionRes(parsedOutput, context);
2609
+ case "ServiceUnavailableException":
2610
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
2611
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2612
+ default:
2613
+ const parsedBody = parsedOutput.body;
2614
+ return throwDefaultError({
2615
+ output,
2616
+ parsedBody,
2617
+ errorCode,
2618
+ });
2619
+ }
2620
+ };
2216
2621
  const de_GetComponentCommand = async (output, context) => {
2217
2622
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2218
2623
  return de_GetComponentCommandError(output, context);
@@ -2472,7 +2877,7 @@ const de_GetImageCommand = async (output, context) => {
2472
2877
  });
2473
2878
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2474
2879
  const doc = (0, smithy_client_1.take)(data, {
2475
- image: smithy_client_1._json,
2880
+ image: (_) => de_Image(_, context),
2476
2881
  requestId: smithy_client_1.expectString,
2477
2882
  });
2478
2883
  Object.assign(contents, doc);
@@ -2763,6 +3168,104 @@ const de_GetInfrastructureConfigurationCommandError = async (output, context) =>
2763
3168
  });
2764
3169
  }
2765
3170
  };
3171
+ const de_GetLifecycleExecutionCommand = async (output, context) => {
3172
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3173
+ return de_GetLifecycleExecutionCommandError(output, context);
3174
+ }
3175
+ const contents = (0, smithy_client_1.map)({
3176
+ $metadata: deserializeMetadata(output),
3177
+ });
3178
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3179
+ const doc = (0, smithy_client_1.take)(data, {
3180
+ lifecycleExecution: (_) => de_LifecycleExecution(_, context),
3181
+ });
3182
+ Object.assign(contents, doc);
3183
+ return contents;
3184
+ };
3185
+ exports.de_GetLifecycleExecutionCommand = de_GetLifecycleExecutionCommand;
3186
+ const de_GetLifecycleExecutionCommandError = async (output, context) => {
3187
+ const parsedOutput = {
3188
+ ...output,
3189
+ body: await parseErrorBody(output.body, context),
3190
+ };
3191
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3192
+ switch (errorCode) {
3193
+ case "CallRateLimitExceededException":
3194
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
3195
+ throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
3196
+ case "ClientException":
3197
+ case "com.amazonaws.imagebuilder#ClientException":
3198
+ throw await de_ClientExceptionRes(parsedOutput, context);
3199
+ case "ForbiddenException":
3200
+ case "com.amazonaws.imagebuilder#ForbiddenException":
3201
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
3202
+ case "InvalidRequestException":
3203
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
3204
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3205
+ case "ServiceException":
3206
+ case "com.amazonaws.imagebuilder#ServiceException":
3207
+ throw await de_ServiceExceptionRes(parsedOutput, context);
3208
+ case "ServiceUnavailableException":
3209
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
3210
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3211
+ default:
3212
+ const parsedBody = parsedOutput.body;
3213
+ return throwDefaultError({
3214
+ output,
3215
+ parsedBody,
3216
+ errorCode,
3217
+ });
3218
+ }
3219
+ };
3220
+ const de_GetLifecyclePolicyCommand = async (output, context) => {
3221
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3222
+ return de_GetLifecyclePolicyCommandError(output, context);
3223
+ }
3224
+ const contents = (0, smithy_client_1.map)({
3225
+ $metadata: deserializeMetadata(output),
3226
+ });
3227
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3228
+ const doc = (0, smithy_client_1.take)(data, {
3229
+ lifecyclePolicy: (_) => de_LifecyclePolicy(_, context),
3230
+ });
3231
+ Object.assign(contents, doc);
3232
+ return contents;
3233
+ };
3234
+ exports.de_GetLifecyclePolicyCommand = de_GetLifecyclePolicyCommand;
3235
+ const de_GetLifecyclePolicyCommandError = async (output, context) => {
3236
+ const parsedOutput = {
3237
+ ...output,
3238
+ body: await parseErrorBody(output.body, context),
3239
+ };
3240
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3241
+ switch (errorCode) {
3242
+ case "CallRateLimitExceededException":
3243
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
3244
+ throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
3245
+ case "ClientException":
3246
+ case "com.amazonaws.imagebuilder#ClientException":
3247
+ throw await de_ClientExceptionRes(parsedOutput, context);
3248
+ case "ForbiddenException":
3249
+ case "com.amazonaws.imagebuilder#ForbiddenException":
3250
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
3251
+ case "InvalidRequestException":
3252
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
3253
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3254
+ case "ServiceException":
3255
+ case "com.amazonaws.imagebuilder#ServiceException":
3256
+ throw await de_ServiceExceptionRes(parsedOutput, context);
3257
+ case "ServiceUnavailableException":
3258
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
3259
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3260
+ default:
3261
+ const parsedBody = parsedOutput.body;
3262
+ return throwDefaultError({
3263
+ output,
3264
+ parsedBody,
3265
+ errorCode,
3266
+ });
3267
+ }
3268
+ };
2766
3269
  const de_GetWorkflowExecutionCommand = async (output, context) => {
2767
3270
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2768
3271
  return de_GetWorkflowExecutionCommandError(output, context);
@@ -3219,7 +3722,7 @@ const de_ListImageBuildVersionsCommand = async (output, context) => {
3219
3722
  });
3220
3723
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3221
3724
  const doc = (0, smithy_client_1.take)(data, {
3222
- imageSummaryList: smithy_client_1._json,
3725
+ imageSummaryList: (_) => de_ImageSummaryList(_, context),
3223
3726
  nextToken: smithy_client_1.expectString,
3224
3727
  requestId: smithy_client_1.expectString,
3225
3728
  });
@@ -3330,7 +3833,7 @@ const de_ListImagePipelineImagesCommand = async (output, context) => {
3330
3833
  });
3331
3834
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3332
3835
  const doc = (0, smithy_client_1.take)(data, {
3333
- imageSummaryList: smithy_client_1._json,
3836
+ imageSummaryList: (_) => de_ImageSummaryList(_, context),
3334
3837
  nextToken: smithy_client_1.expectString,
3335
3838
  requestId: smithy_client_1.expectString,
3336
3839
  });
@@ -3703,6 +4206,167 @@ const de_ListInfrastructureConfigurationsCommandError = async (output, context)
3703
4206
  });
3704
4207
  }
3705
4208
  };
4209
+ const de_ListLifecycleExecutionResourcesCommand = async (output, context) => {
4210
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4211
+ return de_ListLifecycleExecutionResourcesCommandError(output, context);
4212
+ }
4213
+ const contents = (0, smithy_client_1.map)({
4214
+ $metadata: deserializeMetadata(output),
4215
+ });
4216
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4217
+ const doc = (0, smithy_client_1.take)(data, {
4218
+ lifecycleExecutionId: smithy_client_1.expectString,
4219
+ lifecycleExecutionState: smithy_client_1._json,
4220
+ nextToken: smithy_client_1.expectString,
4221
+ resources: smithy_client_1._json,
4222
+ });
4223
+ Object.assign(contents, doc);
4224
+ return contents;
4225
+ };
4226
+ exports.de_ListLifecycleExecutionResourcesCommand = de_ListLifecycleExecutionResourcesCommand;
4227
+ const de_ListLifecycleExecutionResourcesCommandError = async (output, context) => {
4228
+ const parsedOutput = {
4229
+ ...output,
4230
+ body: await parseErrorBody(output.body, context),
4231
+ };
4232
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4233
+ switch (errorCode) {
4234
+ case "CallRateLimitExceededException":
4235
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
4236
+ throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
4237
+ case "ClientException":
4238
+ case "com.amazonaws.imagebuilder#ClientException":
4239
+ throw await de_ClientExceptionRes(parsedOutput, context);
4240
+ case "ForbiddenException":
4241
+ case "com.amazonaws.imagebuilder#ForbiddenException":
4242
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
4243
+ case "InvalidPaginationTokenException":
4244
+ case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
4245
+ throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
4246
+ case "InvalidRequestException":
4247
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
4248
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4249
+ case "ServiceException":
4250
+ case "com.amazonaws.imagebuilder#ServiceException":
4251
+ throw await de_ServiceExceptionRes(parsedOutput, context);
4252
+ case "ServiceUnavailableException":
4253
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
4254
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
4255
+ default:
4256
+ const parsedBody = parsedOutput.body;
4257
+ return throwDefaultError({
4258
+ output,
4259
+ parsedBody,
4260
+ errorCode,
4261
+ });
4262
+ }
4263
+ };
4264
+ const de_ListLifecycleExecutionsCommand = async (output, context) => {
4265
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4266
+ return de_ListLifecycleExecutionsCommandError(output, context);
4267
+ }
4268
+ const contents = (0, smithy_client_1.map)({
4269
+ $metadata: deserializeMetadata(output),
4270
+ });
4271
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4272
+ const doc = (0, smithy_client_1.take)(data, {
4273
+ lifecycleExecutions: (_) => de_LifecycleExecutionsList(_, context),
4274
+ nextToken: smithy_client_1.expectString,
4275
+ });
4276
+ Object.assign(contents, doc);
4277
+ return contents;
4278
+ };
4279
+ exports.de_ListLifecycleExecutionsCommand = de_ListLifecycleExecutionsCommand;
4280
+ const de_ListLifecycleExecutionsCommandError = async (output, context) => {
4281
+ const parsedOutput = {
4282
+ ...output,
4283
+ body: await parseErrorBody(output.body, context),
4284
+ };
4285
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4286
+ switch (errorCode) {
4287
+ case "CallRateLimitExceededException":
4288
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
4289
+ throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
4290
+ case "ClientException":
4291
+ case "com.amazonaws.imagebuilder#ClientException":
4292
+ throw await de_ClientExceptionRes(parsedOutput, context);
4293
+ case "ForbiddenException":
4294
+ case "com.amazonaws.imagebuilder#ForbiddenException":
4295
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
4296
+ case "InvalidPaginationTokenException":
4297
+ case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
4298
+ throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
4299
+ case "InvalidRequestException":
4300
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
4301
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4302
+ case "ServiceException":
4303
+ case "com.amazonaws.imagebuilder#ServiceException":
4304
+ throw await de_ServiceExceptionRes(parsedOutput, context);
4305
+ case "ServiceUnavailableException":
4306
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
4307
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
4308
+ default:
4309
+ const parsedBody = parsedOutput.body;
4310
+ return throwDefaultError({
4311
+ output,
4312
+ parsedBody,
4313
+ errorCode,
4314
+ });
4315
+ }
4316
+ };
4317
+ const de_ListLifecyclePoliciesCommand = async (output, context) => {
4318
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4319
+ return de_ListLifecyclePoliciesCommandError(output, context);
4320
+ }
4321
+ const contents = (0, smithy_client_1.map)({
4322
+ $metadata: deserializeMetadata(output),
4323
+ });
4324
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4325
+ const doc = (0, smithy_client_1.take)(data, {
4326
+ lifecyclePolicySummaryList: (_) => de_LifecyclePolicySummaryList(_, context),
4327
+ nextToken: smithy_client_1.expectString,
4328
+ });
4329
+ Object.assign(contents, doc);
4330
+ return contents;
4331
+ };
4332
+ exports.de_ListLifecyclePoliciesCommand = de_ListLifecyclePoliciesCommand;
4333
+ const de_ListLifecyclePoliciesCommandError = async (output, context) => {
4334
+ const parsedOutput = {
4335
+ ...output,
4336
+ body: await parseErrorBody(output.body, context),
4337
+ };
4338
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4339
+ switch (errorCode) {
4340
+ case "CallRateLimitExceededException":
4341
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
4342
+ throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
4343
+ case "ClientException":
4344
+ case "com.amazonaws.imagebuilder#ClientException":
4345
+ throw await de_ClientExceptionRes(parsedOutput, context);
4346
+ case "ForbiddenException":
4347
+ case "com.amazonaws.imagebuilder#ForbiddenException":
4348
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
4349
+ case "InvalidPaginationTokenException":
4350
+ case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
4351
+ throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
4352
+ case "InvalidRequestException":
4353
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
4354
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4355
+ case "ServiceException":
4356
+ case "com.amazonaws.imagebuilder#ServiceException":
4357
+ throw await de_ServiceExceptionRes(parsedOutput, context);
4358
+ case "ServiceUnavailableException":
4359
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
4360
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
4361
+ default:
4362
+ const parsedBody = parsedOutput.body;
4363
+ return throwDefaultError({
4364
+ output,
4365
+ parsedBody,
4366
+ errorCode,
4367
+ });
4368
+ }
4369
+ };
3706
4370
  const de_ListTagsForResourceCommand = async (output, context) => {
3707
4371
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3708
4372
  return de_ListTagsForResourceCommandError(output, context);
@@ -4141,6 +4805,65 @@ const de_StartImagePipelineExecutionCommandError = async (output, context) => {
4141
4805
  });
4142
4806
  }
4143
4807
  };
4808
+ const de_StartResourceStateUpdateCommand = async (output, context) => {
4809
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4810
+ return de_StartResourceStateUpdateCommandError(output, context);
4811
+ }
4812
+ const contents = (0, smithy_client_1.map)({
4813
+ $metadata: deserializeMetadata(output),
4814
+ });
4815
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4816
+ const doc = (0, smithy_client_1.take)(data, {
4817
+ lifecycleExecutionId: smithy_client_1.expectString,
4818
+ resourceArn: smithy_client_1.expectString,
4819
+ });
4820
+ Object.assign(contents, doc);
4821
+ return contents;
4822
+ };
4823
+ exports.de_StartResourceStateUpdateCommand = de_StartResourceStateUpdateCommand;
4824
+ const de_StartResourceStateUpdateCommandError = async (output, context) => {
4825
+ const parsedOutput = {
4826
+ ...output,
4827
+ body: await parseErrorBody(output.body, context),
4828
+ };
4829
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4830
+ switch (errorCode) {
4831
+ case "CallRateLimitExceededException":
4832
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
4833
+ throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
4834
+ case "ClientException":
4835
+ case "com.amazonaws.imagebuilder#ClientException":
4836
+ throw await de_ClientExceptionRes(parsedOutput, context);
4837
+ case "ForbiddenException":
4838
+ case "com.amazonaws.imagebuilder#ForbiddenException":
4839
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
4840
+ case "IdempotentParameterMismatchException":
4841
+ case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
4842
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
4843
+ case "InvalidRequestException":
4844
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
4845
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4846
+ case "ResourceInUseException":
4847
+ case "com.amazonaws.imagebuilder#ResourceInUseException":
4848
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
4849
+ case "ResourceNotFoundException":
4850
+ case "com.amazonaws.imagebuilder#ResourceNotFoundException":
4851
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4852
+ case "ServiceException":
4853
+ case "com.amazonaws.imagebuilder#ServiceException":
4854
+ throw await de_ServiceExceptionRes(parsedOutput, context);
4855
+ case "ServiceUnavailableException":
4856
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
4857
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
4858
+ default:
4859
+ const parsedBody = parsedOutput.body;
4860
+ return throwDefaultError({
4861
+ output,
4862
+ parsedBody,
4863
+ errorCode,
4864
+ });
4865
+ }
4866
+ };
4144
4867
  const de_TagResourceCommand = async (output, context) => {
4145
4868
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4146
4869
  return de_TagResourceCommandError(output, context);
@@ -4387,6 +5110,64 @@ const de_UpdateInfrastructureConfigurationCommandError = async (output, context)
4387
5110
  });
4388
5111
  }
4389
5112
  };
5113
+ const de_UpdateLifecyclePolicyCommand = async (output, context) => {
5114
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5115
+ return de_UpdateLifecyclePolicyCommandError(output, context);
5116
+ }
5117
+ const contents = (0, smithy_client_1.map)({
5118
+ $metadata: deserializeMetadata(output),
5119
+ });
5120
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5121
+ const doc = (0, smithy_client_1.take)(data, {
5122
+ lifecyclePolicyArn: smithy_client_1.expectString,
5123
+ });
5124
+ Object.assign(contents, doc);
5125
+ return contents;
5126
+ };
5127
+ exports.de_UpdateLifecyclePolicyCommand = de_UpdateLifecyclePolicyCommand;
5128
+ const de_UpdateLifecyclePolicyCommandError = async (output, context) => {
5129
+ const parsedOutput = {
5130
+ ...output,
5131
+ body: await parseErrorBody(output.body, context),
5132
+ };
5133
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5134
+ switch (errorCode) {
5135
+ case "CallRateLimitExceededException":
5136
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
5137
+ throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
5138
+ case "ClientException":
5139
+ case "com.amazonaws.imagebuilder#ClientException":
5140
+ throw await de_ClientExceptionRes(parsedOutput, context);
5141
+ case "ForbiddenException":
5142
+ case "com.amazonaws.imagebuilder#ForbiddenException":
5143
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
5144
+ case "IdempotentParameterMismatchException":
5145
+ case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
5146
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
5147
+ case "InvalidParameterCombinationException":
5148
+ case "com.amazonaws.imagebuilder#InvalidParameterCombinationException":
5149
+ throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
5150
+ case "InvalidRequestException":
5151
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
5152
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5153
+ case "ResourceInUseException":
5154
+ case "com.amazonaws.imagebuilder#ResourceInUseException":
5155
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
5156
+ case "ServiceException":
5157
+ case "com.amazonaws.imagebuilder#ServiceException":
5158
+ throw await de_ServiceExceptionRes(parsedOutput, context);
5159
+ case "ServiceUnavailableException":
5160
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
5161
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
5162
+ default:
5163
+ const parsedBody = parsedOutput.body;
5164
+ return throwDefaultError({
5165
+ output,
5166
+ parsedBody,
5167
+ errorCode,
5168
+ });
5169
+ }
5170
+ };
4390
5171
  const throwDefaultError = (0, smithy_client_1.withBaseException)(ImagebuilderServiceException_1.ImagebuilderServiceException);
4391
5172
  const de_CallRateLimitExceededExceptionRes = async (parsedOutput, context) => {
4392
5173
  const contents = (0, smithy_client_1.map)({});
@@ -4635,6 +5416,34 @@ const de_CvssScoreList = (output, context) => {
4635
5416
  });
4636
5417
  return retVal;
4637
5418
  };
5419
+ const de_Image = (output, context) => {
5420
+ return (0, smithy_client_1.take)(output, {
5421
+ arn: smithy_client_1.expectString,
5422
+ buildType: smithy_client_1.expectString,
5423
+ containerRecipe: smithy_client_1._json,
5424
+ dateCreated: smithy_client_1.expectString,
5425
+ deprecationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
5426
+ distributionConfiguration: smithy_client_1._json,
5427
+ enhancedImageMetadataEnabled: smithy_client_1.expectBoolean,
5428
+ imageRecipe: smithy_client_1._json,
5429
+ imageScanningConfiguration: smithy_client_1._json,
5430
+ imageSource: smithy_client_1.expectString,
5431
+ imageTestsConfiguration: smithy_client_1._json,
5432
+ infrastructureConfiguration: smithy_client_1._json,
5433
+ lifecycleExecutionId: smithy_client_1.expectString,
5434
+ name: smithy_client_1.expectString,
5435
+ osVersion: smithy_client_1.expectString,
5436
+ outputResources: smithy_client_1._json,
5437
+ platform: smithy_client_1.expectString,
5438
+ scanState: smithy_client_1._json,
5439
+ sourcePipelineArn: smithy_client_1.expectString,
5440
+ sourcePipelineName: smithy_client_1.expectString,
5441
+ state: smithy_client_1._json,
5442
+ tags: smithy_client_1._json,
5443
+ type: smithy_client_1.expectString,
5444
+ version: smithy_client_1.expectString,
5445
+ });
5446
+ };
4638
5447
  const de_ImageScanFinding = (output, context) => {
4639
5448
  return (0, smithy_client_1.take)(output, {
4640
5449
  awsAccountId: smithy_client_1.expectString,
@@ -4661,11 +5470,94 @@ const de_ImageScanFindingsList = (output, context) => {
4661
5470
  });
4662
5471
  return retVal;
4663
5472
  };
5473
+ const de_ImageSummary = (output, context) => {
5474
+ return (0, smithy_client_1.take)(output, {
5475
+ arn: smithy_client_1.expectString,
5476
+ buildType: smithy_client_1.expectString,
5477
+ dateCreated: smithy_client_1.expectString,
5478
+ deprecationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
5479
+ imageSource: smithy_client_1.expectString,
5480
+ lifecycleExecutionId: smithy_client_1.expectString,
5481
+ name: smithy_client_1.expectString,
5482
+ osVersion: smithy_client_1.expectString,
5483
+ outputResources: smithy_client_1._json,
5484
+ owner: smithy_client_1.expectString,
5485
+ platform: smithy_client_1.expectString,
5486
+ state: smithy_client_1._json,
5487
+ tags: smithy_client_1._json,
5488
+ type: smithy_client_1.expectString,
5489
+ version: smithy_client_1.expectString,
5490
+ });
5491
+ };
5492
+ const de_ImageSummaryList = (output, context) => {
5493
+ const retVal = (output || [])
5494
+ .filter((e) => e != null)
5495
+ .map((entry) => {
5496
+ return de_ImageSummary(entry, context);
5497
+ });
5498
+ return retVal;
5499
+ };
4664
5500
  const de_InspectorScoreDetails = (output, context) => {
4665
5501
  return (0, smithy_client_1.take)(output, {
4666
5502
  adjustedCvss: (_) => de_CvssScoreDetails(_, context),
4667
5503
  });
4668
5504
  };
5505
+ const de_LifecycleExecution = (output, context) => {
5506
+ return (0, smithy_client_1.take)(output, {
5507
+ endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
5508
+ lifecycleExecutionId: smithy_client_1.expectString,
5509
+ lifecyclePolicyArn: smithy_client_1.expectString,
5510
+ resourcesImpactedSummary: smithy_client_1._json,
5511
+ startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
5512
+ state: smithy_client_1._json,
5513
+ });
5514
+ };
5515
+ const de_LifecycleExecutionsList = (output, context) => {
5516
+ const retVal = (output || [])
5517
+ .filter((e) => e != null)
5518
+ .map((entry) => {
5519
+ return de_LifecycleExecution(entry, context);
5520
+ });
5521
+ return retVal;
5522
+ };
5523
+ const de_LifecyclePolicy = (output, context) => {
5524
+ return (0, smithy_client_1.take)(output, {
5525
+ arn: smithy_client_1.expectString,
5526
+ dateCreated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
5527
+ dateLastRun: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
5528
+ dateUpdated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
5529
+ description: smithy_client_1.expectString,
5530
+ executionRole: smithy_client_1.expectString,
5531
+ name: smithy_client_1.expectString,
5532
+ policyDetails: smithy_client_1._json,
5533
+ resourceSelection: smithy_client_1._json,
5534
+ resourceType: smithy_client_1.expectString,
5535
+ status: smithy_client_1.expectString,
5536
+ tags: smithy_client_1._json,
5537
+ });
5538
+ };
5539
+ const de_LifecyclePolicySummary = (output, context) => {
5540
+ return (0, smithy_client_1.take)(output, {
5541
+ arn: smithy_client_1.expectString,
5542
+ dateCreated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
5543
+ dateLastRun: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
5544
+ dateUpdated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
5545
+ description: smithy_client_1.expectString,
5546
+ executionRole: smithy_client_1.expectString,
5547
+ name: smithy_client_1.expectString,
5548
+ resourceType: smithy_client_1.expectString,
5549
+ status: smithy_client_1.expectString,
5550
+ tags: smithy_client_1._json,
5551
+ });
5552
+ };
5553
+ const de_LifecyclePolicySummaryList = (output, context) => {
5554
+ const retVal = (output || [])
5555
+ .filter((e) => e != null)
5556
+ .map((entry) => {
5557
+ return de_LifecyclePolicySummary(entry, context);
5558
+ });
5559
+ return retVal;
5560
+ };
4669
5561
  const de_PackageVulnerabilityDetails = (output, context) => {
4670
5562
  return (0, smithy_client_1.take)(output, {
4671
5563
  cvss: (_) => de_CvssScoreList(_, context),