@aws-sdk/client-fis 3.180.0 → 3.183.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 (33) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +22 -16
  3. package/dist-es/Fis.js +66 -73
  4. package/dist-es/FisClient.js +22 -28
  5. package/dist-es/commands/CreateExperimentTemplateCommand.js +21 -28
  6. package/dist-es/commands/DeleteExperimentTemplateCommand.js +21 -28
  7. package/dist-es/commands/GetActionCommand.js +21 -28
  8. package/dist-es/commands/GetExperimentCommand.js +21 -28
  9. package/dist-es/commands/GetExperimentTemplateCommand.js +21 -28
  10. package/dist-es/commands/GetTargetResourceTypeCommand.js +21 -28
  11. package/dist-es/commands/ListActionsCommand.js +21 -28
  12. package/dist-es/commands/ListExperimentTemplatesCommand.js +21 -28
  13. package/dist-es/commands/ListExperimentsCommand.js +21 -28
  14. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  15. package/dist-es/commands/ListTargetResourceTypesCommand.js +21 -28
  16. package/dist-es/commands/StartExperimentCommand.js +21 -28
  17. package/dist-es/commands/StopExperimentCommand.js +21 -28
  18. package/dist-es/commands/TagResourceCommand.js +21 -28
  19. package/dist-es/commands/UntagResourceCommand.js +21 -28
  20. package/dist-es/commands/UpdateExperimentTemplateCommand.js +21 -28
  21. package/dist-es/endpoints.js +8 -8
  22. package/dist-es/models/FisServiceException.js +5 -10
  23. package/dist-es/models/models_0.js +254 -115
  24. package/dist-es/pagination/ListActionsPaginator.js +25 -68
  25. package/dist-es/pagination/ListExperimentTemplatesPaginator.js +25 -68
  26. package/dist-es/pagination/ListExperimentsPaginator.js +25 -68
  27. package/dist-es/pagination/ListTargetResourceTypesPaginator.js +25 -68
  28. package/dist-es/protocols/Aws_restJson1.js +1275 -1653
  29. package/dist-es/runtimeConfig.browser.js +26 -12
  30. package/dist-es/runtimeConfig.js +30 -12
  31. package/dist-es/runtimeConfig.native.js +8 -5
  32. package/dist-es/runtimeConfig.shared.js +8 -11
  33. package/package.json +33 -33
