@aws-sdk/client-fis 3.312.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);