@aws-sdk/client-imagebuilder 3.525.0 → 3.528.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -698,6 +698,7 @@ var LifecycleExecutionStatus = {
698
698
  CANCELLING: "CANCELLING",
699
699
  FAILED: "FAILED",
700
700
  IN_PROGRESS: "IN_PROGRESS",
701
+ PENDING: "PENDING",
701
702
  SUCCESS: "SUCCESS"
702
703
  };
703
704
  var WorkflowStatus = {
@@ -2834,7 +2835,7 @@ var de_ListLifecycleExecutionResourcesCommand = /* @__PURE__ */ __name(async (ou
2834
2835
  lifecycleExecutionId: import_smithy_client.expectString,
2835
2836
  lifecycleExecutionState: import_smithy_client._json,
2836
2837
  nextToken: import_smithy_client.expectString,
2837
- resources: import_smithy_client._json
2838
+ resources: (_) => de_LifecycleExecutionResourceList(_, context)
2838
2839
  });
2839
2840
  Object.assign(contents, doc);
2840
2841
  return contents;
@@ -3562,6 +3563,25 @@ var de_LifecycleExecution = /* @__PURE__ */ __name((output, context) => {
3562
3563
  state: import_smithy_client._json
3563
3564
  });
3564
3565
  }, "de_LifecycleExecution");
