-
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-fis): This release adds safety levers, a new mechanism to…
… stop all running experiments and prevent new experiments from starting.
- Loading branch information
awstools
committed
Sep 4, 2024
1 parent
3d2c2fa
commit f71b730
Showing
12 changed files
with
535 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
// 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 { commonParams } from "../endpoint/EndpointParameters"; | ||
import { FisClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FisClient"; | ||
import { GetSafetyLeverRequest, GetSafetyLeverResponse } from "../models/models_0"; | ||
import { de_GetSafetyLeverCommand, se_GetSafetyLeverCommand } from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link GetSafetyLeverCommand}. | ||
*/ | ||
export interface GetSafetyLeverCommandInput extends GetSafetyLeverRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link GetSafetyLeverCommand}. | ||
*/ | ||
export interface GetSafetyLeverCommandOutput extends GetSafetyLeverResponse, __MetadataBearer {} | ||
|
||
/** | ||
* <p> | ||
* Gets information about the specified safety lever. | ||
* </p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { FisClient, GetSafetyLeverCommand } from "@aws-sdk/client-fis"; // ES Modules import | ||
* // const { FisClient, GetSafetyLeverCommand } = require("@aws-sdk/client-fis"); // CommonJS import | ||
* const client = new FisClient(config); | ||
* const input = { // GetSafetyLeverRequest | ||
* id: "STRING_VALUE", // required | ||
* }; | ||
* const command = new GetSafetyLeverCommand(input); | ||
* const response = await client.send(command); | ||
* // { // GetSafetyLeverResponse | ||
* // safetyLever: { // SafetyLever | ||
* // id: "STRING_VALUE", | ||
* // arn: "STRING_VALUE", | ||
* // state: { // SafetyLeverState | ||
* // status: "disengaged" || "engaged" || "engaging", | ||
* // reason: "STRING_VALUE", | ||
* // }, | ||
* // }, | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param GetSafetyLeverCommandInput - {@link GetSafetyLeverCommandInput} | ||
* @returns {@link GetSafetyLeverCommandOutput} | ||
* @see {@link GetSafetyLeverCommandInput} for command's `input` shape. | ||
* @see {@link GetSafetyLeverCommandOutput} for command's `response` shape. | ||
* @see {@link FisClientResolvedConfig | config} for FisClient's `config` shape. | ||
* | ||
* @throws {@link ResourceNotFoundException} (client fault) | ||
* <p>The specified resource cannot be found.</p> | ||
* | ||
* @throws {@link FisServiceException} | ||
* <p>Base exception class for all service exceptions from Fis service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class GetSafetyLeverCommand extends $Command | ||
.classBuilder< | ||
GetSafetyLeverCommandInput, | ||
GetSafetyLeverCommandOutput, | ||
FisClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep({ | ||
...commonParams, | ||
}) | ||
.m(function (this: any, Command: any, cs: any, config: FisClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("FaultInjectionSimulator", "GetSafetyLever", {}) | ||
.n("FisClient", "GetSafetyLeverCommand") | ||
.f(void 0, void 0) | ||
.ser(se_GetSafetyLeverCommand) | ||
.de(de_GetSafetyLeverCommand) | ||
.build() {} |
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.