@aws-sdk/client-fis 3.637.0 → 3.649.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.
Files changed (35) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/endpoint/endpointResolver.js +6 -2
  3. package/dist-cjs/index.js +106 -1
  4. package/dist-es/Fis.js +4 -0
  5. package/dist-es/commands/GetSafetyLeverCommand.js +24 -0
  6. package/dist-es/commands/UpdateSafetyLeverStateCommand.js +24 -0
  7. package/dist-es/commands/index.js +2 -0
  8. package/dist-es/endpoint/endpointResolver.js +7 -3
  9. package/dist-es/models/models_0.js +10 -0
  10. package/dist-es/protocols/Aws_restJson1.js +51 -0
  11. package/dist-types/Fis.d.ts +14 -0
  12. package/dist-types/FisClient.d.ts +4 -2
  13. package/dist-types/commands/GetExperimentCommand.d.ts +1 -1
  14. package/dist-types/commands/GetSafetyLeverCommand.d.ts +72 -0
  15. package/dist-types/commands/ListExperimentsCommand.d.ts +1 -1
  16. package/dist-types/commands/StartExperimentCommand.d.ts +1 -1
  17. package/dist-types/commands/StopExperimentCommand.d.ts +1 -1
  18. package/dist-types/commands/UpdateSafetyLeverStateCommand.d.ts +82 -0
  19. package/dist-types/commands/index.d.ts +2 -0
  20. package/dist-types/models/models_0.d.ts +154 -0
  21. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  22. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  23. package/dist-types/runtimeConfig.d.ts +2 -0
  24. package/dist-types/runtimeConfig.native.d.ts +2 -0
  25. package/dist-types/ts3.4/Fis.d.ts +34 -0
  26. package/dist-types/ts3.4/FisClient.d.ts +12 -0
  27. package/dist-types/ts3.4/commands/GetSafetyLeverCommand.d.ts +39 -0
  28. package/dist-types/ts3.4/commands/UpdateSafetyLeverStateCommand.d.ts +40 -0
  29. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  30. package/dist-types/ts3.4/models/models_0.d.ts +40 -0
  31. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  32. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  33. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  34. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  35. package/package.json +35 -35
