@aws-sdk/client-cloudcontrol 3.691.0 → 3.693.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
@@ -273,7 +273,8 @@ var HandlerErrorCode = {
273
273
  SERVICE_INTERNAL_ERROR: "ServiceInternalError",
274
274
  SERVICE_LIMIT_EXCEEDED: "ServiceLimitExceeded",
275
275
  SERVICE_TIMEOUT: "ServiceTimeout",
276
- THROTTLING: "Throttling"
276
+ THROTTLING: "Throttling",
277
+ UNAUTHORIZED_TAGGING_OPERATION: "UnauthorizedTaggingOperation"
277
278
  };
278
279
  var Operation = {
279
280
  CREATE: "CREATE",
@@ -1179,9 +1180,28 @@ var de_DeleteResourceOutput = /* @__PURE__ */ __name((output, context) => {
1179
1180
  }, "de_DeleteResourceOutput");
1180
1181
  var de_GetResourceRequestStatusOutput = /* @__PURE__ */ __name((output, context) => {
1181
1182
  return (0, import_smithy_client.take)(output, {
1183
+ HooksProgressEvent: (_) => de_HooksProgressEvent(_, context),
1182
1184
  ProgressEvent: (_) => de_ProgressEvent(_, context)
1183
1185
  });
1184
1186
  }, "de_GetResourceRequestStatusOutput");
1187
+ var de_HookProgressEvent = /* @__PURE__ */ __name((output, context) => {
1188
+ return (0, import_smithy_client.take)(output, {
1189
+ FailureMode: import_smithy_client.expectString,
1190
+ HookEventTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1191
+ HookStatus: import_smithy_client.expectString,
1192
+ HookStatusMessage: import_smithy_client.expectString,
1193
+ HookTypeArn: import_smithy_client.expectString,
1194
+ HookTypeName: import_smithy_client.expectString,
1195
+ HookTypeVersionId: import_smithy_client.expectString,
1196
+ InvocationPoint: import_smithy_client.expectString
1197
+ });
1198
+ }, "de_HookProgressEvent");
1199
+ var de_HooksProgressEvent = /* @__PURE__ */ __name((output, context) => {
1200
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1201
+ return de_HookProgressEvent(entry, context);
1202
+ });
1203
+ return retVal;
1204
+ }, "de_HooksProgressEvent");
1185
1205
  var de_ListResourceRequestsOutput = /* @__PURE__ */ __name((output, context) => {
1186
1206
  return (0, import_smithy_client.take)(output, {
1187
1207
  NextToken: import_smithy_client.expectString,
@@ -1192,6 +1212,7 @@ var de_ProgressEvent = /* @__PURE__ */ __name((output, context) => {
1192
1212
  return (0, import_smithy_client.take)(output, {
1193
1213
  ErrorCode: import_smithy_client.expectString,
1194
1214
  EventTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1215
+ HooksRequestToken: import_smithy_client.expectString,
1195
1216
  Identifier: import_smithy_client.expectString,
1196
1217
  Operation: import_smithy_client.expectString,
1197
1218
  OperationStatus: import_smithy_client.expectString,
@@ -29,6 +29,7 @@ export const HandlerErrorCode = {
29
29
  SERVICE_LIMIT_EXCEEDED: "ServiceLimitExceeded",
30
30
  SERVICE_TIMEOUT: "ServiceTimeout",
31
31
  THROTTLING: "Throttling",
32
+ UNAUTHORIZED_TAGGING_OPERATION: "UnauthorizedTaggingOperation",
32
33
  };
33
34
  export const Operation = {
34
35
  CREATE: "CREATE",
@@ -469,9 +469,30 @@ const de_DeleteResourceOutput = (output, context) => {
469
469
  };
470
470
  const de_GetResourceRequestStatusOutput = (output, context) => {
471
471
  return take(output, {
472
+ HooksProgressEvent: (_) => de_HooksProgressEvent(_, context),
472
473
  ProgressEvent: (_) => de_ProgressEvent(_, context),
473
474
  });
474
475
  };
476
+ const de_HookProgressEvent = (output, context) => {
477
+ return take(output, {
478
+ FailureMode: __expectString,
479
+ HookEventTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
480
+ HookStatus: __expectString,
481
+ HookStatusMessage: __expectString,
482
+ HookTypeArn: __expectString,
483
+ HookTypeName: __expectString,
484
+ HookTypeVersionId: __expectString,
485
+ InvocationPoint: __expectString,
486
+ });
487
+ };
488
+ const de_HooksProgressEvent = (output, context) => {
489
+ const retVal = (output || [])
490
+ .filter((e) => e != null)
491
+ .map((entry) => {
492
+ return de_HookProgressEvent(entry, context);
493
+ });
494
+ return retVal;
495
+ };
475
496
  const de_ListResourceRequestsOutput = (output, context) => {
476
497
  return take(output, {
477
498
  NextToken: __expectString,
@@ -482,6 +503,7 @@ const de_ProgressEvent = (output, context) => {
482
503
  return take(output, {
483
504
  ErrorCode: __expectString,
484
505
  EventTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
506
+ HooksRequestToken: __expectString,
485
507
  Identifier: __expectString,
486
508
  Operation: __expectString,
487
509
  OperationStatus: __expectString,
@@ -47,6 +47,7 @@ declare const CancelResourceRequestCommand_base: {
47
47
  * // TypeName: "STRING_VALUE",
48
48
  * // Identifier: "STRING_VALUE",
49
49
  * // RequestToken: "STRING_VALUE",
50
+ * // HooksRequestToken: "STRING_VALUE",
50
51
  * // Operation: "STRING_VALUE",
51
52
  * // OperationStatus: "STRING_VALUE",
52
53
  * // EventTime: new Date("TIMESTAMP"),
@@ -52,6 +52,7 @@ declare const CreateResourceCommand_base: {
52
52
  * // TypeName: "STRING_VALUE",
53
53
  * // Identifier: "STRING_VALUE",
54
54
  * // RequestToken: "STRING_VALUE",
55
+ * // HooksRequestToken: "STRING_VALUE",
55
56
  * // Operation: "STRING_VALUE",
56
57
  * // OperationStatus: "STRING_VALUE",
57
58
  * // EventTime: new Date("TIMESTAMP"),
@@ -52,6 +52,7 @@ declare const DeleteResourceCommand_base: {
52
52
  * // TypeName: "STRING_VALUE",
53
53
  * // Identifier: "STRING_VALUE",
54
54
  * // RequestToken: "STRING_VALUE",
55
+ * // HooksRequestToken: "STRING_VALUE",
55
56
  * // Operation: "STRING_VALUE",
56
57
  * // OperationStatus: "STRING_VALUE",
57
58
  * // EventTime: new Date("TIMESTAMP"),
@@ -46,6 +46,7 @@ declare const GetResourceRequestStatusCommand_base: {
46
46
  * // TypeName: "STRING_VALUE",
47
47
  * // Identifier: "STRING_VALUE",
48
48
  * // RequestToken: "STRING_VALUE",
49
+ * // HooksRequestToken: "STRING_VALUE",
49
50
  * // Operation: "STRING_VALUE",
50
51
  * // OperationStatus: "STRING_VALUE",
51
52
  * // EventTime: new Date("TIMESTAMP"),
@@ -54,6 +55,18 @@ declare const GetResourceRequestStatusCommand_base: {
54
55
  * // ErrorCode: "STRING_VALUE",
55
56
  * // RetryAfter: new Date("TIMESTAMP"),
56
57
  * // },
58
+ * // HooksProgressEvent: [ // HooksProgressEvent
59
+ * // { // HookProgressEvent
60
+ * // HookTypeName: "STRING_VALUE",
61
+ * // HookTypeVersionId: "STRING_VALUE",
62
+ * // HookTypeArn: "STRING_VALUE",
63
+ * // InvocationPoint: "STRING_VALUE",
64
+ * // HookStatus: "STRING_VALUE",
65
+ * // HookEventTime: new Date("TIMESTAMP"),
66
+ * // HookStatusMessage: "STRING_VALUE",
67
+ * // FailureMode: "STRING_VALUE",
68
+ * // },
69
+ * // ],
57
70
  * // };
58
71
  *
59
72
  * ```
@@ -59,6 +59,7 @@ declare const ListResourceRequestsCommand_base: {
59
59
  * // TypeName: "STRING_VALUE",
60
60
  * // Identifier: "STRING_VALUE",
61
61
  * // RequestToken: "STRING_VALUE",
62
+ * // HooksRequestToken: "STRING_VALUE",
62
63
  * // Operation: "STRING_VALUE",
63
64
  * // OperationStatus: "STRING_VALUE",
64
65
  * // EventTime: new Date("TIMESTAMP"),
@@ -60,6 +60,7 @@ declare const UpdateResourceCommand_base: {
60
60
  * // TypeName: "STRING_VALUE",
61
61
  * // Identifier: "STRING_VALUE",
62
62
  * // RequestToken: "STRING_VALUE",
63
+ * // HooksRequestToken: "STRING_VALUE",
63
64
  * // Operation: "STRING_VALUE",
64
65
  * // OperationStatus: "STRING_VALUE",
65
66
  * // EventTime: new Date("TIMESTAMP"),
@@ -44,6 +44,7 @@ export declare const HandlerErrorCode: {
44
44
  readonly SERVICE_LIMIT_EXCEEDED: "ServiceLimitExceeded";
45
45
  readonly SERVICE_TIMEOUT: "ServiceTimeout";
46
46
  readonly THROTTLING: "Throttling";
47
+ readonly UNAUTHORIZED_TAGGING_OPERATION: "UnauthorizedTaggingOperation";
47
48
  };
48
49
  /**
49
50
  * @public
@@ -106,6 +107,11 @@ export interface ProgressEvent {
106
107
  * @public
107
108
  */
108
109
  RequestToken?: string | undefined;
110
+ /**
111
+ * <p>The unique token representing the Hooks operation for the request.</p>
112
+ * @public
113
+ */
114
+ HooksRequestToken?: string | undefined;
109
115
  /**
110
116
  * <p>The resource operation type.</p>
111
117
  * @public
@@ -718,6 +724,87 @@ export interface GetResourceRequestStatusInput {
718
724
  */
719
725
  RequestToken: string | undefined;
720
726
  }
727
+ /**
728
+ * <p>Represents the current status of applicable Hooks for a resource operation request. It contains list of
729
+ * Hook invocation information for the resource specified in the request since the same target can invoke multiple Hooks.
730
+ * For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html">Managing resource operation requests with Amazon Web Services Cloud Control API
731
+ * </a>.</p>
732
+ * @public
733
+ */
734
+ export interface HookProgressEvent {
735
+ /**
736
+ * <p>The type name of the Hook being invoked.</p>
737
+ * @public
738
+ */
739
+ HookTypeName?: string | undefined;
740
+ /**
741
+ * <p>The type version of the Hook being invoked.</p>
742
+ * @public
743
+ */
744
+ HookTypeVersionId?: string | undefined;
745
+ /**
746
+ * <p>The ARN of the Hook being invoked.</p>
747
+ * @public
748
+ */
749
+ HookTypeArn?: string | undefined;
750
+ /**
751
+ * <p>States whether the Hook is invoked before or after resource provisioning.</p>
752
+ * @public
753
+ */
754
+ InvocationPoint?: string | undefined;
755
+ /**
756
+ * <p>The status of the Hook invocation. The following are potential statuses:</p>
757
+ * <ul>
758
+ * <li>
759
+ * <p>
760
+ * <code>HOOK_PENDING</code>: The Hook was added to the invocation plan, but not yet invoked.</p>
761
+ * </li>
762
+ * <li>
763
+ * <p>
764
+ * <code>HOOK_IN_PROGRESS</code>: The Hook was invoked, but hasn't completed.</p>
765
+ * </li>
766
+ * <li>
767
+ * <p>
768
+ * <code>HOOK_COMPLETE_SUCCEEDED</code>: The Hook invocation is complete with a successful result.</p>
769
+ * </li>
770
+ * <li>
771
+ * <p>
772
+ * <code>HOOK_COMPLETE_FAILED</code>: The Hook invocation is complete with a failed result.</p>
773
+ * </li>
774
+ * <li>
775
+ * <p>
776
+ * <code>HOOK_FAILED</code>: The Hook invocation didn't complete successfully.</p>
777
+ * </li>
778
+ * </ul>
779
+ * @public
780
+ */
781
+ HookStatus?: string | undefined;
782
+ /**
783
+ * <p>The time that the Hook invocation request initiated.</p>
784
+ * @public
785
+ */
786
+ HookEventTime?: Date | undefined;
787
+ /**
788
+ * <p>The message explaining the current Hook status.</p>
789
+ * @public
790
+ */
791
+ HookStatusMessage?: string | undefined;
792
+ /**
793
+ * <p>The failure mode of the invocation. The following are the potential statuses:</p>
794
+ * <ul>
795
+ * <li>
796
+ * <p>
797
+ * <code>FAIL</code>: This will fail the Hook invocation and the request associated with it.</p>
798
+ * </li>
799
+ * <li>
800
+ * <p>
801
+ * <code>WARN</code>: This will fail the Hook invocation, but not the request associated with it.</p>
802
+ * </li>
803
+ * </ul>
804
+ * @public
805
+ */
806
+ FailureMode?: string | undefined;
807
+ }
721
808
  /**
722
809
  * @public
723
810
  */
@@ -727,6 +814,11 @@ export interface GetResourceRequestStatusOutput {
727
814
  * @public
728
815
  */
729
816
  ProgressEvent?: ProgressEvent | undefined;
817
+ /**
818
+ * <p>Lists Hook invocations for the specified target in the request. This is a list since the same target can invoke multiple Hooks.</p>
819
+ * @public
820
+ */
821
+ HooksProgressEvent?: HookProgressEvent[] | undefined;
730
822
  }
731
823
  /**
732
824
  * <p>The filter criteria to use in determining the requests returned.</p>
@@ -27,6 +27,7 @@ export declare const HandlerErrorCode: {
27
27
  readonly SERVICE_LIMIT_EXCEEDED: "ServiceLimitExceeded";
28
28
  readonly SERVICE_TIMEOUT: "ServiceTimeout";
29
29
  readonly THROTTLING: "Throttling";
30
+ readonly UNAUTHORIZED_TAGGING_OPERATION: "UnauthorizedTaggingOperation";
30
31
  };
31
32
  export type HandlerErrorCode =
32
33
  (typeof HandlerErrorCode)[keyof typeof HandlerErrorCode];
@@ -50,6 +51,7 @@ export interface ProgressEvent {
50
51
  TypeName?: string | undefined;
51
52
  Identifier?: string | undefined;
52
53
  RequestToken?: string | undefined;
54
+ HooksRequestToken?: string | undefined;
53
55
  Operation?: Operation | undefined;
54
56
  OperationStatus?: OperationStatus | undefined;
55
57
  EventTime?: Date | undefined;
@@ -264,8 +266,19 @@ export interface GetResourceOutput {
264
266
  export interface GetResourceRequestStatusInput {
265
267
  RequestToken: string | undefined;
266
268
  }
269
+ export interface HookProgressEvent {
270
+ HookTypeName?: string | undefined;
271
+ HookTypeVersionId?: string | undefined;
272
+ HookTypeArn?: string | undefined;
273
+ InvocationPoint?: string | undefined;
274
+ HookStatus?: string | undefined;
275
+ HookEventTime?: Date | undefined;
276
+ HookStatusMessage?: string | undefined;
277
+ FailureMode?: string | undefined;
278
+ }
267
279
  export interface GetResourceRequestStatusOutput {
268
280
  ProgressEvent?: ProgressEvent | undefined;
281
+ HooksProgressEvent?: HookProgressEvent[] | undefined;
269
282
  }
270
283
  export interface ResourceRequestStatusFilter {
271
284
  Operations?: Operation[] | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudcontrol",
3
3
  "description": "AWS SDK for JavaScript Cloudcontrol Client for Node.js, Browser and React Native",
4
- "version": "3.691.0",
4
+ "version": "3.693.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-cloudcontrol",
@@ -20,45 +20,45 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.691.0",
24
- "@aws-sdk/client-sts": "3.691.0",
25
- "@aws-sdk/core": "3.691.0",
26
- "@aws-sdk/credential-provider-node": "3.691.0",
27
- "@aws-sdk/middleware-host-header": "3.686.0",
28
- "@aws-sdk/middleware-logger": "3.686.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.686.0",
30
- "@aws-sdk/middleware-user-agent": "3.691.0",
31
- "@aws-sdk/region-config-resolver": "3.686.0",
32
- "@aws-sdk/types": "3.686.0",
33
- "@aws-sdk/util-endpoints": "3.686.0",
34
- "@aws-sdk/util-user-agent-browser": "3.686.0",
35
- "@aws-sdk/util-user-agent-node": "3.691.0",
36
- "@smithy/config-resolver": "^3.0.10",
37
- "@smithy/core": "^2.5.1",
38
- "@smithy/fetch-http-handler": "^4.0.0",
39
- "@smithy/hash-node": "^3.0.8",
40
- "@smithy/invalid-dependency": "^3.0.8",
41
- "@smithy/middleware-content-length": "^3.0.10",
42
- "@smithy/middleware-endpoint": "^3.2.1",
43
- "@smithy/middleware-retry": "^3.0.25",
44
- "@smithy/middleware-serde": "^3.0.8",
45
- "@smithy/middleware-stack": "^3.0.8",
46
- "@smithy/node-config-provider": "^3.1.9",
47
- "@smithy/node-http-handler": "^3.2.5",
48
- "@smithy/protocol-http": "^4.1.5",
49
- "@smithy/smithy-client": "^3.4.2",
50
- "@smithy/types": "^3.6.0",
51
- "@smithy/url-parser": "^3.0.8",
23
+ "@aws-sdk/client-sso-oidc": "3.693.0",
24
+ "@aws-sdk/client-sts": "3.693.0",
25
+ "@aws-sdk/core": "3.693.0",
26
+ "@aws-sdk/credential-provider-node": "3.693.0",
27
+ "@aws-sdk/middleware-host-header": "3.693.0",
28
+ "@aws-sdk/middleware-logger": "3.693.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.693.0",
30
+ "@aws-sdk/middleware-user-agent": "3.693.0",
31
+ "@aws-sdk/region-config-resolver": "3.693.0",
32
+ "@aws-sdk/types": "3.692.0",
33
+ "@aws-sdk/util-endpoints": "3.693.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.693.0",
35
+ "@aws-sdk/util-user-agent-node": "3.693.0",
36
+ "@smithy/config-resolver": "^3.0.11",
37
+ "@smithy/core": "^2.5.2",
38
+ "@smithy/fetch-http-handler": "^4.1.0",
39
+ "@smithy/hash-node": "^3.0.9",
40
+ "@smithy/invalid-dependency": "^3.0.9",
41
+ "@smithy/middleware-content-length": "^3.0.11",
42
+ "@smithy/middleware-endpoint": "^3.2.2",
43
+ "@smithy/middleware-retry": "^3.0.26",
44
+ "@smithy/middleware-serde": "^3.0.9",
45
+ "@smithy/middleware-stack": "^3.0.9",
46
+ "@smithy/node-config-provider": "^3.1.10",
47
+ "@smithy/node-http-handler": "^3.3.0",
48
+ "@smithy/protocol-http": "^4.1.6",
49
+ "@smithy/smithy-client": "^3.4.3",
50
+ "@smithy/types": "^3.7.0",
51
+ "@smithy/url-parser": "^3.0.9",
52
52
  "@smithy/util-base64": "^3.0.0",
53
53
  "@smithy/util-body-length-browser": "^3.0.0",
54
54
  "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.25",
56
- "@smithy/util-defaults-mode-node": "^3.0.25",
57
- "@smithy/util-endpoints": "^2.1.4",
58
- "@smithy/util-middleware": "^3.0.8",
59
- "@smithy/util-retry": "^3.0.8",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.26",
56
+ "@smithy/util-defaults-mode-node": "^3.0.26",
57
+ "@smithy/util-endpoints": "^2.1.5",
58
+ "@smithy/util-middleware": "^3.0.9",
59
+ "@smithy/util-retry": "^3.0.9",
60
60
  "@smithy/util-utf8": "^3.0.0",
61
- "@smithy/util-waiter": "^3.1.7",
61
+ "@smithy/util-waiter": "^3.1.8",
62
62
  "@types/uuid": "^9.0.1",
63
63
  "tslib": "^2.6.2",
64
64
  "uuid": "^9.0.1"