@@ -1,53 +1,52 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { FisServiceException as __BaseException } from "./FisServiceException";
3
- var ConflictException = (function (_super) {
4
- __extends(ConflictException, _super);
5
- function ConflictException(opts) {
6
- var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
7
- _this.name = "ConflictException";
8
- _this.$fault = "client";
9
- Object.setPrototypeOf(_this, ConflictException.prototype);
10
- return _this;
2
+ export class ConflictException extends __BaseException {
3
+ constructor(opts) {
4
+ super({
5
+ name: "ConflictException",
6
+ $fault: "client",
7
+ ...opts,
8
+ });
9
+ this.name = "ConflictException";
10
+ this.$fault = "client";
11
+ Object.setPrototypeOf(this, ConflictException.prototype);
11
12
  }
12
- return ConflictException;
13
- }(__BaseException));
14
- export { ConflictException };
15
- var ResourceNotFoundException = (function (_super) {
16
- __extends(ResourceNotFoundException, _super);
17
- function ResourceNotFoundException(opts) {
18
- var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
19
- _this.name = "ResourceNotFoundException";
20
- _this.$fault = "client";
21
- Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
22
- return _this;
13
+ }
14
+ export class ResourceNotFoundException extends __BaseException {
15
+ constructor(opts) {
16
+ super({
17
+ name: "ResourceNotFoundException",
18
+ $fault: "client",
19
+ ...opts,
20
+ });
21
+ this.name = "ResourceNotFoundException";
22
+ this.$fault = "client";
23
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
23
24
  }
24
- return ResourceNotFoundException;
25
- }(__BaseException));
26
- export { ResourceNotFoundException };
27
- var ServiceQuotaExceededException = (function (_super) {
28
- __extends(ServiceQuotaExceededException, _super);
29
- function ServiceQuotaExceededException(opts) {
30
- var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
31
- _this.name = "ServiceQuotaExceededException";
32
- _this.$fault = "client";
33
- Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
34
- return _this;
25
+ }
26
+ export class ServiceQuotaExceededException extends __BaseException {
27
+ constructor(opts) {
28
+ super({
29
+ name: "ServiceQuotaExceededException",
30
+ $fault: "client",
31
+ ...opts,
32
+ });
33
+ this.name = "ServiceQuotaExceededException";
34
+ this.$fault = "client";
35
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
35
36
  }
36
- return ServiceQuotaExceededException;
37
- }(__BaseException));
38
- export { ServiceQuotaExceededException };
39
- var ValidationException = (function (_super) {
40
- __extends(ValidationException, _super);
41
- function ValidationException(opts) {
42
- var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
43
- _this.name = "ValidationException";
44
- _this.$fault = "client";
45
- Object.setPrototypeOf(_this, ValidationException.prototype);
46
- return _this;
37
+ }
38
+ export class ValidationException extends __BaseException {
39
+ constructor(opts) {
40
+ super({
41
+ name: "ValidationException",
42
+ $fault: "client",
43
+ ...opts,
44
+ });
45
+ this.name = "ValidationException";
46
+ this.$fault = "client";
47
+ Object.setPrototypeOf(this, ValidationException.prototype);
47
48
  }
48
- return ValidationException;
49
- }(__BaseException));
50
- export { ValidationException };
49
+ }
51
50
  export var ExperimentActionStatus;
52
51
  (function (ExperimentActionStatus) {
53
52
  ExperimentActionStatus["cancelled"] = "cancelled";
@@ -69,73 +68,213 @@ export var ExperimentStatus;
69
68
  ExperimentStatus["stopped"] = "stopped";
70
69
  ExperimentStatus["stopping"] = "stopping";
71
70
  })(ExperimentStatus || (ExperimentStatus = {}));
72
- export var ActionParameterFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
73
- export var ActionTargetFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
74
- export var ActionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
75
- export var ActionSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
76
- export var CreateExperimentTemplateActionInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
77
- export var ExperimentTemplateCloudWatchLogsLogConfigurationInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
78
- export var ExperimentTemplateS3LogConfigurationInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
79
- export var CreateExperimentTemplateLogConfigurationInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
80
- export var CreateExperimentTemplateStopConditionInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
81
- export var ExperimentTemplateTargetInputFilterFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
82
- export var CreateExperimentTemplateTargetInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
83
- export var CreateExperimentTemplateRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
84
- export var ExperimentTemplateActionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
85
- export var ExperimentTemplateCloudWatchLogsLogConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
86
- export var ExperimentTemplateS3LogConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
87
- export var ExperimentTemplateLogConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
88
- export var ExperimentTemplateStopConditionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
89
- export var ExperimentTemplateTargetFilterFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
90
- export var ExperimentTemplateTargetFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
91
- export var ExperimentTemplateFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
92
- export var CreateExperimentTemplateResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
93
- export var DeleteExperimentTemplateRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
94
- export var DeleteExperimentTemplateResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
95
- export var ExperimentActionStateFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
96
- export var ExperimentActionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
97
- export var ExperimentCloudWatchLogsLogConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
98
- export var ExperimentS3LogConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
99
- export var ExperimentLogConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
100
- export var ExperimentStateFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
101
- export var ExperimentStopConditionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
102
- export var ExperimentTargetFilterFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
103
- export var ExperimentTargetFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
104
- export var ExperimentFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
105
- export var ExperimentSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
106
- export var ExperimentTemplateSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
107
- export var GetActionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
108
- export var GetActionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
109
- export var GetExperimentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
110
- export var GetExperimentResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
111
- export var GetExperimentTemplateRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
112
- export var GetExperimentTemplateResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
113
- export var GetTargetResourceTypeRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
114
- export var TargetResourceTypeParameterFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
115
- export var TargetResourceTypeFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
116
- export var GetTargetResourceTypeResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
117
- export var ListActionsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
118
- export var ListActionsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
119
- export var ListExperimentsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
120
- export var ListExperimentsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
121
- export var ListExperimentTemplatesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
122
- export var ListExperimentTemplatesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
123
- export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
124
- export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
125
- export var ListTargetResourceTypesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
126
- export var TargetResourceTypeSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
127
- export var ListTargetResourceTypesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
128
- export var StartExperimentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
129
- export var StartExperimentResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
130
- export var StopExperimentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
131
- export var StopExperimentResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
132
- export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
133
- export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
134
- export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
135
- export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
136
- export var UpdateExperimentTemplateActionInputItemFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
137
- export var UpdateExperimentTemplateLogConfigurationInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
138
- export var UpdateExperimentTemplateStopConditionInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
139
- export var UpdateExperimentTemplateTargetInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
140
- export var UpdateExperimentTemplateRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
141
- export var UpdateExperimentTemplateResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
71
+ export const ActionParameterFilterSensitiveLog = (obj) => ({
72
+ ...obj,
73
+ });
74
+ export const ActionTargetFilterSensitiveLog = (obj) => ({
75
+ ...obj,
76
+ });
77
+ export const ActionFilterSensitiveLog = (obj) => ({
78
+ ...obj,
79
+ });
80
+ export const ActionSummaryFilterSensitiveLog = (obj) => ({
81
+ ...obj,
82
+ });
83
+ export const CreateExperimentTemplateActionInputFilterSensitiveLog = (obj) => ({
84
+ ...obj,
85
+ });
86
+ export const ExperimentTemplateCloudWatchLogsLogConfigurationInputFilterSensitiveLog = (obj) => ({
87
+ ...obj,
88
+ });
89
+ export const ExperimentTemplateS3LogConfigurationInputFilterSensitiveLog = (obj) => ({
90
+ ...obj,
91
+ });
92
+ export const CreateExperimentTemplateLogConfigurationInputFilterSensitiveLog = (obj) => ({
93
+ ...obj,
94
+ });
95
+ export const CreateExperimentTemplateStopConditionInputFilterSensitiveLog = (obj) => ({
96
+ ...obj,
97
+ });
98
+ export const ExperimentTemplateTargetInputFilterFilterSensitiveLog = (obj) => ({
99
+ ...obj,
100
+ });
101
+ export const CreateExperimentTemplateTargetInputFilterSensitiveLog = (obj) => ({
102
+ ...obj,
103
+ });
104
+ export const CreateExperimentTemplateRequestFilterSensitiveLog = (obj) => ({
105
+ ...obj,
106
+ });
107
+ export const ExperimentTemplateActionFilterSensitiveLog = (obj) => ({
108
+ ...obj,
109
+ });
110
+ export const ExperimentTemplateCloudWatchLogsLogConfigurationFilterSensitiveLog = (obj) => ({
111
+ ...obj,
112
+ });
113
+ export const ExperimentTemplateS3LogConfigurationFilterSensitiveLog = (obj) => ({
114
+ ...obj,
115
+ });
116
+ export const ExperimentTemplateLogConfigurationFilterSensitiveLog = (obj) => ({
117
+ ...obj,
118
+ });
119
+ export const ExperimentTemplateStopConditionFilterSensitiveLog = (obj) => ({
120
+ ...obj,
121
+ });
122
+ export const ExperimentTemplateTargetFilterFilterSensitiveLog = (obj) => ({
123
+ ...obj,
124
+ });
125
+ export const ExperimentTemplateTargetFilterSensitiveLog = (obj) => ({
126
+ ...obj,
127
+ });
128
+ export const ExperimentTemplateFilterSensitiveLog = (obj) => ({
129
+ ...obj,
130
+ });
131
+ export const CreateExperimentTemplateResponseFilterSensitiveLog = (obj) => ({
132
+ ...obj,
133
+ });
134
+ export const DeleteExperimentTemplateRequestFilterSensitiveLog = (obj) => ({
135
+ ...obj,
136
+ });
137
+ export const DeleteExperimentTemplateResponseFilterSensitiveLog = (obj) => ({
138
+ ...obj,
139
+ });
140
+ export const ExperimentActionStateFilterSensitiveLog = (obj) => ({
141
+ ...obj,
142
+ });
143
+ export const ExperimentActionFilterSensitiveLog = (obj) => ({
144
+ ...obj,
145
+ });
146
+ export const ExperimentCloudWatchLogsLogConfigurationFilterSensitiveLog = (obj) => ({
147
+ ...obj,
148
+ });
149
+ export const ExperimentS3LogConfigurationFilterSensitiveLog = (obj) => ({
150
+ ...obj,
151
+ });
152
+ export const ExperimentLogConfigurationFilterSensitiveLog = (obj) => ({
153
+ ...obj,
154
+ });
155
+ export const ExperimentStateFilterSensitiveLog = (obj) => ({
156
+ ...obj,
157
+ });
158
+ export const ExperimentStopConditionFilterSensitiveLog = (obj) => ({
159
+ ...obj,
160
+ });
161
+ export const ExperimentTargetFilterFilterSensitiveLog = (obj) => ({
162
+ ...obj,
163
+ });
164
+ export const ExperimentTargetFilterSensitiveLog = (obj) => ({
165
+ ...obj,
166
+ });
167
+ export const ExperimentFilterSensitiveLog = (obj) => ({
168
+ ...obj,
169
+ });
170
+ export const ExperimentSummaryFilterSensitiveLog = (obj) => ({
171
+ ...obj,
172
+ });
173
+ export const ExperimentTemplateSummaryFilterSensitiveLog = (obj) => ({
174
+ ...obj,
175
+ });
176
+ export const GetActionRequestFilterSensitiveLog = (obj) => ({
177
+ ...obj,
178
+ });
179
+ export const GetActionResponseFilterSensitiveLog = (obj) => ({
180
+ ...obj,
181
+ });
182
+ export const GetExperimentRequestFilterSensitiveLog = (obj) => ({
183
+ ...obj,
184
+ });
185
+ export const GetExperimentResponseFilterSensitiveLog = (obj) => ({
186
+ ...obj,
187
+ });
188
+ export const GetExperimentTemplateRequestFilterSensitiveLog = (obj) => ({
189
+ ...obj,
190
+ });
191
+ export const GetExperimentTemplateResponseFilterSensitiveLog = (obj) => ({
192
+ ...obj,
193
+ });
194
+ export const GetTargetResourceTypeRequestFilterSensitiveLog = (obj) => ({
195
+ ...obj,
196
+ });
197
+ export const TargetResourceTypeParameterFilterSensitiveLog = (obj) => ({
198
+ ...obj,
199
+ });
200
+ export const TargetResourceTypeFilterSensitiveLog = (obj) => ({
201
+ ...obj,
202
+ });
203
+ export const GetTargetResourceTypeResponseFilterSensitiveLog = (obj) => ({
204
+ ...obj,
205
+ });
206
+ export const ListActionsRequestFilterSensitiveLog = (obj) => ({
207
+ ...obj,
208
+ });
209
+ export const ListActionsResponseFilterSensitiveLog = (obj) => ({
210
+ ...obj,
211
+ });
212
+ export const ListExperimentsRequestFilterSensitiveLog = (obj) => ({
213
+ ...obj,
214
+ });
215
+ export const ListExperimentsResponseFilterSensitiveLog = (obj) => ({
216
+ ...obj,
217
+ });
218
+ export const ListExperimentTemplatesRequestFilterSensitiveLog = (obj) => ({
219
+ ...obj,
220
+ });
221
+ export const ListExperimentTemplatesResponseFilterSensitiveLog = (obj) => ({
222
+ ...obj,
223
+ });
224
+ export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
225
+ ...obj,
226
+ });
227
+ export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
228
+ ...obj,
229
+ });
230
+ export const ListTargetResourceTypesRequestFilterSensitiveLog = (obj) => ({
231
+ ...obj,
232
+ });
233
+ export const TargetResourceTypeSummaryFilterSensitiveLog = (obj) => ({
234
+ ...obj,
235
+ });
236
+ export const ListTargetResourceTypesResponseFilterSensitiveLog = (obj) => ({
237
+ ...obj,
238
+ });
239
+ export const StartExperimentRequestFilterSensitiveLog = (obj) => ({
240
+ ...obj,
241
+ });
242
+ export const StartExperimentResponseFilterSensitiveLog = (obj) => ({
243
+ ...obj,
244
+ });
245
+ export const StopExperimentRequestFilterSensitiveLog = (obj) => ({
246
+ ...obj,
247
+ });
248
+ export const StopExperimentResponseFilterSensitiveLog = (obj) => ({
249
+ ...obj,
250
+ });
251
+ export const TagResourceRequestFilterSensitiveLog = (obj) => ({
252
+ ...obj,
253
+ });
254
+ export const TagResourceResponseFilterSensitiveLog = (obj) => ({
255
+ ...obj,
256
+ });
257
+ export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
258
+ ...obj,
259
+ });
260
+ export const UntagResourceResponseFilterSensitiveLog = (obj) => ({
261
+ ...obj,
262
+ });
263
+ export const UpdateExperimentTemplateActionInputItemFilterSensitiveLog = (obj) => ({
264
+ ...obj,
265
+ });
266
+ export const UpdateExperimentTemplateLogConfigurationInputFilterSensitiveLog = (obj) => ({
267
+ ...obj,
268
+ });
269
+ export const UpdateExperimentTemplateStopConditionInputFilterSensitiveLog = (obj) => ({
270
+ ...obj,
271
+ });
272
+ export const UpdateExperimentTemplateTargetInputFilterSensitiveLog = (obj) => ({
273
+ ...obj,
274
+ });
275
+ export const UpdateExperimentTemplateRequestFilterSensitiveLog = (obj) => ({
276
+ ...obj,
277
+ });
278
+ export const UpdateExperimentTemplateResponseFilterSensitiveLog = (obj) => ({
279
+ ...obj,
280
+ });
@@ -1,75 +1,32 @@
1
- import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
1
  import { ListActionsCommand } from "../commands/ListActionsCommand";
