@aws-sdk/client-fis 3.533.0 → 3.534.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 +2 -2
- package/dist-cjs/index.js +15 -1
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +8 -0
- package/dist-types/Fis.d.ts +2 -2
- package/dist-types/FisClient.d.ts +2 -2
- package/dist-types/commands/CreateExperimentTemplateCommand.d.ts +2 -1
- package/dist-types/commands/CreateTargetAccountConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/DeleteExperimentTemplateCommand.d.ts +1 -0
- package/dist-types/commands/GetActionCommand.d.ts +1 -0
- package/dist-types/commands/GetExperimentCommand.d.ts +2 -0
- package/dist-types/commands/GetExperimentTemplateCommand.d.ts +1 -0
- package/dist-types/commands/ListActionsCommand.d.ts +1 -0
- package/dist-types/commands/ListExperimentTemplatesCommand.d.ts +1 -0
- package/dist-types/commands/ListExperimentsCommand.d.ts +7 -0
- package/dist-types/commands/StartExperimentCommand.d.ts +5 -0
- package/dist-types/commands/StopExperimentCommand.d.ts +2 -0
- package/dist-types/commands/UpdateExperimentTemplateCommand.d.ts +1 -0
- package/dist-types/index.d.ts +2 -2
- package/dist-types/models/models_0.d.ts +86 -13
- package/dist-types/ts3.4/models/models_0.d.ts +18 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
AWS SDK for JavaScript Fis Client for Node.js, Browser and React Native.
|
|
8
8
|
|
|
9
|
-
<p>Fault Injection
|
|
10
|
-
experiments on your Amazon Web Services workloads. For more information, see the <a href="https://docs.aws.amazon.com/fis/latest/userguide/">Fault Injection
|
|
9
|
+
<p>Fault Injection Service is a managed service that enables you to perform fault injection
|
|
10
|
+
experiments on your Amazon Web Services workloads. For more information, see the <a href="https://docs.aws.amazon.com/fis/latest/userguide/">Fault Injection Service User Guide</a>.</p>
|
|
11
11
|
|
|
12
12
|
## Installing
|
|
13
13
|
|
package/dist-cjs/index.js
CHANGED
|
@@ -22,6 +22,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
22
22
|
var src_exports = {};
|
|
23
23
|
__export(src_exports, {
|
|
24
24
|
AccountTargeting: () => AccountTargeting,
|
|
25
|
+
ActionsMode: () => ActionsMode,
|
|
25
26
|
ConflictException: () => ConflictException,
|
|
26
27
|
CreateExperimentTemplateCommand: () => CreateExperimentTemplateCommand,
|
|
27
28
|
CreateTargetAccountConfigurationCommand: () => CreateTargetAccountConfigurationCommand,
|
|
@@ -243,6 +244,10 @@ var AccountTargeting = {
|
|
|
243
244
|
MULTI_ACCOUNT: "multi-account",
|
|
244
245
|
SINGLE_ACCOUNT: "single-account"
|
|
245
246
|
};
|
|
247
|
+
var ActionsMode = {
|
|
248
|
+
RUN_ALL: "run-all",
|
|
249
|
+
SKIP_ALL: "skip-all"
|
|
250
|
+
};
|
|
246
251
|
var _ConflictException = class _ConflictException extends FisServiceException {
|
|
247
252
|
/**
|
|
248
253
|
* @internal
|
|
@@ -486,7 +491,8 @@ var se_ListExperimentsCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
486
491
|
b.bp("/experiments");
|
|
487
492
|
const query = (0, import_smithy_client.map)({
|
|
488
493
|
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
489
|
-
[_nT]: [, input[_nT]]
|
|
494
|
+
[_nT]: [, input[_nT]],
|
|
495
|
+
[_eTI]: [, input[_eTI]]
|
|
490
496
|
});
|
|
491
497
|
let body;
|
|
492
498
|
b.m("GET").h(headers).q(query).b(body);
|
|
@@ -560,6 +566,7 @@ var se_StartExperimentCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
560
566
|
body = JSON.stringify(
|
|
561
567
|
(0, import_smithy_client.take)(input, {
|
|
562
568
|
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
569
|
+
experimentOptions: (_) => (0, import_smithy_client._json)(_),
|
|
563
570
|
experimentTemplateId: [],
|
|
564
571
|
tags: (_) => (0, import_smithy_client._json)(_)
|
|
565
572
|
})
|
|
@@ -1063,6 +1070,7 @@ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, cont
|
|
|
1063
1070
|
var de_Experiment = /* @__PURE__ */ __name((output, context) => {
|
|
1064
1071
|
return (0, import_smithy_client.take)(output, {
|
|
1065
1072
|
actions: (_) => de_ExperimentActionMap(_, context),
|
|
1073
|
+
arn: import_smithy_client.expectString,
|
|
1066
1074
|
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1067
1075
|
endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1068
1076
|
experimentOptions: import_smithy_client._json,
|
|
@@ -1101,7 +1109,9 @@ var de_ExperimentActionMap = /* @__PURE__ */ __name((output, context) => {
|
|
|
1101
1109
|
}, "de_ExperimentActionMap");
|
|
1102
1110
|
var de_ExperimentSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1103
1111
|
return (0, import_smithy_client.take)(output, {
|
|
1112
|
+
arn: import_smithy_client.expectString,
|
|
1104
1113
|
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1114
|
+
experimentOptions: import_smithy_client._json,
|
|
1105
1115
|
experimentTemplateId: import_smithy_client.expectString,
|
|
1106
1116
|
id: import_smithy_client.expectString,
|
|
1107
1117
|
state: import_smithy_client._json,
|
|
@@ -1117,6 +1127,7 @@ var de_ExperimentSummaryList = /* @__PURE__ */ __name((output, context) => {
|
|
|
1117
1127
|
var de_ExperimentTemplate = /* @__PURE__ */ __name((output, context) => {
|
|
1118
1128
|
return (0, import_smithy_client.take)(output, {
|
|
1119
1129
|
actions: import_smithy_client._json,
|
|
1130
|
+
arn: import_smithy_client.expectString,
|
|
1120
1131
|
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1121
1132
|
description: import_smithy_client.expectString,
|
|
1122
1133
|
experimentOptions: import_smithy_client._json,
|
|
@@ -1132,6 +1143,7 @@ var de_ExperimentTemplate = /* @__PURE__ */ __name((output, context) => {
|
|
|
1132
1143
|
}, "de_ExperimentTemplate");
|
|
1133
1144
|
var de_ExperimentTemplateSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1134
1145
|
return (0, import_smithy_client.take)(output, {
|
|
1146
|
+
arn: import_smithy_client.expectString,
|
|
1135
1147
|
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1136
1148
|
description: import_smithy_client.expectString,
|
|
1137
1149
|
id: import_smithy_client.expectString,
|
|
@@ -1151,6 +1163,7 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1151
1163
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1152
1164
|
cfId: output.headers["x-amz-cf-id"]
|
|
1153
1165
|
}), "deserializeMetadata");
|
|
1166
|
+
var _eTI = "experimentTemplateId";
|
|
1154
1167
|
var _mR = "maxResults";
|
|
1155
1168
|
var _nT = "nextToken";
|
|
1156
1169
|
var _tK = "tagKeys";
|
|
@@ -1658,6 +1671,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
1658
1671
|
paginateListTargetAccountConfigurations,
|
|
1659
1672
|
paginateListTargetResourceTypes,
|
|
1660
1673
|
AccountTargeting,
|
|
1674
|
+
ActionsMode,
|
|
1661
1675
|
ConflictException,
|
|
1662
1676
|
EmptyTargetResolutionMode,
|
|
1663
1677
|
ResourceNotFoundException,
|
|
@@ -3,6 +3,10 @@ export const AccountTargeting = {
|
|
|
3
3
|
MULTI_ACCOUNT: "multi-account",
|
|
4
4
|
SINGLE_ACCOUNT: "single-account",
|
|
5
5
|
};
|
|
6
|
+
export const ActionsMode = {
|
|
7
|
+
RUN_ALL: "run-all",
|
|
8
|
+
SKIP_ALL: "skip-all",
|
|
9
|
+
};
|
|
6
10
|
export class ConflictException extends __BaseException {
|
|
7
11
|
constructor(opts) {
|
|
8
12
|
super({
|
|
@@ -150,6 +150,7 @@ export const se_ListExperimentsCommand = async (input, context) => {
|
|
|
150
150
|
const query = map({
|
|
151
151
|
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
152
152
|
[_nT]: [, input[_nT]],
|
|
153
|
+
[_eTI]: [, input[_eTI]],
|
|
153
154
|
});
|
|
154
155
|
let body;
|
|
155
156
|
b.m("GET").h(headers).q(query).b(body);
|
|
@@ -222,6 +223,7 @@ export const se_StartExperimentCommand = async (input, context) => {
|
|
|
222
223
|
let body;
|
|
223
224
|
body = JSON.stringify(take(input, {
|
|
224
225
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
226
|
+
experimentOptions: (_) => _json(_),
|
|
225
227
|
experimentTemplateId: [],
|
|
226
228
|
tags: (_) => _json(_),
|
|
227
229
|
}));
|
|
@@ -718,6 +720,7 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
718
720
|
const de_Experiment = (output, context) => {
|
|
719
721
|
return take(output, {
|
|
720
722
|
actions: (_) => de_ExperimentActionMap(_, context),
|
|
723
|
+
arn: __expectString,
|
|
721
724
|
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
722
725
|
endTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
723
726
|
experimentOptions: _json,
|
|
@@ -756,7 +759,9 @@ const de_ExperimentActionMap = (output, context) => {
|
|
|
756
759
|
};
|
|
757
760
|
const de_ExperimentSummary = (output, context) => {
|
|
758
761
|
return take(output, {
|
|
762
|
+
arn: __expectString,
|
|
759
763
|
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
764
|
+
experimentOptions: _json,
|
|
760
765
|
experimentTemplateId: __expectString,
|
|
761
766
|
id: __expectString,
|
|
762
767
|
state: _json,
|
|
@@ -774,6 +779,7 @@ const de_ExperimentSummaryList = (output, context) => {
|
|
|
774
779
|
const de_ExperimentTemplate = (output, context) => {
|
|
775
780
|
return take(output, {
|
|
776
781
|
actions: _json,
|
|
782
|
+
arn: __expectString,
|
|
777
783
|
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
778
784
|
description: __expectString,
|
|
779
785
|
experimentOptions: _json,
|
|
@@ -789,6 +795,7 @@ const de_ExperimentTemplate = (output, context) => {
|
|
|
789
795
|
};
|
|
790
796
|
const de_ExperimentTemplateSummary = (output, context) => {
|
|
791
797
|
return take(output, {
|
|
798
|
+
arn: __expectString,
|
|
792
799
|
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
793
800
|
description: __expectString,
|
|
794
801
|
id: __expectString,
|
|
@@ -816,6 +823,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
816
823
|
value !== "" &&
|
|
817
824
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
818
825
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
826
|
+
const _eTI = "experimentTemplateId";
|
|
819
827
|
const _mR = "maxResults";
|
|
820
828
|
const _nT = "nextToken";
|
|
821
829
|
const _tK = "tagKeys";
|
package/dist-types/Fis.d.ts
CHANGED
|
@@ -172,8 +172,8 @@ export interface Fis {
|
|
|
172
172
|
}
|
|
173
173
|
/**
|
|
174
174
|
* @public
|
|
175
|
-
* <p>Fault Injection
|
|
176
|
-
* experiments on your Amazon Web Services workloads. For more information, see the <a href="https://docs.aws.amazon.com/fis/latest/userguide/">Fault Injection
|
|
175
|
+
* <p>Fault Injection Service is a managed service that enables you to perform fault injection
|
|
176
|
+
* experiments on your Amazon Web Services workloads. For more information, see the <a href="https://docs.aws.amazon.com/fis/latest/userguide/">Fault Injection Service User Guide</a>.</p>
|
|
177
177
|
*/
|
|
178
178
|
export declare class Fis extends FisClient implements Fis {
|
|
179
179
|
}
|
|
@@ -176,8 +176,8 @@ export interface FisClientResolvedConfig extends FisClientResolvedConfigType {
|
|
|
176
176
|
}
|
|
177
177
|
/**
|
|
178
178
|
* @public
|
|
179
|
-
* <p>Fault Injection
|
|
180
|
-
* experiments on your Amazon Web Services workloads. For more information, see the <a href="https://docs.aws.amazon.com/fis/latest/userguide/">Fault Injection
|
|
179
|
+
* <p>Fault Injection Service is a managed service that enables you to perform fault injection
|
|
180
|
+
* experiments on your Amazon Web Services workloads. For more information, see the <a href="https://docs.aws.amazon.com/fis/latest/userguide/">Fault Injection Service User Guide</a>.</p>
|
|
181
181
|
*/
|
|
182
182
|
export declare class FisClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, FisClientResolvedConfig> {
|
|
183
183
|
/**
|
|
@@ -48,7 +48,7 @@ declare const CreateExperimentTemplateCommand_base: {
|
|
|
48
48
|
* </li>
|
|
49
49
|
* </ul>
|
|
50
50
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/fis/latest/userguide/experiment-templates.html">experiment templates</a>
|
|
51
|
-
* in the <i>Fault Injection
|
|
51
|
+
* in the <i>Fault Injection Service User Guide</i>.</p>
|
|
52
52
|
* @example
|
|
53
53
|
* Use a bare-bones client and the command you need to make an API call.
|
|
54
54
|
* ```javascript
|
|
@@ -126,6 +126,7 @@ declare const CreateExperimentTemplateCommand_base: {
|
|
|
126
126
|
* // { // CreateExperimentTemplateResponse
|
|
127
127
|
* // experimentTemplate: { // ExperimentTemplate
|
|
128
128
|
* // id: "STRING_VALUE",
|
|
129
|
+
* // arn: "STRING_VALUE",
|
|
129
130
|
* // description: "STRING_VALUE",
|
|
130
131
|
* // targets: { // ExperimentTemplateTargetMap
|
|
131
132
|
* // "<keys>": { // ExperimentTemplateTarget
|
|
@@ -29,7 +29,7 @@ declare const CreateTargetAccountConfigurationCommand_base: {
|
|
|
29
29
|
* <p>Creates a target account configuration for the experiment template. A target account configuration
|
|
30
30
|
* is required when <code>accountTargeting</code> of <code>experimentOptions</code> is set to <code>multi-account</code>.
|
|
31
31
|
* For more information, see <a href="https://docs.aws.amazon.com/fis/latest/userguide/experiment-options.html">experiment options</a>
|
|
32
|
-
* in the <i>Fault Injection
|
|
32
|
+
* in the <i>Fault Injection Service User Guide</i>.
|
|
33
33
|
* </p>
|
|
34
34
|
* @example
|
|
35
35
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -41,6 +41,7 @@ declare const DeleteExperimentTemplateCommand_base: {
|
|
|
41
41
|
* // { // DeleteExperimentTemplateResponse
|
|
42
42
|
* // experimentTemplate: { // ExperimentTemplate
|
|
43
43
|
* // id: "STRING_VALUE",
|
|
44
|
+
* // arn: "STRING_VALUE",
|
|
44
45
|
* // description: "STRING_VALUE",
|
|
45
46
|
* // targets: { // ExperimentTemplateTargetMap
|
|
46
47
|
* // "<keys>": { // ExperimentTemplateTarget
|
|
@@ -41,6 +41,7 @@ declare const GetActionCommand_base: {
|
|
|
41
41
|
* // { // GetActionResponse
|
|
42
42
|
* // action: { // Action
|
|
43
43
|
* // id: "STRING_VALUE",
|
|
44
|
+
* // arn: "STRING_VALUE",
|
|
44
45
|
* // description: "STRING_VALUE",
|
|
45
46
|
* // parameters: { // ActionParameterMap
|
|
46
47
|
* // "<keys>": { // ActionParameter
|
|
@@ -41,6 +41,7 @@ declare const GetExperimentCommand_base: {
|
|
|
41
41
|
* // { // GetExperimentResponse
|
|
42
42
|
* // experiment: { // Experiment
|
|
43
43
|
* // id: "STRING_VALUE",
|
|
44
|
+
* // arn: "STRING_VALUE",
|
|
44
45
|
* // experimentTemplateId: "STRING_VALUE",
|
|
45
46
|
* // roleArn: "STRING_VALUE",
|
|
46
47
|
* // state: { // ExperimentState
|
|
@@ -116,6 +117,7 @@ declare const GetExperimentCommand_base: {
|
|
|
116
117
|
* // experimentOptions: { // ExperimentOptions
|
|
117
118
|
* // accountTargeting: "single-account" || "multi-account",
|
|
118
119
|
* // emptyTargetResolutionMode: "fail" || "skip",
|
|
120
|
+
* // actionsMode: "skip-all" || "run-all",
|
|
119
121
|
* // },
|
|
120
122
|
* // targetAccountConfigurationsCount: Number("long"),
|
|
121
123
|
* // },
|
|
@@ -41,6 +41,7 @@ declare const GetExperimentTemplateCommand_base: {
|
|
|
41
41
|
* // { // GetExperimentTemplateResponse
|
|
42
42
|
* // experimentTemplate: { // ExperimentTemplate
|
|
43
43
|
* // id: "STRING_VALUE",
|
|
44
|
+
* // arn: "STRING_VALUE",
|
|
44
45
|
* // description: "STRING_VALUE",
|
|
45
46
|
* // targets: { // ExperimentTemplateTargetMap
|
|
46
47
|
* // "<keys>": { // ExperimentTemplateTarget
|
|
@@ -43,6 +43,7 @@ declare const ListActionsCommand_base: {
|
|
|
43
43
|
* // actions: [ // ActionSummaryList
|
|
44
44
|
* // { // ActionSummary
|
|
45
45
|
* // id: "STRING_VALUE",
|
|
46
|
+
* // arn: "STRING_VALUE",
|
|
46
47
|
* // description: "STRING_VALUE",
|
|
47
48
|
* // targets: { // ActionTargetMap
|
|
48
49
|
* // "<keys>": { // ActionTarget
|
|
@@ -43,6 +43,7 @@ declare const ListExperimentTemplatesCommand_base: {
|
|
|
43
43
|
* // experimentTemplates: [ // ExperimentTemplateSummaryList
|
|
44
44
|
* // { // ExperimentTemplateSummary
|
|
45
45
|
* // id: "STRING_VALUE",
|
|
46
|
+
* // arn: "STRING_VALUE",
|
|
46
47
|
* // description: "STRING_VALUE",
|
|
47
48
|
* // creationTime: new Date("TIMESTAMP"),
|
|
48
49
|
* // lastUpdateTime: new Date("TIMESTAMP"),
|
|
@@ -36,6 +36,7 @@ declare const ListExperimentsCommand_base: {
|
|
|
36
36
|
* const input = { // ListExperimentsRequest
|
|
37
37
|
* maxResults: Number("int"),
|
|
38
38
|
* nextToken: "STRING_VALUE",
|
|
39
|
+
* experimentTemplateId: "STRING_VALUE",
|
|
39
40
|
* };
|
|
40
41
|
* const command = new ListExperimentsCommand(input);
|
|
41
42
|
* const response = await client.send(command);
|
|
@@ -43,6 +44,7 @@ declare const ListExperimentsCommand_base: {
|
|
|
43
44
|
* // experiments: [ // ExperimentSummaryList
|
|
44
45
|
* // { // ExperimentSummary
|
|
45
46
|
* // id: "STRING_VALUE",
|
|
47
|
+
* // arn: "STRING_VALUE",
|
|
46
48
|
* // experimentTemplateId: "STRING_VALUE",
|
|
47
49
|
* // state: { // ExperimentState
|
|
48
50
|
* // status: "pending" || "initiating" || "running" || "completed" || "stopping" || "stopped" || "failed",
|
|
@@ -52,6 +54,11 @@ declare const ListExperimentsCommand_base: {
|
|
|
52
54
|
* // tags: { // TagMap
|
|
53
55
|
* // "<keys>": "STRING_VALUE",
|
|
54
56
|
* // },
|
|
57
|
+
* // experimentOptions: { // ExperimentOptions
|
|
58
|
+
* // accountTargeting: "single-account" || "multi-account",
|
|
59
|
+
* // emptyTargetResolutionMode: "fail" || "skip",
|
|
60
|
+
* // actionsMode: "skip-all" || "run-all",
|
|
61
|
+
* // },
|
|
55
62
|
* // },
|
|
56
63
|
* // ],
|
|
57
64
|
* // nextToken: "STRING_VALUE",
|
|
@@ -36,6 +36,9 @@ declare const StartExperimentCommand_base: {
|
|
|
36
36
|
* const input = { // StartExperimentRequest
|
|
37
37
|
* clientToken: "STRING_VALUE", // required
|
|
38
38
|
* experimentTemplateId: "STRING_VALUE", // required
|
|
39
|
+
* experimentOptions: { // StartExperimentExperimentOptionsInput
|
|
40
|
+
* actionsMode: "skip-all" || "run-all",
|
|
41
|
+
* },
|
|
39
42
|
* tags: { // TagMap
|
|
40
43
|
* "<keys>": "STRING_VALUE",
|
|
41
44
|
* },
|
|
@@ -45,6 +48,7 @@ declare const StartExperimentCommand_base: {
|
|
|
45
48
|
* // { // StartExperimentResponse
|
|
46
49
|
* // experiment: { // Experiment
|
|
47
50
|
* // id: "STRING_VALUE",
|
|
51
|
+
* // arn: "STRING_VALUE",
|
|
48
52
|
* // experimentTemplateId: "STRING_VALUE",
|
|
49
53
|
* // roleArn: "STRING_VALUE",
|
|
50
54
|
* // state: { // ExperimentState
|
|
@@ -120,6 +124,7 @@ declare const StartExperimentCommand_base: {
|
|
|
120
124
|
* // experimentOptions: { // ExperimentOptions
|
|
121
125
|
* // accountTargeting: "single-account" || "multi-account",
|
|
122
126
|
* // emptyTargetResolutionMode: "fail" || "skip",
|
|
127
|
+
* // actionsMode: "skip-all" || "run-all",
|
|
123
128
|
* // },
|
|
124
129
|
* // targetAccountConfigurationsCount: Number("long"),
|
|
125
130
|
* // },
|
|
@@ -41,6 +41,7 @@ declare const StopExperimentCommand_base: {
|
|
|
41
41
|
* // { // StopExperimentResponse
|
|
42
42
|
* // experiment: { // Experiment
|
|
43
43
|
* // id: "STRING_VALUE",
|
|
44
|
+
* // arn: "STRING_VALUE",
|
|
44
45
|
* // experimentTemplateId: "STRING_VALUE",
|
|
45
46
|
* // roleArn: "STRING_VALUE",
|
|
46
47
|
* // state: { // ExperimentState
|
|
@@ -116,6 +117,7 @@ declare const StopExperimentCommand_base: {
|
|
|
116
117
|
* // experimentOptions: { // ExperimentOptions
|
|
117
118
|
* // accountTargeting: "single-account" || "multi-account",
|
|
118
119
|
* // emptyTargetResolutionMode: "fail" || "skip",
|
|
120
|
+
* // actionsMode: "skip-all" || "run-all",
|
|
119
121
|
* // },
|
|
120
122
|
* // targetAccountConfigurationsCount: Number("long"),
|
|
121
123
|
* // },
|
|
@@ -100,6 +100,7 @@ declare const UpdateExperimentTemplateCommand_base: {
|
|
|
100
100
|
* // { // UpdateExperimentTemplateResponse
|
|
101
101
|
* // experimentTemplate: { // ExperimentTemplate
|
|
102
102
|
* // id: "STRING_VALUE",
|
|
103
|
+
* // arn: "STRING_VALUE",
|
|
103
104
|
* // description: "STRING_VALUE",
|
|
104
105
|
* // targets: { // ExperimentTemplateTargetMap
|
|
105
106
|
* // "<keys>": { // ExperimentTemplateTarget
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* <p>Fault Injection
|
|
3
|
-
* experiments on your Amazon Web Services workloads. For more information, see the <a href="https://docs.aws.amazon.com/fis/latest/userguide/">Fault Injection
|
|
2
|
+
* <p>Fault Injection Service is a managed service that enables you to perform fault injection
|
|
3
|
+
* experiments on your Amazon Web Services workloads. For more information, see the <a href="https://docs.aws.amazon.com/fis/latest/userguide/">Fault Injection Service User Guide</a>.</p>
|
|
4
4
|
*
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
*/
|
|
@@ -42,7 +42,7 @@ export interface ActionTarget {
|
|
|
42
42
|
/**
|
|
43
43
|
* @public
|
|
44
44
|
* <p>Describes an action. For more information, see <a href="https://docs.aws.amazon.com/fis/latest/userguide/fis-actions-reference.html">FIS actions</a>
|
|
45
|
-
* in the <i>Fault Injection
|
|
45
|
+
* in the <i>Fault Injection Service User Guide</i>.</p>
|
|
46
46
|
*/
|
|
47
47
|
export interface Action {
|
|
48
48
|
/**
|
|
@@ -50,6 +50,11 @@ export interface Action {
|
|
|
50
50
|
* <p>The ID of the action.</p>
|
|
51
51
|
*/
|
|
52
52
|
id?: string;
|
|
53
|
+
/**
|
|
54
|
+
* @public
|
|
55
|
+
* <p>The Amazon Resource Name (ARN) of the action.</p>
|
|
56
|
+
*/
|
|
57
|
+
arn?: string;
|
|
53
58
|
/**
|
|
54
59
|
* @public
|
|
55
60
|
* <p>The description for the action.</p>
|
|
@@ -71,6 +76,18 @@ export interface Action {
|
|
|
71
76
|
*/
|
|
72
77
|
tags?: Record<string, string>;
|
|
73
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* @public
|
|
81
|
+
* @enum
|
|
82
|
+
*/
|
|
83
|
+
export declare const ActionsMode: {
|
|
84
|
+
readonly RUN_ALL: "run-all";
|
|
85
|
+
readonly SKIP_ALL: "skip-all";
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
export type ActionsMode = (typeof ActionsMode)[keyof typeof ActionsMode];
|
|
74
91
|
/**
|
|
75
92
|
* @public
|
|
76
93
|
* <p>Provides a summary of an action.</p>
|
|
@@ -81,6 +98,11 @@ export interface ActionSummary {
|
|
|
81
98
|
* <p>The ID of the action.</p>
|
|
82
99
|
*/
|
|
83
100
|
id?: string;
|
|
101
|
+
/**
|
|
102
|
+
* @public
|
|
103
|
+
* <p>The Amazon Resource Name (ARN) of the action.</p>
|
|
104
|
+
*/
|
|
105
|
+
arn?: string;
|
|
84
106
|
/**
|
|
85
107
|
* @public
|
|
86
108
|
* <p>The description for the action.</p>
|
|
@@ -113,7 +135,7 @@ export declare class ConflictException extends __BaseException {
|
|
|
113
135
|
* @public
|
|
114
136
|
* <p>Specifies an action for an experiment template.</p>
|
|
115
137
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/fis/latest/userguide/actions.html">Actions</a>
|
|
116
|
-
* in the <i>Fault Injection
|
|
138
|
+
* in the <i>Fault Injection Service User Guide</i>.</p>
|
|
117
139
|
*/
|
|
118
140
|
export interface CreateExperimentTemplateActionInput {
|
|
119
141
|
/**
|
|
@@ -241,7 +263,7 @@ export interface CreateExperimentTemplateStopConditionInput {
|
|
|
241
263
|
* @public
|
|
242
264
|
* <p>Specifies a filter used for the target resource input in an experiment template.</p>
|
|
243
265
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/fis/latest/userguide/targets.html#target-filters">Resource filters</a>
|
|
244
|
-
* in the <i>Fault Injection
|
|
266
|
+
* in the <i>Fault Injection Service User Guide</i>.</p>
|
|
245
267
|
*/
|
|
246
268
|
export interface ExperimentTemplateTargetInputFilter {
|
|
247
269
|
/**
|
|
@@ -260,7 +282,7 @@ export interface ExperimentTemplateTargetInputFilter {
|
|
|
260
282
|
* <p>Specifies a target for an experiment. You must specify at least one Amazon Resource Name (ARN) or
|
|
261
283
|
* at least one resource tag. You cannot specify both ARNs and tags.</p>
|
|
262
284
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/fis/latest/userguide/targets.html">Targets</a>
|
|
263
|
-
* in the <i>Fault Injection
|
|
285
|
+
* in the <i>Fault Injection Service User Guide</i>.</p>
|
|
264
286
|
*/
|
|
265
287
|
export interface CreateExperimentTemplateTargetInput {
|
|
266
288
|
/**
|
|
@@ -530,6 +552,11 @@ export interface ExperimentTemplate {
|
|
|
530
552
|
* <p>The ID of the experiment template.</p>
|
|
531
553
|
*/
|
|
532
554
|
id?: string;
|
|
555
|
+
/**
|
|
556
|
+
* @public
|
|
557
|
+
* <p>The Amazon Resource Name (ARN) of the experiment template.</p>
|
|
558
|
+
*/
|
|
559
|
+
arn?: string;
|
|
533
560
|
/**
|
|
534
561
|
* @public
|
|
535
562
|
* <p>The description for the experiment template.</p>
|
|
@@ -648,7 +675,7 @@ export interface CreateTargetAccountConfigurationRequest {
|
|
|
648
675
|
experimentTemplateId: string | undefined;
|
|
649
676
|
/**
|
|
650
677
|
* @public
|
|
651
|
-
* <p>The
|
|
678
|
+
* <p>The Amazon Web Services account ID of the target account.</p>
|
|
652
679
|
*/
|
|
653
680
|
accountId: string | undefined;
|
|
654
681
|
/**
|
|
@@ -674,7 +701,7 @@ export interface TargetAccountConfiguration {
|
|
|
674
701
|
roleArn?: string;
|
|
675
702
|
/**
|
|
676
703
|
* @public
|
|
677
|
-
* <p>The
|
|
704
|
+
* <p>The Amazon Web Services account ID of the target account.</p>
|
|
678
705
|
*/
|
|
679
706
|
accountId?: string;
|
|
680
707
|
/**
|
|
@@ -724,7 +751,7 @@ export interface DeleteTargetAccountConfigurationRequest {
|
|
|
724
751
|
experimentTemplateId: string | undefined;
|
|
725
752
|
/**
|
|
726
753
|
* @public
|
|
727
|
-
* <p>The
|
|
754
|
+
* <p>The Amazon Web Services account ID of the target account.</p>
|
|
728
755
|
*/
|
|
729
756
|
accountId: string | undefined;
|
|
730
757
|
}
|
|
@@ -834,6 +861,11 @@ export interface ExperimentOptions {
|
|
|
834
861
|
* <p>The empty target resolution mode for an experiment.</p>
|
|
835
862
|
*/
|
|
836
863
|
emptyTargetResolutionMode?: EmptyTargetResolutionMode;
|
|
864
|
+
/**
|
|
865
|
+
* @public
|
|
866
|
+
* <p>The actions mode of the experiment that is set from the StartExperiment API command.</p>
|
|
867
|
+
*/
|
|
868
|
+
actionsMode?: ActionsMode;
|
|
837
869
|
}
|
|
838
870
|
/**
|
|
839
871
|
* @public
|
|
@@ -994,6 +1026,11 @@ export interface Experiment {
|
|
|
994
1026
|
* <p>The ID of the experiment.</p>
|
|
995
1027
|
*/
|
|
996
1028
|
id?: string;
|
|
1029
|
+
/**
|
|
1030
|
+
* @public
|
|
1031
|
+
* <p>The Amazon Resource Name (ARN) of the experiment.</p>
|
|
1032
|
+
*/
|
|
1033
|
+
arn?: string;
|
|
997
1034
|
/**
|
|
998
1035
|
* @public
|
|
999
1036
|
* <p>The ID of the experiment template.</p>
|
|
@@ -1070,6 +1107,11 @@ export interface ExperimentSummary {
|
|
|
1070
1107
|
* <p>The ID of the experiment.</p>
|
|
1071
1108
|
*/
|
|
1072
1109
|
id?: string;
|
|
1110
|
+
/**
|
|
1111
|
+
* @public
|
|
1112
|
+
* <p>The Amazon Resource Name (ARN) of the experiment.</p>
|
|
1113
|
+
*/
|
|
1114
|
+
arn?: string;
|
|
1073
1115
|
/**
|
|
1074
1116
|
* @public
|
|
1075
1117
|
* <p>The ID of the experiment template.</p>
|
|
@@ -1090,6 +1132,11 @@ export interface ExperimentSummary {
|
|
|
1090
1132
|
* <p>The tags for the experiment.</p>
|
|
1091
1133
|
*/
|
|
1092
1134
|
tags?: Record<string, string>;
|
|
1135
|
+
/**
|
|
1136
|
+
* @public
|
|
1137
|
+
* <p>The experiment options for the experiment.</p>
|
|
1138
|
+
*/
|
|
1139
|
+
experimentOptions?: ExperimentOptions;
|
|
1093
1140
|
}
|
|
1094
1141
|
/**
|
|
1095
1142
|
* @public
|
|
@@ -1103,7 +1150,7 @@ export interface ExperimentTargetAccountConfiguration {
|
|
|
1103
1150
|
roleArn?: string;
|
|
1104
1151
|
/**
|
|
1105
1152
|
* @public
|
|
1106
|
-
* <p>The
|
|
1153
|
+
* <p>The Amazon Web Services account ID of the target account.</p>
|
|
1107
1154
|
*/
|
|
1108
1155
|
accountId?: string;
|
|
1109
1156
|
/**
|
|
@@ -1124,7 +1171,7 @@ export interface ExperimentTargetAccountConfigurationSummary {
|
|
|
1124
1171
|
roleArn?: string;
|
|
1125
1172
|
/**
|
|
1126
1173
|
* @public
|
|
1127
|
-
* <p>The
|
|
1174
|
+
* <p>The Amazon Web Services account ID of the target account.</p>
|
|
1128
1175
|
*/
|
|
1129
1176
|
accountId?: string;
|
|
1130
1177
|
/**
|
|
@@ -1143,6 +1190,11 @@ export interface ExperimentTemplateSummary {
|
|
|
1143
1190
|
* <p>The ID of the experiment template.</p>
|
|
1144
1191
|
*/
|
|
1145
1192
|
id?: string;
|
|
1193
|
+
/**
|
|
1194
|
+
* @public
|
|
1195
|
+
* <p>The Amazon Resource Name (ARN) of the experiment template.</p>
|
|
1196
|
+
*/
|
|
1197
|
+
arn?: string;
|
|
1146
1198
|
/**
|
|
1147
1199
|
* @public
|
|
1148
1200
|
* <p>The description of the experiment template.</p>
|
|
@@ -1215,7 +1267,7 @@ export interface GetExperimentTargetAccountConfigurationRequest {
|
|
|
1215
1267
|
experimentId: string | undefined;
|
|
1216
1268
|
/**
|
|
1217
1269
|
* @public
|
|
1218
|
-
* <p>The
|
|
1270
|
+
* <p>The Amazon Web Services account ID of the target account.</p>
|
|
1219
1271
|
*/
|
|
1220
1272
|
accountId: string | undefined;
|
|
1221
1273
|
}
|
|
@@ -1260,7 +1312,7 @@ export interface GetTargetAccountConfigurationRequest {
|
|
|
1260
1312
|
experimentTemplateId: string | undefined;
|
|
1261
1313
|
/**
|
|
1262
1314
|
* @public
|
|
1263
|
-
* <p>The
|
|
1315
|
+
* <p>The Amazon Web Services account ID of the target account.</p>
|
|
1264
1316
|
*/
|
|
1265
1317
|
accountId: string | undefined;
|
|
1266
1318
|
}
|
|
@@ -1439,6 +1491,11 @@ export interface ListExperimentsRequest {
|
|
|
1439
1491
|
* <p>The token for the next page of results.</p>
|
|
1440
1492
|
*/
|
|
1441
1493
|
nextToken?: string;
|
|
1494
|
+
/**
|
|
1495
|
+
* @public
|
|
1496
|
+
* <p>The ID of the experiment template.</p>
|
|
1497
|
+
*/
|
|
1498
|
+
experimentTemplateId?: string;
|
|
1442
1499
|
}
|
|
1443
1500
|
/**
|
|
1444
1501
|
* @public
|
|
@@ -1569,7 +1626,7 @@ export interface TargetAccountConfigurationSummary {
|
|
|
1569
1626
|
roleArn?: string;
|
|
1570
1627
|
/**
|
|
1571
1628
|
* @public
|
|
1572
|
-
* <p>The
|
|
1629
|
+
* <p>The Amazon Web Services account ID of the target account.</p>
|
|
1573
1630
|
*/
|
|
1574
1631
|
accountId?: string;
|
|
1575
1632
|
/**
|
|
@@ -1640,6 +1697,17 @@ export interface ListTargetResourceTypesResponse {
|
|
|
1640
1697
|
*/
|
|
1641
1698
|
nextToken?: string;
|
|
1642
1699
|
}
|
|
1700
|
+
/**
|
|
1701
|
+
* @public
|
|
1702
|
+
* <p>Specifies experiment options for running an experiment.</p>
|
|
1703
|
+
*/
|
|
1704
|
+
export interface StartExperimentExperimentOptionsInput {
|
|
1705
|
+
/**
|
|
1706
|
+
* @public
|
|
1707
|
+
* <p>Specifies the actions mode for experiment options.</p>
|
|
1708
|
+
*/
|
|
1709
|
+
actionsMode?: ActionsMode;
|
|
1710
|
+
}
|
|
1643
1711
|
/**
|
|
1644
1712
|
* @public
|
|
1645
1713
|
*/
|
|
@@ -1654,6 +1722,11 @@ export interface StartExperimentRequest {
|
|
|
1654
1722
|
* <p>The ID of the experiment template.</p>
|
|
1655
1723
|
*/
|
|
1656
1724
|
experimentTemplateId: string | undefined;
|
|
1725
|
+
/**
|
|
1726
|
+
* @public
|
|
1727
|
+
* <p>The experiment options for running the experiment.</p>
|
|
1728
|
+
*/
|
|
1729
|
+
experimentOptions?: StartExperimentExperimentOptionsInput;
|
|
1657
1730
|
/**
|
|
1658
1731
|
* @public
|
|
1659
1732
|
* <p>The tags to apply to the experiment.</p>
|
|
@@ -1913,7 +1986,7 @@ export interface UpdateTargetAccountConfigurationRequest {
|
|
|
1913
1986
|
experimentTemplateId: string | undefined;
|
|
1914
1987
|
/**
|
|
1915
1988
|
* @public
|
|
1916
|
-
* <p>The
|
|
1989
|
+
* <p>The Amazon Web Services account ID of the target account.</p>
|
|
1917
1990
|
*/
|
|
1918
1991
|
accountId: string | undefined;
|
|
1919
1992
|
/**
|
|
@@ -15,13 +15,20 @@ export interface ActionTarget {
|
|
|
15
15
|
}
|
|
16
16
|
export interface Action {
|
|
17
17
|
id?: string;
|
|
18
|
+
arn?: string;
|
|
18
19
|
description?: string;
|
|
19
20
|
parameters?: Record<string, ActionParameter>;
|
|
20
21
|
targets?: Record<string, ActionTarget>;
|
|
21
22
|
tags?: Record<string, string>;
|
|
22
23
|
}
|
|
24
|
+
export declare const ActionsMode: {
|
|
25
|
+
readonly RUN_ALL: "run-all";
|
|
26
|
+
readonly SKIP_ALL: "skip-all";
|
|
27
|
+
};
|
|
28
|
+
export type ActionsMode = (typeof ActionsMode)[keyof typeof ActionsMode];
|
|
23
29
|
export interface ActionSummary {
|
|
24
30
|
id?: string;
|
|
31
|
+
arn?: string;
|
|
25
32
|
description?: string;
|
|
26
33
|
targets?: Record<string, ActionTarget>;
|
|
27
34
|
tags?: Record<string, string>;
|
|
@@ -128,6 +135,7 @@ export interface ExperimentTemplateTarget {
|
|
|
128
135
|
}
|
|
129
136
|
export interface ExperimentTemplate {
|
|
130
137
|
id?: string;
|
|
138
|
+
arn?: string;
|
|
131
139
|
description?: string;
|
|
132
140
|
targets?: Record<string, ExperimentTemplateTarget>;
|
|
133
141
|
actions?: Record<string, ExperimentTemplateAction>;
|
|
@@ -222,6 +230,7 @@ export interface ExperimentAction {
|
|
|
222
230
|
export interface ExperimentOptions {
|
|
223
231
|
accountTargeting?: AccountTargeting;
|
|
224
232
|
emptyTargetResolutionMode?: EmptyTargetResolutionMode;
|
|
233
|
+
actionsMode?: ActionsMode;
|
|
225
234
|
}
|
|
226
235
|
export interface ExperimentCloudWatchLogsLogConfiguration {
|
|
227
236
|
logGroupArn?: string;
|
|
@@ -268,6 +277,7 @@ export interface ExperimentTarget {
|
|
|
268
277
|
}
|
|
269
278
|
export interface Experiment {
|
|
270
279
|
id?: string;
|
|
280
|
+
arn?: string;
|
|
271
281
|
experimentTemplateId?: string;
|
|
272
282
|
roleArn?: string;
|
|
273
283
|
state?: ExperimentState;
|
|
@@ -284,10 +294,12 @@ export interface Experiment {
|
|
|
284
294
|
}
|
|
285
295
|
export interface ExperimentSummary {
|
|
286
296
|
id?: string;
|
|
297
|
+
arn?: string;
|
|
287
298
|
experimentTemplateId?: string;
|
|
288
299
|
state?: ExperimentState;
|
|
289
300
|
creationTime?: Date;
|
|
290
301
|
tags?: Record<string, string>;
|
|
302
|
+
experimentOptions?: ExperimentOptions;
|
|
291
303
|
}
|
|
292
304
|
export interface ExperimentTargetAccountConfiguration {
|
|
293
305
|
roleArn?: string;
|
|
@@ -301,6 +313,7 @@ export interface ExperimentTargetAccountConfigurationSummary {
|
|
|
301
313
|
}
|
|
302
314
|
export interface ExperimentTemplateSummary {
|
|
303
315
|
id?: string;
|
|
316
|
+
arn?: string;
|
|
304
317
|
description?: string;
|
|
305
318
|
creationTime?: Date;
|
|
306
319
|
lastUpdateTime?: Date;
|
|
@@ -379,6 +392,7 @@ export interface ListExperimentResolvedTargetsResponse {
|
|
|
379
392
|
export interface ListExperimentsRequest {
|
|
380
393
|
maxResults?: number;
|
|
381
394
|
nextToken?: string;
|
|
395
|
+
experimentTemplateId?: string;
|
|
382
396
|
}
|
|
383
397
|
export interface ListExperimentsResponse {
|
|
384
398
|
experiments?: ExperimentSummary[];
|
|
@@ -432,9 +446,13 @@ export interface ListTargetResourceTypesResponse {
|
|
|
432
446
|
targetResourceTypes?: TargetResourceTypeSummary[];
|
|
433
447
|
nextToken?: string;
|
|
434
448
|
}
|
|
449
|
+
export interface StartExperimentExperimentOptionsInput {
|
|
450
|
+
actionsMode?: ActionsMode;
|
|
451
|
+
}
|
|
435
452
|
export interface StartExperimentRequest {
|
|
436
453
|
clientToken?: string;
|
|
437
454
|
experimentTemplateId: string | undefined;
|
|
455
|
+
experimentOptions?: StartExperimentExperimentOptionsInput;
|
|
438
456
|
tags?: Record<string, string>;
|
|
439
457
|
}
|
|
440
458
|
export interface StartExperimentResponse {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-fis",
|
|
3
3
|
"description": "AWS SDK for JavaScript Fis Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.534.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-fis",
|