@aws-sdk/client-fis 3.185.0 → 3.188.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/Fis.js +66 -73
  3. package/dist-es/FisClient.js +22 -28
  4. package/dist-es/commands/CreateExperimentTemplateCommand.js +21 -28
  5. package/dist-es/commands/DeleteExperimentTemplateCommand.js +21 -28
  6. package/dist-es/commands/GetActionCommand.js +21 -28
  7. package/dist-es/commands/GetExperimentCommand.js +21 -28
  8. package/dist-es/commands/GetExperimentTemplateCommand.js +21 -28
  9. package/dist-es/commands/GetTargetResourceTypeCommand.js +21 -28
  10. package/dist-es/commands/ListActionsCommand.js +21 -28
  11. package/dist-es/commands/ListExperimentTemplatesCommand.js +21 -28
  12. package/dist-es/commands/ListExperimentsCommand.js +21 -28
  13. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  14. package/dist-es/commands/ListTargetResourceTypesCommand.js +21 -28
  15. package/dist-es/commands/StartExperimentCommand.js +21 -28
  16. package/dist-es/commands/StopExperimentCommand.js +21 -28
  17. package/dist-es/commands/TagResourceCommand.js +21 -28
  18. package/dist-es/commands/UntagResourceCommand.js +21 -28
  19. package/dist-es/commands/UpdateExperimentTemplateCommand.js +21 -28
  20. package/dist-es/endpoints.js +8 -8
  21. package/dist-es/models/FisServiceException.js +5 -10
  22. package/dist-es/models/models_0.js +254 -115
  23. package/dist-es/pagination/ListActionsPaginator.js +25 -68
  24. package/dist-es/pagination/ListExperimentTemplatesPaginator.js +25 -68
  25. package/dist-es/pagination/ListExperimentsPaginator.js +25 -68
  26. package/dist-es/pagination/ListTargetResourceTypesPaginator.js +25 -68
  27. package/dist-es/protocols/Aws_restJson1.js +1275 -1666
  28. package/dist-es/runtimeConfig.browser.js +26 -12
  29. package/dist-es/runtimeConfig.js +30 -12
  30. package/dist-es/runtimeConfig.native.js +8 -5
  31. package/dist-es/runtimeConfig.shared.js +8 -11
  32. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.188.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.187.0...v3.188.0) (2022-10-13)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-fis
9
+
10
+
11
+
12
+
13
+
14
+ # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-fis
17
+
18
+
19
+
20
+
21
+
6
22
  # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
7
23
 
8
24
 
package/dist-es/Fis.js CHANGED
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { CreateExperimentTemplateCommand, } from "./commands/CreateExperimentTemplateCommand";
3
2
  import { DeleteExperimentTemplateCommand, } from "./commands/DeleteExperimentTemplateCommand";
4
3
  import { GetActionCommand } from "./commands/GetActionCommand";
@@ -16,235 +15,229 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
16
15
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
17
16
  import { UpdateExperimentTemplateCommand, } from "./commands/UpdateExperimentTemplateCommand";
18
17
  import { FisClient } from "./FisClient";
