@aws-sdk/client-fis 3.315.0 → 3.316.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/dist-cjs/Fis.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Fis = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const CreateExperimentTemplateCommand_1 = require("./commands/CreateExperimentTemplateCommand");
5
6
  const DeleteExperimentTemplateCommand_1 = require("./commands/DeleteExperimentTemplateCommand");
6
7
  const GetActionCommand_1 = require("./commands/GetActionCommand");
@@ -18,230 +19,25 @@ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
18
19
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
19
20
  const UpdateExperimentTemplateCommand_1 = require("./commands/UpdateExperimentTemplateCommand");
20
21
  const FisClient_1 = require("./FisClient");
22
+ const commands = {
23
+ CreateExperimentTemplateCommand: CreateExperimentTemplateCommand_1.CreateExperimentTemplateCommand,
24
+ DeleteExperimentTemplateCommand: DeleteExperimentTemplateCommand_1.DeleteExperimentTemplateCommand,
25
+ GetActionCommand: GetActionCommand_1.GetActionCommand,
26
+ GetExperimentCommand: GetExperimentCommand_1.GetExperimentCommand,
27
+ GetExperimentTemplateCommand: GetExperimentTemplateCommand_1.GetExperimentTemplateCommand,
28
+ GetTargetResourceTypeCommand: GetTargetResourceTypeCommand_1.GetTargetResourceTypeCommand,
29
+ ListActionsCommand: ListActionsCommand_1.ListActionsCommand,
30
+ ListExperimentsCommand: ListExperimentsCommand_1.ListExperimentsCommand,
31
+ ListExperimentTemplatesCommand: ListExperimentTemplatesCommand_1.ListExperimentTemplatesCommand,
32
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
33
+ ListTargetResourceTypesCommand: ListTargetResourceTypesCommand_1.ListTargetResourceTypesCommand,
34
+ StartExperimentCommand: StartExperimentCommand_1.StartExperimentCommand,
35
+ StopExperimentCommand: StopExperimentCommand_1.StopExperimentCommand,
36
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
37
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
38
+ UpdateExperimentTemplateCommand: UpdateExperimentTemplateCommand_1.UpdateExperimentTemplateCommand,
39
+ };
21
40
  class Fis extends FisClient_1.FisClient {
22
- createExperimentTemplate(args, optionsOrCb, cb) {
23
- const command = new CreateExperimentTemplateCommand_1.CreateExperimentTemplateCommand(args);
24
- if (typeof optionsOrCb === "function") {
25
- this.send(command, optionsOrCb);
26
- }
27
- else if (typeof cb === "function") {
28
- if (typeof optionsOrCb !== "object")
29
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
30
- this.send(command, optionsOrCb || {}, cb);
31
- }
32
- else {
33
- return this.send(command, optionsOrCb);
34
- }
35
- }
36
- deleteExperimentTemplate(args, optionsOrCb, cb) {
37
- const command = new DeleteExperimentTemplateCommand_1.DeleteExperimentTemplateCommand(args);
38
- if (typeof optionsOrCb === "function") {
39
- this.send(command, optionsOrCb);
40
- }
41
- else if (typeof cb === "function") {
42
- if (typeof optionsOrCb !== "object")
43
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
44
- this.send(command, optionsOrCb || {}, cb);
45
- }
46
- else {
47
- return this.send(command, optionsOrCb);
48
- }
49
- }
50
- getAction(args, optionsOrCb, cb) {
51
- const command = new GetActionCommand_1.GetActionCommand(args);
52
- if (typeof optionsOrCb === "function") {
53
- this.send(command, optionsOrCb);
54
- }
55
- else if (typeof cb === "function") {
56
- if (typeof optionsOrCb !== "object")
57
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
58
- this.send(command, optionsOrCb || {}, cb);
59
- }
60
- else {
61
- return this.send(command, optionsOrCb);
62
- }
63
- }
64
- getExperiment(args, optionsOrCb, cb) {
65
- const command = new GetExperimentCommand_1.GetExperimentCommand(args);
66
- if (typeof optionsOrCb === "function") {
67
- this.send(command, optionsOrCb);
68
- }
69
- else if (typeof cb === "function") {
70
- if (typeof optionsOrCb !== "object")
71
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
72
- this.send(command, optionsOrCb || {}, cb);
73
- }
74
- else {
75
- return this.send(command, optionsOrCb);
76
- }
77
- }
78
- getExperimentTemplate(args, optionsOrCb, cb) {
79
- const command = new GetExperimentTemplateCommand_1.GetExperimentTemplateCommand(args);
80
- if (typeof optionsOrCb === "function") {
81
- this.send(command, optionsOrCb);
82
- }
83
- else if (typeof cb === "function") {
84
- if (typeof optionsOrCb !== "object")
85
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
86
- this.send(command, optionsOrCb || {}, cb);
87
- }
88
- else {
89
- return this.send(command, optionsOrCb);
90
- }
91
- }
92
- getTargetResourceType(args, optionsOrCb, cb) {
93
- const command = new GetTargetResourceTypeCommand_1.GetTargetResourceTypeCommand(args);
94
- if (typeof optionsOrCb === "function") {
95
- this.send(command, optionsOrCb);
96
- }
97
- else if (typeof cb === "function") {
98
- if (typeof optionsOrCb !== "object")
99
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
100
- this.send(command, optionsOrCb || {}, cb);
101
- }
102
- else {
103
- return this.send(command, optionsOrCb);
104
- }
105
- }
106
- listActions(args, optionsOrCb, cb) {
107
- const command = new ListActionsCommand_1.ListActionsCommand(args);
108
- if (typeof optionsOrCb === "function") {
109
- this.send(command, optionsOrCb);
110
- }
111
- else if (typeof cb === "function") {
112
- if (typeof optionsOrCb !== "object")
113
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
114
- this.send(command, optionsOrCb || {}, cb);
115
- }
116
- else {
117
- return this.send(command, optionsOrCb);
118
- }
119
- }
120
- listExperiments(args, optionsOrCb, cb) {
121
- const command = new ListExperimentsCommand_1.ListExperimentsCommand(args);
122
- if (typeof optionsOrCb === "function") {
123
- this.send(command, optionsOrCb);
124
- }
125
- else if (typeof cb === "function") {
126
- if (typeof optionsOrCb !== "object")
127
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
128
- this.send(command, optionsOrCb || {}, cb);
129
- }
130
- else {
131
- return this.send(command, optionsOrCb);
132
- }
133
- }
134
- listExperimentTemplates(args, optionsOrCb, cb) {
135
- const command = new ListExperimentTemplatesCommand_1.ListExperimentTemplatesCommand(args);
136
- if (typeof optionsOrCb === "function") {
137
- this.send(command, optionsOrCb);
138
- }
139
- else if (typeof cb === "function") {
140
- if (typeof optionsOrCb !== "object")
141
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
142
- this.send(command, optionsOrCb || {}, cb);
143
- }
144
- else {
145
- return this.send(command, optionsOrCb);
146
- }
147
- }
148
- listTagsForResource(args, optionsOrCb, cb) {
149
- const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
150
- if (typeof optionsOrCb === "function") {
151
- this.send(command, optionsOrCb);
152
- }
153
- else if (typeof cb === "function") {
154
- if (typeof optionsOrCb !== "object")
155
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
156
- this.send(command, optionsOrCb || {}, cb);
157
- }
158
- else {
159
- return this.send(command, optionsOrCb);
160
- }
161
- }
162
- listTargetResourceTypes(args, optionsOrCb, cb) {
163
- const command = new ListTargetResourceTypesCommand_1.ListTargetResourceTypesCommand(args);
164
- if (typeof optionsOrCb === "function") {
165
- this.send(command, optionsOrCb);
166
- }
167
- else if (typeof cb === "function") {
168
- if (typeof optionsOrCb !== "object")
169
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
170
- this.send(command, optionsOrCb || {}, cb);
171
- }
172
- else {
173
- return this.send(command, optionsOrCb);
174
- }
175
- }
176
- startExperiment(args, optionsOrCb, cb) {
177
- const command = new StartExperimentCommand_1.StartExperimentCommand(args);
178
- if (typeof optionsOrCb === "function") {
179
- this.send(command, optionsOrCb);
180
- }
181
- else if (typeof cb === "function") {
182
- if (typeof optionsOrCb !== "object")
183
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
184
- this.send(command, optionsOrCb || {}, cb);
185
- }
186
- else {
187
- return this.send(command, optionsOrCb);
188
- }
189
- }
190
- stopExperiment(args, optionsOrCb, cb) {
191
- const command = new StopExperimentCommand_1.StopExperimentCommand(args);
192
- if (typeof optionsOrCb === "function") {
193
- this.send(command, optionsOrCb);
194
- }
195
- else if (typeof cb === "function") {
196
- if (typeof optionsOrCb !== "object")
197
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
198
- this.send(command, optionsOrCb || {}, cb);
199
- }
200
- else {
201
- return this.send(command, optionsOrCb);
202
- }
203
- }
204
- tagResource(args, optionsOrCb, cb) {
205
- const command = new TagResourceCommand_1.TagResourceCommand(args);
206
- if (typeof optionsOrCb === "function") {
207
- this.send(command, optionsOrCb);
208
- }
209
- else if (typeof cb === "function") {
210
- if (typeof optionsOrCb !== "object")
211
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
212
- this.send(command, optionsOrCb || {}, cb);
213
- }
214
- else {
215
- return this.send(command, optionsOrCb);
216
- }
217
- }
218
- untagResource(args, optionsOrCb, cb) {
219
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
220
- if (typeof optionsOrCb === "function") {
221
- this.send(command, optionsOrCb);
222
- }
223
- else if (typeof cb === "function") {
224
- if (typeof optionsOrCb !== "object")
225
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
226
- this.send(command, optionsOrCb || {}, cb);
227
- }
228
- else {
229
- return this.send(command, optionsOrCb);
230
- }
231
- }
232
- updateExperimentTemplate(args, optionsOrCb, cb) {
233
- const command = new UpdateExperimentTemplateCommand_1.UpdateExperimentTemplateCommand(args);
234
- if (typeof optionsOrCb === "function") {
235
- this.send(command, optionsOrCb);
236
- }
237
- else if (typeof cb === "function") {
238
- if (typeof optionsOrCb !== "object")
239
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
240
- this.send(command, optionsOrCb || {}, cb);
241
- }
242
- else {
243
- return this.send(command, optionsOrCb);
244
- }
245
- }
246
41
  }