3
2
  import { Fis } from "../Fis";
4
3
  import { FisClient } from "../FisClient";
5
- var makePagedClientRequest = function (client, input) {
6
- var args = [];
7
- for (var _i = 2; _i < arguments.length; _i++) {
8
- args[_i - 2] = arguments[_i];
9
- }
10
- return __awaiter(void 0, void 0, void 0, function () {
11
- return __generator(this, function (_a) {
12
- switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListActionsCommand(input)], __read(args), false))];
14
- case 1: return [2, _a.sent()];
15
- }
16
- });
17
- });
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListActionsCommand(input), ...args);
18
6
  };
19
- var makePagedRequest = function (client, input) {
20
- var args = [];
21
- for (var _i = 2; _i < arguments.length; _i++) {
22
- args[_i - 2] = arguments[_i];
23
- }
24
- return __awaiter(void 0, void 0, void 0, function () {
25
- return __generator(this, function (_a) {
26
- switch (_a.label) {
27
- case 0: return [4, client.listActions.apply(client, __spreadArray([input], __read(args), false))];
28
- case 1: return [2, _a.sent()];
29
- }
30
- });
31
- });
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listActions(input, ...args);
32
9
  };
33
- export function paginateListActions(config, input) {
34
- var additionalArguments = [];
35
- for (var _i = 2; _i < arguments.length; _i++) {
36
- additionalArguments[_i - 2] = arguments[_i];
10
+ export async function* paginateListActions(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.nextToken = token;
16
+ input["maxResults"] = config.pageSize;
17
+ if (config.client instanceof Fis) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof FisClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected Fis | FisClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.nextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
37
30
  }
38
- return __asyncGenerator(this, arguments, function paginateListActions_1() {
39
- var token, hasNext, page, prevToken;
40
- return __generator(this, function (_a) {
41
- switch (_a.label) {
42
- case 0:
43
- token = config.startingToken || undefined;
44
- hasNext = true;
45
- _a.label = 1;
46
- case 1:
47
- if (!hasNext) return [3, 9];
48
- input.nextToken = token;
49
- input["maxResults"] = config.pageSize;
50
- if (!(config.client instanceof Fis)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
- case 2:
53
- page = _a.sent();
54
- return [3, 6];
55
- case 3:
56
- if (!(config.client instanceof FisClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
- case 4:
59
- page = _a.sent();
60
- return [3, 6];
61
- case 5: throw new Error("Invalid client, expected Fis | FisClient");
62
- case 6: return [4, __await(page)];
63
- case 7: return [4, _a.sent()];
64
- case 8:
65
- _a.sent();
66
- prevToken = token;
67
- token = page.nextToken;
68
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
69
- return [3, 1];
70
- case 9: return [4, __await(undefined)];
71
- case 10: return [2, _a.sent()];
72
- }
73
- });
74
- });
31
+ return undefined;
75
32
  }
@@ -1,75 +1,32 @@
1
- import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
1
  import { ListExperimentTemplatesCommand, } from "../commands/ListExperimentTemplatesCommand";
3
2
  import { Fis } from "../Fis";
4
3
  import { FisClient } from "../FisClient";
5
- var makePagedClientRequest = function (client, input) {
6
- var args = [];
7
- for (var _i = 2; _i < arguments.length; _i++) {
8
- args[_i - 2] = arguments[_i];
9
- }
10
- return __awaiter(void 0, void 0, void 0, function () {
11
- return __generator(this, function (_a) {
12
- switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListExperimentTemplatesCommand(input)], __read(args), false))];
14
- case 1: return [2, _a.sent()];
15
- }
16
- });
17
- });
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListExperimentTemplatesCommand(input), ...args);
18
6
  };
