@aws-sdk/client-controltower 3.687.0 → 3.690.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -754,6 +754,14 @@ ResetEnabledBaseline
754
754
 
755
755
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/controltower/command/ResetEnabledBaselineCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-controltower/Interface/ResetEnabledBaselineCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-controltower/Interface/ResetEnabledBaselineCommandOutput/)
756
756
 
757
+ </details>
758
+ <details>
759
+ <summary>
760
+ ResetEnabledControl
761
+ </summary>
762
+
763
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/controltower/command/ResetEnabledControlCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-controltower/Interface/ResetEnabledControlCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-controltower/Interface/ResetEnabledControlCommandOutput/)
764
+
757
765
  </details>
758
766
  <details>
759
767
  <summary>
package/dist-cjs/index.js CHANGED
@@ -58,6 +58,7 @@ __export(src_exports, {
58
58
  ListLandingZonesCommand: () => ListLandingZonesCommand,
59
59
  ListTagsForResourceCommand: () => ListTagsForResourceCommand,
60
60
  ResetEnabledBaselineCommand: () => ResetEnabledBaselineCommand,
61
+ ResetEnabledControlCommand: () => ResetEnabledControlCommand,
61
62
  ResetLandingZoneCommand: () => ResetLandingZoneCommand,
62
63
  ResourceNotFoundException: () => ResourceNotFoundException,
63
64
  ServiceQuotaExceededException: () => ServiceQuotaExceededException,
@@ -349,6 +350,7 @@ var ValidationException = _ValidationException;
349
350
  var ControlOperationType = {
350
351
  DISABLE_CONTROL: "DISABLE_CONTROL",
351
352
  ENABLE_CONTROL: "ENABLE_CONTROL",
353
+ RESET_ENABLED_CONTROL: "RESET_ENABLED_CONTROL",
352
354
  UPDATE_ENABLED_CONTROL: "UPDATE_ENABLED_CONTROL"
353
355
  };
354
356
  var ControlOperationStatus = {
@@ -753,6 +755,21 @@ var se_ResetEnabledBaselineCommand = /* @__PURE__ */ __name(async (input, contex
753
755
  b.m("POST").h(headers).b(body);
754
756
  return b.build();
755
757
  }, "se_ResetEnabledBaselineCommand");
758
+ var se_ResetEnabledControlCommand = /* @__PURE__ */ __name(async (input, context) => {
759
+ const b = (0, import_core.requestBuilder)(input, context);
760
+ const headers = {
761
+ "content-type": "application/json"
762
+ };
763
+ b.bp("/reset-enabled-control");
764
+ let body;
765
+ body = JSON.stringify(
766
+ (0, import_smithy_client.take)(input, {
767
+ enabledControlIdentifier: []
768
+ })
769
+ );
770
+ b.m("POST").h(headers).b(body);
771
+ return b.build();
772
+ }, "se_ResetEnabledControlCommand");
756
773
  var se_ResetLandingZoneCommand = /* @__PURE__ */ __name(async (input, context) => {
757
774
  const b = (0, import_core.requestBuilder)(input, context);
758
775
  const headers = {
@@ -1151,6 +1168,20 @@ var de_ResetEnabledBaselineCommand = /* @__PURE__ */ __name(async (output, conte
1151
1168
  Object.assign(contents, doc);
1152
1169
  return contents;
1153
1170
  }, "de_ResetEnabledBaselineCommand");
1171
+ var de_ResetEnabledControlCommand = /* @__PURE__ */ __name(async (output, context) => {
1172
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1173
+ return de_CommandError(output, context);
1174
+ }
1175
+ const contents = (0, import_smithy_client.map)({
1176
+ $metadata: deserializeMetadata(output)
1177
+ });
1178
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1179
+ const doc = (0, import_smithy_client.take)(data, {
1180
+ operationIdentifier: import_smithy_client.expectString
1181
+ });
1182
+ Object.assign(contents, doc);
1183
+ return contents;
1184
+ }, "de_ResetEnabledControlCommand");
1154
1185
  var de_ResetLandingZoneCommand = /* @__PURE__ */ __name(async (output, context) => {
1155
1186
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1156
1187
  return de_CommandError(output, context);
@@ -1808,6 +1839,20 @@ var _ResetEnabledBaselineCommand = class _ResetEnabledBaselineCommand extends im
1808
1839
  __name(_ResetEnabledBaselineCommand, "ResetEnabledBaselineCommand");
1809
1840
  var ResetEnabledBaselineCommand = _ResetEnabledBaselineCommand;
1810
1841
 
1842
+ // src/commands/ResetEnabledControlCommand.ts
1843
+
1844
+
1845
+
1846
+ var _ResetEnabledControlCommand = class _ResetEnabledControlCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1847
+ return [
1848
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1849
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1850
+ ];
1851
+ }).s("AWSControlTowerApis", "ResetEnabledControl", {}).n("ControlTowerClient", "ResetEnabledControlCommand").f(void 0, void 0).ser(se_ResetEnabledControlCommand).de(de_ResetEnabledControlCommand).build() {
1852
+ };
1853
+ __name(_ResetEnabledControlCommand, "ResetEnabledControlCommand");
1854
+ var ResetEnabledControlCommand = _ResetEnabledControlCommand;
1855
+
1811
1856
  // src/commands/ResetLandingZoneCommand.ts
1812
1857
 
1813
1858
 
@@ -1915,6 +1960,7 @@ var commands = {
1915
1960
  ListLandingZonesCommand,
1916
1961
  ListTagsForResourceCommand,
1917
1962
  ResetEnabledBaselineCommand,
1963
+ ResetEnabledControlCommand,
1918
1964
  ResetLandingZoneCommand,
1919
1965
  TagResourceCommand,
1920
1966
  UntagResourceCommand,
@@ -1980,6 +2026,7 @@ var paginateListLandingZones = (0, import_core.createPaginator)(ControlTowerClie
1980
2026
  ListLandingZonesCommand,
1981
2027
  ListTagsForResourceCommand,
1982
2028
  ResetEnabledBaselineCommand,
2029
+ ResetEnabledControlCommand,
1983
2030
  ResetLandingZoneCommand,
1984
2031
  TagResourceCommand,
1985
2032
  UntagResourceCommand,
@@ -20,6 +20,7 @@ import { ListLandingZoneOperationsCommand, } from "./commands/ListLandingZoneOpe
20
20
  import { ListLandingZonesCommand, } from "./commands/ListLandingZonesCommand";
21
21
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
22
22
  import { ResetEnabledBaselineCommand, } from "./commands/ResetEnabledBaselineCommand";
23
+ import { ResetEnabledControlCommand, } from "./commands/ResetEnabledControlCommand";
23
24
  import { ResetLandingZoneCommand, } from "./commands/ResetLandingZoneCommand";
24
25
  import { TagResourceCommand } from "./commands/TagResourceCommand";
25
26
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
@@ -49,6 +50,7 @@ const commands = {
49
50
  ListLandingZonesCommand,
50
51
  ListTagsForResourceCommand,
51
52
  ResetEnabledBaselineCommand,
53
+ ResetEnabledControlCommand,
52
54
  ResetLandingZoneCommand,
53
55
  TagResourceCommand,
54
56
  UntagResourceCommand,
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ResetEnabledControlCommand, se_ResetEnabledControlCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ResetEnabledControlCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AWSControlTowerApis", "ResetEnabledControl", {})
17
+ .n("ControlTowerClient", "ResetEnabledControlCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ResetEnabledControlCommand)
20
+ .de(de_ResetEnabledControlCommand)
21
+ .build() {
22
+ }
@@ -19,6 +19,7 @@ export * from "./ListLandingZoneOperationsCommand";
19
19
  export * from "./ListLandingZonesCommand";
20
20
  export * from "./ListTagsForResourceCommand";
21
21
  export * from "./ResetEnabledBaselineCommand";
22
+ export * from "./ResetEnabledControlCommand";
22
23
  export * from "./ResetLandingZoneCommand";
23
24
  export * from "./TagResourceCommand";
24
25
  export * from "./UntagResourceCommand";
@@ -80,6 +80,7 @@ export class ValidationException extends __BaseException {
80
80
  export const ControlOperationType = {
81
81
  DISABLE_CONTROL: "DISABLE_CONTROL",
82
82
  ENABLE_CONTROL: "ENABLE_CONTROL",
83
+ RESET_ENABLED_CONTROL: "RESET_ENABLED_CONTROL",
83
84
  UPDATE_ENABLED_CONTROL: "UPDATE_ENABLED_CONTROL",
84
85
  };
85
86
  export const ControlOperationStatus = {
@@ -293,6 +293,19 @@ export const se_ResetEnabledBaselineCommand = async (input, context) => {
293
293
  b.m("POST").h(headers).b(body);
294
294
  return b.build();
295
295
  };
296
+ export const se_ResetEnabledControlCommand = async (input, context) => {
297
+ const b = rb(input, context);
298
+ const headers = {
299
+ "content-type": "application/json",
300
+ };
301
+ b.bp("/reset-enabled-control");
302
+ let body;
303
+ body = JSON.stringify(take(input, {
304
+ enabledControlIdentifier: [],
305
+ }));
306
+ b.m("POST").h(headers).b(body);
307
+ return b.build();
308
+ };
296
309
  export const se_ResetLandingZoneCommand = async (input, context) => {
297
310
  const b = rb(input, context);
298
311
  const headers = {
@@ -681,6 +694,20 @@ export const de_ResetEnabledBaselineCommand = async (output, context) => {
681
694
  Object.assign(contents, doc);
682
695
  return contents;
683
696
  };
697
+ export const de_ResetEnabledControlCommand = async (output, context) => {
698
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
699
+ return de_CommandError(output, context);
700
+ }
701
+ const contents = map({
702
+ $metadata: deserializeMetadata(output),
703
+ });
704
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
705
+ const doc = take(data, {
706
+ operationIdentifier: __expectString,
707
+ });
708
+ Object.assign(contents, doc);
709
+ return contents;
710
+ };
684
711
  export const de_ResetLandingZoneCommand = async (output, context) => {
685
712
  if (output.statusCode !== 200 && output.statusCode >= 300) {
686
713
  return de_CommandError(output, context);
@@ -20,6 +20,7 @@ import { ListLandingZoneOperationsCommandInput, ListLandingZoneOperationsCommand
20
20
  import { ListLandingZonesCommandInput, ListLandingZonesCommandOutput } from "./commands/ListLandingZonesCommand";
21
21
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
22
22
  import { ResetEnabledBaselineCommandInput, ResetEnabledBaselineCommandOutput } from "./commands/ResetEnabledBaselineCommand";
23
+ import { ResetEnabledControlCommandInput, ResetEnabledControlCommandOutput } from "./commands/ResetEnabledControlCommand";
23
24
  import { ResetLandingZoneCommandInput, ResetLandingZoneCommandOutput } from "./commands/ResetLandingZoneCommand";
24
25
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
25
26
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
@@ -160,6 +161,12 @@ export interface ControlTower {
160
161
  resetEnabledBaseline(args: ResetEnabledBaselineCommandInput, options?: __HttpHandlerOptions): Promise<ResetEnabledBaselineCommandOutput>;
161
162
  resetEnabledBaseline(args: ResetEnabledBaselineCommandInput, cb: (err: any, data?: ResetEnabledBaselineCommandOutput) => void): void;
162
163
  resetEnabledBaseline(args: ResetEnabledBaselineCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ResetEnabledBaselineCommandOutput) => void): void;
164
+ /**
165
+ * @see {@link ResetEnabledControlCommand}
166
+ */
167
+ resetEnabledControl(args: ResetEnabledControlCommandInput, options?: __HttpHandlerOptions): Promise<ResetEnabledControlCommandOutput>;
168
+ resetEnabledControl(args: ResetEnabledControlCommandInput, cb: (err: any, data?: ResetEnabledControlCommandOutput) => void): void;
169
+ resetEnabledControl(args: ResetEnabledControlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ResetEnabledControlCommandOutput) => void): void;
163
170
  /**
164
171
  * @see {@link ResetLandingZoneCommand}
165
172
  */
@@ -28,6 +28,7 @@ import { ListLandingZoneOperationsCommandInput, ListLandingZoneOperationsCommand
28
28
  import { ListLandingZonesCommandInput, ListLandingZonesCommandOutput } from "./commands/ListLandingZonesCommand";
29
29
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
30
30
  import { ResetEnabledBaselineCommandInput, ResetEnabledBaselineCommandOutput } from "./commands/ResetEnabledBaselineCommand";
31
+ import { ResetEnabledControlCommandInput, ResetEnabledControlCommandOutput } from "./commands/ResetEnabledControlCommand";
31
32
  import { ResetLandingZoneCommandInput, ResetLandingZoneCommandOutput } from "./commands/ResetLandingZoneCommand";
32
33
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
33
34
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
@@ -40,11 +41,11 @@ export { __Client };
40
41
  /**
41
42
  * @public
42
43
  */
43
- export type ServiceInputTypes = CreateLandingZoneCommandInput | DeleteLandingZoneCommandInput | DisableBaselineCommandInput | DisableControlCommandInput | EnableBaselineCommandInput | EnableControlCommandInput | GetBaselineCommandInput | GetBaselineOperationCommandInput | GetControlOperationCommandInput | GetEnabledBaselineCommandInput | GetEnabledControlCommandInput | GetLandingZoneCommandInput | GetLandingZoneOperationCommandInput | ListBaselinesCommandInput | ListControlOperationsCommandInput | ListEnabledBaselinesCommandInput | ListEnabledControlsCommandInput | ListLandingZoneOperationsCommandInput | ListLandingZonesCommandInput | ListTagsForResourceCommandInput | ResetEnabledBaselineCommandInput | ResetLandingZoneCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateEnabledBaselineCommandInput | UpdateEnabledControlCommandInput | UpdateLandingZoneCommandInput;
44
+ export type ServiceInputTypes = CreateLandingZoneCommandInput | DeleteLandingZoneCommandInput | DisableBaselineCommandInput | DisableControlCommandInput | EnableBaselineCommandInput | EnableControlCommandInput | GetBaselineCommandInput | GetBaselineOperationCommandInput | GetControlOperationCommandInput | GetEnabledBaselineCommandInput | GetEnabledControlCommandInput | GetLandingZoneCommandInput | GetLandingZoneOperationCommandInput | ListBaselinesCommandInput | ListControlOperationsCommandInput | ListEnabledBaselinesCommandInput | ListEnabledControlsCommandInput | ListLandingZoneOperationsCommandInput | ListLandingZonesCommandInput | ListTagsForResourceCommandInput | ResetEnabledBaselineCommandInput | ResetEnabledControlCommandInput | ResetLandingZoneCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateEnabledBaselineCommandInput | UpdateEnabledControlCommandInput | UpdateLandingZoneCommandInput;
44
45
  /**
45
46
  * @public
46
47
  */
47
- export type ServiceOutputTypes = CreateLandingZoneCommandOutput | DeleteLandingZoneCommandOutput | DisableBaselineCommandOutput | DisableControlCommandOutput | EnableBaselineCommandOutput | EnableControlCommandOutput | GetBaselineCommandOutput | GetBaselineOperationCommandOutput | GetControlOperationCommandOutput | GetEnabledBaselineCommandOutput | GetEnabledControlCommandOutput | GetLandingZoneCommandOutput | GetLandingZoneOperationCommandOutput | ListBaselinesCommandOutput | ListControlOperationsCommandOutput | ListEnabledBaselinesCommandOutput | ListEnabledControlsCommandOutput | ListLandingZoneOperationsCommandOutput | ListLandingZonesCommandOutput | ListTagsForResourceCommandOutput | ResetEnabledBaselineCommandOutput | ResetLandingZoneCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateEnabledBaselineCommandOutput | UpdateEnabledControlCommandOutput | UpdateLandingZoneCommandOutput;
48
+ export type ServiceOutputTypes = CreateLandingZoneCommandOutput | DeleteLandingZoneCommandOutput | DisableBaselineCommandOutput | DisableControlCommandOutput | EnableBaselineCommandOutput | EnableControlCommandOutput | GetBaselineCommandOutput | GetBaselineOperationCommandOutput | GetControlOperationCommandOutput | GetEnabledBaselineCommandOutput | GetEnabledControlCommandOutput | GetLandingZoneCommandOutput | GetLandingZoneOperationCommandOutput | ListBaselinesCommandOutput | ListControlOperationsCommandOutput | ListEnabledBaselinesCommandOutput | ListEnabledControlsCommandOutput | ListLandingZoneOperationsCommandOutput | ListLandingZonesCommandOutput | ListTagsForResourceCommandOutput | ResetEnabledBaselineCommandOutput | ResetEnabledControlCommandOutput | ResetLandingZoneCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateEnabledBaselineCommandOutput | UpdateEnabledControlCommandOutput | UpdateLandingZoneCommandOutput;
48
49
  /**
49
50
  * @public
50
51
  */
@@ -45,7 +45,7 @@ declare const GetControlOperationCommand_base: {
45
45
  * const response = await client.send(command);
46
46
  * // { // GetControlOperationOutput
47
47
  * // controlOperation: { // ControlOperation
48
- * // operationType: "ENABLE_CONTROL" || "DISABLE_CONTROL" || "UPDATE_ENABLED_CONTROL",
48
+ * // operationType: "ENABLE_CONTROL" || "DISABLE_CONTROL" || "UPDATE_ENABLED_CONTROL" || "RESET_ENABLED_CONTROL",
49
49
  * // startTime: new Date("TIMESTAMP"),
50
50
  * // endTime: new Date("TIMESTAMP"),
51
51
  * // status: "SUCCEEDED" || "FAILED" || "IN_PROGRESS",
@@ -49,7 +49,7 @@ declare const ListControlOperationsCommand_base: {
49
49
  * "SUCCEEDED" || "FAILED" || "IN_PROGRESS",
50
50
  * ],
51
51
  * controlOperationTypes: [ // ControlOperationTypes
52
- * "ENABLE_CONTROL" || "DISABLE_CONTROL" || "UPDATE_ENABLED_CONTROL",
52
+ * "ENABLE_CONTROL" || "DISABLE_CONTROL" || "UPDATE_ENABLED_CONTROL" || "RESET_ENABLED_CONTROL",
53
53
  * ],
54
54
  * },
55
55
  * nextToken: "STRING_VALUE",
@@ -60,7 +60,7 @@ declare const ListControlOperationsCommand_base: {
60
60
  * // { // ListControlOperationsOutput
61
61
  * // controlOperations: [ // ControlOperations // required
62
62
  * // { // ControlOperationSummary
63
- * // operationType: "ENABLE_CONTROL" || "DISABLE_CONTROL" || "UPDATE_ENABLED_CONTROL",
63
+ * // operationType: "ENABLE_CONTROL" || "DISABLE_CONTROL" || "UPDATE_ENABLED_CONTROL" || "RESET_ENABLED_CONTROL",
64
64
  * // startTime: new Date("TIMESTAMP"),
65
65
  * // endTime: new Date("TIMESTAMP"),
66
66
  * // status: "SUCCEEDED" || "FAILED" || "IN_PROGRESS",
@@ -0,0 +1,92 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ControlTowerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ControlTowerClient";
4
+ import { ResetEnabledControlInput, ResetEnabledControlOutput } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ResetEnabledControlCommand}.
14
+ */
15
+ export interface ResetEnabledControlCommandInput extends ResetEnabledControlInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ResetEnabledControlCommand}.
21
+ */
22
+ export interface ResetEnabledControlCommandOutput extends ResetEnabledControlOutput, __MetadataBearer {
23
+ }
24
+ declare const ResetEnabledControlCommand_base: {
25
+ new (input: ResetEnabledControlCommandInput): import("@smithy/smithy-client").CommandImpl<ResetEnabledControlCommandInput, ResetEnabledControlCommandOutput, ControlTowerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: ResetEnabledControlCommandInput): import("@smithy/smithy-client").CommandImpl<ResetEnabledControlCommandInput, ResetEnabledControlCommandOutput, ControlTowerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Resets an enabled control.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { ControlTowerClient, ResetEnabledControlCommand } from "@aws-sdk/client-controltower"; // ES Modules import
35
+ * // const { ControlTowerClient, ResetEnabledControlCommand } = require("@aws-sdk/client-controltower"); // CommonJS import
36
+ * const client = new ControlTowerClient(config);
37
+ * const input = { // ResetEnabledControlInput
38
+ * enabledControlIdentifier: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new ResetEnabledControlCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // ResetEnabledControlOutput
43
+ * // operationIdentifier: "STRING_VALUE", // required
44
+ * // };
45
+ *
46
+ * ```
47
+ *
48
+ * @param ResetEnabledControlCommandInput - {@link ResetEnabledControlCommandInput}
49
+ * @returns {@link ResetEnabledControlCommandOutput}
50
+ * @see {@link ResetEnabledControlCommandInput} for command's `input` shape.
51
+ * @see {@link ResetEnabledControlCommandOutput} for command's `response` shape.
52
+ * @see {@link ControlTowerClientResolvedConfig | config} for ControlTowerClient's `config` shape.
53
+ *
54
+ * @throws {@link AccessDeniedException} (client fault)
55
+ * <p>You do not have sufficient access to perform this action.</p>
56
+ *
57
+ * @throws {@link ConflictException} (client fault)
58
+ * <p>Updating or deleting the resource can cause an inconsistent state.</p>
59
+ *
60
+ * @throws {@link InternalServerException} (server fault)
61
+ * <p>An unexpected error occurred during processing of a request.</p>
62
+ *
63
+ * @throws {@link ResourceNotFoundException} (client fault)
64
+ * <p>The request references a resource that does not exist.</p>
65
+ *
66
+ * @throws {@link ServiceQuotaExceededException} (client fault)
67
+ * <p>The request would cause a service quota to be exceeded. The limit is 10 concurrent operations.</p>
68
+ *
69
+ * @throws {@link ThrottlingException} (client fault)
70
+ * <p>The request was denied due to request throttling.</p>
71
+ *
72
+ * @throws {@link ValidationException} (client fault)
73
+ * <p>The input does not satisfy the constraints specified by an Amazon Web Services service.</p>
74
+ *
75
+ * @throws {@link ControlTowerServiceException}
76
+ * <p>Base exception class for all service exceptions from ControlTower service.</p>
77
+ *
78
+ * @public
79
+ */
80
+ export declare class ResetEnabledControlCommand extends ResetEnabledControlCommand_base {
81
+ /** @internal type navigation helper, not in runtime. */
82
+ protected static __types: {
83
+ api: {
84
+ input: ResetEnabledControlInput;
85
+ output: ResetEnabledControlOutput;
86
+ };
87
+ sdk: {
88
+ input: ResetEnabledControlCommandInput;
89
+ output: ResetEnabledControlCommandOutput;
90
+ };
91
+ };
92
+ }
@@ -31,7 +31,7 @@ declare const UpdateEnabledControlCommand_base: {
31
31
  * Updates the configuration of an already enabled control.</p>
32
32
  * <p>If the enabled control shows an <code>EnablementStatus</code> of SUCCEEDED, supply parameters that are different from the currently configured parameters. Otherwise, Amazon Web Services Control Tower will not accept the request.</p>
33
33
  * <p>If the enabled control shows an <code>EnablementStatus</code> of FAILED, Amazon Web Services Control Tower updates the control to match any valid parameters that you supply.</p>
34
- * <p>If the <code>DriftSummary</code> status for the control shows as DRIFTED, you cannot call this API. Instead, you can update the control by calling <code>DisableControl</code> and again calling <code>EnableControl</code>, or you can run an extending governance operation. For usage examples, see the <a href="https://docs.aws.amazon.com/controltower/latest/controlreference/control-api-examples-short.html">
34
+ * <p>If the <code>DriftSummary</code> status for the control shows as <code>DRIFTED</code>, you cannot call this API. Instead, you can update the control by calling the <code>ResetEnabledControl</code> API. Alternatively, you can call <code>DisableControl</code> and then call <code>EnableControl</code> again. Also, you can run an extending governance operation to repair drift. For usage examples, see the <a href="https://docs.aws.amazon.com/controltower/latest/controlreference/control-api-examples-short.html">
35
35
  * <i>Controls Reference Guide</i>
36
36
  * </a>.
37
37
  * </p>
@@ -19,6 +19,7 @@ export * from "./ListLandingZoneOperationsCommand";
19
19
  export * from "./ListLandingZonesCommand";
20
20
  export * from "./ListTagsForResourceCommand";
21
21
  export * from "./ResetEnabledBaselineCommand";
22
+ export * from "./ResetEnabledControlCommand";
22
23
  export * from "./ResetLandingZoneCommand";
23
24
  export * from "./TagResourceCommand";
24
25
  export * from "./UntagResourceCommand";
@@ -262,6 +262,7 @@ export interface GetControlOperationInput {
262
262
  export declare const ControlOperationType: {
263
263
  readonly DISABLE_CONTROL: "DISABLE_CONTROL";
264
264
  readonly ENABLE_CONTROL: "ENABLE_CONTROL";
265
+ readonly RESET_ENABLED_CONTROL: "RESET_ENABLED_CONTROL";
265
266
  readonly UPDATE_ENABLED_CONTROL: "UPDATE_ENABLED_CONTROL";
266
267
  };
267
268
  /**
@@ -1136,6 +1137,26 @@ export interface ListEnabledControlsOutput {
1136
1137
  */
1137
1138
  nextToken?: string;
1138
1139
  }
1140
+ /**
1141
+ * @public
1142
+ */
1143
+ export interface ResetEnabledControlInput {
1144
+ /**
1145
+ * <p>The ARN of the enabled control to be reset.</p>
1146
+ * @public
1147
+ */
1148
+ enabledControlIdentifier: string | undefined;
1149
+ }
1150
+ /**
1151
+ * @public
1152
+ */
1153
+ export interface ResetEnabledControlOutput {
1154
+ /**
1155
+ * <p> The operation identifier for this <code>ResetEnabledControl</code> operation. </p>
1156
+ * @public
1157
+ */
1158
+ operationIdentifier: string | undefined;
1159
+ }
1139
1160
  /**
1140
1161
  * @public
1141
1162
  */
@@ -21,6 +21,7 @@ import { ListLandingZoneOperationsCommandInput, ListLandingZoneOperationsCommand
21
21
  import { ListLandingZonesCommandInput, ListLandingZonesCommandOutput } from "../commands/ListLandingZonesCommand";
22
22
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
23
23
  import { ResetEnabledBaselineCommandInput, ResetEnabledBaselineCommandOutput } from "../commands/ResetEnabledBaselineCommand";
24
+ import { ResetEnabledControlCommandInput, ResetEnabledControlCommandOutput } from "../commands/ResetEnabledControlCommand";
24
25
  import { ResetLandingZoneCommandInput, ResetLandingZoneCommandOutput } from "../commands/ResetLandingZoneCommand";
25
26
  import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
26
27
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
@@ -111,6 +112,10 @@ export declare const se_ListTagsForResourceCommand: (input: ListTagsForResourceC
111
112
  * serializeAws_restJson1ResetEnabledBaselineCommand
112
113
  */
113
114
  export declare const se_ResetEnabledBaselineCommand: (input: ResetEnabledBaselineCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
115
+ /**
116
+ * serializeAws_restJson1ResetEnabledControlCommand
117
+ */
118
+ export declare const se_ResetEnabledControlCommand: (input: ResetEnabledControlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
114
119
  /**
115
120
  * serializeAws_restJson1ResetLandingZoneCommand
116
121
  */
@@ -219,6 +224,10 @@ export declare const de_ListTagsForResourceCommand: (output: __HttpResponse, con
219
224
  * deserializeAws_restJson1ResetEnabledBaselineCommand
220
225
  */
221
226
  export declare const de_ResetEnabledBaselineCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ResetEnabledBaselineCommandOutput>;
227
+ /**
228
+ * deserializeAws_restJson1ResetEnabledControlCommand
229
+ */
230
+ export declare const de_ResetEnabledControlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ResetEnabledControlCommandOutput>;
222
231
  /**
223
232
  * deserializeAws_restJson1ResetLandingZoneCommand
224
233
  */
@@ -83,6 +83,10 @@ import {
83
83
  ResetEnabledBaselineCommandInput,
84
84
  ResetEnabledBaselineCommandOutput,
85
85
  } from "./commands/ResetEnabledBaselineCommand";
86
+ import {
87
+ ResetEnabledControlCommandInput,
88
+ ResetEnabledControlCommandOutput,
89
+ } from "./commands/ResetEnabledControlCommand";
86
90
  import {
87
91
  ResetLandingZoneCommandInput,
88
92
  ResetLandingZoneCommandOutput,
@@ -388,6 +392,19 @@ export interface ControlTower {
388
392
  options: __HttpHandlerOptions,
389
393
  cb: (err: any, data?: ResetEnabledBaselineCommandOutput) => void
390
394
  ): void;
395
+ resetEnabledControl(
396
+ args: ResetEnabledControlCommandInput,
397
+ options?: __HttpHandlerOptions
398
+ ): Promise<ResetEnabledControlCommandOutput>;
399
+ resetEnabledControl(
400
+ args: ResetEnabledControlCommandInput,
401
+ cb: (err: any, data?: ResetEnabledControlCommandOutput) => void
402
+ ): void;
403
+ resetEnabledControl(
404
+ args: ResetEnabledControlCommandInput,
405
+ options: __HttpHandlerOptions,
406
+ cb: (err: any, data?: ResetEnabledControlCommandOutput) => void
407
+ ): void;
391
408
  resetLandingZone(
392
409
  args: ResetLandingZoneCommandInput,
393
410
  options?: __HttpHandlerOptions
@@ -129,6 +129,10 @@ import {
129
129
  ResetEnabledBaselineCommandInput,
130
130
  ResetEnabledBaselineCommandOutput,
131
131
  } from "./commands/ResetEnabledBaselineCommand";
132
+ import {
133
+ ResetEnabledControlCommandInput,
134
+ ResetEnabledControlCommandOutput,
135
+ } from "./commands/ResetEnabledControlCommand";
132
136
  import {
133
137
  ResetLandingZoneCommandInput,
134
138
  ResetLandingZoneCommandOutput,
@@ -182,6 +186,7 @@ export type ServiceInputTypes =
182
186
  | ListLandingZonesCommandInput
183
187
  | ListTagsForResourceCommandInput
184
188
  | ResetEnabledBaselineCommandInput
189
+ | ResetEnabledControlCommandInput
185
190
  | ResetLandingZoneCommandInput
186
191
  | TagResourceCommandInput
187
192
  | UntagResourceCommandInput
@@ -210,6 +215,7 @@ export type ServiceOutputTypes =
210
215
  | ListLandingZonesCommandOutput
211
216
  | ListTagsForResourceCommandOutput
212
217
  | ResetEnabledBaselineCommandOutput
218
+ | ResetEnabledControlCommandOutput
213
219
  | ResetLandingZoneCommandOutput
214
220
  | TagResourceCommandOutput
215
221
  | UntagResourceCommandOutput
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ ControlTowerClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../ControlTowerClient";
8
+ import {
9
+ ResetEnabledControlInput,
10
+ ResetEnabledControlOutput,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface ResetEnabledControlCommandInput
15
+ extends ResetEnabledControlInput {}
16
+ export interface ResetEnabledControlCommandOutput
17
+ extends ResetEnabledControlOutput,
18
+ __MetadataBearer {}
19
+ declare const ResetEnabledControlCommand_base: {
20
+ new (
21
+ input: ResetEnabledControlCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ ResetEnabledControlCommandInput,
24
+ ResetEnabledControlCommandOutput,
25
+ ControlTowerClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ __0_0: ResetEnabledControlCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ ResetEnabledControlCommandInput,
33
+ ResetEnabledControlCommandOutput,
34
+ ControlTowerClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class ResetEnabledControlCommand extends ResetEnabledControlCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: ResetEnabledControlInput;
44
+ output: ResetEnabledControlOutput;
45
+ };
46
+ sdk: {
47
+ input: ResetEnabledControlCommandInput;
48
+ output: ResetEnabledControlCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -19,6 +19,7 @@ export * from "./ListLandingZoneOperationsCommand";
19
19
  export * from "./ListLandingZonesCommand";
20
20
  export * from "./ListTagsForResourceCommand";
21
21
  export * from "./ResetEnabledBaselineCommand";
22
+ export * from "./ResetEnabledControlCommand";
22
23
  export * from "./ResetLandingZoneCommand";
23
24
  export * from "./TagResourceCommand";
24
25
  export * from "./UntagResourceCommand";
@@ -99,6 +99,7 @@ export interface GetControlOperationInput {
99
99
  export declare const ControlOperationType: {
100
100
  readonly DISABLE_CONTROL: "DISABLE_CONTROL";
101
101
  readonly ENABLE_CONTROL: "ENABLE_CONTROL";
102
+ readonly RESET_ENABLED_CONTROL: "RESET_ENABLED_CONTROL";
102
103
  readonly UPDATE_ENABLED_CONTROL: "UPDATE_ENABLED_CONTROL";
103
104
  };
104
105
  export type ControlOperationType =
@@ -322,6 +323,12 @@ export interface ListEnabledControlsOutput {
322
323
  enabledControls: EnabledControlSummary[] | undefined;
323
324
  nextToken?: string;
324
325
  }
326
+ export interface ResetEnabledControlInput {
327
+ enabledControlIdentifier: string | undefined;
328
+ }
329
+ export interface ResetEnabledControlOutput {
330
+ operationIdentifier: string | undefined;
331
+ }
325
332
  export interface UpdateEnabledControlInput {
326
333
  parameters: EnabledControlParameter[] | undefined;
327
334
  enabledControlIdentifier: string | undefined;
@@ -87,6 +87,10 @@ import {
87
87
  ResetEnabledBaselineCommandInput,
88
88
  ResetEnabledBaselineCommandOutput,
89
89
  } from "../commands/ResetEnabledBaselineCommand";
90
+ import {
91
+ ResetEnabledControlCommandInput,
92
+ ResetEnabledControlCommandOutput,
93
+ } from "../commands/ResetEnabledControlCommand";
90
94
  import {
91
95
  ResetLandingZoneCommandInput,
92
96
  ResetLandingZoneCommandOutput,
@@ -195,6 +199,10 @@ export declare const se_ResetEnabledBaselineCommand: (
195
199
  input: ResetEnabledBaselineCommandInput,
196
200
  context: __SerdeContext
197
201
  ) => Promise<__HttpRequest>;
202
+ export declare const se_ResetEnabledControlCommand: (
203
+ input: ResetEnabledControlCommandInput,
204
+ context: __SerdeContext
205
+ ) => Promise<__HttpRequest>;
198
206
  export declare const se_ResetLandingZoneCommand: (
199
207
  input: ResetLandingZoneCommandInput,
200
208
  context: __SerdeContext
@@ -303,6 +311,10 @@ export declare const de_ResetEnabledBaselineCommand: (
303
311
  output: __HttpResponse,
304
312
  context: __SerdeContext
305
313
  ) => Promise<ResetEnabledBaselineCommandOutput>;
314
+ export declare const de_ResetEnabledControlCommand: (
315
+ output: __HttpResponse,
316
+ context: __SerdeContext
317
+ ) => Promise<ResetEnabledControlCommandOutput>;
306
318
  export declare const de_ResetLandingZoneCommand: (
307
319
  output: __HttpResponse,
308
320
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-controltower",
3
3
  "description": "AWS SDK for JavaScript Controltower Client for Node.js, Browser and React Native",
4
- "version": "3.687.0",
4
+ "version": "3.690.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-controltower",