@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
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListLifecyclePoliciesCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class ListLifecyclePoliciesCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListLifecyclePoliciesCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "ImagebuilderClient";
29
+ const commandName = "ListLifecyclePoliciesCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "imagebuilder",
38
+ operation: "ListLifecyclePolicies",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_ListLifecyclePoliciesCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_ListLifecyclePoliciesCommand)(output, context);
49
+ }
50
+ }
51
+ exports.ListLifecyclePoliciesCommand = ListLifecyclePoliciesCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StartResourceStateUpdateCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class StartResourceStateUpdateCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartResourceStateUpdateCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "ImagebuilderClient";
29
+ const commandName = "StartResourceStateUpdateCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "imagebuilder",
38
+ operation: "StartResourceStateUpdate",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_StartResourceStateUpdateCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_StartResourceStateUpdateCommand)(output, context);
49
+ }
50
+ }
51
+ exports.StartResourceStateUpdateCommand = StartResourceStateUpdateCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateLifecyclePolicyCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class UpdateLifecyclePolicyCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateLifecyclePolicyCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "ImagebuilderClient";
29
+ const commandName = "UpdateLifecyclePolicyCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "imagebuilder",
38
+ operation: "UpdateLifecyclePolicy",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_UpdateLifecyclePolicyCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_UpdateLifecyclePolicyCommand)(output, context);
49
+ }
50
+ }
51
+ exports.UpdateLifecyclePolicyCommand = UpdateLifecyclePolicyCommand;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./CancelImageCreationCommand"), exports);
5
+ tslib_1.__exportStar(require("./CancelLifecycleExecutionCommand"), exports);
5
6
  tslib_1.__exportStar(require("./CreateComponentCommand"), exports);
6
7
  tslib_1.__exportStar(require("./CreateContainerRecipeCommand"), exports);
7
8
  tslib_1.__exportStar(require("./CreateDistributionConfigurationCommand"), exports);
@@ -9,6 +10,7 @@ tslib_1.__exportStar(require("./CreateImageCommand"), exports);
9
10
  tslib_1.__exportStar(require("./CreateImagePipelineCommand"), exports);
10
11
  tslib_1.__exportStar(require("./CreateImageRecipeCommand"), exports);
11
12
  tslib_1.__exportStar(require("./CreateInfrastructureConfigurationCommand"), exports);
13
+ tslib_1.__exportStar(require("./CreateLifecyclePolicyCommand"), exports);
12
14
  tslib_1.__exportStar(require("./DeleteComponentCommand"), exports);
13
15
  tslib_1.__exportStar(require("./DeleteContainerRecipeCommand"), exports);
14
16
  tslib_1.__exportStar(require("./DeleteDistributionConfigurationCommand"), exports);
@@ -16,6 +18,7 @@ tslib_1.__exportStar(require("./DeleteImageCommand"), exports);
16
18
  tslib_1.__exportStar(require("./DeleteImagePipelineCommand"), exports);
17
19
  tslib_1.__exportStar(require("./DeleteImageRecipeCommand"), exports);
18
20
  tslib_1.__exportStar(require("./DeleteInfrastructureConfigurationCommand"), exports);
21
+ tslib_1.__exportStar(require("./DeleteLifecyclePolicyCommand"), exports);
19
22
  tslib_1.__exportStar(require("./GetComponentCommand"), exports);
20
23
  tslib_1.__exportStar(require("./GetComponentPolicyCommand"), exports);
21
24
  tslib_1.__exportStar(require("./GetContainerRecipeCommand"), exports);
@@ -27,6 +30,8 @@ tslib_1.__exportStar(require("./GetImagePolicyCommand"), exports);
27
30
  tslib_1.__exportStar(require("./GetImageRecipeCommand"), exports);
28
31
  tslib_1.__exportStar(require("./GetImageRecipePolicyCommand"), exports);
29
32
  tslib_1.__exportStar(require("./GetInfrastructureConfigurationCommand"), exports);