19
- var Fis = (function (_super) {
20
- __extends(Fis, _super);
21
- function Fis() {
22
- return _super !== null && _super.apply(this, arguments) || this;
23
- }
24
- Fis.prototype.createExperimentTemplate = function (args, optionsOrCb, cb) {
25
- var command = new CreateExperimentTemplateCommand(args);
18
+ export class Fis extends FisClient {
19
+ createExperimentTemplate(args, optionsOrCb, cb) {
20
+ const command = new CreateExperimentTemplateCommand(args);
26
21
  if (typeof optionsOrCb === "function") {
27
22
  this.send(command, optionsOrCb);
28
23
  }
29
24
  else if (typeof cb === "function") {
30
25
  if (typeof optionsOrCb !== "object")
31
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
26
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
32
27
  this.send(command, optionsOrCb || {}, cb);
33
28
  }
34
29
  else {
35
30
  return this.send(command, optionsOrCb);
36
31
  }
37
- };
38
- Fis.prototype.deleteExperimentTemplate = function (args, optionsOrCb, cb) {
39
- var command = new DeleteExperimentTemplateCommand(args);
32
+ }
33
+ deleteExperimentTemplate(args, optionsOrCb, cb) {
34
+ const command = new DeleteExperimentTemplateCommand(args);
40
35
  if (typeof optionsOrCb === "function") {
41
36
  this.send(command, optionsOrCb);
42
37
  }
43
38
  else if (typeof cb === "function") {
44
39
  if (typeof optionsOrCb !== "object")
45
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
40
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
46
41
  this.send(command, optionsOrCb || {}, cb);
47
42
  }
48
43
  else {
49
44
  return this.send(command, optionsOrCb);
50
45
  }
51
- };
52
- Fis.prototype.getAction = function (args, optionsOrCb, cb) {
53
- var command = new GetActionCommand(args);
46
+ }
47
+ getAction(args, optionsOrCb, cb) {
48
+ const command = new GetActionCommand(args);
54
49
  if (typeof optionsOrCb === "function") {
55
50
  this.send(command, optionsOrCb);
56
51
  }
57
52
  else if (typeof cb === "function") {
58
53
  if (typeof optionsOrCb !== "object")
59
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
54
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
60
55
  this.send(command, optionsOrCb || {}, cb);
61
56
  }
62
57
  else {
63
58
  return this.send(command, optionsOrCb);
64
59
  }
65
- };
66
- Fis.prototype.getExperiment = function (args, optionsOrCb, cb) {
67
- var command = new GetExperimentCommand(args);
60
+ }
61
+ getExperiment(args, optionsOrCb, cb) {
62
+ const command = new GetExperimentCommand(args);
68
63
  if (typeof optionsOrCb === "function") {
69
64
  this.send(command, optionsOrCb);
70
65
  }
71
66
  else if (typeof cb === "function") {
72
67
  if (typeof optionsOrCb !== "object")
73
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
68
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
74
69
  this.send(command, optionsOrCb || {}, cb);
75
70
  }
76
71
  else {
77
72
  return this.send(command, optionsOrCb);
78
73
  }
79
- };
80
- Fis.prototype.getExperimentTemplate = function (args, optionsOrCb, cb) {
81
- var command = new GetExperimentTemplateCommand(args);
74
+ }
75
+ getExperimentTemplate(args, optionsOrCb, cb) {
76
+ const command = new GetExperimentTemplateCommand(args);
82
77
  if (typeof optionsOrCb === "function") {
83
78
  this.send(command, optionsOrCb);
84
79
  }
85
80
  else if (typeof cb === "function") {
86
81
  if (typeof optionsOrCb !== "object")
87
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
82
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
88
83
  this.send(command, optionsOrCb || {}, cb);
89
84
  }
90
85
  else {
91
86
  return this.send(command, optionsOrCb);
92
87
  }
93
- };
94
- Fis.prototype.getTargetResourceType = function (args, optionsOrCb, cb) {
95
- var command = new GetTargetResourceTypeCommand(args);
88
+ }
89
+ getTargetResourceType(args, optionsOrCb, cb) {
90
+ const command = new GetTargetResourceTypeCommand(args);
96
91
  if (typeof optionsOrCb === "function") {
97
92
  this.send(command, optionsOrCb);
98
93
  }
99
94
  else if (typeof cb === "function") {
100
95
  if (typeof optionsOrCb !== "object")
101
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
96
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
102
97
  this.send(command, optionsOrCb || {}, cb);
103
98
  }
104
99
  else {
105
100
  return this.send(command, optionsOrCb);
106
101
  }
107
- };
108
- Fis.prototype.listActions = function (args, optionsOrCb, cb) {
109
- var command = new ListActionsCommand(args);
102
+ }
103
+ listActions(args, optionsOrCb, cb) {
104
+ const command = new ListActionsCommand(args);
110
105
  if (typeof optionsOrCb === "function") {
111
106
  this.send(command, optionsOrCb);
112
107
  }
113
108
  else if (typeof cb === "function") {
114
109
  if (typeof optionsOrCb !== "object")
115
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
110
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
116
111
  this.send(command, optionsOrCb || {}, cb);
117
112
  }
118
113
  else {
119
114
  return this.send(command, optionsOrCb);
120
115
  }
121
- };
122
- Fis.prototype.listExperiments = function (args, optionsOrCb, cb) {
123
- var command = new ListExperimentsCommand(args);
116
+ }
117
+ listExperiments(args, optionsOrCb, cb) {
118
+ const command = new ListExperimentsCommand(args);
124
119
  if (typeof optionsOrCb === "function") {
125
120
  this.send(command, optionsOrCb);
126
121
  }
127
122
  else if (typeof cb === "function") {
128
123
  if (typeof optionsOrCb !== "object")
129
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
124
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
130
125
  this.send(command, optionsOrCb || {}, cb);
131
126
  }
132
127
  else {
133
128
  return this.send(command, optionsOrCb);
134
129
  }
135
- };
136
- Fis.prototype.listExperimentTemplates = function (args, optionsOrCb, cb) {
137
- var command = new ListExperimentTemplatesCommand(args);
130
+ }
131
+ listExperimentTemplates(args, optionsOrCb, cb) {
132
+ const command = new ListExperimentTemplatesCommand(args);
138
133
  if (typeof optionsOrCb === "function") {
139
134
  this.send(command, optionsOrCb);
140
135
  }
141
136
  else if (typeof cb === "function") {
142
137
  if (typeof optionsOrCb !== "object")
143
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
138
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
144
139
  this.send(command, optionsOrCb || {}, cb);
145
140
  }
146
141
  else {
147
142
  return this.send(command, optionsOrCb);
148
143
  }
149
- };
150
- Fis.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
151
- var command = new ListTagsForResourceCommand(args);
144
+ }
145
+ listTagsForResource(args, optionsOrCb, cb) {
146
+ const command = new ListTagsForResourceCommand(args);
152
147
  if (typeof optionsOrCb === "function") {
153
148
  this.send(command, optionsOrCb);
154
149
  }
155
150
  else if (typeof cb === "function") {
156
151
  if (typeof optionsOrCb !== "object")
157
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
152
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
158
153
  this.send(command, optionsOrCb || {}, cb);
159
154
  }
160
155
  else {
161
156
  return this.send(command, optionsOrCb);
162
157
  }
163
- };
164
- Fis.prototype.listTargetResourceTypes = function (args, optionsOrCb, cb) {
165
- var command = new ListTargetResourceTypesCommand(args);
158
+ }
159
+ listTargetResourceTypes(args, optionsOrCb, cb) {
160
+ const command = new ListTargetResourceTypesCommand(args);
166
161
  if (typeof optionsOrCb === "function") {
167
162
  this.send(command, optionsOrCb);
168
163
  }
169
164
  else if (typeof cb === "function") {
170
165
  if (typeof optionsOrCb !== "object")
171
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
166
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
172
167
  this.send(command, optionsOrCb || {}, cb);
173
168
  }
174
169
  else {
175
170
  return this.send(command, optionsOrCb);
176
171
  }
177
- };
178
- Fis.prototype.startExperiment = function (args, optionsOrCb, cb) {
179
- var command = new StartExperimentCommand(args);
172
+ }
173
+ startExperiment(args, optionsOrCb, cb) {
174
+ const command = new StartExperimentCommand(args);
180
175
  if (typeof optionsOrCb === "function") {
181
176
  this.send(command, optionsOrCb);
182
177
  }
183
178
  else if (typeof cb === "function") {
184
179
  if (typeof optionsOrCb !== "object")
185
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
180
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
186
181
  this.send(command, optionsOrCb || {}, cb);
187
182
  }
188
183
  else {
189
184
  return this.send(command, optionsOrCb);
190
185
  }
191
- };
192
- Fis.prototype.stopExperiment = function (args, optionsOrCb, cb) {
193
- var command = new StopExperimentCommand(args);
186
+ }
187
+ stopExperiment(args, optionsOrCb, cb) {
188
+ const command = new StopExperimentCommand(args);
194
189
  if (typeof optionsOrCb === "function") {
195
190
  this.send(command, optionsOrCb);
196
191
  }
197
192
  else if (typeof cb === "function") {
198
193
  if (typeof optionsOrCb !== "object")
199
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
194
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
200
195
  this.send(command, optionsOrCb || {}, cb);
201
196
  }
202
197
  else {
203
198
  return this.send(command, optionsOrCb);
204
199
  }
205
- };
206
- Fis.prototype.tagResource = function (args, optionsOrCb, cb) {
207
- var command = new TagResourceCommand(args);
200
+ }
201
+ tagResource(args, optionsOrCb, cb) {
202
+ const command = new TagResourceCommand(args);
208
203
  if (typeof optionsOrCb === "function") {
209
204
  this.send(command, optionsOrCb);
210
205
  }
211
206
  else if (typeof cb === "function") {
212
207
  if (typeof optionsOrCb !== "object")
213
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
208
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
214
209
  this.send(command, optionsOrCb || {}, cb);
215
210
  }
216
211
  else {
217
212
  return this.send(command, optionsOrCb);
218
213
  }
219
- };
220
- Fis.prototype.untagResource = function (args, optionsOrCb, cb) {
221
- var command = new UntagResourceCommand(args);
214
+ }
215
+ untagResource(args, optionsOrCb, cb) {
216
+ const command = new UntagResourceCommand(args);
222
217
  if (typeof optionsOrCb === "function") {
223
218
  this.send(command, optionsOrCb);
224
219
  }
225
220
  else if (typeof cb === "function") {
226
221
  if (typeof optionsOrCb !== "object")
227
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
222
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
228
223
  this.send(command, optionsOrCb || {}, cb);
229
224
  }
230
225
  else {
231
226
  return this.send(command, optionsOrCb);
232
227
  }
233
- };
234
- Fis.prototype.updateExperimentTemplate = function (args, optionsOrCb, cb) {
235
- var command = new UpdateExperimentTemplateCommand(args);
228
+ }
229
+ updateExperimentTemplate(args, optionsOrCb, cb) {
230
+ const command = new UpdateExperimentTemplateCommand(args);
236
231
  if (typeof optionsOrCb === "function") {
237
232
  this.send(command, optionsOrCb);
238
233
  }
239
234
  else if (typeof cb === "function") {
240
235
  if (typeof optionsOrCb !== "object")
241
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
236
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
242
237
  this.send(command, optionsOrCb || {}, cb);
243
238
  }
244
239
  else {
245
240
  return this.send(command, optionsOrCb);
246
241
  }
247
- };
248
- return Fis;
249
- }(FisClient));
250
- export { Fis };
242
+ }
243
+ }
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var FisClient = (function (_super) {
13
- __extends(FisClient, _super);
14
- function FisClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class FisClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- FisClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return FisClient;
38
- }(__Client));
39
- export { FisClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateExperimentTemplateRequestFilterSensitiveLog, CreateExperimentTemplateResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateExperimentTemplateCommand, serializeAws_restJson1CreateExperimentTemplateCommand, } from "../protocols/Aws_restJson1";
6
- var CreateExperimentTemplateCommand = (function (_super) {
7
- __extends(CreateExperimentTemplateCommand, _super);
8
- function CreateExperimentTemplateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateExperimentTemplateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateExperimentTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "FisClient";
18
- var commandName = "CreateExperimentTemplateCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "FisClient";
15
+ const commandName = "CreateExperimentTemplateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateExperimentTemplateRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateExperimentTemplateResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateExperimentTemplateCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateExperimentTemplateCommand(input, context);
33
- };
34
- CreateExperimentTemplateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateExperimentTemplateCommand(output, context);
36
- };
37
- return CreateExperimentTemplateCommand;
38
- }($Command));
39
- export { CreateExperimentTemplateCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteExperimentTemplateRequestFilterSensitiveLog, DeleteExperimentTemplateResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteExperimentTemplateCommand, serializeAws_restJson1DeleteExperimentTemplateCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteExperimentTemplateCommand = (function (_super) {
7
- __extends(DeleteExperimentTemplateCommand, _super);
8
- function DeleteExperimentTemplateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteExperimentTemplateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteExperimentTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "FisClient";
18
- var commandName = "DeleteExperimentTemplateCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "FisClient";
15
+ const commandName = "DeleteExperimentTemplateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteExperimentTemplateRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteExperimentTemplateResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteExperimentTemplateCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteExperimentTemplateCommand(input, context);
33
- };
34
- DeleteExperimentTemplateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteExperimentTemplateCommand(output, context);
36
- };
37
- return DeleteExperimentTemplateCommand;
38
- }($Command));
39
- export { DeleteExperimentTemplateCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetActionRequestFilterSensitiveLog, GetActionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetActionCommand, serializeAws_restJson1GetActionCommand, } from "../protocols/Aws_restJson1";
6
- var GetActionCommand = (function (_super) {
7
- __extends(GetActionCommand, _super);
8
- function GetActionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetActionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetActionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "FisClient";
18
- var commandName = "GetActionCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "FisClient";
15
+ const commandName = "GetActionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetActionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetActionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetActionCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetActionCommand(input, context);
33
- };
34
- GetActionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetActionCommand(output, context);
36
- };
37
- return GetActionCommand;
38
- }($Command));
39
- export { GetActionCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetExperimentRequestFilterSensitiveLog, GetExperimentResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetExperimentCommand, serializeAws_restJson1GetExperimentCommand, } from "../protocols/Aws_restJson1";
6
- var GetExperimentCommand = (function (_super) {
7
- __extends(GetExperimentCommand, _super);
8
- function GetExperimentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetExperimentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetExperimentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "FisClient";
18
- var commandName = "GetExperimentCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "FisClient";
15
+ const commandName = "GetExperimentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetExperimentRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetExperimentResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetExperimentCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetExperimentCommand(input, context);
33
- };
34
- GetExperimentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetExperimentCommand(output, context);
36
- };
37
- return GetExperimentCommand;
38
- }($Command));
39
- export { GetExperimentCommand };
31
+ }
32
+ }