-
Notifications
You must be signed in to change notification settings - Fork 579
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-controltower): Added ResetEnabledControl API.
- Loading branch information
awstools
committed
Nov 12, 2024
1 parent
eeb1195
commit 580cabc
Showing
11 changed files
with
308 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
113 changes: 113 additions & 0 deletions
113
clients/client-controltower/src/commands/ResetEnabledControlCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
// smithy-typescript generated code | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
import { Command as $Command } from "@smithy/smithy-client"; | ||
import { MetadataBearer as __MetadataBearer } from "@smithy/types"; | ||
|
||
import { ControlTowerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ControlTowerClient"; | ||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { ResetEnabledControlInput, ResetEnabledControlOutput } from "../models/models_0"; | ||
import { de_ResetEnabledControlCommand, se_ResetEnabledControlCommand } from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link ResetEnabledControlCommand}. | ||
*/ | ||
export interface ResetEnabledControlCommandInput extends ResetEnabledControlInput {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link ResetEnabledControlCommand}. | ||
*/ | ||
export interface ResetEnabledControlCommandOutput extends ResetEnabledControlOutput, __MetadataBearer {} | ||
|
||
/** | ||
* <p>Resets an enabled control.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { ControlTowerClient, ResetEnabledControlCommand } from "@aws-sdk/client-controltower"; // ES Modules import | ||
* // const { ControlTowerClient, ResetEnabledControlCommand } = require("@aws-sdk/client-controltower"); // CommonJS import | ||
* const client = new ControlTowerClient(config); | ||
* const input = { // ResetEnabledControlInput | ||
* enabledControlIdentifier: "STRING_VALUE", // required | ||
* }; | ||
* const command = new ResetEnabledControlCommand(input); | ||
* const response = await client.send(command); | ||
* // { // ResetEnabledControlOutput | ||
* // operationIdentifier: "STRING_VALUE", // required | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param ResetEnabledControlCommandInput - {@link ResetEnabledControlCommandInput} | ||
* @returns {@link ResetEnabledControlCommandOutput} | ||
* @see {@link ResetEnabledControlCommandInput} for command's `input` shape. | ||
* @see {@link ResetEnabledControlCommandOutput} for command's `response` shape. | ||
* @see {@link ControlTowerClientResolvedConfig | config} for ControlTowerClient's `config` shape. | ||
* | ||
* @throws {@link AccessDeniedException} (client fault) | ||
* <p>You do not have sufficient access to perform this action.</p> | ||
* | ||
* @throws {@link ConflictException} (client fault) | ||
* <p>Updating or deleting the resource can cause an inconsistent state.</p> | ||
* | ||
* @throws {@link InternalServerException} (server fault) | ||
* <p>An unexpected error occurred during processing of a request.</p> | ||
* | ||
* @throws {@link ResourceNotFoundException} (client fault) | ||
* <p>The request references a resource that does not exist.</p> | ||
* | ||
* @throws {@link ServiceQuotaExceededException} (client fault) | ||
* <p>The request would cause a service quota to be exceeded. The limit is 10 concurrent operations.</p> | ||
* | ||
* @throws {@link ThrottlingException} (client fault) | ||
* <p>The request was denied due to request throttling.</p> | ||
* | ||
* @throws {@link ValidationException} (client fault) | ||
* <p>The input does not satisfy the constraints specified by an Amazon Web Services service.</p> | ||
* | ||
* @throws {@link ControlTowerServiceException} | ||
* <p>Base exception class for all service exceptions from ControlTower service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class ResetEnabledControlCommand extends $Command | ||
.classBuilder< | ||
ResetEnabledControlCommandInput, | ||
ResetEnabledControlCommandOutput, | ||
ControlTowerClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep(commonParams) | ||
.m(function (this: any, Command: any, cs: any, config: ControlTowerClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("AWSControlTowerApis", "ResetEnabledControl", {}) | ||
.n("ControlTowerClient", "ResetEnabledControlCommand") | ||
.f(void 0, void 0) | ||
.ser(se_ResetEnabledControlCommand) | ||
.de(de_ResetEnabledControlCommand) | ||
.build() { | ||
/** @internal type navigation helper, not in runtime. */ | ||
protected declare static __types: { | ||
api: { | ||
input: ResetEnabledControlInput; | ||
output: ResetEnabledControlOutput; | ||
}; | ||
sdk: { | ||
input: ResetEnabledControlCommandInput; | ||
output: ResetEnabledControlCommandOutput; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.