33
+ tslib_1.__exportStar(require("./GetLifecycleExecutionCommand"), exports);
34
+ tslib_1.__exportStar(require("./GetLifecyclePolicyCommand"), exports);
30
35
  tslib_1.__exportStar(require("./GetWorkflowExecutionCommand"), exports);
31
36
  tslib_1.__exportStar(require("./GetWorkflowStepExecutionCommand"), exports);
32
37
  tslib_1.__exportStar(require("./ImportComponentCommand"), exports);
@@ -44,6 +49,9 @@ tslib_1.__exportStar(require("./ListImageScanFindingAggregationsCommand"), expor
44
49
  tslib_1.__exportStar(require("./ListImageScanFindingsCommand"), exports);
45
50
  tslib_1.__exportStar(require("./ListImagesCommand"), exports);
46
51
  tslib_1.__exportStar(require("./ListInfrastructureConfigurationsCommand"), exports);
52
+ tslib_1.__exportStar(require("./ListLifecycleExecutionResourcesCommand"), exports);
53
+ tslib_1.__exportStar(require("./ListLifecycleExecutionsCommand"), exports);
54
+ tslib_1.__exportStar(require("./ListLifecyclePoliciesCommand"), exports);
47
55
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
48
56
  tslib_1.__exportStar(require("./ListWorkflowExecutionsCommand"), exports);
49
57
  tslib_1.__exportStar(require("./ListWorkflowStepExecutionsCommand"), exports);
@@ -52,8 +60,10 @@ tslib_1.__exportStar(require("./PutContainerRecipePolicyCommand"), exports);
52
60
  tslib_1.__exportStar(require("./PutImagePolicyCommand"), exports);
53
61
  tslib_1.__exportStar(require("./PutImageRecipePolicyCommand"), exports);
54
62
  tslib_1.__exportStar(require("./StartImagePipelineExecutionCommand"), exports);
63
+ tslib_1.__exportStar(require("./StartResourceStateUpdateCommand"), exports);
55
64
  tslib_1.__exportStar(require("./TagResourceCommand"), exports);
56
65
  tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
57
66
  tslib_1.__exportStar(require("./UpdateDistributionConfigurationCommand"), exports);
58
67
  tslib_1.__exportStar(require("./UpdateImagePipelineCommand"), exports);
59
68
  tslib_1.__exportStar(require("./UpdateInfrastructureConfigurationCommand"), exports);
69
+ tslib_1.__exportStar(require("./UpdateLifecyclePolicyCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InvalidParameterValueException = exports.InvalidParameterException = exports.Ownership = exports.InvalidPaginationTokenException = exports.WorkflowStepExecutionStatus = exports.WorkflowStepExecutionRollbackStatus = exports.WorkflowType = exports.WorkflowExecutionStatus = exports.ImageScanStatus = exports.ImageSource = exports.ImageType = exports.ResourceNotFoundException = exports.ResourceDependencyException = exports.PipelineStatus = exports.PipelineExecutionStartCondition = exports.DiskImageFormat = exports.ResourceAlreadyExistsException = exports.ServiceQuotaExceededException = exports.InvalidVersionNumberException = exports.InvalidParameterCombinationException = exports.EbsVolumeType = exports.ContainerType = exports.ContainerRepositoryService = exports.ComponentFormat = exports.ComponentType = exports.ComponentStatus = exports.Platform = exports.ServiceUnavailableException = exports.ServiceException = exports.ResourceInUseException = exports.InvalidRequestException = exports.IdempotentParameterMismatchException = exports.ForbiddenException = exports.ClientException = exports.CallRateLimitExceededException = exports.BuildType = exports.ImageStatus = void 0;
3
+ exports.ResourceStatus = exports.InvalidParameterValueException = exports.InvalidParameterException = exports.LifecycleExecutionResourceStatus = exports.LifecycleExecutionResourceActionName = exports.Ownership = exports.InvalidPaginationTokenException = exports.WorkflowStepExecutionStatus = exports.WorkflowStepExecutionRollbackStatus = exports.WorkflowType = exports.WorkflowExecutionStatus = exports.LifecycleExecutionStatus = exports.ImageScanStatus = exports.ImageSource = exports.ImageType = exports.ResourceNotFoundException = exports.ResourceDependencyException = exports.LifecyclePolicyStatus = exports.LifecyclePolicyResourceType = exports.LifecyclePolicyDetailFilterType = exports.LifecyclePolicyTimeUnit = exports.LifecyclePolicyDetailActionType = exports.PipelineStatus = exports.PipelineExecutionStartCondition = exports.DiskImageFormat = exports.ResourceAlreadyExistsException = exports.ServiceQuotaExceededException = exports.InvalidVersionNumberException = exports.InvalidParameterCombinationException = exports.EbsVolumeType = exports.ContainerType = exports.ContainerRepositoryService = exports.ComponentFormat = exports.ComponentType = exports.ComponentStatus = exports.Platform = exports.ServiceUnavailableException = exports.ServiceException = exports.ResourceInUseException = exports.InvalidRequestException = exports.IdempotentParameterMismatchException = exports.ForbiddenException = exports.ClientException = exports.CallRateLimitExceededException = exports.BuildType = exports.ImageStatus = void 0;
4
4
  const ImagebuilderServiceException_1 = require("./ImagebuilderServiceException");
5
5
  exports.ImageStatus = {
6
6
  AVAILABLE: "AVAILABLE",
@@ -9,6 +9,7 @@ exports.ImageStatus = {
9
9
  CREATING: "CREATING",
10
10
  DELETED: "DELETED",
11
11
  DEPRECATED: "DEPRECATED",
12
+ DISABLED: "DISABLED",
12
13
  DISTRIBUTING: "DISTRIBUTING",
13
14
  FAILED: "FAILED",
14
15
  INTEGRATING: "INTEGRATING",
@@ -218,6 +219,29 @@ exports.PipelineStatus = {
218
219
  DISABLED: "DISABLED",
219
220
  ENABLED: "ENABLED",
220
221
  };
222
+ exports.LifecyclePolicyDetailActionType = {
223
+ DELETE: "DELETE",
224
+ DEPRECATE: "DEPRECATE",
225
+ DISABLE: "DISABLE",
226
+ };
227
+ exports.LifecyclePolicyTimeUnit = {
228
+ DAYS: "DAYS",
229
+ MONTHS: "MONTHS",
230
+ WEEKS: "WEEKS",
231
+ YEARS: "YEARS",
232
+ };
233
+ exports.LifecyclePolicyDetailFilterType = {
234
+ AGE: "AGE",
235
+ COUNT: "COUNT",
236
+ };
237
+ exports.LifecyclePolicyResourceType = {
238
+ AMI_IMAGE: "AMI_IMAGE",
239
+ CONTAINER_IMAGE: "CONTAINER_IMAGE",
240
+ };
241
+ exports.LifecyclePolicyStatus = {
242
+ DISABLED: "DISABLED",
243
+ ENABLED: "ENABLED",
244
+ };
221
245
  class ResourceDependencyException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
222
246
  constructor(opts) {
223
247
  super({
@@ -263,6 +287,13 @@ exports.ImageScanStatus = {
263
287
  SCANNING: "SCANNING",
264
288
  TIMED_OUT: "TIMED_OUT",
265
289
  };
290
+ exports.LifecycleExecutionStatus = {
291
+ CANCELLED: "CANCELLED",
292
+ CANCELLING: "CANCELLING",
293
+ FAILED: "FAILED",
294
+ IN_PROGRESS: "IN_PROGRESS",
295
+ SUCCESS: "SUCCESS",
296
+ };
266
297
  exports.WorkflowExecutionStatus = {
267
298
  COMPLETED: "COMPLETED",
268
299
  FAILED: "FAILED",
@@ -309,6 +340,18 @@ exports.Ownership = {
309
340
  SHARED: "Shared",
310
341
  THIRDPARTY: "ThirdParty",
311
342
  };
343
+ exports.LifecycleExecutionResourceActionName = {
344
+ AVAILABLE: "AVAILABLE",
345
+ DELETE: "DELETE",
346
+ DEPRECATE: "DEPRECATE",
347
+ DISABLE: "DISABLE",
348
+ };
349
+ exports.LifecycleExecutionResourceStatus = {
350
+ FAILED: "FAILED",
351
+ IN_PROGRESS: "IN_PROGRESS",
352
+ SKIPPED: "SKIPPED",
353
+ SUCCESS: "SUCCESS",
354
+ };
312
355
  class InvalidParameterException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
313
356
  constructor(opts) {
314
357
  super({
@@ -335,3 +378,9 @@ class InvalidParameterValueException extends ImagebuilderServiceException_1.Imag
335
378
  }
336
379
  }
337
380
  exports.InvalidParameterValueException = InvalidParameterValueException;
381
+ exports.ResourceStatus = {
382
+ AVAILABLE: "AVAILABLE",
383
+ DELETED: "DELETED",
384
+ DEPRECATED: "DEPRECATED",
385
+ DISABLED: "DISABLED",
386
+ };
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListLifecycleExecutionResources = void 0;
4
+ const ListLifecycleExecutionResourcesCommand_1 = require("../commands/ListLifecycleExecutionResourcesCommand");
5
+ const ImagebuilderClient_1 = require("../ImagebuilderClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListLifecycleExecutionResourcesCommand_1.ListLifecycleExecutionResourcesCommand(input), ...args);
8
+ };
9
+ async function* paginateListLifecycleExecutionResources(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof ImagebuilderClient_1.ImagebuilderClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListLifecycleExecutionResources = paginateListLifecycleExecutionResources;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListLifecycleExecutions = void 0;
4
+ const ListLifecycleExecutionsCommand_1 = require("../commands/ListLifecycleExecutionsCommand");
5
+ const ImagebuilderClient_1 = require("../ImagebuilderClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListLifecycleExecutionsCommand_1.ListLifecycleExecutionsCommand(input), ...args);
8
+ };
9
+ async function* paginateListLifecycleExecutions(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof ImagebuilderClient_1.ImagebuilderClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListLifecycleExecutions = paginateListLifecycleExecutions;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListLifecyclePolicies = void 0;
4
+ const ListLifecyclePoliciesCommand_1 = require("../commands/ListLifecyclePoliciesCommand");
5
+ const ImagebuilderClient_1 = require("../ImagebuilderClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListLifecyclePoliciesCommand_1.ListLifecyclePoliciesCommand(input), ...args);
8
+ };
9
+ async function* paginateListLifecyclePolicies(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof ImagebuilderClient_1.ImagebuilderClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListLifecyclePolicies = paginateListLifecyclePolicies;
@@ -15,5 +15,8 @@ tslib_1.__exportStar(require("./ListImageScanFindingAggregationsPaginator"), exp
15
15
  tslib_1.__exportStar(require("./ListImageScanFindingsPaginator"), exports);
16
16
  tslib_1.__exportStar(require("./ListImagesPaginator"), exports);
17
17
  tslib_1.__exportStar(require("./ListInfrastructureConfigurationsPaginator"), exports);
18
+ tslib_1.__exportStar(require("./ListLifecycleExecutionResourcesPaginator"), exports);
19
+ tslib_1.__exportStar(require("./ListLifecycleExecutionsPaginator"), exports);
20
+ tslib_1.__exportStar(require("./ListLifecyclePoliciesPaginator"), exports);
18
21
  tslib_1.__exportStar(require("./ListWorkflowExecutionsPaginator"), exports);
19
22
  tslib_1.__exportStar(require("./ListWorkflowStepExecutionsPaginator"), exports);