@aws-sdk/client-migration-hub 3.312.0 → 3.316.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/MigrationHub.js +21 -238
- package/dist-cjs/protocols/Aws_json1_1.js +120 -480
- package/dist-es/MigrationHub.js +21 -238
- package/dist-es/protocols/Aws_json1_1.js +121 -481
- package/dist-types/MigrationHub.d.ts +29 -190
- package/dist-types/ts3.4/MigrationHub.d.ts +4 -1
- package/package.json +6 -6
package/dist-cjs/MigrationHub.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MigrationHub = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const AssociateCreatedArtifactCommand_1 = require("./commands/AssociateCreatedArtifactCommand");
|
|
5
6
|
const AssociateDiscoveredResourceCommand_1 = require("./commands/AssociateDiscoveredResourceCommand");
|
|
6
7
|
const CreateProgressUpdateStreamCommand_1 = require("./commands/CreateProgressUpdateStreamCommand");
|
|
@@ -19,244 +20,26 @@ const NotifyApplicationStateCommand_1 = require("./commands/NotifyApplicationSta
|
|
|
19
20
|
const NotifyMigrationTaskStateCommand_1 = require("./commands/NotifyMigrationTaskStateCommand");
|
|
20
21
|
const PutResourceAttributesCommand_1 = require("./commands/PutResourceAttributesCommand");
|
|
21
22
|
const MigrationHubClient_1 = require("./MigrationHubClient");
|
|
23
|
+
const commands = {
|
|
24
|
+
AssociateCreatedArtifactCommand: AssociateCreatedArtifactCommand_1.AssociateCreatedArtifactCommand,
|
|
25
|
+
AssociateDiscoveredResourceCommand: AssociateDiscoveredResourceCommand_1.AssociateDiscoveredResourceCommand,
|
|
26
|
+
CreateProgressUpdateStreamCommand: CreateProgressUpdateStreamCommand_1.CreateProgressUpdateStreamCommand,
|
|
27
|
+
DeleteProgressUpdateStreamCommand: DeleteProgressUpdateStreamCommand_1.DeleteProgressUpdateStreamCommand,
|
|
28
|
+
DescribeApplicationStateCommand: DescribeApplicationStateCommand_1.DescribeApplicationStateCommand,
|
|
29
|
+
DescribeMigrationTaskCommand: DescribeMigrationTaskCommand_1.DescribeMigrationTaskCommand,
|
|
30
|
+
DisassociateCreatedArtifactCommand: DisassociateCreatedArtifactCommand_1.DisassociateCreatedArtifactCommand,
|
|
31
|
+
DisassociateDiscoveredResourceCommand: DisassociateDiscoveredResourceCommand_1.DisassociateDiscoveredResourceCommand,
|
|
32
|
+
ImportMigrationTaskCommand: ImportMigrationTaskCommand_1.ImportMigrationTaskCommand,
|
|
33
|
+
ListApplicationStatesCommand: ListApplicationStatesCommand_1.ListApplicationStatesCommand,
|
|
34
|
+
ListCreatedArtifactsCommand: ListCreatedArtifactsCommand_1.ListCreatedArtifactsCommand,
|
|
35
|
+
ListDiscoveredResourcesCommand: ListDiscoveredResourcesCommand_1.ListDiscoveredResourcesCommand,
|
|
36
|
+
ListMigrationTasksCommand: ListMigrationTasksCommand_1.ListMigrationTasksCommand,
|
|
37
|
+
ListProgressUpdateStreamsCommand: ListProgressUpdateStreamsCommand_1.ListProgressUpdateStreamsCommand,
|
|
38
|
+
NotifyApplicationStateCommand: NotifyApplicationStateCommand_1.NotifyApplicationStateCommand,
|
|
39
|
+
NotifyMigrationTaskStateCommand: NotifyMigrationTaskStateCommand_1.NotifyMigrationTaskStateCommand,
|
|
40
|
+
PutResourceAttributesCommand: PutResourceAttributesCommand_1.PutResourceAttributesCommand,
|
|
41
|
+
};
|
|
22
42
|
class MigrationHub extends MigrationHubClient_1.MigrationHubClient {
|
|
23
|
-
associateCreatedArtifact(args, optionsOrCb, cb) {
|
|
24
|
-
const command = new AssociateCreatedArtifactCommand_1.AssociateCreatedArtifactCommand(args);
|
|
25
|
-
if (typeof optionsOrCb === "function") {
|
|
26
|
-
this.send(command, optionsOrCb);
|
|
27
|
-
}
|
|
28
|
-
else if (typeof cb === "function") {
|
|
29
|
-
if (typeof optionsOrCb !== "object")
|
|
30
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
31
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
return this.send(command, optionsOrCb);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
associateDiscoveredResource(args, optionsOrCb, cb) {
|
|
38
|
-
const command = new AssociateDiscoveredResourceCommand_1.AssociateDiscoveredResourceCommand(args);
|
|
39
|
-
if (typeof optionsOrCb === "function") {
|
|
40
|
-
this.send(command, optionsOrCb);
|
|
41
|
-
}
|
|
42
|
-
else if (typeof cb === "function") {
|
|
43
|
-
if (typeof optionsOrCb !== "object")
|
|
44
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
45
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
return this.send(command, optionsOrCb);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
createProgressUpdateStream(args, optionsOrCb, cb) {
|
|
52
|
-
const command = new CreateProgressUpdateStreamCommand_1.CreateProgressUpdateStreamCommand(args);
|
|
53
|
-
if (typeof optionsOrCb === "function") {
|
|
54
|
-
this.send(command, optionsOrCb);
|
|
55
|
-
}
|
|
56
|
-
else if (typeof cb === "function") {
|
|
57
|
-
if (typeof optionsOrCb !== "object")
|
|
58
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
59
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
return this.send(command, optionsOrCb);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
deleteProgressUpdateStream(args, optionsOrCb, cb) {
|
|
66
|
-
const command = new DeleteProgressUpdateStreamCommand_1.DeleteProgressUpdateStreamCommand(args);
|
|
67
|
-
if (typeof optionsOrCb === "function") {
|
|
68
|
-
this.send(command, optionsOrCb);
|
|
69
|
-
}
|
|
70
|
-
else if (typeof cb === "function") {
|
|
71
|
-
if (typeof optionsOrCb !== "object")
|
|
72
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
73
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
74
|
-
}
|
|
75
|
-
else {
|
|
76
|
-
return this.send(command, optionsOrCb);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
describeApplicationState(args, optionsOrCb, cb) {
|
|
80
|
-
const command = new DescribeApplicationStateCommand_1.DescribeApplicationStateCommand(args);
|
|
81
|
-
if (typeof optionsOrCb === "function") {
|
|
82
|
-
this.send(command, optionsOrCb);
|
|
83
|
-
}
|
|
84
|
-
else if (typeof cb === "function") {
|
|
85
|
-
if (typeof optionsOrCb !== "object")
|
|
86
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
87
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
return this.send(command, optionsOrCb);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
describeMigrationTask(args, optionsOrCb, cb) {
|
|
94
|
-
const command = new DescribeMigrationTaskCommand_1.DescribeMigrationTaskCommand(args);
|
|
95
|
-
if (typeof optionsOrCb === "function") {
|
|
96
|
-
this.send(command, optionsOrCb);
|
|
97
|
-
}
|
|
98
|
-
else if (typeof cb === "function") {
|
|
99
|
-
if (typeof optionsOrCb !== "object")
|
|
100
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
101
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
102
|
-
}
|
|
103
|
-
else {
|
|
104
|
-
return this.send(command, optionsOrCb);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
disassociateCreatedArtifact(args, optionsOrCb, cb) {
|
|
108
|
-
const command = new DisassociateCreatedArtifactCommand_1.DisassociateCreatedArtifactCommand(args);
|
|
109
|
-
if (typeof optionsOrCb === "function") {
|
|
110
|
-
this.send(command, optionsOrCb);
|
|
111
|
-
}
|
|
112
|
-
else if (typeof cb === "function") {
|
|
113
|
-
if (typeof optionsOrCb !== "object")
|
|
114
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
115
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
116
|
-
}
|
|
117
|
-
else {
|
|
118
|
-
return this.send(command, optionsOrCb);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
disassociateDiscoveredResource(args, optionsOrCb, cb) {
|
|
122
|
-
const command = new DisassociateDiscoveredResourceCommand_1.DisassociateDiscoveredResourceCommand(args);
|
|
123
|
-
if (typeof optionsOrCb === "function") {
|
|
124
|
-
this.send(command, optionsOrCb);
|
|
125
|
-
}
|
|
126
|
-
else if (typeof cb === "function") {
|
|
127
|
-
if (typeof optionsOrCb !== "object")
|
|
128
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
129
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
130
|
-
}
|
|
131
|
-
else {
|
|
132
|
-
return this.send(command, optionsOrCb);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
importMigrationTask(args, optionsOrCb, cb) {
|
|
136
|
-
const command = new ImportMigrationTaskCommand_1.ImportMigrationTaskCommand(args);
|
|
137
|
-
if (typeof optionsOrCb === "function") {
|
|
138
|
-
this.send(command, optionsOrCb);
|
|
139
|
-
}
|
|
140
|
-
else if (typeof cb === "function") {
|
|
141
|
-
if (typeof optionsOrCb !== "object")
|
|
142
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
143
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
144
|
-
}
|
|
145
|
-
else {
|
|
146
|
-
return this.send(command, optionsOrCb);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
listApplicationStates(args, optionsOrCb, cb) {
|
|
150
|
-
const command = new ListApplicationStatesCommand_1.ListApplicationStatesCommand(args);
|
|
151
|
-
if (typeof optionsOrCb === "function") {
|
|
152
|
-
this.send(command, optionsOrCb);
|
|
153
|
-
}
|
|
154
|
-
else if (typeof cb === "function") {
|
|
155
|
-
if (typeof optionsOrCb !== "object")
|
|
156
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
157
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
158
|
-
}
|
|
159
|
-
else {
|
|
160
|
-
return this.send(command, optionsOrCb);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
listCreatedArtifacts(args, optionsOrCb, cb) {
|
|
164
|
-
const command = new ListCreatedArtifactsCommand_1.ListCreatedArtifactsCommand(args);
|
|
165
|
-
if (typeof optionsOrCb === "function") {
|
|
166
|
-
this.send(command, optionsOrCb);
|
|
167
|
-
}
|
|
168
|
-
else if (typeof cb === "function") {
|
|
169
|
-
if (typeof optionsOrCb !== "object")
|
|
170
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
171
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
172
|
-
}
|
|
173
|
-
else {
|
|
174
|
-
return this.send(command, optionsOrCb);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
listDiscoveredResources(args, optionsOrCb, cb) {
|
|
178
|
-
const command = new ListDiscoveredResourcesCommand_1.ListDiscoveredResourcesCommand(args);
|
|
179
|
-
if (typeof optionsOrCb === "function") {
|
|
180
|
-
this.send(command, optionsOrCb);
|
|
181
|
-
}
|
|
182
|
-
else if (typeof cb === "function") {
|
|
183
|
-
if (typeof optionsOrCb !== "object")
|
|
184
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
185
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
186
|
-
}
|
|
187
|
-
else {
|
|
188
|
-
return this.send(command, optionsOrCb);
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
listMigrationTasks(args, optionsOrCb, cb) {
|
|
192
|
-
const command = new ListMigrationTasksCommand_1.ListMigrationTasksCommand(args);
|
|
193
|
-
if (typeof optionsOrCb === "function") {
|
|
194
|
-
this.send(command, optionsOrCb);
|
|
195
|
-
}
|
|
196
|
-
else if (typeof cb === "function") {
|
|
197
|
-
if (typeof optionsOrCb !== "object")
|
|
198
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
199
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
200
|
-
}
|
|
201
|
-
else {
|
|
202
|
-
return this.send(command, optionsOrCb);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
listProgressUpdateStreams(args, optionsOrCb, cb) {
|
|
206
|
-
const command = new ListProgressUpdateStreamsCommand_1.ListProgressUpdateStreamsCommand(args);
|
|
207
|
-
if (typeof optionsOrCb === "function") {
|
|
208
|
-
this.send(command, optionsOrCb);
|
|
209
|
-
}
|
|
210
|
-
else if (typeof cb === "function") {
|
|
211
|
-
if (typeof optionsOrCb !== "object")
|
|
212
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
213
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
214
|
-
}
|
|
215
|
-
else {
|
|
216
|
-
return this.send(command, optionsOrCb);
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
notifyApplicationState(args, optionsOrCb, cb) {
|
|
220
|
-
const command = new NotifyApplicationStateCommand_1.NotifyApplicationStateCommand(args);
|
|
221
|
-
if (typeof optionsOrCb === "function") {
|
|
222
|
-
this.send(command, optionsOrCb);
|
|
223
|
-
}
|
|
224
|
-
else if (typeof cb === "function") {
|
|
225
|
-
if (typeof optionsOrCb !== "object")
|
|
226
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
227
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
228
|
-
}
|
|
229
|
-
else {
|
|
230
|
-
return this.send(command, optionsOrCb);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
notifyMigrationTaskState(args, optionsOrCb, cb) {
|
|
234
|
-
const command = new NotifyMigrationTaskStateCommand_1.NotifyMigrationTaskStateCommand(args);
|
|
235
|
-
if (typeof optionsOrCb === "function") {
|
|
236
|
-
this.send(command, optionsOrCb);
|
|
237
|
-
}
|
|
238
|
-
else if (typeof cb === "function") {
|
|
239
|
-
if (typeof optionsOrCb !== "object")
|
|
240
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
241
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
242
|
-
}
|
|
243
|
-
else {
|
|
244
|
-
return this.send(command, optionsOrCb);
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
putResourceAttributes(args, optionsOrCb, cb) {
|
|
248
|
-
const command = new PutResourceAttributesCommand_1.PutResourceAttributesCommand(args);
|
|
249
|
-
if (typeof optionsOrCb === "function") {
|
|
250
|
-
this.send(command, optionsOrCb);
|
|
251
|
-
}
|
|
252
|
-
else if (typeof cb === "function") {
|
|
253
|
-
if (typeof optionsOrCb !== "object")
|
|
254
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
255
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
256
|
-
}
|
|
257
|
-
else {
|
|
258
|
-
return this.send(command, optionsOrCb);
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
43
|
}
|
|
262
44
|
exports.MigrationHub = MigrationHub;
|
|
45
|
+
(0, smithy_client_1.createAggregatedClient)(commands, MigrationHub);
|