@aws-sdk/client-migration-hub 3.183.0 → 3.185.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 (35) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/MigrationHub.js +77 -70
  4. package/dist-es/MigrationHubClient.js +28 -22
  5. package/dist-es/commands/AssociateCreatedArtifactCommand.js +28 -21
  6. package/dist-es/commands/AssociateDiscoveredResourceCommand.js +28 -21
  7. package/dist-es/commands/CreateProgressUpdateStreamCommand.js +28 -21
  8. package/dist-es/commands/DeleteProgressUpdateStreamCommand.js +28 -21
  9. package/dist-es/commands/DescribeApplicationStateCommand.js +28 -21
  10. package/dist-es/commands/DescribeMigrationTaskCommand.js +28 -21
  11. package/dist-es/commands/DisassociateCreatedArtifactCommand.js +28 -21
  12. package/dist-es/commands/DisassociateDiscoveredResourceCommand.js +28 -21
  13. package/dist-es/commands/ImportMigrationTaskCommand.js +28 -21
  14. package/dist-es/commands/ListApplicationStatesCommand.js +28 -21
  15. package/dist-es/commands/ListCreatedArtifactsCommand.js +28 -21
  16. package/dist-es/commands/ListDiscoveredResourcesCommand.js +28 -21
  17. package/dist-es/commands/ListMigrationTasksCommand.js +28 -21
  18. package/dist-es/commands/ListProgressUpdateStreamsCommand.js +28 -21
  19. package/dist-es/commands/NotifyApplicationStateCommand.js +28 -21
  20. package/dist-es/commands/NotifyMigrationTaskStateCommand.js +28 -21
  21. package/dist-es/commands/PutResourceAttributesCommand.js +28 -21
  22. package/dist-es/endpoints.js +8 -8
  23. package/dist-es/models/MigrationHubServiceException.js +10 -5
  24. package/dist-es/models/models_0.js +164 -247
  25. package/dist-es/pagination/ListApplicationStatesPaginator.js +68 -25
  26. package/dist-es/pagination/ListCreatedArtifactsPaginator.js +68 -25
  27. package/dist-es/pagination/ListDiscoveredResourcesPaginator.js +68 -25
  28. package/dist-es/pagination/ListMigrationTasksPaginator.js +68 -25
  29. package/dist-es/pagination/ListProgressUpdateStreamsPaginator.js +68 -25
  30. package/dist-es/protocols/Aws_json1_1.js +1816 -1415
  31. package/dist-es/runtimeConfig.browser.js +12 -26
  32. package/dist-es/runtimeConfig.js +12 -30
  33. package/dist-es/runtimeConfig.native.js +5 -8
  34. package/dist-es/runtimeConfig.shared.js +11 -8
  35. package/package.json +5 -5
@@ -1,141 +1,142 @@
1
+ import { __assign, __extends } from "tslib";
1
2
  import { MigrationHubServiceException as __BaseException } from "./MigrationHubServiceException";