247
42
  exports.Fis = Fis;
43
+ (0, smithy_client_1.createAggregatedClient)(commands, Fis);
@@ -15,7 +15,7 @@ const se_CreateExperimentTemplateCommand = async (input, context) => {
15
15
  let body;
16
16
  body = JSON.stringify((0, smithy_client_1.take)(input, {
17
17
  actions: (_) => (0, smithy_client_1._json)(_),
18
- clientToken: (_) => _ ?? (0, uuid_1.v4)(),
18
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
19
19
  description: [],
20
20
  logConfiguration: (_) => (0, smithy_client_1._json)(_),
21
21
  roleArn: [],
@@ -228,7 +228,7 @@ const se_StartExperimentCommand = async (input, context) => {
228
228
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/experiments";
229
229
  let body;
230
230
  body = JSON.stringify((0, smithy_client_1.take)(input, {
231
- clientToken: (_) => _ ?? (0, uuid_1.v4)(),
231
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
232
232
  experimentTemplateId: [],
233
233
  tags: (_) => (0, smithy_client_1._json)(_),
234
234
  }));
package/dist-es/Fis.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { CreateExperimentTemplateCommand, } from "./commands/CreateExperimentTemplateCommand";
2
3
  import { DeleteExperimentTemplateCommand, } from "./commands/DeleteExperimentTemplateCommand";
3
4
  import { GetActionCommand } from "./commands/GetActionCommand";
@@ -15,229 +16,24 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
15
16
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
16
17
  import { UpdateExperimentTemplateCommand, } from "./commands/UpdateExperimentTemplateCommand";
17
18
  import { FisClient } from "./FisClient";
19
+ const commands = {
20
+ CreateExperimentTemplateCommand,
21
+ DeleteExperimentTemplateCommand,
22
+ GetActionCommand,
23
+ GetExperimentCommand,
24
+ GetExperimentTemplateCommand,
25
+ GetTargetResourceTypeCommand,
26
+ ListActionsCommand,
27
+ ListExperimentsCommand,
28
+ ListExperimentTemplatesCommand,
29
+ ListTagsForResourceCommand,
30
+ ListTargetResourceTypesCommand,
31
+ StartExperimentCommand,
32
+ StopExperimentCommand,
33
+ TagResourceCommand,
34
+ UntagResourceCommand,
35
+ UpdateExperimentTemplateCommand,
36
+ };
18
37
  export class Fis extends FisClient {
19
- createExperimentTemplate(args, optionsOrCb, cb) {
20
- const command = new CreateExperimentTemplateCommand(args);
21
- if (typeof optionsOrCb === "function") {
22
- this.send(command, optionsOrCb);
23
- }
24
- else if (typeof cb === "function") {
25
- if (typeof optionsOrCb !== "object")
26
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
27
- this.send(command, optionsOrCb || {}, cb);
28
- }
29
- else {
30
- return this.send(command, optionsOrCb);
31
- }
32
- }
33
- deleteExperimentTemplate(args, optionsOrCb, cb) {
34
- const command = new DeleteExperimentTemplateCommand(args);
35
- if (typeof optionsOrCb === "function") {
36
- this.send(command, optionsOrCb);
37
- }
38
- else if (typeof cb === "function") {
39
- if (typeof optionsOrCb !== "object")
40
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
41
- this.send(command, optionsOrCb || {}, cb);
42
- }
43
- else {
44
- return this.send(command, optionsOrCb);
45
- }
46
- }
47
- getAction(args, optionsOrCb, cb) {
48
- const command = new GetActionCommand(args);
49
- if (typeof optionsOrCb === "function") {
50
- this.send(command, optionsOrCb);
51
- }
52
- else if (typeof cb === "function") {
53
- if (typeof optionsOrCb !== "object")
54
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
55
- this.send(command, optionsOrCb || {}, cb);
56
- }
57
- else {
58
- return this.send(command, optionsOrCb);
59
- }
60
- }
61
- getExperiment(args, optionsOrCb, cb) {
62
- const command = new GetExperimentCommand(args);
63
- if (typeof optionsOrCb === "function") {
64
- this.send(command, optionsOrCb);
65
- }
66
- else if (typeof cb === "function") {
67
- if (typeof optionsOrCb !== "object")
68
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
69
- this.send(command, optionsOrCb || {}, cb);
70
- }
71
- else {
72
- return this.send(command, optionsOrCb);
73
- }
74
- }
75
- getExperimentTemplate(args, optionsOrCb, cb) {
76
- const command = new GetExperimentTemplateCommand(args);
77
- if (typeof optionsOrCb === "function") {
78
- this.send(command, optionsOrCb);
79
- }
80
- else if (typeof cb === "function") {
81
- if (typeof optionsOrCb !== "object")
82
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
83
- this.send(command, optionsOrCb || {}, cb);
84
- }
85
- else {
86
- return this.send(command, optionsOrCb);
87
- }
88
- }
89
- getTargetResourceType(args, optionsOrCb, cb) {
90
- const command = new GetTargetResourceTypeCommand(args);
91
- if (typeof optionsOrCb === "function") {
92
- this.send(command, optionsOrCb);
93
- }
94
- else if (typeof cb === "function") {
95
- if (typeof optionsOrCb !== "object")
96
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
97
- this.send(command, optionsOrCb || {}, cb);
98
- }
99
- else {
100
- return this.send(command, optionsOrCb);
101
- }
102
- }
103
- listActions(args, optionsOrCb, cb) {
104
- const command = new ListActionsCommand(args);
105
- if (typeof optionsOrCb === "function") {
106
- this.send(command, optionsOrCb);
107
- }
108
- else if (typeof cb === "function") {
109
- if (typeof optionsOrCb !== "object")
110
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
111
- this.send(command, optionsOrCb || {}, cb);
112
- }
113
- else {
114
- return this.send(command, optionsOrCb);
115
- }
116
- }
117
- listExperiments(args, optionsOrCb, cb) {
118
- const command = new ListExperimentsCommand(args);
119
- if (typeof optionsOrCb === "function") {
120
- this.send(command, optionsOrCb);
121
- }
122
- else if (typeof cb === "function") {
123
- if (typeof optionsOrCb !== "object")
124
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
125
- this.send(command, optionsOrCb || {}, cb);
126
- }
127
- else {
128
- return this.send(command, optionsOrCb);
129
- }
130
- }
131
- listExperimentTemplates(args, optionsOrCb, cb) {
132
- const command = new ListExperimentTemplatesCommand(args);
133
- if (typeof optionsOrCb === "function") {
134
- this.send(command, optionsOrCb);
135
- }
136
- else if (typeof cb === "function") {
137
- if (typeof optionsOrCb !== "object")
138
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
139
- this.send(command, optionsOrCb || {}, cb);
140
- }
141
- else {
142
- return this.send(command, optionsOrCb);
143
- }
144
- }
145
- listTagsForResource(args, optionsOrCb, cb) {
146
- const command = new ListTagsForResourceCommand(args);
147
- if (typeof optionsOrCb === "function") {
148
- this.send(command, optionsOrCb);
149
- }
150
- else if (typeof cb === "function") {
151
- if (typeof optionsOrCb !== "object")
152
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
153
- this.send(command, optionsOrCb || {}, cb);
154
- }
155
- else {
156
- return this.send(command, optionsOrCb);
157
- }
158
- }
159
- listTargetResourceTypes(args, optionsOrCb, cb) {
160
- const command = new ListTargetResourceTypesCommand(args);
161
- if (typeof optionsOrCb === "function") {
162
- this.send(command, optionsOrCb);
163
- }
164
- else if (typeof cb === "function") {
165
- if (typeof optionsOrCb !== "object")
166
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
167
- this.send(command, optionsOrCb || {}, cb);
168
- }
169
- else {
170
- return this.send(command, optionsOrCb);
171
- }
172
- }
173
- startExperiment(args, optionsOrCb, cb) {
174
- const command = new StartExperimentCommand(args);
175
- if (typeof optionsOrCb === "function") {
176
- this.send(command, optionsOrCb);
177
- }
178
- else if (typeof cb === "function") {
179
- if (typeof optionsOrCb !== "object")
180
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
181
- this.send(command, optionsOrCb || {}, cb);
182
- }
183
- else {
184
- return this.send(command, optionsOrCb);
185
- }
186
- }
187
- stopExperiment(args, optionsOrCb, cb) {
188
- const command = new StopExperimentCommand(args);
189
- if (typeof optionsOrCb === "function") {
190
- this.send(command, optionsOrCb);
191
- }
192
- else if (typeof cb === "function") {
193
- if (typeof optionsOrCb !== "object")
194
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
195
- this.send(command, optionsOrCb || {}, cb);
196
- }
197
- else {
198
- return this.send(command, optionsOrCb);
199
- }
200
- }
201
- tagResource(args, optionsOrCb, cb) {
202
- const command = new TagResourceCommand(args);
203
- if (typeof optionsOrCb === "function") {
204
- this.send(command, optionsOrCb);
205
- }
206
- else if (typeof cb === "function") {
207
- if (typeof optionsOrCb !== "object")
208
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
209
- this.send(command, optionsOrCb || {}, cb);
210
- }
211
- else {
212
- return this.send(command, optionsOrCb);
213
- }
214
- }
215
- untagResource(args, optionsOrCb, cb) {
216
- const command = new UntagResourceCommand(args);
217
- if (typeof optionsOrCb === "function") {
218
- this.send(command, optionsOrCb);
219
- }
220
- else if (typeof cb === "function") {
221
- if (typeof optionsOrCb !== "object")
222
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
223
- this.send(command, optionsOrCb || {}, cb);
224
- }
225
- else {
226
- return this.send(command, optionsOrCb);
227
- }
228
- }
229
- updateExperimentTemplate(args, optionsOrCb, cb) {
230
- const command = new UpdateExperimentTemplateCommand(args);
231
- if (typeof optionsOrCb === "function") {
232
- this.send(command, optionsOrCb);
233
- }
234
- else if (typeof cb === "function") {
235
- if (typeof optionsOrCb !== "object")
236
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
237
- this.send(command, optionsOrCb || {}, cb);
238
- }
239
- else {
240
- return this.send(command, optionsOrCb);
241
- }
242
- }
243
38
  }
39
+ createAggregatedClient(commands, Fis);
@@ -12,7 +12,7 @@ export const se_CreateExperimentTemplateCommand = async (input, context) => {
12
12
  let body;
13
13
  body = JSON.stringify(take(input, {
14
14
  actions: (_) => _json(_),
15
- clientToken: (_) => _ ?? generateIdempotencyToken(),
15
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
16
16
  description: [],
17
17
  logConfiguration: (_) => _json(_),
18
18
  roleArn: [],
@@ -214,7 +214,7 @@ export const se_StartExperimentCommand = async (input, context) => {
214
214
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/experiments";
215
215
  let body;
216
216
  body = JSON.stringify(take(input, {
217
- clientToken: (_) => _ ?? generateIdempotencyToken(),
217
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
218
218
  experimentTemplateId: [],
219
219
  tags: (_) => _json(_),
220
220
  }));
@@ -16,144 +16,108 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
16
16
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
17
17
  import { UpdateExperimentTemplateCommandInput, UpdateExperimentTemplateCommandOutput } from "./commands/UpdateExperimentTemplateCommand";
18
18
  import { FisClient } from "./FisClient";
19
- /**
20
- * @public
21
- * <p>Fault Injection Simulator is a managed service that enables you to perform fault injection
22
- * experiments on your Amazon Web Services workloads. For more information, see the <a href="https://docs.aws.amazon.com/fis/latest/userguide/">Fault Injection Simulator User Guide</a>.</p>
23
- */
24
- export declare class Fis extends FisClient {
25
- /**
26
- * @public
27
- * <p>Creates an experiment template. </p>
28
- * <p>An experiment template includes the following components:</p>
29
- * <ul>
30
- * <li>
31
- * <p>
32
- * <b>Targets</b>: A target can be a specific resource in
33
- * your Amazon Web Services environment, or one or more resources that match criteria that you
34
- * specify, for example, resources that have specific tags.</p>
35
- * </li>
36
- * <li>
37
- * <p>
38
- * <b>Actions</b>: The actions to carry out on the
39
- * target. You can specify multiple actions, the duration of each action, and when to start each action during an experiment.</p>
40
- * </li>
41
- * <li>
42
- * <p>
43
- * <b>Stop conditions</b>: If a stop condition is
44
- * triggered while an experiment is running, the experiment is automatically
45
- * stopped. You can define a stop condition as a CloudWatch alarm.</p>
46
- * </li>
47
- * </ul>
48
- * <p>For more information, see <a href="https://docs.aws.amazon.com/fis/latest/userguide/experiment-templates.html">Experiment templates</a>
49
- * in the <i>Fault Injection Simulator User Guide</i>.</p>
19
+ export interface Fis {
20
+ /**
21
+ * @see {@link CreateExperimentTemplateCommand}
50
22
  */
51
23
  createExperimentTemplate(args: CreateExperimentTemplateCommandInput, options?: __HttpHandlerOptions): Promise<CreateExperimentTemplateCommandOutput>;
52
24
  createExperimentTemplate(args: CreateExperimentTemplateCommandInput, cb: (err: any, data?: CreateExperimentTemplateCommandOutput) => void): void;
53
25
  createExperimentTemplate(args: CreateExperimentTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateExperimentTemplateCommandOutput) => void): void;
54
26
  /**
55
- * @public
56
- * <p>Deletes the specified experiment template.</p>
27
+ * @see {@link DeleteExperimentTemplateCommand}
57
28
  */
58
29
  deleteExperimentTemplate(args: DeleteExperimentTemplateCommandInput, options?: __HttpHandlerOptions): Promise<DeleteExperimentTemplateCommandOutput>;
59
30
  deleteExperimentTemplate(args: DeleteExperimentTemplateCommandInput, cb: (err: any, data?: DeleteExperimentTemplateCommandOutput) => void): void;
60
31
  deleteExperimentTemplate(args: DeleteExperimentTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteExperimentTemplateCommandOutput) => void): void;
61
32
  /**
62
- * @public
63
- * <p>Gets information about the specified FIS action.</p>
33
+ * @see {@link GetActionCommand}
64
34
  */
65
35
  getAction(args: GetActionCommandInput, options?: __HttpHandlerOptions): Promise<GetActionCommandOutput>;
66
36
  getAction(args: GetActionCommandInput, cb: (err: any, data?: GetActionCommandOutput) => void): void;
67
37
  getAction(args: GetActionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetActionCommandOutput) => void): void;
68
38
  /**
69
- * @public
70
- * <p>Gets information about the specified experiment.</p>
39
+ * @see {@link GetExperimentCommand}
71
40
  */
72
41
  getExperiment(args: GetExperimentCommandInput, options?: __HttpHandlerOptions): Promise<GetExperimentCommandOutput>;
73
42
  getExperiment(args: GetExperimentCommandInput, cb: (err: any, data?: GetExperimentCommandOutput) => void): void;
74
43
  getExperiment(args: GetExperimentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetExperimentCommandOutput) => void): void;
75
44
  /**
76
- * @public
77
- * <p>Gets information about the specified experiment template.</p>
45
+ * @see {@link GetExperimentTemplateCommand}
78
46
  */
79
47
  getExperimentTemplate(args: GetExperimentTemplateCommandInput, options?: __HttpHandlerOptions): Promise<GetExperimentTemplateCommandOutput>;
80
48
  getExperimentTemplate(args: GetExperimentTemplateCommandInput, cb: (err: any, data?: GetExperimentTemplateCommandOutput) => void): void;
81
49
  getExperimentTemplate(args: GetExperimentTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetExperimentTemplateCommandOutput) => void): void;
82
50
  /**
83
- * @public
84
- * <p>Gets information about the specified resource type.</p>
51
+ * @see {@link GetTargetResourceTypeCommand}
85
52
  */
86
53
  getTargetResourceType(args: GetTargetResourceTypeCommandInput, options?: __HttpHandlerOptions): Promise<GetTargetResourceTypeCommandOutput>;
87
54
  getTargetResourceType(args: GetTargetResourceTypeCommandInput, cb: (err: any, data?: GetTargetResourceTypeCommandOutput) => void): void;
88
55
  getTargetResourceType(args: GetTargetResourceTypeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTargetResourceTypeCommandOutput) => void): void;
89
56
  /**
90
- * @public
91
- * <p>Lists the available FIS actions.</p>
57
+ * @see {@link ListActionsCommand}
92
58
  */
93
59
  listActions(args: ListActionsCommandInput, options?: __HttpHandlerOptions): Promise<ListActionsCommandOutput>;
94
60
  listActions(args: ListActionsCommandInput, cb: (err: any, data?: ListActionsCommandOutput) => void): void;
95
61
  listActions(args: ListActionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListActionsCommandOutput) => void): void;
96
62
  /**
97
- * @public
98
- * <p>Lists your experiments.</p>
63
+ * @see {@link ListExperimentsCommand}
99
64
  */
100
65
  listExperiments(args: ListExperimentsCommandInput, options?: __HttpHandlerOptions): Promise<ListExperimentsCommandOutput>;
101
66
  listExperiments(args: ListExperimentsCommandInput, cb: (err: any, data?: ListExperimentsCommandOutput) => void): void;
102
67
  listExperiments(args: ListExperimentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListExperimentsCommandOutput) => void): void;
103
68
  /**
104
- * @public
105
- * <p>Lists your experiment templates.</p>
69
+ * @see {@link ListExperimentTemplatesCommand}
106
70
  */
107
71
  listExperimentTemplates(args: ListExperimentTemplatesCommandInput, options?: __HttpHandlerOptions): Promise<ListExperimentTemplatesCommandOutput>;
108
72
  listExperimentTemplates(args: ListExperimentTemplatesCommandInput, cb: (err: any, data?: ListExperimentTemplatesCommandOutput) => void): void;
109
73
  listExperimentTemplates(args: ListExperimentTemplatesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListExperimentTemplatesCommandOutput) => void): void;
110
74
  /**
111
- * @public
112
- * <p>Lists the tags for the specified resource.</p>
75
+ * @see {@link ListTagsForResourceCommand}
113
76
  */
114
77
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
115
78
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
116
79
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
117
80
  /**
118
- * @public
119
- * <p>Lists the target resource types.</p>
81
+ * @see {@link ListTargetResourceTypesCommand}
120
82
  */
121
83
  listTargetResourceTypes(args: ListTargetResourceTypesCommandInput, options?: __HttpHandlerOptions): Promise<ListTargetResourceTypesCommandOutput>;
122
84
  listTargetResourceTypes(args: ListTargetResourceTypesCommandInput, cb: (err: any, data?: ListTargetResourceTypesCommandOutput) => void): void;
123
85
  listTargetResourceTypes(args: ListTargetResourceTypesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTargetResourceTypesCommandOutput) => void): void;
124
86
  /**
125
- * @public
126
- * <p>Starts running an experiment from the specified experiment template.</p>
87
+ * @see {@link StartExperimentCommand}
127
88
  */
128
89
  startExperiment(args: StartExperimentCommandInput, options?: __HttpHandlerOptions): Promise<StartExperimentCommandOutput>;
129
90
  startExperiment(args: StartExperimentCommandInput, cb: (err: any, data?: StartExperimentCommandOutput) => void): void;
130
91
  startExperiment(args: StartExperimentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartExperimentCommandOutput) => void): void;
