@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.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2 -2
- package/dist-es/MigrationHub.js +77 -70
- package/dist-es/MigrationHubClient.js +28 -22
- package/dist-es/commands/AssociateCreatedArtifactCommand.js +28 -21
- package/dist-es/commands/AssociateDiscoveredResourceCommand.js +28 -21
- package/dist-es/commands/CreateProgressUpdateStreamCommand.js +28 -21
- package/dist-es/commands/DeleteProgressUpdateStreamCommand.js +28 -21
- package/dist-es/commands/DescribeApplicationStateCommand.js +28 -21
- package/dist-es/commands/DescribeMigrationTaskCommand.js +28 -21
- package/dist-es/commands/DisassociateCreatedArtifactCommand.js +28 -21
- package/dist-es/commands/DisassociateDiscoveredResourceCommand.js +28 -21
- package/dist-es/commands/ImportMigrationTaskCommand.js +28 -21
- package/dist-es/commands/ListApplicationStatesCommand.js +28 -21
- package/dist-es/commands/ListCreatedArtifactsCommand.js +28 -21
- package/dist-es/commands/ListDiscoveredResourcesCommand.js +28 -21
- package/dist-es/commands/ListMigrationTasksCommand.js +28 -21
- package/dist-es/commands/ListProgressUpdateStreamsCommand.js +28 -21
- package/dist-es/commands/NotifyApplicationStateCommand.js +28 -21
- package/dist-es/commands/NotifyMigrationTaskStateCommand.js +28 -21
- package/dist-es/commands/PutResourceAttributesCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/MigrationHubServiceException.js +10 -5
- package/dist-es/models/models_0.js +164 -247
- package/dist-es/pagination/ListApplicationStatesPaginator.js +68 -25
- package/dist-es/pagination/ListCreatedArtifactsPaginator.js +68 -25
- package/dist-es/pagination/ListDiscoveredResourcesPaginator.js +68 -25
- package/dist-es/pagination/ListMigrationTasksPaginator.js +68 -25
- package/dist-es/pagination/ListProgressUpdateStreamsPaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_1.js +1816 -1415
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
|
@@ -1,141 +1,142 @@
|
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
1
2
|
import { MigrationHubServiceException as __BaseException } from "./MigrationHubServiceException";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
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
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
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
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
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
|
|
160
|
-
|
|
161
|
-
});
|
|
162
|
-
export
|
|
163
|
-
|
|
164
|
-
});
|
|
165
|
-
export
|
|
166
|
-
|
|
167
|
-
});
|
|
168
|
-
export
|
|
169
|
-
|
|
170
|
-
});
|
|
171
|
-
export
|
|
172
|
-
|
|
173
|
-
});
|
|
174
|
-
export
|
|
175
|
-
|
|
176
|
-
});
|
|
177
|
-
export
|
|
178
|
-
|
|
179
|
-
});
|
|
180
|
-
export
|
|
181
|
-
|
|
182
|
-
});
|
|
183
|
-
export
|
|
184
|
-
|
|
185
|
-
});
|
|
186
|
-
export
|
|
187
|
-
|
|
188
|
-
});
|
|
189
|
-
export
|
|
190
|
-
|
|
191
|
-
});
|
|
192
|
-
export
|
|
193
|
-
|
|
194
|
-
});
|
|
195
|
-
export
|
|
196
|
-
|
|
197
|
-
});
|
|
198
|
-
export
|
|
199
|
-
|
|
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
|
-
|
|
5
|
-
|
|
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
|
-
|
|
8
|
-
|
|
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
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
|
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
|
-
|
|
5
|
-
|
|
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
|
-
|
|
8
|
-
|
|
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
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
|
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
|
}
|