2
- export class AccessDeniedException extends __BaseException {
3
- constructor(opts) {
4
- super({
5
- name: "AccessDeniedException",
6
- $fault: "client",
7
- ...opts,
8
- });
9
- this.name = "AccessDeniedException";
10
- this.$fault = "client";
11
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
- this.Message = opts.Message;
3
+ var AccessDeniedException = (function (_super) {
4
+ __extends(AccessDeniedException, _super);
5
+ function AccessDeniedException(opts) {
6
+ var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
7
+ _this.name = "AccessDeniedException";
8
+ _this.$fault = "client";
9
+ Object.setPrototypeOf(_this, AccessDeniedException.prototype);
10
+ _this.Message = opts.Message;
11
+ return _this;
13
12
  }
14
- }
13
+ return AccessDeniedException;
14
+ }(__BaseException));
15
+ export { AccessDeniedException };
15
16
  export var ApplicationStatus;
16
17
  (function (ApplicationStatus) {
17
18
  ApplicationStatus["COMPLETED"] = "COMPLETED";
18
19
  ApplicationStatus["IN_PROGRESS"] = "IN_PROGRESS";
19
20
  ApplicationStatus["NOT_STARTED"] = "NOT_STARTED";
20
21
  })(ApplicationStatus || (ApplicationStatus = {}));
21
- export class DryRunOperation extends __BaseException {
22
- constructor(opts) {
23
- super({
24
- name: "DryRunOperation",
25
- $fault: "client",
26
- ...opts,
27
- });
28
- this.name = "DryRunOperation";
29
- this.$fault = "client";
30
- Object.setPrototypeOf(this, DryRunOperation.prototype);
31
- this.Message = opts.Message;
22
+ var DryRunOperation = (function (_super) {
23
+ __extends(DryRunOperation, _super);
24
+ function DryRunOperation(opts) {
25
+ var _this = _super.call(this, __assign({ name: "DryRunOperation", $fault: "client" }, opts)) || this;
26
+ _this.name = "DryRunOperation";
27
+ _this.$fault = "client";
28
+ Object.setPrototypeOf(_this, DryRunOperation.prototype);
29
+ _this.Message = opts.Message;
30
+ return _this;
32
31
  }
33
- }
34
- export class HomeRegionNotSetException extends __BaseException {
35
- constructor(opts) {
36
- super({
37
- name: "HomeRegionNotSetException",
38
- $fault: "client",
39
- ...opts,
40
- });
41
- this.name = "HomeRegionNotSetException";
42
- this.$fault = "client";
43
- Object.setPrototypeOf(this, HomeRegionNotSetException.prototype);
44
- this.Message = opts.Message;
32
+ return DryRunOperation;
33
+ }(__BaseException));
34
+ export { DryRunOperation };
35
+ var HomeRegionNotSetException = (function (_super) {
36
+ __extends(HomeRegionNotSetException, _super);
37
+ function HomeRegionNotSetException(opts) {
38
+ var _this = _super.call(this, __assign({ name: "HomeRegionNotSetException", $fault: "client" }, opts)) || this;
39
+ _this.name = "HomeRegionNotSetException";
40
+ _this.$fault = "client";
41
+ Object.setPrototypeOf(_this, HomeRegionNotSetException.prototype);
42
+ _this.Message = opts.Message;
43
+ return _this;
45
44
  }
46
- }
47
- export class InternalServerError extends __BaseException {
48
- constructor(opts) {
49
- super({
50
- name: "InternalServerError",
51
- $fault: "server",
52
- ...opts,
53
- });
54
- this.name = "InternalServerError";
55
- this.$fault = "server";
56
- Object.setPrototypeOf(this, InternalServerError.prototype);
57
- this.Message = opts.Message;
45
+ return HomeRegionNotSetException;
46
+ }(__BaseException));
47
+ export { HomeRegionNotSetException };
48
+ var InternalServerError = (function (_super) {
49
+ __extends(InternalServerError, _super);
50
+ function InternalServerError(opts) {
51
+ var _this = _super.call(this, __assign({ name: "InternalServerError", $fault: "server" }, opts)) || this;
52
+ _this.name = "InternalServerError";
53
+ _this.$fault = "server";
54
+ Object.setPrototypeOf(_this, InternalServerError.prototype);
55
+ _this.Message = opts.Message;
56
+ return _this;
58
57
  }
59
- }
60
- export class InvalidInputException extends __BaseException {
61
- constructor(opts) {
62
- super({
63
- name: "InvalidInputException",
64
- $fault: "client",
65
- ...opts,
66
- });
67
- this.name = "InvalidInputException";
68
- this.$fault = "client";
69
- Object.setPrototypeOf(this, InvalidInputException.prototype);
70
- this.Message = opts.Message;
58
+ return InternalServerError;
59
+ }(__BaseException));
60
+ export { InternalServerError };
61
+ var InvalidInputException = (function (_super) {
62
+ __extends(InvalidInputException, _super);
63
+ function InvalidInputException(opts) {
64
+ var _this = _super.call(this, __assign({ name: "InvalidInputException", $fault: "client" }, opts)) || this;
65
+ _this.name = "InvalidInputException";
66
+ _this.$fault = "client";
67
+ Object.setPrototypeOf(_this, InvalidInputException.prototype);
68
+ _this.Message = opts.Message;
69
+ return _this;
71
70
  }
72
- }
73
- export class ResourceNotFoundException extends __BaseException {
74
- constructor(opts) {
75
- super({
76
- name: "ResourceNotFoundException",
77
- $fault: "client",
78
- ...opts,
79
- });
80
- this.name = "ResourceNotFoundException";
81
- this.$fault = "client";
82
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
83
- this.Message = opts.Message;
71
+ return InvalidInputException;
72
+ }(__BaseException));
73
+ export { InvalidInputException };
74
+ var ResourceNotFoundException = (function (_super) {
75
+ __extends(ResourceNotFoundException, _super);
76
+ function ResourceNotFoundException(opts) {
77
+ var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
78
+ _this.name = "ResourceNotFoundException";
79
+ _this.$fault = "client";
80
+ Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
81
+ _this.Message = opts.Message;
82
+ return _this;
84
83
  }
85
- }
86
- export class ServiceUnavailableException extends __BaseException {
87
- constructor(opts) {
88
- super({
89
- name: "ServiceUnavailableException",
90
- $fault: "server",
91
- ...opts,
92
- });
93
- this.name = "ServiceUnavailableException";
94
- this.$fault = "server";
95
- Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
96
- this.Message = opts.Message;
84
+ return ResourceNotFoundException;
85
+ }(__BaseException));
86
+ export { ResourceNotFoundException };
87
+ var ServiceUnavailableException = (function (_super) {
88
+ __extends(ServiceUnavailableException, _super);
89
+ function ServiceUnavailableException(opts) {
90
+ var _this = _super.call(this, __assign({ name: "ServiceUnavailableException", $fault: "server" }, opts)) || this;
91
+ _this.name = "ServiceUnavailableException";
92
+ _this.$fault = "server";
93
+ Object.setPrototypeOf(_this, ServiceUnavailableException.prototype);
94
+ _this.Message = opts.Message;
95
+ return _this;
97
96
  }
98
- }
99
- export class ThrottlingException extends __BaseException {
100
- constructor(opts) {
101
- super({
102
- name: "ThrottlingException",
103
- $fault: "client",
104
- ...opts,
105
- });
106
- this.name = "ThrottlingException";
107
- this.$fault = "client";
108
- Object.setPrototypeOf(this, ThrottlingException.prototype);
109
- this.Message = opts.Message;
110
- this.RetryAfterSeconds = opts.RetryAfterSeconds;
97
+ return ServiceUnavailableException;
98
+ }(__BaseException));
99
+ export { ServiceUnavailableException };
100
+ var ThrottlingException = (function (_super) {
101
+ __extends(ThrottlingException, _super);
102
+ function ThrottlingException(opts) {
103
+ var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this;
104
+ _this.name = "ThrottlingException";
105
+ _this.$fault = "client";
106
+ Object.setPrototypeOf(_this, ThrottlingException.prototype);
107
+ _this.Message = opts.Message;
108
+ _this.RetryAfterSeconds = opts.RetryAfterSeconds;
109
+ return _this;
111
110
  }
112
- }
113
- export class UnauthorizedOperation extends __BaseException {
114
- constructor(opts) {
115
- super({
116
- name: "UnauthorizedOperation",
117
- $fault: "client",
118
- ...opts,
119
- });
120
- this.name = "UnauthorizedOperation";
121
- this.$fault = "client";
122
- Object.setPrototypeOf(this, UnauthorizedOperation.prototype);
123
- this.Message = opts.Message;
111
+ return ThrottlingException;
112
+ }(__BaseException));
113
+ export { ThrottlingException };
114
+ var UnauthorizedOperation = (function (_super) {
115
+ __extends(UnauthorizedOperation, _super);
116
+ function UnauthorizedOperation(opts) {
117
+ var _this = _super.call(this, __assign({ name: "UnauthorizedOperation", $fault: "client" }, opts)) || this;
118
+ _this.name = "UnauthorizedOperation";
119
+ _this.$fault = "client";
120
+ Object.setPrototypeOf(_this, UnauthorizedOperation.prototype);
121
+ _this.Message = opts.Message;
122
+ return _this;
124
123
  }
125
- }
126
- export class PolicyErrorException extends __BaseException {
127
- constructor(opts) {
128
- super({
129
- name: "PolicyErrorException",
130
- $fault: "client",
131
- ...opts,
132
- });
133
- this.name = "PolicyErrorException";
134
- this.$fault = "client";
135
- Object.setPrototypeOf(this, PolicyErrorException.prototype);
136
- this.Message = opts.Message;
124
+ return UnauthorizedOperation;
125
+ }(__BaseException));
126
+ export { UnauthorizedOperation };
127
+ var PolicyErrorException = (function (_super) {
128
+ __extends(PolicyErrorException, _super);
129
+ function PolicyErrorException(opts) {
130
+ var _this = _super.call(this, __assign({ name: "PolicyErrorException", $fault: "client" }, opts)) || this;
131
+ _this.name = "PolicyErrorException";
132
+ _this.$fault = "client";
133
+ Object.setPrototypeOf(_this, PolicyErrorException.prototype);
134
+ _this.Message = opts.Message;
135
+ return _this;
137
136
  }
138
- }
137
+ return PolicyErrorException;
138
+ }(__BaseException));
139
+ export { PolicyErrorException };
139
140
  export var ResourceAttributeType;
140
141
  (function (ResourceAttributeType) {
141
142
  ResourceAttributeType["BIOS_ID"] = "BIOS_ID";
@@ -156,129 +157,45 @@ export var Status;
156
157
  Status["IN_PROGRESS"] = "IN_PROGRESS";
157
158
  Status["NOT_STARTED"] = "NOT_STARTED";
158
159
  })(Status || (Status = {}));
159
- export const ApplicationStateFilterSensitiveLog = (obj) => ({
160
- ...obj,
161
- });
162
- export const CreatedArtifactFilterSensitiveLog = (obj) => ({
163
- ...obj,
164
- });
165
- export const AssociateCreatedArtifactRequestFilterSensitiveLog = (obj) => ({
166
- ...obj,
167
- });
168
- export const AssociateCreatedArtifactResultFilterSensitiveLog = (obj) => ({
169
- ...obj,
170
- });
171
- export const DiscoveredResourceFilterSensitiveLog = (obj) => ({
172
- ...obj,
173
- });
174
- export const AssociateDiscoveredResourceRequestFilterSensitiveLog = (obj) => ({
175
- ...obj,
176
- });
177
- export const AssociateDiscoveredResourceResultFilterSensitiveLog = (obj) => ({
178
- ...obj,
179
- });
180
- export const CreateProgressUpdateStreamRequestFilterSensitiveLog = (obj) => ({
181
- ...obj,
182
- });
183
- export const CreateProgressUpdateStreamResultFilterSensitiveLog = (obj) => ({
184
- ...obj,
185
- });
186
- export const DeleteProgressUpdateStreamRequestFilterSensitiveLog = (obj) => ({
187
- ...obj,
188
- });
189
- export const DeleteProgressUpdateStreamResultFilterSensitiveLog = (obj) => ({
190
- ...obj,
191
- });
192
- export const DescribeApplicationStateRequestFilterSensitiveLog = (obj) => ({
193
- ...obj,
194
- });
195
- export const DescribeApplicationStateResultFilterSensitiveLog = (obj) => ({
196
- ...obj,
197
- });
198
- export const DescribeMigrationTaskRequestFilterSensitiveLog = (obj) => ({
199
- ...obj,
200
- });
201
- export const ResourceAttributeFilterSensitiveLog = (obj) => ({
202
- ...obj,
203
- });
204
- export const TaskFilterSensitiveLog = (obj) => ({
205
- ...obj,
206
- });
207
- export const MigrationTaskFilterSensitiveLog = (obj) => ({
208
- ...obj,
209
- });
210
- export const DescribeMigrationTaskResultFilterSensitiveLog = (obj) => ({
211
- ...obj,
212
- });
213
- export const DisassociateCreatedArtifactRequestFilterSensitiveLog = (obj) => ({
214
- ...obj,
215
- });
216
- export const DisassociateCreatedArtifactResultFilterSensitiveLog = (obj) => ({
217
- ...obj,
218
- });
219
- export const DisassociateDiscoveredResourceRequestFilterSensitiveLog = (obj) => ({
220
- ...obj,
221
- });
222
- export const DisassociateDiscoveredResourceResultFilterSensitiveLog = (obj) => ({
223
- ...obj,
224
- });
225
- export const ImportMigrationTaskRequestFilterSensitiveLog = (obj) => ({
226
- ...obj,
227
- });
228
- export const ImportMigrationTaskResultFilterSensitiveLog = (obj) => ({
229
- ...obj,
230
- });
231
- export const ListApplicationStatesRequestFilterSensitiveLog = (obj) => ({
232
- ...obj,
233
- });
234
- export const ListApplicationStatesResultFilterSensitiveLog = (obj) => ({
235
- ...obj,
236
- });
237
- export const ListCreatedArtifactsRequestFilterSensitiveLog = (obj) => ({
238
- ...obj,
239
- });
240
- export const ListCreatedArtifactsResultFilterSensitiveLog = (obj) => ({
241
- ...obj,
242
- });
243
- export const ListDiscoveredResourcesRequestFilterSensitiveLog = (obj) => ({
244
- ...obj,
245
- });
246
- export const ListDiscoveredResourcesResultFilterSensitiveLog = (obj) => ({
247
- ...obj,
248
- });
249
- export const ListMigrationTasksRequestFilterSensitiveLog = (obj) => ({
250
- ...obj,
251
- });
252
- export const MigrationTaskSummaryFilterSensitiveLog = (obj) => ({
253
- ...obj,
254
- });
255
- export const ListMigrationTasksResultFilterSensitiveLog = (obj) => ({
256
- ...obj,
257
- });
258
- export const ListProgressUpdateStreamsRequestFilterSensitiveLog = (obj) => ({
259
- ...obj,
260
- });
261
- export const ProgressUpdateStreamSummaryFilterSensitiveLog = (obj) => ({
262
- ...obj,
263
- });
264
- export const ListProgressUpdateStreamsResultFilterSensitiveLog = (obj) => ({
265
- ...obj,
266
- });
267
- export const NotifyApplicationStateRequestFilterSensitiveLog = (obj) => ({
268
- ...obj,
269
- });
270
- export const NotifyApplicationStateResultFilterSensitiveLog = (obj) => ({
271
- ...obj,
272
- });
273
- export const NotifyMigrationTaskStateRequestFilterSensitiveLog = (obj) => ({
274
- ...obj,
275
- });
276
- export const NotifyMigrationTaskStateResultFilterSensitiveLog = (obj) => ({
277
- ...obj,
278
- });
279
- export const PutResourceAttributesRequestFilterSensitiveLog = (obj) => ({
280
- ...obj,
281
- });
282
- export const PutResourceAttributesResultFilterSensitiveLog = (obj) => ({
283
- ...obj,
284
- });
160
+ export var ApplicationStateFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
161
+ export var CreatedArtifactFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
162
+ export var AssociateCreatedArtifactRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
163
+ export var AssociateCreatedArtifactResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
164
+ export var DiscoveredResourceFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
165
+ export var AssociateDiscoveredResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
166
+ export var AssociateDiscoveredResourceResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
167
+ export var CreateProgressUpdateStreamRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
168
+ export var CreateProgressUpdateStreamResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
169
+ export var DeleteProgressUpdateStreamRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
170
+ export var DeleteProgressUpdateStreamResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
171
+ export var DescribeApplicationStateRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
172
+ export var DescribeApplicationStateResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
173
+ export var DescribeMigrationTaskRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
174
+ export var ResourceAttributeFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
175
+ export var TaskFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
176
+ export var MigrationTaskFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
177
+ export var DescribeMigrationTaskResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
178
+ export var DisassociateCreatedArtifactRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
179
+ export var DisassociateCreatedArtifactResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
180
+ export var DisassociateDiscoveredResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
181
+ export var DisassociateDiscoveredResourceResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
182
+ export var ImportMigrationTaskRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
183
+ export var ImportMigrationTaskResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
184
+ export var ListApplicationStatesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
185
+ export var ListApplicationStatesResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
186
+ export var ListCreatedArtifactsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
187
+ export var ListCreatedArtifactsResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
188
+ export var ListDiscoveredResourcesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
189
+ export var ListDiscoveredResourcesResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
190
+ export var ListMigrationTasksRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
191
+ export var MigrationTaskSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
192
+ export var ListMigrationTasksResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
193
+ export var ListProgressUpdateStreamsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
194
+ export var ProgressUpdateStreamSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
195
+ export var ListProgressUpdateStreamsResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
196
+ export var NotifyApplicationStateRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
197
+ export var NotifyApplicationStateResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
198
+ export var NotifyMigrationTaskStateRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
199
+ export var NotifyMigrationTaskStateResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
200
+ export var PutResourceAttributesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
201
+ export var PutResourceAttributesResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1,32 +1,75 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
1
2
  import { ListApplicationStatesCommand, } from "../commands/ListApplicationStatesCommand";
2
3
  import { MigrationHub } from "../MigrationHub";
3
4
  import { MigrationHubClient } from "../MigrationHubClient";
4
- const makePagedClientRequest = async (client, input, ...args) => {
5
- return await client.send(new ListApplicationStatesCommand(input), ...args);
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 ListApplicationStatesCommand(input)], __read(args), false))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
6
18
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listApplicationStates(input, ...args);
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.listApplicationStates.apply(client, __spreadArray([input], __read(args), false))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
9
32
  };
10
- export async function* paginateListApplicationStates(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 MigrationHub) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof MigrationHubClient) {
21
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
- }
23
- else {
24
- throw new Error("Invalid client, expected MigrationHub | MigrationHubClient");
25
- }
26
- yield page;
27
- const prevToken = token;
28
- token = page.NextToken;
29
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
33
+ export function paginateListApplicationStates(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
30
37
  }
31
- return undefined;
38
+ return __asyncGenerator(this, arguments, function paginateListApplicationStates_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 MigrationHub)) 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 MigrationHubClient)) 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 MigrationHub | MigrationHubClient");
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
+ });
32
75
  }