19
- var makePagedRequest = function (client, input) {
20
- var args = [];
21
- for (var _i = 2; _i < arguments.length; _i++) {
22
- args[_i - 2] = arguments[_i];
23
- }
24
- return __awaiter(void 0, void 0, void 0, function () {
25
- return __generator(this, function (_a) {
26
- switch (_a.label) {
27
- case 0: return [4, client.listExperimentTemplates.apply(client, __spreadArray([input], __read(args), false))];
28
- case 1: return [2, _a.sent()];
29
- }
30
- });
31
- });
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listExperimentTemplates(input, ...args);
32
9
  };
33
- export function paginateListExperimentTemplates(config, input) {
34
- var additionalArguments = [];
35
- for (var _i = 2; _i < arguments.length; _i++) {
36
- additionalArguments[_i - 2] = arguments[_i];
10
+ export async function* paginateListExperimentTemplates(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.nextToken = token;
16
+ input["maxResults"] = config.pageSize;
17
+ if (config.client instanceof Fis) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof FisClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected Fis | FisClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.nextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
37
30
  }
38
- return __asyncGenerator(this, arguments, function paginateListExperimentTemplates_1() {
39
- var token, hasNext, page, prevToken;
40
- return __generator(this, function (_a) {
41
- switch (_a.label) {
42
- case 0:
43
- token = config.startingToken || undefined;
44
- hasNext = true;
45
- _a.label = 1;
46
- case 1:
47
- if (!hasNext) return [3, 9];
48
- input.nextToken = token;
49
- input["maxResults"] = config.pageSize;
50
- if (!(config.client instanceof Fis)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
- case 2:
53
- page = _a.sent();
54
- return [3, 6];
55
- case 3:
56
- if (!(config.client instanceof FisClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
- case 4:
59
- page = _a.sent();
60
- return [3, 6];
61
- case 5: throw new Error("Invalid client, expected Fis | FisClient");
62
- case 6: return [4, __await(page)];
63
- case 7: return [4, _a.sent()];
64
- case 8:
65
- _a.sent();
66
- prevToken = token;
67
- token = page.nextToken;
68
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
69
- return [3, 1];
70
- case 9: return [4, __await(undefined)];
71
- case 10: return [2, _a.sent()];
72
- }
73
- });
74
- });
31
+ return undefined;
75
32
  }