@@ -53,7 +53,7 @@ declare const StartExperimentCommand_base: {
53
53
  * // experimentTemplateId: "STRING_VALUE",
54
54
  * // roleArn: "STRING_VALUE",
55
55
  * // state: { // ExperimentState
56
- * // status: "pending" || "initiating" || "running" || "completed" || "stopping" || "stopped" || "failed",
56
+ * // status: "pending" || "initiating" || "running" || "completed" || "stopping" || "stopped" || "failed" || "cancelled",
57
57
  * // reason: "STRING_VALUE",
58
58
  * // error: { // ExperimentError
59
59
  * // accountId: "STRING_VALUE",
@@ -46,7 +46,7 @@ declare const StopExperimentCommand_base: {
46
46
  * // experimentTemplateId: "STRING_VALUE",
47
47
  * // roleArn: "STRING_VALUE",
48
48
  * // state: { // ExperimentState
49
- * // status: "pending" || "initiating" || "running" || "completed" || "stopping" || "stopped" || "failed",
49
+ * // status: "pending" || "initiating" || "running" || "completed" || "stopping" || "stopped" || "failed" || "cancelled",
50
50
  * // reason: "STRING_VALUE",
51
51
  * // error: { // ExperimentError
52
52
  * // accountId: "STRING_VALUE",
@@ -0,0 +1,82 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { FisClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FisClient";
4
+ import { UpdateSafetyLeverStateRequest, UpdateSafetyLeverStateResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateSafetyLeverStateCommand}.
14
+ */
15
+ export interface UpdateSafetyLeverStateCommandInput extends UpdateSafetyLeverStateRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateSafetyLeverStateCommand}.
21
+ */
22
+ export interface UpdateSafetyLeverStateCommandOutput extends UpdateSafetyLeverStateResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateSafetyLeverStateCommand_base: {
25
+ new (input: UpdateSafetyLeverStateCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateSafetyLeverStateCommandInput, UpdateSafetyLeverStateCommandOutput, FisClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: UpdateSafetyLeverStateCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateSafetyLeverStateCommandInput, UpdateSafetyLeverStateCommandOutput, FisClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>
31
+ * Updates the specified safety lever state.
32
+ * </p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { FisClient, UpdateSafetyLeverStateCommand } from "@aws-sdk/client-fis"; // ES Modules import
37
+ * // const { FisClient, UpdateSafetyLeverStateCommand } = require("@aws-sdk/client-fis"); // CommonJS import
38
+ * const client = new FisClient(config);
39
+ * const input = { // UpdateSafetyLeverStateRequest
40
+ * id: "STRING_VALUE", // required
41
+ * state: { // UpdateSafetyLeverStateInput
42
+ * status: "disengaged" || "engaged", // required
43
+ * reason: "STRING_VALUE", // required
44
+ * },
45
+ * };
46
+ * const command = new UpdateSafetyLeverStateCommand(input);
47
+ * const response = await client.send(command);
48
+ * // { // UpdateSafetyLeverStateResponse
49
+ * // safetyLever: { // SafetyLever
50
+ * // id: "STRING_VALUE",
51
+ * // arn: "STRING_VALUE",
52
+ * // state: { // SafetyLeverState
53
+ * // status: "disengaged" || "engaged" || "engaging",
54
+ * // reason: "STRING_VALUE",
55
+ * // },
56
+ * // },
57
+ * // };
58
+ *
59
+ * ```
60
+ *
61
+ * @param UpdateSafetyLeverStateCommandInput - {@link UpdateSafetyLeverStateCommandInput}
62
+ * @returns {@link UpdateSafetyLeverStateCommandOutput}
63
+ * @see {@link UpdateSafetyLeverStateCommandInput} for command's `input` shape.
64
+ * @see {@link UpdateSafetyLeverStateCommandOutput} for command's `response` shape.
65
+ * @see {@link FisClientResolvedConfig | config} for FisClient's `config` shape.
66
+ *
67
+ * @throws {@link ConflictException} (client fault)
68
+ * <p>The request could not be processed because of a conflict.</p>
69
+ *
70
+ * @throws {@link ResourceNotFoundException} (client fault)
71
+ * <p>The specified resource cannot be found.</p>
72
+ *
73
+ * @throws {@link ValidationException} (client fault)
74
+ * <p>The specified input is not valid, or fails to satisfy the constraints for the request.</p>
75
+ *
76
+ * @throws {@link FisServiceException}
77
+ * <p>Base exception class for all service exceptions from Fis service.</p>
78
+ *
79
+ * @public
80
+ */
81
+ export declare class UpdateSafetyLeverStateCommand extends UpdateSafetyLeverStateCommand_base {
82
+ }
@@ -6,6 +6,7 @@ export * from "./GetActionCommand";
6
6
  export * from "./GetExperimentCommand";
7
7
  export * from "./GetExperimentTargetAccountConfigurationCommand";
8
8
  export * from "./GetExperimentTemplateCommand";
9
+ export * from "./GetSafetyLeverCommand";
9
10
  export * from "./GetTargetAccountConfigurationCommand";
10
11
  export * from "./GetTargetResourceTypeCommand";
11
12
  export * from "./ListActionsCommand";
@@ -21,4 +22,5 @@ export * from "./StopExperimentCommand";
21
22
  export * from "./TagResourceCommand";
22
23
  export * from "./UntagResourceCommand";
23
24
  export * from "./UpdateExperimentTemplateCommand";
25
+ export * from "./UpdateSafetyLeverStateCommand";
24
26
  export * from "./UpdateTargetAccountConfigurationCommand";
@@ -941,6 +941,7 @@ export interface ExperimentError {
941
941
  * @enum
942
942
  */
943
943
  export declare const ExperimentStatus: {
944
+ readonly cancelled: "cancelled";
944
945
  readonly completed: "completed";
945
946
  readonly failed: "failed";
946
947
  readonly initiating: "initiating";
@@ -1327,6 +1328,94 @@ export interface GetExperimentTemplateResponse {
1327
1328
  */
1328
1329
  experimentTemplate?: ExperimentTemplate;
1329
1330
  }
1331
+ /**
1332
+ * @public
1333
+ */
1334
+ export interface GetSafetyLeverRequest {
1335
+ /**
1336
+ * <p>
1337
+ * The ID of the safety lever.
1338
+ * </p>
1339
+ * @public
1340
+ */
1341
+ id: string | undefined;
1342
+ }
1343
+ /**
1344
+ * @public
1345
+ * @enum
1346
+ */
1347
+ export declare const SafetyLeverStatus: {
1348
+ readonly DISENGAGED: "disengaged";
1349
+ readonly ENGAGED: "engaged";
1350
+ readonly ENGAGING: "engaging";
1351
+ };
1352
+ /**
1353
+ * @public
1354
+ */
1355
+ export type SafetyLeverStatus = (typeof SafetyLeverStatus)[keyof typeof SafetyLeverStatus];
1356
+ /**
1357
+ * <p>
1358
+ * Describes the state of the safety lever.
1359
+ * </p>
1360
+ * @public
1361
+ */
1362
+ export interface SafetyLeverState {
1363
+ /**
1364
+ * <p>
1365
+ * The state of the safety lever.
1366
+ * </p>
1367
+ * @public
1368
+ */
1369
+ status?: SafetyLeverStatus;
1370
+ /**
1371
+ * <p>
1372
+ * The reason for the state of the safety lever.
1373
+ * </p>
1374
+ * @public
1375
+ */
1376
+ reason?: string;
1377
+ }
1378
+ /**
1379
+ * <p>
1380
+ * Describes a safety lever.
1381
+ * </p>
1382
+ * @public
1383
+ */
1384
+ export interface SafetyLever {
1385
+ /**
1386
+ * <p>
1387
+ * The ID of the safety lever.
1388
+ * </p>
1389
+ * @public
1390
+ */
1391
+ id?: string;
1392
+ /**
1393
+ * <p>
1394
+ * The Amazon Resource Name (ARN) of the safety lever.
1395
+ * </p>
1396
+ * @public
1397
+ */
1398
+ arn?: string;
1399
+ /**
1400
+ * <p>
1401
+ * The state of the safety lever.
1402
+ * </p>
1403
+ * @public
1404
+ */
1405
+ state?: SafetyLeverState;
1406
+ }
1407
+ /**
1408
+ * @public
1409
+ */
1410
+ export interface GetSafetyLeverResponse {
1411
+ /**
1412
+ * <p>
1413
+ * Information about the safety lever.
1414
+ * </p>
1415
+ * @public
1416
+ */
1417
+ safetyLever?: SafetyLever;
1418
+ }
1330
1419
  /**
1331
1420
  * @public
1332
1421
  */
@@ -2001,6 +2090,71 @@ export interface UpdateExperimentTemplateResponse {
2001
2090
  */
2002
2091
  experimentTemplate?: ExperimentTemplate;
2003
2092
  }
2093
+ /**
2094
+ * @public
2095
+ * @enum
2096
+ */
2097
+ export declare const SafetyLeverStatusInput: {
2098
+ readonly DISENGAGED: "disengaged";
2099
+ readonly ENGAGED: "engaged";
2100
+ };
2101
+ /**
2102
+ * @public
2103
+ */
2104
+ export type SafetyLeverStatusInput = (typeof SafetyLeverStatusInput)[keyof typeof SafetyLeverStatusInput];
2105
+ /**
2106
+ * <p>
2107
+ * Specifies a state for a safety lever.
2108
+ * </p>
2109
+ * @public
2110
+ */
2111
+ export interface UpdateSafetyLeverStateInput {
2112
+ /**
2113
+ * <p>
2114
+ * The updated state of the safety lever.
2115
+ * </p>
2116
+ * @public
2117
+ */
2118
+ status: SafetyLeverStatusInput | undefined;
2119
+ /**
2120
+ * <p>
2121
+ * The reason for updating the state of the safety lever.
2122
+ * </p>
2123
+ * @public
2124
+ */
2125
+ reason: string | undefined;
2126
+ }
2127
+ /**
2128
+ * @public
2129
+ */
2130
+ export interface UpdateSafetyLeverStateRequest {
2131
+ /**
2132
+ * <p>
2133
+ * The ID of the safety lever.
2134
+ * </p>
2135
+ * @public
2136
+ */
2137
+ id: string | undefined;
2138
+ /**
2139
+ * <p>
2140
+ * The state of the safety lever.
2141
+ * </p>
2142
+ * @public
2143
+ */
2144
+ state: UpdateSafetyLeverStateInput | undefined;
2145
+ }
2146
+ /**
2147
+ * @public
2148
+ */
2149
+ export interface UpdateSafetyLeverStateResponse {
2150
+ /**
2151
+ * <p>
2152
+ * Information about the safety lever.
2153
+ * </p>
2154
+ * @public
2155
+ */
2156
+ safetyLever?: SafetyLever;
2157
+ }
2004
2158
  /**
2005
2159
  * @public
2006
2160
  */
@@ -8,6 +8,7 @@ import { GetActionCommandInput, GetActionCommandOutput } from "../commands/GetAc
8
8
  import { GetExperimentCommandInput, GetExperimentCommandOutput } from "../commands/GetExperimentCommand";
9
9
  import { GetExperimentTargetAccountConfigurationCommandInput, GetExperimentTargetAccountConfigurationCommandOutput } from "../commands/GetExperimentTargetAccountConfigurationCommand";
10
10
  import { GetExperimentTemplateCommandInput, GetExperimentTemplateCommandOutput } from "../commands/GetExperimentTemplateCommand";
11
+ import { GetSafetyLeverCommandInput, GetSafetyLeverCommandOutput } from "../commands/GetSafetyLeverCommand";
11
12
  import { GetTargetAccountConfigurationCommandInput, GetTargetAccountConfigurationCommandOutput } from "../commands/GetTargetAccountConfigurationCommand";
12
13
  import { GetTargetResourceTypeCommandInput, GetTargetResourceTypeCommandOutput } from "../commands/GetTargetResourceTypeCommand";
13
14
  import { ListActionsCommandInput, ListActionsCommandOutput } from "../commands/ListActionsCommand";
@@ -23,6 +24,7 @@ import { StopExperimentCommandInput, StopExperimentCommandOutput } from "../comm
23
24
  import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
24
25
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
25
26
  import { UpdateExperimentTemplateCommandInput, UpdateExperimentTemplateCommandOutput } from "../commands/UpdateExperimentTemplateCommand";
27
+ import { UpdateSafetyLeverStateCommandInput, UpdateSafetyLeverStateCommandOutput } from "../commands/UpdateSafetyLeverStateCommand";
26
28
  import { UpdateTargetAccountConfigurationCommandInput, UpdateTargetAccountConfigurationCommandOutput } from "../commands/UpdateTargetAccountConfigurationCommand";
27
29
  /**
28
30
  * serializeAws_restJson1CreateExperimentTemplateCommand
@@ -56,6 +58,10 @@ export declare const se_GetExperimentTargetAccountConfigurationCommand: (input:
56
58
  * serializeAws_restJson1GetExperimentTemplateCommand
57
59
  */
58
60
  export declare const se_GetExperimentTemplateCommand: (input: GetExperimentTemplateCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
61
+ /**
62
+ * serializeAws_restJson1GetSafetyLeverCommand
63
+ */
64
+ export declare const se_GetSafetyLeverCommand: (input: GetSafetyLeverCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
59
65
  /**
60
66
  * serializeAws_restJson1GetTargetAccountConfigurationCommand
61
67
  */
@@ -116,6 +122,10 @@ export declare const se_UntagResourceCommand: (input: UntagResourceCommandInput,
116
122
  * serializeAws_restJson1UpdateExperimentTemplateCommand
117
123
  */
118
124
  export declare const se_UpdateExperimentTemplateCommand: (input: UpdateExperimentTemplateCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
125
+ /**
126
+ * serializeAws_restJson1UpdateSafetyLeverStateCommand
127
+ */
128
+ export declare const se_UpdateSafetyLeverStateCommand: (input: UpdateSafetyLeverStateCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
119
129
  /**
120
130
  * serializeAws_restJson1UpdateTargetAccountConfigurationCommand
121
131
  */
@@ -152,6 +162,10 @@ export declare const de_GetExperimentTargetAccountConfigurationCommand: (output:
152
162
  * deserializeAws_restJson1GetExperimentTemplateCommand
153
163
  */
154
164
  export declare const de_GetExperimentTemplateCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetExperimentTemplateCommandOutput>;
165
+ /**
166
+ * deserializeAws_restJson1GetSafetyLeverCommand
167
+ */
168
+ export declare const de_GetSafetyLeverCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetSafetyLeverCommandOutput>;
155
169
  /**
156
170
  * deserializeAws_restJson1GetTargetAccountConfigurationCommand
157
171
  */
@@ -212,6 +226,10 @@ export declare const de_UntagResourceCommand: (output: __HttpResponse, context:
212
226
  * deserializeAws_restJson1UpdateExperimentTemplateCommand
213
227
  */
214
228
  export declare const de_UpdateExperimentTemplateCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateExperimentTemplateCommandOutput>;
229
+ /**
230
+ * deserializeAws_restJson1UpdateSafetyLeverStateCommand
231
+ */
232
+ export declare const de_UpdateSafetyLeverStateCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateSafetyLeverStateCommandOutput>;
215
233
  /**
216
234
  * deserializeAws_restJson1UpdateTargetAccountConfigurationCommand
217
235
  */
@@ -18,6 +18,7 @@ export declare const getRuntimeConfig: (config: FisClientConfig) => {
18
18
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
19
19
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
20
  apiVersion: string;
21
+ cacheMiddleware?: boolean | undefined;
21
22
  urlParser: import("@smithy/types").UrlParser;
22
23
  base64Decoder: import("@smithy/types").Decoder;
23
24
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -34,6 +35,7 @@ export declare const getRuntimeConfig: (config: FisClientConfig) => {
34
35
  logger?: import("@smithy/types").Logger | undefined;
35
36
  }) => import("@smithy/types").EndpointV2;
36
37
  tls?: boolean | undefined;
38
+ serviceConfiguredEndpoint?: undefined;
37
39
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
38
40
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").FisHttpAuthSchemeProvider;
39
41
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -18,6 +18,7 @@ export declare const getRuntimeConfig: (config: FisClientConfig) => {
18
18
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
19
19
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
20
  apiVersion: string;
21
+ cacheMiddleware?: boolean | undefined;
21
22
  urlParser: import("@smithy/types").UrlParser;
22
23
  base64Decoder: import("@smithy/types").Decoder;
23
24
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -34,6 +35,7 @@ export declare const getRuntimeConfig: (config: FisClientConfig) => {
34
35
  logger?: import("@smithy/types").Logger | undefined;
35
36
  }) => import("@smithy/types").EndpointV2;
36
37
  tls?: boolean | undefined;
38
+ serviceConfiguredEndpoint?: undefined;
37
39
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
38
40
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").FisHttpAuthSchemeProvider;
39
41
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -7,6 +7,7 @@ export declare const getRuntimeConfig: (config: FisClientConfig) => {
7
7
  sha256: import("@smithy/types").HashConstructor;
8
8
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
9
  apiVersion: string;
10
+ cacheMiddleware?: boolean | undefined;
10
11
  urlParser: import("@smithy/types").UrlParser;
11
12
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
12
13
  streamCollector: import("@smithy/types").StreamCollector;
@@ -33,6 +34,7 @@ export declare const getRuntimeConfig: (config: FisClientConfig) => {
33
34
  logger?: import("@smithy/types").Logger | undefined;
34
35
  }) => import("@smithy/types").EndpointV2;
35
36
  tls?: boolean | undefined;
37
+ serviceConfiguredEndpoint?: undefined;
36
38
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
37
39
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").FisHttpAuthSchemeProvider;
38
40
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -31,6 +31,10 @@ import {
31
31
  GetExperimentTemplateCommandInput,
32
32
  GetExperimentTemplateCommandOutput,
33
33
  } from "./commands/GetExperimentTemplateCommand";
34
+ import {
35
+ GetSafetyLeverCommandInput,
36
+ GetSafetyLeverCommandOutput,
37
+ } from "./commands/GetSafetyLeverCommand";
34
38
  import {
35
39
  GetTargetAccountConfigurationCommandInput,
36
40
  GetTargetAccountConfigurationCommandOutput,
@@ -91,6 +95,10 @@ import {
91
95
  UpdateExperimentTemplateCommandInput,
92
96
  UpdateExperimentTemplateCommandOutput,
93
97
  } from "./commands/UpdateExperimentTemplateCommand";
98
+ import {
99
+ UpdateSafetyLeverStateCommandInput,
100
+ UpdateSafetyLeverStateCommandOutput,
101
+ } from "./commands/UpdateSafetyLeverStateCommand";
94
102
  import {
95
103
  UpdateTargetAccountConfigurationCommandInput,
96
104
  UpdateTargetAccountConfigurationCommandOutput,
@@ -207,6 +215,19 @@ export interface Fis {
207
215
  options: __HttpHandlerOptions,
208
216
  cb: (err: any, data?: GetExperimentTemplateCommandOutput) => void
209
217
  ): void;
218
+ getSafetyLever(
219
+ args: GetSafetyLeverCommandInput,
220
+ options?: __HttpHandlerOptions
221
+ ): Promise<GetSafetyLeverCommandOutput>;
222
+ getSafetyLever(
223
+ args: GetSafetyLeverCommandInput,
224
+ cb: (err: any, data?: GetSafetyLeverCommandOutput) => void
225
+ ): void;
226
+ getSafetyLever(
227
+ args: GetSafetyLeverCommandInput,
228
+ options: __HttpHandlerOptions,
229
+ cb: (err: any, data?: GetSafetyLeverCommandOutput) => void
230
+ ): void;
210
231
  getTargetAccountConfiguration(
211
232
  args: GetTargetAccountConfigurationCommandInput,
212
233
  options?: __HttpHandlerOptions
@@ -412,6 +433,19 @@ export interface Fis {
412
433
  options: __HttpHandlerOptions,
413
434
  cb: (err: any, data?: UpdateExperimentTemplateCommandOutput) => void
414
435
  ): void;
436
+ updateSafetyLeverState(
437
+ args: UpdateSafetyLeverStateCommandInput,
438
+ options?: __HttpHandlerOptions
439
+ ): Promise<UpdateSafetyLeverStateCommandOutput>;
440
+ updateSafetyLeverState(
441
+ args: UpdateSafetyLeverStateCommandInput,
442
+ cb: (err: any, data?: UpdateSafetyLeverStateCommandOutput) => void
443
+ ): void;
444
+ updateSafetyLeverState(
445
+ args: UpdateSafetyLeverStateCommandInput,
446
+ options: __HttpHandlerOptions,
447
+ cb: (err: any, data?: UpdateSafetyLeverStateCommandOutput) => void
448
+ ): void;
415
449
  updateTargetAccountConfiguration(
416
450
  args: UpdateTargetAccountConfigurationCommandInput,
417
451
  options?: __HttpHandlerOptions
@@ -77,6 +77,10 @@ import {
77
77
  GetExperimentTemplateCommandInput,
78
78
  GetExperimentTemplateCommandOutput,
79
79
  } from "./commands/GetExperimentTemplateCommand";
80
+ import {
81
+ GetSafetyLeverCommandInput,
82
+ GetSafetyLeverCommandOutput,
83
+ } from "./commands/GetSafetyLeverCommand";
80
84
  import {
81
85
  GetTargetAccountConfigurationCommandInput,
82
86
  GetTargetAccountConfigurationCommandOutput,
@@ -137,6 +141,10 @@ import {
137
141
  UpdateExperimentTemplateCommandInput,
138
142
  UpdateExperimentTemplateCommandOutput,
139
143
  } from "./commands/UpdateExperimentTemplateCommand";
144
+ import {
145
+ UpdateSafetyLeverStateCommandInput,
146
+ UpdateSafetyLeverStateCommandOutput,
147
+ } from "./commands/UpdateSafetyLeverStateCommand";
140
148
  import {
141
149
  UpdateTargetAccountConfigurationCommandInput,
142
150
  UpdateTargetAccountConfigurationCommandOutput,
@@ -157,6 +165,7 @@ export type ServiceInputTypes =
157
165
  | GetExperimentCommandInput
158
166
  | GetExperimentTargetAccountConfigurationCommandInput
159
167
  | GetExperimentTemplateCommandInput
168
+ | GetSafetyLeverCommandInput
160
169
  | GetTargetAccountConfigurationCommandInput
161
170
  | GetTargetResourceTypeCommandInput
162
171
  | ListActionsCommandInput
@@ -172,6 +181,7 @@ export type ServiceInputTypes =
172
181
  | TagResourceCommandInput
173
182
  | UntagResourceCommandInput
174
183
  | UpdateExperimentTemplateCommandInput
184
+ | UpdateSafetyLeverStateCommandInput
175
185
  | UpdateTargetAccountConfigurationCommandInput;
176
186
  export type ServiceOutputTypes =
177
187
  | CreateExperimentTemplateCommandOutput
@@ -182,6 +192,7 @@ export type ServiceOutputTypes =
182
192
  | GetExperimentCommandOutput
183
193
  | GetExperimentTargetAccountConfigurationCommandOutput
184
194
  | GetExperimentTemplateCommandOutput
195
+ | GetSafetyLeverCommandOutput
185
196
  | GetTargetAccountConfigurationCommandOutput
186
197
  | GetTargetResourceTypeCommandOutput
187
198
  | ListActionsCommandOutput
@@ -197,6 +208,7 @@ export type ServiceOutputTypes =
197
208
  | TagResourceCommandOutput
198
209
  | UntagResourceCommandOutput
199
210
  | UpdateExperimentTemplateCommandOutput
211
+ | UpdateSafetyLeverStateCommandOutput
200
212
  | UpdateTargetAccountConfigurationCommandOutput;
201
213
  export interface ClientDefaults
202
214
  extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
@@ -0,0 +1,39 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ FisClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../FisClient";
8
+ import {
9
+ GetSafetyLeverRequest,
10
+ GetSafetyLeverResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface GetSafetyLeverCommandInput extends GetSafetyLeverRequest {}
15
+ export interface GetSafetyLeverCommandOutput
16
+ extends GetSafetyLeverResponse,
17
+ __MetadataBearer {}
18
+ declare const GetSafetyLeverCommand_base: {
19
+ new (
20
+ input: GetSafetyLeverCommandInput
21
+ ): import("@smithy/smithy-client").CommandImpl<
22
+ GetSafetyLeverCommandInput,
23
+ GetSafetyLeverCommandOutput,
24
+ FisClientResolvedConfig,
25
+ ServiceInputTypes,
26
+ ServiceOutputTypes
27
+ >;
28
+ new (
29
+ __0_0: GetSafetyLeverCommandInput
30
+ ): import("@smithy/smithy-client").CommandImpl<
31
+ GetSafetyLeverCommandInput,
32
+ GetSafetyLeverCommandOutput,
33
+ FisClientResolvedConfig,
34
+ ServiceInputTypes,
35
+ ServiceOutputTypes
36
+ >;
37
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
38
+ };
39
+ export declare class GetSafetyLeverCommand extends GetSafetyLeverCommand_base {}
@@ -0,0 +1,40 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ FisClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../FisClient";
8
+ import {
9
+ UpdateSafetyLeverStateRequest,
10
+ UpdateSafetyLeverStateResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface UpdateSafetyLeverStateCommandInput
15
+ extends UpdateSafetyLeverStateRequest {}
16
+ export interface UpdateSafetyLeverStateCommandOutput
17
+ extends UpdateSafetyLeverStateResponse,
18
+ __MetadataBearer {}
19
+ declare const UpdateSafetyLeverStateCommand_base: {
20
+ new (
21
+ input: UpdateSafetyLeverStateCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ UpdateSafetyLeverStateCommandInput,
24
+ UpdateSafetyLeverStateCommandOutput,
25
+ FisClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ __0_0: UpdateSafetyLeverStateCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ UpdateSafetyLeverStateCommandInput,
33
+ UpdateSafetyLeverStateCommandOutput,
34
+ FisClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class UpdateSafetyLeverStateCommand extends UpdateSafetyLeverStateCommand_base {}
@@ -6,6 +6,7 @@ export * from "./GetActionCommand";
6
6
  export * from "./GetExperimentCommand";
7
7
  export * from "./GetExperimentTargetAccountConfigurationCommand";
8
8
  export * from "./GetExperimentTemplateCommand";
9
+ export * from "./GetSafetyLeverCommand";
9
10
  export * from "./GetTargetAccountConfigurationCommand";
10
11
  export * from "./GetTargetResourceTypeCommand";
11
12
  export * from "./ListActionsCommand";
@@ -21,4 +22,5 @@ export * from "./StopExperimentCommand";
21
22
  export * from "./TagResourceCommand";
22
23
  export * from "./UntagResourceCommand";
23
24
  export * from "./UpdateExperimentTemplateCommand";
25
+ export * from "./UpdateSafetyLeverStateCommand";
24
26
  export * from "./UpdateTargetAccountConfigurationCommand";
@@ -250,6 +250,7 @@ export interface ExperimentError {
250
250
  location?: string;
251
251
  }
252
252
  export declare const ExperimentStatus: {
253
+ readonly cancelled: "cancelled";
253
254
  readonly completed: "completed";
254
255
  readonly failed: "failed";
255
256
  readonly initiating: "initiating";
@@ -350,6 +351,28 @@ export interface GetExperimentTemplateRequest {
350
351
  export interface GetExperimentTemplateResponse {
351
352
  experimentTemplate?: ExperimentTemplate;
352
353
  }
354
+ export interface GetSafetyLeverRequest {
355
+ id: string | undefined;
356
+ }
357
+ export declare const SafetyLeverStatus: {
358
+ readonly DISENGAGED: "disengaged";
359
+ readonly ENGAGED: "engaged";
360
+ readonly ENGAGING: "engaging";
361
+ };
362
+ export type SafetyLeverStatus =
363
+ (typeof SafetyLeverStatus)[keyof typeof SafetyLeverStatus];
364
+ export interface SafetyLeverState {
365
+ status?: SafetyLeverStatus;
366
+ reason?: string;
367
+ }
368
+ export interface SafetyLever {
369
+ id?: string;
370
+ arn?: string;
371
+ state?: SafetyLeverState;
372
+ }
373
+ export interface GetSafetyLeverResponse {
374
+ safetyLever?: SafetyLever;
375
+ }
353
376
  export interface GetTargetAccountConfigurationRequest {
354
377
  experimentTemplateId: string | undefined;
355
378
  accountId: string | undefined;
@@ -520,6 +543,23 @@ export interface UpdateExperimentTemplateRequest {
520
543
  export interface UpdateExperimentTemplateResponse {
521
544
  experimentTemplate?: ExperimentTemplate;
522
545
  }
546
+ export declare const SafetyLeverStatusInput: {
547
+ readonly DISENGAGED: "disengaged";
548
+ readonly ENGAGED: "engaged";
549
+ };
550
+ export type SafetyLeverStatusInput =
551
+ (typeof SafetyLeverStatusInput)[keyof typeof SafetyLeverStatusInput];
552
+ export interface UpdateSafetyLeverStateInput {
553
+ status: SafetyLeverStatusInput | undefined;
554
+ reason: string | undefined;
555
+ }
556
+ export interface UpdateSafetyLeverStateRequest {
557
+ id: string | undefined;
558
+ state: UpdateSafetyLeverStateInput | undefined;
559
+ }
560
+ export interface UpdateSafetyLeverStateResponse {
561
+ safetyLever?: SafetyLever;
562
+ }
523
563
  export interface UpdateTargetAccountConfigurationRequest {
524
564
  experimentTemplateId: string | undefined;
525
565
  accountId: string | undefined;