@@ -1,32 +1,75 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
1
2
  import { ListCreatedArtifactsCommand, } from "../commands/ListCreatedArtifactsCommand";
2
3
  import { MigrationHub } from "../MigrationHub";
3
4
  import { MigrationHubClient } from "../MigrationHubClient";
4
- const makePagedClientRequest = async (client, input, ...args) => {
5
- return await client.send(new ListCreatedArtifactsCommand(input), ...args);
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 ListCreatedArtifactsCommand(input)], __read(args), false))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
6
18
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listCreatedArtifacts(input, ...args);
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.listCreatedArtifacts.apply(client, __spreadArray([input], __read(args), false))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
9
32
  };
10
- export async function* paginateListCreatedArtifacts(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 MigrationHub) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof MigrationHubClient) {
21
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
- }
23
- else {
24
- throw new Error("Invalid client, expected MigrationHub | MigrationHubClient");
25
- }
26
- yield page;
27
- const prevToken = token;
28
- token = page.NextToken;
29
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
33
+ export function paginateListCreatedArtifacts(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
30
37
  }
31
- return undefined;
38
+ return __asyncGenerator(this, arguments, function paginateListCreatedArtifacts_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 MigrationHub)) 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 MigrationHubClient)) 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 MigrationHub | MigrationHubClient");
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
+ });
32
75
  }