131
92
  /**
132
- * @public
133
- * <p>Stops the specified experiment.</p>
93
+ * @see {@link StopExperimentCommand}
134
94
  */
135
95
  stopExperiment(args: StopExperimentCommandInput, options?: __HttpHandlerOptions): Promise<StopExperimentCommandOutput>;
136
96
  stopExperiment(args: StopExperimentCommandInput, cb: (err: any, data?: StopExperimentCommandOutput) => void): void;
137
97
  stopExperiment(args: StopExperimentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopExperimentCommandOutput) => void): void;
138
98
  /**
139
- * @public
140
- * <p>Applies the specified tags to the specified resource.</p>
99
+ * @see {@link TagResourceCommand}
141
100
  */
142
101
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
143
102
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
144
103
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
145
104
  /**
146
- * @public
147
- * <p>Removes the specified tags from the specified resource.</p>
105
+ * @see {@link UntagResourceCommand}
148
106
  */
149
107
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
150
108
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
151
109
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
152
110
  /**
153
- * @public
154
- * <p>Updates the specified experiment template.</p>
111
+ * @see {@link UpdateExperimentTemplateCommand}
155
112
  */
156
113
  updateExperimentTemplate(args: UpdateExperimentTemplateCommandInput, options?: __HttpHandlerOptions): Promise<UpdateExperimentTemplateCommandOutput>;