3566
+ var de_LifecycleExecutionResource = /* @__PURE__ */ __name((output, context) => {
3567
+ return (0, import_smithy_client.take)(output, {
3568
+ accountId: import_smithy_client.expectString,
3569
+ action: import_smithy_client._json,
3570
+ endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3571
+ imageUris: import_smithy_client._json,
3572
+ region: import_smithy_client.expectString,
3573
+ resourceId: import_smithy_client.expectString,
3574
+ snapshots: import_smithy_client._json,
3575
+ startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3576
+ state: import_smithy_client._json
3577
+ });
3578
+ }, "de_LifecycleExecutionResource");
3579
+ var de_LifecycleExecutionResourceList = /* @__PURE__ */ __name((output, context) => {
3580
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3581
+ return de_LifecycleExecutionResource(entry, context);
3582
+ });
3583
+ return retVal;
3584
+ }, "de_LifecycleExecutionResourceList");
3565
3585
  var de_LifecycleExecutionsList = /* @__PURE__ */ __name((output, context) => {
3566
3586
  const retVal = (output || []).filter((e) => e != null).map((entry) => {
3567
3587
  return de_LifecycleExecution(entry, context);
@@ -284,6 +284,7 @@ export const LifecycleExecutionStatus = {
284
284
  CANCELLING: "CANCELLING",
285
285
  FAILED: "FAILED",
286
286
  IN_PROGRESS: "IN_PROGRESS",
287
+ PENDING: "PENDING",
287
288
  SUCCESS: "SUCCESS",
288
289
  };
289
290
  export const WorkflowStatus = {
@@ -1937,7 +1937,7 @@ export const de_ListLifecycleExecutionResourcesCommand = async (output, context)
1937
1937
  lifecycleExecutionId: __expectString,
1938
1938
  lifecycleExecutionState: _json,
1939
1939
  nextToken: __expectString,
1940
- resources: _json,
1940
+ resources: (_) => de_LifecycleExecutionResourceList(_, context),
1941
1941
  });
1942
1942
  Object.assign(contents, doc);
1943
1943
  return contents;
@@ -2671,6 +2671,27 @@ const de_LifecycleExecution = (output, context) => {
2671
2671
  state: _json,
2672
2672
  });
2673
2673
  };
2674
+ const de_LifecycleExecutionResource = (output, context) => {
2675
+ return take(output, {
2676
+ accountId: __expectString,
2677
+ action: _json,
2678
+ endTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2679
+ imageUris: _json,
2680
+ region: __expectString,
2681
+ resourceId: __expectString,
2682
+ snapshots: _json,
2683
+ startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2684
+ state: _json,
2685
+ });
2686
+ };
2687
+ const de_LifecycleExecutionResourceList = (output, context) => {
2688
+ const retVal = (output || [])
2689
+ .filter((e) => e != null)
2690
+ .map((entry) => {
2691
+ return de_LifecycleExecutionResource(entry, context);
2692
+ });
2693
+ return retVal;
2694
+ };
2674
2695
  const de_LifecycleExecutionsList = (output, context) => {
2675
2696
  const retVal = (output || [])
2676
2697
  .filter((e) => e != null)
@@ -46,7 +46,7 @@ declare const GetLifecycleExecutionCommand_base: {
46
46
  * // hasImpactedResources: true || false,
47
47
  * // },
48
48
  * // state: { // LifecycleExecutionState
49
- * // status: "IN_PROGRESS" || "CANCELLED" || "CANCELLING" || "FAILED" || "SUCCESS",
49
+ * // status: "IN_PROGRESS" || "CANCELLED" || "CANCELLING" || "FAILED" || "SUCCESS" || "PENDING",
50
50
  * // reason: "STRING_VALUE",
51
51
  * // },
52
52
  * // startTime: new Date("TIMESTAMP"),
@@ -44,7 +44,7 @@ declare const ListLifecycleExecutionResourcesCommand_base: {
44
44
  * // { // ListLifecycleExecutionResourcesResponse
45
45
  * // lifecycleExecutionId: "STRING_VALUE",
46
46
  * // lifecycleExecutionState: { // LifecycleExecutionState
47
- * // status: "IN_PROGRESS" || "CANCELLED" || "CANCELLING" || "FAILED" || "SUCCESS",
47
+ * // status: "IN_PROGRESS" || "CANCELLED" || "CANCELLING" || "FAILED" || "SUCCESS" || "PENDING",
48
48
  * // reason: "STRING_VALUE",
49
49
  * // },
50
50
  * // resources: [ // LifecycleExecutionResourceList
@@ -72,6 +72,8 @@ declare const ListLifecycleExecutionResourcesCommand_base: {
72
72
  * // imageUris: [ // StringList
73
73
  * // "STRING_VALUE",
74
74
  * // ],
75
+ * // startTime: new Date("TIMESTAMP"),
76
+ * // endTime: new Date("TIMESTAMP"),
75
77
  * // },
76
78
  * // ],
77
79
  * // nextToken: "STRING_VALUE",
@@ -49,7 +49,7 @@ declare const ListLifecycleExecutionsCommand_base: {
49
49
  * // hasImpactedResources: true || false,
50
50
  * // },
51
51
  * // state: { // LifecycleExecutionState
52
- * // status: "IN_PROGRESS" || "CANCELLED" || "CANCELLING" || "FAILED" || "SUCCESS",
52
+ * // status: "IN_PROGRESS" || "CANCELLED" || "CANCELLING" || "FAILED" || "SUCCESS" || "PENDING",
53
53
  * // reason: "STRING_VALUE",
54
54
  * // },
55
55
  * // startTime: new Date("TIMESTAMP"),
@@ -2499,7 +2499,8 @@ export interface LifecyclePolicyDetailExclusionRulesAmis {
2499
2499
  export interface LifecyclePolicyDetailExclusionRules {
2500
2500
  /**
2501
2501
  * @public
2502
- * <p>Contains a list of tags that Image Builder uses to skip lifecycle actions for resources that have them.</p>
2502
+ * <p>Contains a list of tags that Image Builder uses to skip lifecycle actions for Image Builder image
2503
+ * resources that have them.</p>
2503
2504
  */
2504
2505
  tagMap?: Record<string, string>;
2505
2506
  /**
@@ -2607,8 +2608,8 @@ export interface LifecyclePolicyResourceSelection {
2607
2608
  recipes?: LifecyclePolicyResourceSelectionRecipe[];
2608
2609
  /**
2609
2610
  * @public
2610
- * <p>A list of tags that are used as selection criteria for the resources
2611
- * that the lifecycle policy applies to.</p>
2611
+ * <p>A list of tags that are used as selection criteria for the Image Builder image
2612
+ * resources that the lifecycle policy applies to.</p>
2612
2613
  */
2613
2614
  tagMap?: Record<string, string>;
2614
2615
  }
@@ -4116,6 +4117,7 @@ export declare const LifecycleExecutionStatus: {
4116
4117
  readonly CANCELLING: "CANCELLING";
4117
4118
  readonly FAILED: "FAILED";
4118
4119
  readonly IN_PROGRESS: "IN_PROGRESS";
4120
+ readonly PENDING: "PENDING";
4119
4121
  readonly SUCCESS: "SUCCESS";
4120
4122
  };
4121
4123
  /**
@@ -6555,6 +6557,16 @@ export interface LifecycleExecutionResource {
6555
6557
  * container images distributed to ECR repositories.</p>
6556
6558
  */
6557
6559
  imageUris?: string[];
6560
+ /**
6561
+ * @public
6562
+ * <p>The starting timestamp from the lifecycle action that was applied to the resource.</p>
6563
+ */
6564
+ startTime?: Date;
6565
+ /**
6566
+ * @public
6567
+ * <p>The ending timestamp from the lifecycle action that was applied to the resource.</p>
6568
+ */
6569
+ endTime?: Date;
6558
6570
  }
6559
6571
  /**
6560
6572
  * @public
@@ -991,6 +991,7 @@ export declare const LifecycleExecutionStatus: {
991
991
  readonly CANCELLING: "CANCELLING";
992
992
  readonly FAILED: "FAILED";
993
993
  readonly IN_PROGRESS: "IN_PROGRESS";
994
+ readonly PENDING: "PENDING";
994
995
  readonly SUCCESS: "SUCCESS";
995
996
  };
996
997
  export type LifecycleExecutionStatus =
@@ -1494,6 +1495,8 @@ export interface LifecycleExecutionResource {
1494
1495
  region?: string;
1495
1496
  snapshots?: LifecycleExecutionSnapshotResource[];
1496
1497
  imageUris?: string[];
1498
+ startTime?: Date;
1499
+ endTime?: Date;
1497
1500
  }
1498
1501
  export interface ListLifecycleExecutionResourcesResponse {
1499
1502
  lifecycleExecutionId?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-imagebuilder",
3
3
  "description": "AWS SDK for JavaScript Imagebuilder Client for Node.js, Browser and React Native",
4
- "version": "3.525.0",
4
+ "version": "3.528.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-imagebuilder",