@aws-sdk/client-fis 3.36.0 → 3.39.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/CHANGELOG.md +42 -0
- package/dist-cjs/Fis.js +0 -4
- package/dist-cjs/FisClient.js +0 -9
- package/dist-cjs/commands/CreateExperimentTemplateCommand.js +0 -45
- package/dist-cjs/commands/DeleteExperimentTemplateCommand.js +0 -24
- package/dist-cjs/commands/GetActionCommand.js +0 -24
- package/dist-cjs/commands/GetExperimentCommand.js +0 -24
- package/dist-cjs/commands/GetExperimentTemplateCommand.js +0 -24
- package/dist-cjs/commands/ListActionsCommand.js +0 -24
- package/dist-cjs/commands/ListExperimentTemplatesCommand.js +0 -24
- package/dist-cjs/commands/ListExperimentsCommand.js +0 -24
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -24
- package/dist-cjs/commands/StartExperimentCommand.js +0 -24
- package/dist-cjs/commands/StopExperimentCommand.js +0 -24
- package/dist-cjs/commands/TagResourceCommand.js +0 -24
- package/dist-cjs/commands/UntagResourceCommand.js +0 -24
- package/dist-cjs/commands/UpdateExperimentTemplateCommand.js +0 -24
- package/dist-cjs/commands/index.js +17 -0
- package/dist-cjs/endpoints.js +6 -1
- package/dist-cjs/index.js +4 -20
- package/dist-cjs/models/models_0.js +0 -171
- package/dist-cjs/pagination/ListActionsPaginator.js +0 -10
- package/dist-cjs/pagination/ListExperimentTemplatesPaginator.js +0 -10
- package/dist-cjs/pagination/ListExperimentsPaginator.js +0 -10
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_restJson1.js +0 -5
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-es/commands/index.js +14 -0
- package/dist-es/endpoints.js +6 -1
- package/dist-es/index.js +4 -20
- package/dist-es/pagination/index.js +4 -0
- package/dist-types/commands/index.d.ts +14 -0
- package/dist-types/index.d.ts +4 -20
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/Fis.d.ts +15 -67
- package/dist-types/ts3.4/FisClient.d.ts +24 -90
- package/dist-types/ts3.4/commands/CreateExperimentTemplateCommand.d.ts +2 -41
- package/dist-types/ts3.4/commands/DeleteExperimentTemplateCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetActionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetExperimentCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetExperimentTemplateCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListActionsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListExperimentTemplatesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListExperimentsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StartExperimentCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StopExperimentCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateExperimentTemplateCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/index.d.ts +14 -0
- package/dist-types/ts3.4/index.d.ts +4 -20
- package/dist-types/ts3.4/models/models_0.d.ts +234 -722
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +32 -32
|
@@ -1901,14 +1901,12 @@ const deserializeMetadata = (output) => {
|
|
|
1901
1901
|
cfId: output.headers["x-amz-cf-id"],
|
|
1902
1902
|
});
|
|
1903
1903
|
};
|
|
1904
|
-
// Collect low-level response body stream to Uint8Array.
|
|
1905
1904
|
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
1906
1905
|
if (streamBody instanceof Uint8Array) {
|
|
1907
1906
|
return Promise.resolve(streamBody);
|
|
1908
1907
|
}
|
|
1909
1908
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1910
1909
|
};
|
|
1911
|
-
// Encode Uint8Array data into string with utf-8.
|
|
1912
1910
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1913
1911
|
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
1914
1912
|
value !== null &&
|
|
@@ -1921,9 +1919,6 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
1921
1919
|
}
|
|
1922
1920
|
return {};
|
|
1923
1921
|
});
|
|
1924
|
-
/**
|
|
1925
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
1926
|
-
*/
|
|
1927
1922
|
const loadRestJsonErrorCode = (output, data) => {
|
|
1928
1923
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1929
1924
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
|
|
6
|
-
const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
7
6
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
8
7
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
9
8
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
@@ -13,9 +12,6 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
12
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
13
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
14
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
-
/**
|
|
17
|
-
* @internal
|
|
18
|
-
*/
|
|
19
15
|
const getRuntimeConfig = (config) => {
|
|
20
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
21
17
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
|
|
6
|
-
const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
7
6
|
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
8
7
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
9
8
|
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
@@ -17,9 +16,6 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
|
17
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
18
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
19
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
20
|
-
/**
|
|
21
|
-
* @internal
|
|
22
|
-
*/
|
|
23
19
|
const getRuntimeConfig = (config) => {
|
|
24
20
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
25
21
|
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
6
|
const getRuntimeConfig = (config) => {
|
|
10
7
|
var _a;
|
|
11
8
|
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
5
|
const endpoints_1 = require("./endpoints");
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
6
|
const getRuntimeConfig = (config) => {
|
|
10
7
|
var _a, _b, _c, _d, _e;
|
|
11
8
|
return ({
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from "./CreateExperimentTemplateCommand";
|
|
2
|
+
export * from "./DeleteExperimentTemplateCommand";
|
|
3
|
+
export * from "./GetActionCommand";
|
|
4
|
+
export * from "./GetExperimentCommand";
|
|
5
|
+
export * from "./GetExperimentTemplateCommand";
|
|
6
|
+
export * from "./ListActionsCommand";
|
|
7
|
+
export * from "./ListExperimentTemplatesCommand";
|
|
8
|
+
export * from "./ListExperimentsCommand";
|
|
9
|
+
export * from "./ListTagsForResourceCommand";
|
|
10
|
+
export * from "./StartExperimentCommand";
|
|
11
|
+
export * from "./StopExperimentCommand";
|
|
12
|
+
export * from "./TagResourceCommand";
|
|
13
|
+
export * from "./UntagResourceCommand";
|
|
14
|
+
export * from "./UpdateExperimentTemplateCommand";
|
package/dist-es/endpoints.js
CHANGED
|
@@ -26,22 +26,27 @@ var partitionHash = {
|
|
|
26
26
|
"us-west-1",
|
|
27
27
|
"us-west-2",
|
|
28
28
|
],
|
|
29
|
+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
|
|
29
30
|
hostname: "fis.{region}.amazonaws.com",
|
|
30
31
|
},
|
|
31
32
|
"aws-cn": {
|
|
32
33
|
regions: ["cn-north-1", "cn-northwest-1"],
|
|
34
|
+
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
33
35
|
hostname: "fis.{region}.amazonaws.com.cn",
|
|
34
36
|
},
|
|
35
37
|
"aws-iso": {
|
|
36
|
-
regions: ["us-iso-east-1"],
|
|
38
|
+
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
39
|
+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
37
40
|
hostname: "fis.{region}.c2s.ic.gov",
|
|
38
41
|
},
|
|
39
42
|
"aws-iso-b": {
|
|
40
43
|
regions: ["us-isob-east-1"],
|
|
44
|
+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
41
45
|
hostname: "fis.{region}.sc2s.sgov.gov",
|
|
42
46
|
},
|
|
43
47
|
"aws-us-gov": {
|
|
44
48
|
regions: ["us-gov-east-1", "us-gov-west-1"],
|
|
49
|
+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
45
50
|
hostname: "fis.{region}.amazonaws.com",
|
|
46
51
|
},
|
|
47
52
|
};
|
package/dist-es/index.js
CHANGED
|
@@ -1,21 +1,5 @@
|
|
|
1
|
-
export * from "./FisClient";
|
|
2
1
|
export * from "./Fis";
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./commands
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./commands/GetExperimentTemplateCommand";
|
|
8
|
-
export * from "./commands/ListActionsCommand";
|
|
9
|
-
export * from "./pagination/ListActionsPaginator";
|
|
10
|
-
export * from "./commands/ListExperimentsCommand";
|
|
11
|
-
export * from "./pagination/ListExperimentsPaginator";
|
|
12
|
-
export * from "./commands/ListExperimentTemplatesCommand";
|
|
13
|
-
export * from "./pagination/ListExperimentTemplatesPaginator";
|
|
14
|
-
export * from "./commands/ListTagsForResourceCommand";
|
|
15
|
-
export * from "./commands/StartExperimentCommand";
|
|
16
|
-
export * from "./commands/StopExperimentCommand";
|
|
17
|
-
export * from "./commands/TagResourceCommand";
|
|
18
|
-
export * from "./commands/UntagResourceCommand";
|
|
19
|
-
export * from "./commands/UpdateExperimentTemplateCommand";
|
|
20
|
-
export * from "./pagination/Interfaces";
|
|
21
|
-
export * from "./models/index";
|
|
2
|
+
export * from "./FisClient";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./models";
|
|
5
|
+
export * from "./pagination";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from "./CreateExperimentTemplateCommand";
|
|
2
|
+
export * from "./DeleteExperimentTemplateCommand";
|
|
3
|
+
export * from "./GetActionCommand";
|
|
4
|
+
export * from "./GetExperimentCommand";
|
|
5
|
+
export * from "./GetExperimentTemplateCommand";
|
|
6
|
+
export * from "./ListActionsCommand";
|
|
7
|
+
export * from "./ListExperimentTemplatesCommand";
|
|
8
|
+
export * from "./ListExperimentsCommand";
|
|
9
|
+
export * from "./ListTagsForResourceCommand";
|
|
10
|
+
export * from "./StartExperimentCommand";
|
|
11
|
+
export * from "./StopExperimentCommand";
|
|
12
|
+
export * from "./TagResourceCommand";
|
|
13
|
+
export * from "./UntagResourceCommand";
|
|
14
|
+
export * from "./UpdateExperimentTemplateCommand";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,21 +1,5 @@
|
|
|
1
|
-
export * from "./FisClient";
|
|
2
1
|
export * from "./Fis";
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./commands
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./commands/GetExperimentTemplateCommand";
|
|
8
|
-
export * from "./commands/ListActionsCommand";
|
|
9
|
-
export * from "./pagination/ListActionsPaginator";
|
|
10
|
-
export * from "./commands/ListExperimentsCommand";
|
|
11
|
-
export * from "./pagination/ListExperimentsPaginator";
|
|
12
|
-
export * from "./commands/ListExperimentTemplatesCommand";
|
|
13
|
-
export * from "./pagination/ListExperimentTemplatesPaginator";
|
|
14
|
-
export * from "./commands/ListTagsForResourceCommand";
|
|
15
|
-
export * from "./commands/StartExperimentCommand";
|
|
16
|
-
export * from "./commands/StopExperimentCommand";
|
|
17
|
-
export * from "./commands/TagResourceCommand";
|
|
18
|
-
export * from "./commands/UntagResourceCommand";
|
|
19
|
-
export * from "./commands/UpdateExperimentTemplateCommand";
|
|
20
|
-
export * from "./pagination/Interfaces";
|
|
21
|
-
export * from "./models/index";
|
|
2
|
+
export * from "./FisClient";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./models";
|
|
5
|
+
export * from "./pagination";
|
|
@@ -14,113 +14,61 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
|
|
|
14
14
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
15
15
|
import { UpdateExperimentTemplateCommandInput, UpdateExperimentTemplateCommandOutput } from "./commands/UpdateExperimentTemplateCommand";
|
|
16
16
|
import { FisClient } from "./FisClient";
|
|
17
|
-
|
|
18
|
-
* <p>AWS Fault Injection Simulator is a managed service that enables you to perform fault injection
|
|
19
|
-
* experiments on your AWS workloads. For more information, see the <a href="https://docs.aws.amazon.com/fis/latest/userguide/">AWS Fault Injection Simulator User Guide</a>.</p>
|
|
20
|
-
*/
|
|
17
|
+
|
|
21
18
|
export declare class Fis extends FisClient {
|
|
22
|
-
|
|
23
|
-
* <p>Creates an experiment template. </p>
|
|
24
|
-
* <p>To create a template, specify the following information: </p>
|
|
25
|
-
* <ul>
|
|
26
|
-
* <li>
|
|
27
|
-
* <p>
|
|
28
|
-
* <b>Targets</b>: A target can be a specific resource
|
|
29
|
-
* in your AWS environment, or one or more resources that match criteria that you
|
|
30
|
-
* specify, for example, resources that have specific tags.</p>
|
|
31
|
-
* </li>
|
|
32
|
-
* <li>
|
|
33
|
-
* <p>
|
|
34
|
-
* <b>Actions</b>: The actions to carry out on the
|
|
35
|
-
* target. You can specify multiple actions, the duration of each action, and when to start each action during an experiment.</p>
|
|
36
|
-
* </li>
|
|
37
|
-
* <li>
|
|
38
|
-
* <p>
|
|
39
|
-
* <b>Stop conditions</b>: If a stop condition is
|
|
40
|
-
* triggered while an experiment is running, the experiment is automatically
|
|
41
|
-
* stopped. You can define a stop condition as a CloudWatch alarm.</p>
|
|
42
|
-
* </li>
|
|
43
|
-
* </ul>
|
|
44
|
-
* <p>For more information, see the <a href="https://docs.aws.amazon.com/fis/latest/userguide/">AWS Fault Injection Simulator User Guide</a>.</p>
|
|
45
|
-
*/
|
|
19
|
+
|
|
46
20
|
createExperimentTemplate(args: CreateExperimentTemplateCommandInput, options?: __HttpHandlerOptions): Promise<CreateExperimentTemplateCommandOutput>;
|
|
47
21
|
createExperimentTemplate(args: CreateExperimentTemplateCommandInput, cb: (err: any, data?: CreateExperimentTemplateCommandOutput) => void): void;
|
|
48
22
|
createExperimentTemplate(args: CreateExperimentTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateExperimentTemplateCommandOutput) => void): void;
|
|
49
|
-
|
|
50
|
-
* <p>Deletes the specified experiment template.</p>
|
|
51
|
-
*/
|
|
23
|
+
|
|
52
24
|
deleteExperimentTemplate(args: DeleteExperimentTemplateCommandInput, options?: __HttpHandlerOptions): Promise<DeleteExperimentTemplateCommandOutput>;
|
|
53
25
|
deleteExperimentTemplate(args: DeleteExperimentTemplateCommandInput, cb: (err: any, data?: DeleteExperimentTemplateCommandOutput) => void): void;
|
|
54
26
|
deleteExperimentTemplate(args: DeleteExperimentTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteExperimentTemplateCommandOutput) => void): void;
|
|
55
|
-
|
|
56
|
-
* <p>Gets information about the specified AWS FIS action.</p>
|
|
57
|
-
*/
|
|
27
|
+
|
|
58
28
|
getAction(args: GetActionCommandInput, options?: __HttpHandlerOptions): Promise<GetActionCommandOutput>;
|
|
59
29
|
getAction(args: GetActionCommandInput, cb: (err: any, data?: GetActionCommandOutput) => void): void;
|
|
60
30
|
getAction(args: GetActionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetActionCommandOutput) => void): void;
|
|
61
|
-
|
|
62
|
-
* <p>Gets information about the specified experiment.</p>
|
|
63
|
-
*/
|
|
31
|
+
|
|
64
32
|
getExperiment(args: GetExperimentCommandInput, options?: __HttpHandlerOptions): Promise<GetExperimentCommandOutput>;
|
|
65
33
|
getExperiment(args: GetExperimentCommandInput, cb: (err: any, data?: GetExperimentCommandOutput) => void): void;
|
|
66
34
|
getExperiment(args: GetExperimentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetExperimentCommandOutput) => void): void;
|
|
67
|
-
|
|
68
|
-
* <p>Gets information about the specified experiment template.</p>
|
|
69
|
-
*/
|
|
35
|
+
|
|
70
36
|
getExperimentTemplate(args: GetExperimentTemplateCommandInput, options?: __HttpHandlerOptions): Promise<GetExperimentTemplateCommandOutput>;
|
|
71
37
|
getExperimentTemplate(args: GetExperimentTemplateCommandInput, cb: (err: any, data?: GetExperimentTemplateCommandOutput) => void): void;
|
|
72
38
|
getExperimentTemplate(args: GetExperimentTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetExperimentTemplateCommandOutput) => void): void;
|
|
73
|
-
|
|
74
|
-
* <p>Lists the available AWS FIS actions.</p>
|
|
75
|
-
*/
|
|
39
|
+
|
|
76
40
|
listActions(args: ListActionsCommandInput, options?: __HttpHandlerOptions): Promise<ListActionsCommandOutput>;
|
|
77
41
|
listActions(args: ListActionsCommandInput, cb: (err: any, data?: ListActionsCommandOutput) => void): void;
|
|
78
42
|
listActions(args: ListActionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListActionsCommandOutput) => void): void;
|
|
79
|
-
|
|
80
|
-
* <p>Lists your experiments.</p>
|
|
81
|
-
*/
|
|
43
|
+
|
|
82
44
|
listExperiments(args: ListExperimentsCommandInput, options?: __HttpHandlerOptions): Promise<ListExperimentsCommandOutput>;
|
|
83
45
|
listExperiments(args: ListExperimentsCommandInput, cb: (err: any, data?: ListExperimentsCommandOutput) => void): void;
|
|
84
46
|
listExperiments(args: ListExperimentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListExperimentsCommandOutput) => void): void;
|
|
85
|
-
|
|
86
|
-
* <p>Lists your experiment templates.</p>
|
|
87
|
-
*/
|
|
47
|
+
|
|
88
48
|
listExperimentTemplates(args: ListExperimentTemplatesCommandInput, options?: __HttpHandlerOptions): Promise<ListExperimentTemplatesCommandOutput>;
|
|
89
49
|
listExperimentTemplates(args: ListExperimentTemplatesCommandInput, cb: (err: any, data?: ListExperimentTemplatesCommandOutput) => void): void;
|
|
90
50
|
listExperimentTemplates(args: ListExperimentTemplatesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListExperimentTemplatesCommandOutput) => void): void;
|
|
91
|
-
|
|
92
|
-
* <p>Lists the tags for the specified resource.</p>
|
|
93
|
-
*/
|
|
51
|
+
|
|
94
52
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
95
53
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
96
54
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
97
|
-
|
|
98
|
-
* <p>Starts running an experiment from the specified experiment template.</p>
|
|
99
|
-
*/
|
|
55
|
+
|
|
100
56
|
startExperiment(args: StartExperimentCommandInput, options?: __HttpHandlerOptions): Promise<StartExperimentCommandOutput>;
|
|
101
57
|
startExperiment(args: StartExperimentCommandInput, cb: (err: any, data?: StartExperimentCommandOutput) => void): void;
|
|
102
58
|
startExperiment(args: StartExperimentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartExperimentCommandOutput) => void): void;
|
|
103
|
-
|
|
104
|
-
* <p>Stops the specified experiment.</p>
|
|
105
|
-
*/
|
|
59
|
+
|
|
106
60
|
stopExperiment(args: StopExperimentCommandInput, options?: __HttpHandlerOptions): Promise<StopExperimentCommandOutput>;
|
|
107
61
|
stopExperiment(args: StopExperimentCommandInput, cb: (err: any, data?: StopExperimentCommandOutput) => void): void;
|
|
108
62
|
stopExperiment(args: StopExperimentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopExperimentCommandOutput) => void): void;
|
|
109
|
-
|
|
110
|
-
* <p>Applies the specified tags to the specified resource.</p>
|
|
111
|
-
*/
|
|
63
|
+
|
|
112
64
|
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
113
65
|
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
114
66
|
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
115
|
-
|
|
116
|
-
* <p>Removes the specified tags from the specified resource.</p>
|
|
117
|
-
*/
|
|
67
|
+
|
|
118
68
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
119
69
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
120
70
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
121
|
-
|
|
122
|
-
* <p>Updates the specified experiment template.</p>
|
|
123
|
-
*/
|
|
71
|
+
|
|
124
72
|
updateExperimentTemplate(args: UpdateExperimentTemplateCommandInput, options?: __HttpHandlerOptions): Promise<UpdateExperimentTemplateCommandOutput>;
|
|
125
73
|
updateExperimentTemplate(args: UpdateExperimentTemplateCommandInput, cb: (err: any, data?: UpdateExperimentTemplateCommandOutput) => void): void;
|
|
126
74
|
updateExperimentTemplate(args: UpdateExperimentTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateExperimentTemplateCommandOutput) => void): void;
|
|
@@ -23,125 +23,59 @@ import { UpdateExperimentTemplateCommandInput, UpdateExperimentTemplateCommandOu
|
|
|
23
23
|
export declare type ServiceInputTypes = CreateExperimentTemplateCommandInput | DeleteExperimentTemplateCommandInput | GetActionCommandInput | GetExperimentCommandInput | GetExperimentTemplateCommandInput | ListActionsCommandInput | ListExperimentTemplatesCommandInput | ListExperimentsCommandInput | ListTagsForResourceCommandInput | StartExperimentCommandInput | StopExperimentCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateExperimentTemplateCommandInput;
|
|
24
24
|
export declare type ServiceOutputTypes = CreateExperimentTemplateCommandOutput | DeleteExperimentTemplateCommandOutput | GetActionCommandOutput | GetExperimentCommandOutput | GetExperimentTemplateCommandOutput | ListActionsCommandOutput | ListExperimentTemplatesCommandOutput | ListExperimentsCommandOutput | ListTagsForResourceCommandOutput | StartExperimentCommandOutput | StopExperimentCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateExperimentTemplateCommandOutput;
|
|
25
25
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
26
|
-
|
|
27
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
28
|
-
*/
|
|
26
|
+
|
|
29
27
|
requestHandler?: __HttpHandler;
|
|
30
|
-
|
|
31
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
32
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
33
|
-
* @internal
|
|
34
|
-
*/
|
|
28
|
+
|
|
35
29
|
sha256?: __HashConstructor;
|
|
36
|
-
|
|
37
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
30
|
+
|
|
40
31
|
urlParser?: __UrlParser;
|
|
41
|
-
|
|
42
|
-
* A function that can calculate the length of a request body.
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
32
|
+
|
|
45
33
|
bodyLengthChecker?: (body: any) => number | undefined;
|
|
46
|
-
|
|
47
|
-
* A function that converts a stream into an array of bytes.
|
|
48
|
-
* @internal
|
|
49
|
-
*/
|
|
34
|
+
|
|
50
35
|
streamCollector?: __StreamCollector;
|
|
51
|
-
|
|
52
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
53
|
-
* @internal
|
|
54
|
-
*/
|
|
36
|
+
|
|
55
37
|
base64Decoder?: __Decoder;
|
|
56
|
-
|
|
57
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
38
|
+
|
|
60
39
|
base64Encoder?: __Encoder;
|
|
61
|
-
|
|
62
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
63
|
-
* @internal
|
|
64
|
-
*/
|
|
40
|
+
|
|
65
41
|
utf8Decoder?: __Decoder;
|
|
66
|
-
|
|
67
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
68
|
-
* @internal
|
|
69
|
-
*/
|
|
42
|
+
|
|
70
43
|
utf8Encoder?: __Encoder;
|
|
71
|
-
|
|
72
|
-
* The runtime environment.
|
|
73
|
-
* @internal
|
|
74
|
-
*/
|
|
44
|
+
|
|
75
45
|
runtime?: string;
|
|
76
|
-
|
|
77
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
78
|
-
* trait of an operation.
|
|
79
|
-
*/
|
|
46
|
+
|
|
80
47
|
disableHostPrefix?: boolean;
|
|
81
|
-
|
|
82
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
83
|
-
*/
|
|
48
|
+
|
|
84
49
|
maxAttempts?: number | __Provider<number>;
|
|
85
|
-
|
|
86
|
-
* Specifies which retry algorithm to use.
|
|
87
|
-
*/
|
|
50
|
+
|
|
88
51
|
retryMode?: string | __Provider<string>;
|
|
89
|
-
|
|
90
|
-
* Optional logger for logging debug/info/warn/error.
|
|
91
|
-
*/
|
|
52
|
+
|
|
92
53
|
logger?: __Logger;
|
|
93
|
-
|
|
94
|
-
* Unique service identifier.
|
|
95
|
-
* @internal
|
|
96
|
-
*/
|
|
54
|
+
|
|
97
55
|
serviceId?: string;
|
|
98
|
-
|
|
99
|
-
* The AWS region to which this client will send requests
|
|
100
|
-
*/
|
|
56
|
+
|
|
101
57
|
region?: string | __Provider<string>;
|
|
102
|
-
|
|
103
|
-
* Default credentials provider; Not available in browser runtime.
|
|
104
|
-
* @internal
|
|
105
|
-
*/
|
|
58
|
+
|
|
106
59
|
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
107
|
-
|
|
108
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
109
|
-
* @internal
|
|
110
|
-
*/
|
|
60
|
+
|
|
111
61
|
regionInfoProvider?: RegionInfoProvider;
|
|
112
|
-
|
|
113
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
114
|
-
* @internal
|
|
115
|
-
*/
|
|
62
|
+
|
|
116
63
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
117
64
|
}
|
|
118
65
|
declare type FisClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
119
|
-
|
|
120
|
-
* The configuration interface of FisClient class constructor that set the region, credentials and other options.
|
|
121
|
-
*/
|
|
66
|
+
|
|
122
67
|
export interface FisClientConfig extends FisClientConfigType {
|
|
123
68
|
}
|
|
124
69
|
declare type FisClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
|
|
125
|
-
|
|
126
|
-
* The resolved configuration interface of FisClient class. This is resolved and normalized from the {@link FisClientConfig | constructor configuration interface}.
|
|
127
|
-
*/
|
|
70
|
+
|
|
128
71
|
export interface FisClientResolvedConfig extends FisClientResolvedConfigType {
|
|
129
72
|
}
|
|
130
|
-
|
|
131
|
-
* <p>AWS Fault Injection Simulator is a managed service that enables you to perform fault injection
|
|
132
|
-
* experiments on your AWS workloads. For more information, see the <a href="https://docs.aws.amazon.com/fis/latest/userguide/">AWS Fault Injection Simulator User Guide</a>.</p>
|
|
133
|
-
*/
|
|
73
|
+
|
|
134
74
|
export declare class FisClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, FisClientResolvedConfig> {
|
|
135
|
-
|
|
136
|
-
* The resolved configuration of FisClient class. This is resolved and normalized from the {@link FisClientConfig | constructor configuration interface}.
|
|
137
|
-
*/
|
|
75
|
+
|
|
138
76
|
readonly config: FisClientResolvedConfig;
|
|
139
77
|
constructor(configuration: FisClientConfig);
|
|
140
|
-
|
|
141
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
142
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
143
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
144
|
-
*/
|
|
78
|
+
|
|
145
79
|
destroy(): void;
|
|
146
80
|
}
|
|
147
81
|
export {};
|
|
@@ -6,50 +6,11 @@ export interface CreateExperimentTemplateCommandInput extends CreateExperimentTe
|
|
|
6
6
|
}
|
|
7
7
|
export interface CreateExperimentTemplateCommandOutput extends CreateExperimentTemplateResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Creates an experiment template. </p>
|
|
11
|
-
* <p>To create a template, specify the following information: </p>
|
|
12
|
-
* <ul>
|
|
13
|
-
* <li>
|
|
14
|
-
* <p>
|
|
15
|
-
* <b>Targets</b>: A target can be a specific resource
|
|
16
|
-
* in your AWS environment, or one or more resources that match criteria that you
|
|
17
|
-
* specify, for example, resources that have specific tags.</p>
|
|
18
|
-
* </li>
|
|
19
|
-
* <li>
|
|
20
|
-
* <p>
|
|
21
|
-
* <b>Actions</b>: The actions to carry out on the
|
|
22
|
-
* target. You can specify multiple actions, the duration of each action, and when to start each action during an experiment.</p>
|
|
23
|
-
* </li>
|
|
24
|
-
* <li>
|
|
25
|
-
* <p>
|
|
26
|
-
* <b>Stop conditions</b>: If a stop condition is
|
|
27
|
-
* triggered while an experiment is running, the experiment is automatically
|
|
28
|
-
* stopped. You can define a stop condition as a CloudWatch alarm.</p>
|
|
29
|
-
* </li>
|
|
30
|
-
* </ul>
|
|
31
|
-
* <p>For more information, see the <a href="https://docs.aws.amazon.com/fis/latest/userguide/">AWS Fault Injection Simulator User Guide</a>.</p>
|
|
32
|
-
* @example
|
|
33
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
-
* ```javascript
|
|
35
|
-
* import { FisClient, CreateExperimentTemplateCommand } from "@aws-sdk/client-fis"; // ES Modules import
|
|
36
|
-
* // const { FisClient, CreateExperimentTemplateCommand } = require("@aws-sdk/client-fis"); // CommonJS import
|
|
37
|
-
* const client = new FisClient(config);
|
|
38
|
-
* const command = new CreateExperimentTemplateCommand(input);
|
|
39
|
-
* const response = await client.send(command);
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* @see {@link CreateExperimentTemplateCommandInput} for command's `input` shape.
|
|
43
|
-
* @see {@link CreateExperimentTemplateCommandOutput} for command's `response` shape.
|
|
44
|
-
* @see {@link FisClientResolvedConfig | config} for command's `input` shape.
|
|
45
|
-
*
|
|
46
|
-
*/
|
|
9
|
+
|
|
47
10
|
export declare class CreateExperimentTemplateCommand extends $Command<CreateExperimentTemplateCommandInput, CreateExperimentTemplateCommandOutput, FisClientResolvedConfig> {
|
|
48
11
|
readonly input: CreateExperimentTemplateCommandInput;
|
|
49
12
|
constructor(input: CreateExperimentTemplateCommandInput);
|
|
50
|
-
|
|
51
|
-
* @internal
|
|
52
|
-
*/
|
|
13
|
+
|
|
53
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: FisClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateExperimentTemplateCommandInput, CreateExperimentTemplateCommandOutput>;
|
|
54
15
|
private serialize;
|
|
55
16
|
private deserialize;
|
|
@@ -6,29 +6,11 @@ export interface DeleteExperimentTemplateCommandInput extends DeleteExperimentTe
|
|
|
6
6
|
}
|
|
7
7
|
export interface DeleteExperimentTemplateCommandOutput extends DeleteExperimentTemplateResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Deletes the specified experiment template.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { FisClient, DeleteExperimentTemplateCommand } from "@aws-sdk/client-fis"; // ES Modules import
|
|
15
|
-
* // const { FisClient, DeleteExperimentTemplateCommand } = require("@aws-sdk/client-fis"); // CommonJS import
|
|
16
|
-
* const client = new FisClient(config);
|
|
17
|
-
* const command = new DeleteExperimentTemplateCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link DeleteExperimentTemplateCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link DeleteExperimentTemplateCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link FisClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
9
|
+
|
|
26
10
|
export declare class DeleteExperimentTemplateCommand extends $Command<DeleteExperimentTemplateCommandInput, DeleteExperimentTemplateCommandOutput, FisClientResolvedConfig> {
|
|
27
11
|
readonly input: DeleteExperimentTemplateCommandInput;
|
|
28
12
|
constructor(input: DeleteExperimentTemplateCommandInput);
|
|
29
|
-
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
13
|
+
|
|
32
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: FisClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteExperimentTemplateCommandInput, DeleteExperimentTemplateCommandOutput>;
|
|
33
15
|
private serialize;
|
|
34
16
|
private deserialize;
|
|
@@ -6,29 +6,11 @@ export interface GetActionCommandInput extends GetActionRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface GetActionCommandOutput extends GetActionResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Gets information about the specified AWS FIS action.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { FisClient, GetActionCommand } from "@aws-sdk/client-fis"; // ES Modules import
|
|
15
|
-
* // const { FisClient, GetActionCommand } = require("@aws-sdk/client-fis"); // CommonJS import
|
|
16
|
-
* const client = new FisClient(config);
|
|
17
|
-
* const command = new GetActionCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link GetActionCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link GetActionCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link FisClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
9
|
+
|
|
26
10
|
export declare class GetActionCommand extends $Command<GetActionCommandInput, GetActionCommandOutput, FisClientResolvedConfig> {
|
|
27
11
|
readonly input: GetActionCommandInput;
|
|
28
12
|
constructor(input: GetActionCommandInput);
|
|
29
|
-
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
13
|
+
|
|
32
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: FisClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetActionCommandInput, GetActionCommandOutput>;
|
|
33
15
|
private serialize;
|
|
34
16
|
private deserialize;
|
|
@@ -6,29 +6,11 @@ export interface GetExperimentCommandInput extends GetExperimentRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface GetExperimentCommandOutput extends GetExperimentResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Gets information about the specified experiment.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { FisClient, GetExperimentCommand } from "@aws-sdk/client-fis"; // ES Modules import
|
|
15
|
-
* // const { FisClient, GetExperimentCommand } = require("@aws-sdk/client-fis"); // CommonJS import
|
|
16
|
-
* const client = new FisClient(config);
|
|
17
|
-
* const command = new GetExperimentCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link GetExperimentCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link GetExperimentCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link FisClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
9
|
+
|
|
26
10
|
export declare class GetExperimentCommand extends $Command<GetExperimentCommandInput, GetExperimentCommandOutput, FisClientResolvedConfig> {
|
|
27
11
|
readonly input: GetExperimentCommandInput;
|
|
28
12
|
constructor(input: GetExperimentCommandInput);
|
|
29
|
-
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
13
|
+
|
|
32
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: FisClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetExperimentCommandInput, GetExperimentCommandOutput>;
|
|
33
15
|
private serialize;
|
|
34
16
|
private deserialize;
|