157
114
  updateExperimentTemplate(args: UpdateExperimentTemplateCommandInput, cb: (err: any, data?: UpdateExperimentTemplateCommandOutput) => void): void;
158
115
  updateExperimentTemplate(args: UpdateExperimentTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateExperimentTemplateCommandOutput) => void): void;
159
116
  }
117
+ /**
118
+ * @public
119
+ * <p>Fault Injection Simulator is a managed service that enables you to perform fault injection
120
+ * experiments on your Amazon Web Services workloads. For more information, see the <a href="https://docs.aws.amazon.com/fis/latest/userguide/">Fault Injection Simulator User Guide</a>.</p>
121
+ */
122
+ export declare class Fis extends FisClient implements Fis {
123
+ }
@@ -64,7 +64,7 @@ import {
64
64
  UpdateExperimentTemplateCommandOutput,
65
65
  } from "./commands/UpdateExperimentTemplateCommand";
66
66
  import { FisClient } from "./FisClient";
67
- export declare class Fis extends FisClient {
67
+ export interface Fis {
68
68
  createExperimentTemplate(
69
69
  args: CreateExperimentTemplateCommandInput,
70
70
  options?: __HttpHandlerOptions
@@ -274,3 +274,4 @@ export declare class Fis extends FisClient {
274
274
  cb: (err: any, data?: UpdateExperimentTemplateCommandOutput) => void
275
275
  ): void;
276
276
  }
277
+ export declare class Fis extends FisClient implements Fis {}
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.315.0",
4
+ "version": "3.316.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.316.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.316.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -40,14 +40,14 @@
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
51
  "@aws-sdk/util-endpoints": "3.310.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",