@aws-sdk/client-migration-hub 3.315.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-es/MigrationHub.js +21 -238
- 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);
|
package/dist-es/MigrationHub.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { AssociateCreatedArtifactCommand, } from "./commands/AssociateCreatedArtifactCommand";
|
|
2
3
|
import { AssociateDiscoveredResourceCommand, } from "./commands/AssociateDiscoveredResourceCommand";
|
|
3
4
|
import { CreateProgressUpdateStreamCommand, } from "./commands/CreateProgressUpdateStreamCommand";
|
|
@@ -16,243 +17,25 @@ import { NotifyApplicationStateCommand, } from "./commands/NotifyApplicationStat
|
|
|
16
17
|
import { NotifyMigrationTaskStateCommand, } from "./commands/NotifyMigrationTaskStateCommand";
|
|
17
18
|
import { PutResourceAttributesCommand, } from "./commands/PutResourceAttributesCommand";
|
|
18
19
|
import { MigrationHubClient } from "./MigrationHubClient";
|
|
20
|
+
const commands = {
|
|
21
|
+
AssociateCreatedArtifactCommand,
|
|
22
|
+
AssociateDiscoveredResourceCommand,
|
|
23
|
+
CreateProgressUpdateStreamCommand,
|
|
24
|
+
DeleteProgressUpdateStreamCommand,
|
|
25
|
+
DescribeApplicationStateCommand,
|
|
26
|
+
DescribeMigrationTaskCommand,
|
|
27
|
+
DisassociateCreatedArtifactCommand,
|
|
28
|
+
DisassociateDiscoveredResourceCommand,
|
|
29
|
+
ImportMigrationTaskCommand,
|
|
30
|
+
ListApplicationStatesCommand,
|
|
31
|
+
ListCreatedArtifactsCommand,
|
|
32
|
+
ListDiscoveredResourcesCommand,
|
|
33
|
+
ListMigrationTasksCommand,
|
|
34
|
+
ListProgressUpdateStreamsCommand,
|
|
35
|
+
NotifyApplicationStateCommand,
|
|
36
|
+
NotifyMigrationTaskStateCommand,
|
|
37
|
+
PutResourceAttributesCommand,
|
|
38
|
+
};
|
|
19
39
|
export class MigrationHub extends MigrationHubClient {
|
|
20
|
-
associateCreatedArtifact(args, optionsOrCb, cb) {
|
|
21
|
-
const command = new AssociateCreatedArtifactCommand(args);
|
|
22
|
-
if (typeof optionsOrCb === "function") {
|
|
23
|
-
this.send(command, optionsOrCb);
|
|
24
|
-
}
|
|
25
|
-
else if (typeof cb === "function") {
|
|
26
|
-
if (typeof optionsOrCb !== "object")
|
|
27
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
28
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
return this.send(command, optionsOrCb);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
associateDiscoveredResource(args, optionsOrCb, cb) {
|
|
35
|
-
const command = new AssociateDiscoveredResourceCommand(args);
|
|
36
|
-
if (typeof optionsOrCb === "function") {
|
|
37
|
-
this.send(command, optionsOrCb);
|
|
38
|
-
}
|
|
39
|
-
else if (typeof cb === "function") {
|
|
40
|
-
if (typeof optionsOrCb !== "object")
|
|
41
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
42
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
return this.send(command, optionsOrCb);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
createProgressUpdateStream(args, optionsOrCb, cb) {
|
|
49
|
-
const command = new CreateProgressUpdateStreamCommand(args);
|
|
50
|
-
if (typeof optionsOrCb === "function") {
|
|
51
|
-
this.send(command, optionsOrCb);
|
|
52
|
-
}
|
|
53
|
-
else if (typeof cb === "function") {
|
|
54
|
-
if (typeof optionsOrCb !== "object")
|
|
55
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
56
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
return this.send(command, optionsOrCb);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
deleteProgressUpdateStream(args, optionsOrCb, cb) {
|
|
63
|
-
const command = new DeleteProgressUpdateStreamCommand(args);
|
|
64
|
-
if (typeof optionsOrCb === "function") {
|
|
65
|
-
this.send(command, optionsOrCb);
|
|
66
|
-
}
|
|
67
|
-
else if (typeof cb === "function") {
|
|
68
|
-
if (typeof optionsOrCb !== "object")
|
|
69
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
70
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
return this.send(command, optionsOrCb);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
describeApplicationState(args, optionsOrCb, cb) {
|
|
77
|
-
const command = new DescribeApplicationStateCommand(args);
|
|
78
|
-
if (typeof optionsOrCb === "function") {
|
|
79
|
-
this.send(command, optionsOrCb);
|
|
80
|
-
}
|
|
81
|
-
else if (typeof cb === "function") {
|
|
82
|
-
if (typeof optionsOrCb !== "object")
|
|
83
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
84
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
return this.send(command, optionsOrCb);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
describeMigrationTask(args, optionsOrCb, cb) {
|
|
91
|
-
const command = new DescribeMigrationTaskCommand(args);
|
|
92
|
-
if (typeof optionsOrCb === "function") {
|
|
93
|
-
this.send(command, optionsOrCb);
|
|
94
|
-
}
|
|
95
|
-
else if (typeof cb === "function") {
|
|
96
|
-
if (typeof optionsOrCb !== "object")
|
|
97
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
98
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
return this.send(command, optionsOrCb);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
disassociateCreatedArtifact(args, optionsOrCb, cb) {
|
|
105
|
-
const command = new DisassociateCreatedArtifactCommand(args);
|
|
106
|
-
if (typeof optionsOrCb === "function") {
|
|
107
|
-
this.send(command, optionsOrCb);
|
|
108
|
-
}
|
|
109
|
-
else if (typeof cb === "function") {
|
|
110
|
-
if (typeof optionsOrCb !== "object")
|
|
111
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
112
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
return this.send(command, optionsOrCb);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
disassociateDiscoveredResource(args, optionsOrCb, cb) {
|
|
119
|
-
const command = new DisassociateDiscoveredResourceCommand(args);
|
|
120
|
-
if (typeof optionsOrCb === "function") {
|
|
121
|
-
this.send(command, optionsOrCb);
|
|
122
|
-
}
|
|
123
|
-
else if (typeof cb === "function") {
|
|
124
|
-
if (typeof optionsOrCb !== "object")
|
|
125
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
126
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
return this.send(command, optionsOrCb);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
importMigrationTask(args, optionsOrCb, cb) {
|
|
133
|
-
const command = new ImportMigrationTaskCommand(args);
|
|
134
|
-
if (typeof optionsOrCb === "function") {
|
|
135
|
-
this.send(command, optionsOrCb);
|
|
136
|
-
}
|
|
137
|
-
else if (typeof cb === "function") {
|
|
138
|
-
if (typeof optionsOrCb !== "object")
|
|
139
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
140
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
return this.send(command, optionsOrCb);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
listApplicationStates(args, optionsOrCb, cb) {
|
|
147
|
-
const command = new ListApplicationStatesCommand(args);
|
|
148
|
-
if (typeof optionsOrCb === "function") {
|
|
149
|
-
this.send(command, optionsOrCb);
|
|
150
|
-
}
|
|
151
|
-
else if (typeof cb === "function") {
|
|
152
|
-
if (typeof optionsOrCb !== "object")
|
|
153
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
154
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
155
|
-
}
|
|
156
|
-
else {
|
|
157
|
-
return this.send(command, optionsOrCb);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
listCreatedArtifacts(args, optionsOrCb, cb) {
|
|
161
|
-
const command = new ListCreatedArtifactsCommand(args);
|
|
162
|
-
if (typeof optionsOrCb === "function") {
|
|
163
|
-
this.send(command, optionsOrCb);
|
|
164
|
-
}
|
|
165
|
-
else if (typeof cb === "function") {
|
|
166
|
-
if (typeof optionsOrCb !== "object")
|
|
167
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
168
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
169
|
-
}
|
|
170
|
-
else {
|
|
171
|
-
return this.send(command, optionsOrCb);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
listDiscoveredResources(args, optionsOrCb, cb) {
|
|
175
|
-
const command = new ListDiscoveredResourcesCommand(args);
|
|
176
|
-
if (typeof optionsOrCb === "function") {
|
|
177
|
-
this.send(command, optionsOrCb);
|
|
178
|
-
}
|
|
179
|
-
else if (typeof cb === "function") {
|
|
180
|
-
if (typeof optionsOrCb !== "object")
|
|
181
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
182
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
183
|
-
}
|
|
184
|
-
else {
|
|
185
|
-
return this.send(command, optionsOrCb);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
listMigrationTasks(args, optionsOrCb, cb) {
|
|
189
|
-
const command = new ListMigrationTasksCommand(args);
|
|
190
|
-
if (typeof optionsOrCb === "function") {
|
|
191
|
-
this.send(command, optionsOrCb);
|
|
192
|
-
}
|
|
193
|
-
else if (typeof cb === "function") {
|
|
194
|
-
if (typeof optionsOrCb !== "object")
|
|
195
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
196
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
197
|
-
}
|
|
198
|
-
else {
|
|
199
|
-
return this.send(command, optionsOrCb);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
listProgressUpdateStreams(args, optionsOrCb, cb) {
|
|
203
|
-
const command = new ListProgressUpdateStreamsCommand(args);
|
|
204
|
-
if (typeof optionsOrCb === "function") {
|
|
205
|
-
this.send(command, optionsOrCb);
|
|
206
|
-
}
|
|
207
|
-
else if (typeof cb === "function") {
|
|
208
|
-
if (typeof optionsOrCb !== "object")
|
|
209
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
210
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
211
|
-
}
|
|
212
|
-
else {
|
|
213
|
-
return this.send(command, optionsOrCb);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
notifyApplicationState(args, optionsOrCb, cb) {
|
|
217
|
-
const command = new NotifyApplicationStateCommand(args);
|
|
218
|
-
if (typeof optionsOrCb === "function") {
|
|
219
|
-
this.send(command, optionsOrCb);
|
|
220
|
-
}
|
|
221
|
-
else if (typeof cb === "function") {
|
|
222
|
-
if (typeof optionsOrCb !== "object")
|
|
223
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
224
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
225
|
-
}
|
|
226
|
-
else {
|
|
227
|
-
return this.send(command, optionsOrCb);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
notifyMigrationTaskState(args, optionsOrCb, cb) {
|
|
231
|
-
const command = new NotifyMigrationTaskStateCommand(args);
|
|
232
|
-
if (typeof optionsOrCb === "function") {
|
|
233
|
-
this.send(command, optionsOrCb);
|
|
234
|
-
}
|
|
235
|
-
else if (typeof cb === "function") {
|
|
236
|
-
if (typeof optionsOrCb !== "object")
|
|
237
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
238
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
239
|
-
}
|
|
240
|
-
else {
|
|
241
|
-
return this.send(command, optionsOrCb);
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
putResourceAttributes(args, optionsOrCb, cb) {
|
|
245
|
-
const command = new PutResourceAttributesCommand(args);
|
|
246
|
-
if (typeof optionsOrCb === "function") {
|
|
247
|
-
this.send(command, optionsOrCb);
|
|
248
|
-
}
|
|
249
|
-
else if (typeof cb === "function") {
|
|
250
|
-
if (typeof optionsOrCb !== "object")
|
|
251
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
252
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
253
|
-
}
|
|
254
|
-
else {
|
|
255
|
-
return this.send(command, optionsOrCb);
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
40
|
}
|
|
41
|
+
createAggregatedClient(commands, MigrationHub);
|
|
@@ -17,279 +17,118 @@ import { NotifyApplicationStateCommandInput, NotifyApplicationStateCommandOutput
|
|
|
17
17
|
import { NotifyMigrationTaskStateCommandInput, NotifyMigrationTaskStateCommandOutput } from "./commands/NotifyMigrationTaskStateCommand";
|
|
18
18
|
import { PutResourceAttributesCommandInput, PutResourceAttributesCommandOutput } from "./commands/PutResourceAttributesCommand";
|
|
19
19
|
import { MigrationHubClient } from "./MigrationHubClient";
|
|
20
|
-
|
|
21
|
-
* @public
|
|
22
|
-
* <p>The AWS Migration Hub API methods help to obtain server and application migration status
|
|
23
|
-
* and integrate your resource-specific migration tool by providing a programmatic interface
|
|
24
|
-
* to Migration Hub.</p>
|
|
25
|
-
* <p>Remember that you must set your AWS Migration Hub home region before you call any of
|
|
26
|
-
* these APIs, or a <code>HomeRegionNotSetException</code> error will be returned. Also, you
|
|
27
|
-
* must make the API calls while in your home region.</p>
|
|
28
|
-
*/
|
|
29
|
-
export declare class MigrationHub extends MigrationHubClient {
|
|
20
|
+
export interface MigrationHub {
|
|
30
21
|
/**
|
|
31
|
-
* @
|
|
32
|
-
* <p>Associates a created artifact of an AWS cloud resource, the target receiving the
|
|
33
|
-
* migration, with the migration task performed by a migration tool. This API has the
|
|
34
|
-
* following traits:</p>
|
|
35
|
-
* <ul>
|
|
36
|
-
* <li>
|
|
37
|
-
* <p>Migration tools can call the <code>AssociateCreatedArtifact</code> operation to
|
|
38
|
-
* indicate which AWS artifact is associated with a migration task.</p>
|
|
39
|
-
* </li>
|
|
40
|
-
* <li>
|
|
41
|
-
* <p>The created artifact name must be provided in ARN (Amazon Resource Name) format
|
|
42
|
-
* which will contain information about type and region; for example:
|
|
43
|
-
* <code>arn:aws:ec2:us-east-1:488216288981:image/ami-6d0ba87b</code>.</p>
|
|
44
|
-
* </li>
|
|
45
|
-
* <li>
|
|
46
|
-
* <p>Examples of the AWS resource behind the created artifact are, AMI's, EC2 instance,
|
|
47
|
-
* or DMS endpoint, etc.</p>
|
|
48
|
-
* </li>
|
|
49
|
-
* </ul>
|
|
22
|
+
* @see {@link AssociateCreatedArtifactCommand}
|
|
50
23
|
*/
|
|
51
24
|
associateCreatedArtifact(args: AssociateCreatedArtifactCommandInput, options?: __HttpHandlerOptions): Promise<AssociateCreatedArtifactCommandOutput>;
|
|
52
25
|
associateCreatedArtifact(args: AssociateCreatedArtifactCommandInput, cb: (err: any, data?: AssociateCreatedArtifactCommandOutput) => void): void;
|
|
53
26
|
associateCreatedArtifact(args: AssociateCreatedArtifactCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateCreatedArtifactCommandOutput) => void): void;
|
|
54
27
|
/**
|
|
55
|
-
* @
|
|
56
|
-
* <p>Associates a discovered resource ID from Application Discovery Service with a migration
|
|
57
|
-
* task.</p>
|
|
28
|
+
* @see {@link AssociateDiscoveredResourceCommand}
|
|
58
29
|
*/
|
|
59
30
|
associateDiscoveredResource(args: AssociateDiscoveredResourceCommandInput, options?: __HttpHandlerOptions): Promise<AssociateDiscoveredResourceCommandOutput>;
|
|
60
31
|
associateDiscoveredResource(args: AssociateDiscoveredResourceCommandInput, cb: (err: any, data?: AssociateDiscoveredResourceCommandOutput) => void): void;
|
|
61
32
|
associateDiscoveredResource(args: AssociateDiscoveredResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateDiscoveredResourceCommandOutput) => void): void;
|
|
62
33
|
/**
|
|
63
|
-
* @
|
|
64
|
-
* <p>Creates a progress update stream which is an AWS resource used for access control as
|
|
65
|
-
* well as a namespace for migration task names that is implicitly linked to your AWS account.
|
|
66
|
-
* It must uniquely identify the migration tool as it is used for all updates made by the
|
|
67
|
-
* tool; however, it does not need to be unique for each AWS account because it is scoped to
|
|
68
|
-
* the AWS account.</p>
|
|
34
|
+
* @see {@link CreateProgressUpdateStreamCommand}
|
|
69
35
|
*/
|
|
70
36
|
createProgressUpdateStream(args: CreateProgressUpdateStreamCommandInput, options?: __HttpHandlerOptions): Promise<CreateProgressUpdateStreamCommandOutput>;
|
|
71
37
|
createProgressUpdateStream(args: CreateProgressUpdateStreamCommandInput, cb: (err: any, data?: CreateProgressUpdateStreamCommandOutput) => void): void;
|
|
72
38
|
createProgressUpdateStream(args: CreateProgressUpdateStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateProgressUpdateStreamCommandOutput) => void): void;
|
|
73
39
|
/**
|
|
74
|
-
* @
|
|
75
|
-
* <p>Deletes a progress update stream, including all of its tasks, which was previously
|
|
76
|
-
* created as an AWS resource used for access control. This API has the following
|
|
77
|
-
* traits:</p>
|
|
78
|
-
* <ul>
|
|
79
|
-
* <li>
|
|
80
|
-
* <p>The only parameter needed for <code>DeleteProgressUpdateStream</code> is the
|
|
81
|
-
* stream name (same as a <code>CreateProgressUpdateStream</code> call).</p>
|
|
82
|
-
* </li>
|
|
83
|
-
* <li>
|
|
84
|
-
* <p>The call will return, and a background process will asynchronously delete the
|
|
85
|
-
* stream and all of its resources (tasks, associated resources, resource attributes,
|
|
86
|
-
* created artifacts).</p>
|
|
87
|
-
* </li>
|
|
88
|
-
* <li>
|
|
89
|
-
* <p>If the stream takes time to be deleted, it might still show up on a
|
|
90
|
-
* <code>ListProgressUpdateStreams</code> call.</p>
|
|
91
|
-
* </li>
|
|
92
|
-
* <li>
|
|
93
|
-
* <p>
|
|
94
|
-
* <code>CreateProgressUpdateStream</code>, <code>ImportMigrationTask</code>,
|
|
95
|
-
* <code>NotifyMigrationTaskState</code>, and all Associate[*] APIs related to the
|
|
96
|
-
* tasks belonging to the stream will throw "InvalidInputException" if the stream of the
|
|
97
|
-
* same name is in the process of being deleted.</p>
|
|
98
|
-
* </li>
|
|
99
|
-
* <li>
|
|
100
|
-
* <p>Once the stream and all of its resources are deleted,
|
|
101
|
-
* <code>CreateProgressUpdateStream</code> for a stream of the same name will
|
|
102
|
-
* succeed, and that stream will be an entirely new logical resource (without any
|
|
103
|
-
* resources associated with the old stream).</p>
|
|
104
|
-
* </li>
|
|
105
|
-
* </ul>
|
|
40
|
+
* @see {@link DeleteProgressUpdateStreamCommand}
|
|
106
41
|
*/
|
|
107
42
|
deleteProgressUpdateStream(args: DeleteProgressUpdateStreamCommandInput, options?: __HttpHandlerOptions): Promise<DeleteProgressUpdateStreamCommandOutput>;
|
|
108
43
|
deleteProgressUpdateStream(args: DeleteProgressUpdateStreamCommandInput, cb: (err: any, data?: DeleteProgressUpdateStreamCommandOutput) => void): void;
|
|
109
44
|
deleteProgressUpdateStream(args: DeleteProgressUpdateStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteProgressUpdateStreamCommandOutput) => void): void;
|
|
110
45
|
/**
|
|
111
|
-
* @
|
|
112
|
-
* <p>Gets the migration status of an application.</p>
|
|
46
|
+
* @see {@link DescribeApplicationStateCommand}
|
|
113
47
|
*/
|
|
114
48
|
describeApplicationState(args: DescribeApplicationStateCommandInput, options?: __HttpHandlerOptions): Promise<DescribeApplicationStateCommandOutput>;
|
|
115
49
|
describeApplicationState(args: DescribeApplicationStateCommandInput, cb: (err: any, data?: DescribeApplicationStateCommandOutput) => void): void;
|
|
116
50
|
describeApplicationState(args: DescribeApplicationStateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeApplicationStateCommandOutput) => void): void;
|
|
117
51
|
/**
|
|
118
|
-
* @
|
|
119
|
-
* <p>Retrieves a list of all attributes associated with a specific migration task.</p>
|
|
52
|
+
* @see {@link DescribeMigrationTaskCommand}
|
|
120
53
|
*/
|
|
121
54
|
describeMigrationTask(args: DescribeMigrationTaskCommandInput, options?: __HttpHandlerOptions): Promise<DescribeMigrationTaskCommandOutput>;
|
|
122
55
|
describeMigrationTask(args: DescribeMigrationTaskCommandInput, cb: (err: any, data?: DescribeMigrationTaskCommandOutput) => void): void;
|
|
123
56
|
describeMigrationTask(args: DescribeMigrationTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeMigrationTaskCommandOutput) => void): void;
|
|
124
57
|
/**
|
|
125
|
-
* @
|
|
126
|
-
* <p>Disassociates a created artifact of an AWS resource with a migration task performed by a
|
|
127
|
-
* migration tool that was previously associated. This API has the following traits:</p>
|
|
128
|
-
* <ul>
|
|
129
|
-
* <li>
|
|
130
|
-
* <p>A migration user can call the <code>DisassociateCreatedArtifacts</code> operation
|
|
131
|
-
* to disassociate a created AWS Artifact from a migration task.</p>
|
|
132
|
-
* </li>
|
|
133
|
-
* <li>
|
|
134
|
-
* <p>The created artifact name must be provided in ARN (Amazon Resource Name) format
|
|
135
|
-
* which will contain information about type and region; for example:
|
|
136
|
-
* <code>arn:aws:ec2:us-east-1:488216288981:image/ami-6d0ba87b</code>.</p>
|
|
137
|
-
* </li>
|
|
138
|
-
* <li>
|
|
139
|
-
* <p>Examples of the AWS resource behind the created artifact are, AMI's, EC2 instance,
|
|
140
|
-
* or RDS instance, etc.</p>
|
|
141
|
-
* </li>
|
|
142
|
-
* </ul>
|
|
58
|
+
* @see {@link DisassociateCreatedArtifactCommand}
|
|
143
59
|
*/
|
|
144
60
|
disassociateCreatedArtifact(args: DisassociateCreatedArtifactCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateCreatedArtifactCommandOutput>;
|
|
145
61
|
disassociateCreatedArtifact(args: DisassociateCreatedArtifactCommandInput, cb: (err: any, data?: DisassociateCreatedArtifactCommandOutput) => void): void;
|
|
146
62
|
disassociateCreatedArtifact(args: DisassociateCreatedArtifactCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateCreatedArtifactCommandOutput) => void): void;
|
|
147
63
|
/**
|
|
148
|
-
* @
|
|
149
|
-
* <p>Disassociate an Application Discovery Service discovered resource from a migration
|
|
150
|
-
* task.</p>
|
|
64
|
+
* @see {@link DisassociateDiscoveredResourceCommand}
|
|
151
65
|
*/
|
|
152
66
|
disassociateDiscoveredResource(args: DisassociateDiscoveredResourceCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateDiscoveredResourceCommandOutput>;
|
|
153
67
|
disassociateDiscoveredResource(args: DisassociateDiscoveredResourceCommandInput, cb: (err: any, data?: DisassociateDiscoveredResourceCommandOutput) => void): void;
|
|
154
68
|
disassociateDiscoveredResource(args: DisassociateDiscoveredResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateDiscoveredResourceCommandOutput) => void): void;
|
|
155
69
|
/**
|
|
156
|
-
* @
|
|
157
|
-
* <p>Registers a new migration task which represents a server, database, etc., being migrated
|
|
158
|
-
* to AWS by a migration tool.</p>
|
|
159
|
-
* <p>This API is a prerequisite to calling the <code>NotifyMigrationTaskState</code> API as
|
|
160
|
-
* the migration tool must first register the migration task with Migration Hub.</p>
|
|
70
|
+
* @see {@link ImportMigrationTaskCommand}
|
|
161
71
|
*/
|
|
162
72
|
importMigrationTask(args: ImportMigrationTaskCommandInput, options?: __HttpHandlerOptions): Promise<ImportMigrationTaskCommandOutput>;
|
|
163
73
|
importMigrationTask(args: ImportMigrationTaskCommandInput, cb: (err: any, data?: ImportMigrationTaskCommandOutput) => void): void;
|
|
164
74
|
importMigrationTask(args: ImportMigrationTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ImportMigrationTaskCommandOutput) => void): void;
|
|
165
75
|
/**
|
|
166
|
-
* @
|
|
167
|
-
* <p>Lists all the migration statuses for your applications. If you use the optional
|
|
168
|
-
* <code>ApplicationIds</code> parameter, only the migration statuses for those
|
|
169
|
-
* applications will be returned.</p>
|
|
76
|
+
* @see {@link ListApplicationStatesCommand}
|
|
170
77
|
*/
|
|
171
78
|
listApplicationStates(args: ListApplicationStatesCommandInput, options?: __HttpHandlerOptions): Promise<ListApplicationStatesCommandOutput>;
|
|
172
79
|
listApplicationStates(args: ListApplicationStatesCommandInput, cb: (err: any, data?: ListApplicationStatesCommandOutput) => void): void;
|
|
173
80
|
listApplicationStates(args: ListApplicationStatesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListApplicationStatesCommandOutput) => void): void;
|
|
174
81
|
/**
|
|
175
|
-
* @
|
|
176
|
-
* <p>Lists the created artifacts attached to a given migration task in an update stream. This
|
|
177
|
-
* API has the following traits:</p>
|
|
178
|
-
* <ul>
|
|
179
|
-
* <li>
|
|
180
|
-
* <p>Gets the list of the created artifacts while
|
|
181
|
-
* migration is taking place.</p>
|
|
182
|
-
* </li>
|
|
183
|
-
* <li>
|
|
184
|
-
* <p>Shows the artifacts created by the migration tool that was associated by the
|
|
185
|
-
* <code>AssociateCreatedArtifact</code> API. </p>
|
|
186
|
-
* </li>
|
|
187
|
-
* <li>
|
|
188
|
-
* <p>Lists created artifacts in a paginated interface. </p>
|
|
189
|
-
* </li>
|
|
190
|
-
* </ul>
|
|
82
|
+
* @see {@link ListCreatedArtifactsCommand}
|
|
191
83
|
*/
|
|
192
84
|
listCreatedArtifacts(args: ListCreatedArtifactsCommandInput, options?: __HttpHandlerOptions): Promise<ListCreatedArtifactsCommandOutput>;
|
|
193
85
|
listCreatedArtifacts(args: ListCreatedArtifactsCommandInput, cb: (err: any, data?: ListCreatedArtifactsCommandOutput) => void): void;
|
|
194
86
|
listCreatedArtifacts(args: ListCreatedArtifactsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCreatedArtifactsCommandOutput) => void): void;
|
|
195
87
|
/**
|
|
196
|
-
* @
|
|
197
|
-
* <p>Lists discovered resources associated with the given <code>MigrationTask</code>.</p>
|
|
88
|
+
* @see {@link ListDiscoveredResourcesCommand}
|
|
198
89
|
*/
|
|
199
90
|
listDiscoveredResources(args: ListDiscoveredResourcesCommandInput, options?: __HttpHandlerOptions): Promise<ListDiscoveredResourcesCommandOutput>;
|
|
200
91
|
listDiscoveredResources(args: ListDiscoveredResourcesCommandInput, cb: (err: any, data?: ListDiscoveredResourcesCommandOutput) => void): void;
|
|
201
92
|
listDiscoveredResources(args: ListDiscoveredResourcesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDiscoveredResourcesCommandOutput) => void): void;
|
|
202
93
|
/**
|
|
203
|
-
* @
|
|
204
|
-
* <p>Lists all, or filtered by resource name, migration tasks associated with the user
|
|
205
|
-
* account making this call. This API has the following traits:</p>
|
|
206
|
-
* <ul>
|
|
207
|
-
* <li>
|
|
208
|
-
* <p>Can show a summary list of the most recent migration tasks.</p>
|
|
209
|
-
* </li>
|
|
210
|
-
* <li>
|
|
211
|
-
* <p>Can show a summary list of migration tasks associated with a given discovered
|
|
212
|
-
* resource.</p>
|
|
213
|
-
* </li>
|
|
214
|
-
* <li>
|
|
215
|
-
* <p>Lists migration tasks in a paginated interface.</p>
|
|
216
|
-
* </li>
|
|
217
|
-
* </ul>
|
|
94
|
+
* @see {@link ListMigrationTasksCommand}
|
|
218
95
|
*/
|
|
219
96
|
listMigrationTasks(args: ListMigrationTasksCommandInput, options?: __HttpHandlerOptions): Promise<ListMigrationTasksCommandOutput>;
|
|
220
97
|
listMigrationTasks(args: ListMigrationTasksCommandInput, cb: (err: any, data?: ListMigrationTasksCommandOutput) => void): void;
|
|
221
98
|
listMigrationTasks(args: ListMigrationTasksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListMigrationTasksCommandOutput) => void): void;
|
|
222
99
|
/**
|
|
223
|
-
* @
|
|
224
|
-
* <p>Lists progress update streams associated with the user account making this call.</p>
|
|
100
|
+
* @see {@link ListProgressUpdateStreamsCommand}
|
|
225
101
|
*/
|
|
226
102
|
listProgressUpdateStreams(args: ListProgressUpdateStreamsCommandInput, options?: __HttpHandlerOptions): Promise<ListProgressUpdateStreamsCommandOutput>;
|
|
227
103
|
listProgressUpdateStreams(args: ListProgressUpdateStreamsCommandInput, cb: (err: any, data?: ListProgressUpdateStreamsCommandOutput) => void): void;
|
|
228
104
|
listProgressUpdateStreams(args: ListProgressUpdateStreamsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListProgressUpdateStreamsCommandOutput) => void): void;
|
|
229
105
|
/**
|
|
230
|
-
* @
|
|
231
|
-
* <p>Sets the migration state of an application. For a given application identified by the
|
|
232
|
-
* value passed to <code>ApplicationId</code>, its status is set or updated by passing one of
|
|
233
|
-
* three values to <code>Status</code>: <code>NOT_STARTED | IN_PROGRESS |
|
|
234
|
-
* COMPLETED</code>.</p>
|
|
106
|
+
* @see {@link NotifyApplicationStateCommand}
|
|
235
107
|
*/
|
|
236
108
|
notifyApplicationState(args: NotifyApplicationStateCommandInput, options?: __HttpHandlerOptions): Promise<NotifyApplicationStateCommandOutput>;
|
|
237
109
|
notifyApplicationState(args: NotifyApplicationStateCommandInput, cb: (err: any, data?: NotifyApplicationStateCommandOutput) => void): void;
|
|
238
110
|
notifyApplicationState(args: NotifyApplicationStateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: NotifyApplicationStateCommandOutput) => void): void;
|
|
239
111
|
/**
|
|
240
|
-
* @
|
|
241
|
-
* <p>Notifies Migration Hub of the current status, progress, or other detail regarding a
|
|
242
|
-
* migration task. This API has the following traits:</p>
|
|
243
|
-
* <ul>
|
|
244
|
-
* <li>
|
|
245
|
-
* <p>Migration tools will call the <code>NotifyMigrationTaskState</code> API to share
|
|
246
|
-
* the latest progress and status.</p>
|
|
247
|
-
* </li>
|
|
248
|
-
* <li>
|
|
249
|
-
* <p>
|
|
250
|
-
* <code>MigrationTaskName</code> is used for addressing updates to the correct
|
|
251
|
-
* target.</p>
|
|
252
|
-
* </li>
|
|
253
|
-
* <li>
|
|
254
|
-
* <p>
|
|
255
|
-
* <code>ProgressUpdateStream</code> is used for access control and to provide a
|
|
256
|
-
* namespace for each migration tool.</p>
|
|
257
|
-
* </li>
|
|
258
|
-
* </ul>
|
|
112
|
+
* @see {@link NotifyMigrationTaskStateCommand}
|
|
259
113
|
*/
|
|
260
114
|
notifyMigrationTaskState(args: NotifyMigrationTaskStateCommandInput, options?: __HttpHandlerOptions): Promise<NotifyMigrationTaskStateCommandOutput>;
|
|
261
115
|
notifyMigrationTaskState(args: NotifyMigrationTaskStateCommandInput, cb: (err: any, data?: NotifyMigrationTaskStateCommandOutput) => void): void;
|
|
262
116
|
notifyMigrationTaskState(args: NotifyMigrationTaskStateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: NotifyMigrationTaskStateCommandOutput) => void): void;
|
|
263
117
|
/**
|
|
264
|
-
* @
|
|
265
|
-
* <p>Provides identifying details of the resource being migrated so that it can be associated
|
|
266
|
-
* in the Application Discovery Service repository. This association occurs asynchronously
|
|
267
|
-
* after <code>PutResourceAttributes</code> returns.</p>
|
|
268
|
-
* <important>
|
|
269
|
-
* <ul>
|
|
270
|
-
* <li>
|
|
271
|
-
* <p>Keep in mind that subsequent calls to PutResourceAttributes will override
|
|
272
|
-
* previously stored attributes. For example, if it is first called with a MAC
|
|
273
|
-
* address, but later, it is desired to <i>add</i> an IP address, it
|
|
274
|
-
* will then be required to call it with <i>both</i> the IP and MAC
|
|
275
|
-
* addresses to prevent overriding the MAC address.</p>
|
|
276
|
-
* </li>
|
|
277
|
-
* <li>
|
|
278
|
-
* <p>Note the instructions regarding the special use case of the <a href="https://docs.aws.amazon.com/migrationhub/latest/ug/API_PutResourceAttributes.html#migrationhub-PutResourceAttributes-request-ResourceAttributeList">
|
|
279
|
-
* <code>ResourceAttributeList</code>
|
|
280
|
-
* </a> parameter when specifying any
|
|
281
|
-
* "VM" related value.</p>
|
|
282
|
-
* </li>
|
|
283
|
-
* </ul>
|
|
284
|
-
* </important>
|
|
285
|
-
*
|
|
286
|
-
* <note>
|
|
287
|
-
* <p>Because this is an asynchronous call, it will always return 200, whether an
|
|
288
|
-
* association occurs or not. To confirm if an association was found based on the provided
|
|
289
|
-
* details, call <code>ListDiscoveredResources</code>.</p>
|
|
290
|
-
* </note>
|
|
118
|
+
* @see {@link PutResourceAttributesCommand}
|
|
291
119
|
*/
|
|
292
120
|
putResourceAttributes(args: PutResourceAttributesCommandInput, options?: __HttpHandlerOptions): Promise<PutResourceAttributesCommandOutput>;
|
|
293
121
|
putResourceAttributes(args: PutResourceAttributesCommandInput, cb: (err: any, data?: PutResourceAttributesCommandOutput) => void): void;
|
|
294
122
|
putResourceAttributes(args: PutResourceAttributesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutResourceAttributesCommandOutput) => void): void;
|
|
295
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* @public
|
|
126
|
+
* <p>The AWS Migration Hub API methods help to obtain server and application migration status
|
|
127
|
+
* and integrate your resource-specific migration tool by providing a programmatic interface
|
|
128
|
+
* to Migration Hub.</p>
|
|
129
|
+
* <p>Remember that you must set your AWS Migration Hub home region before you call any of
|
|
130
|
+
* these APIs, or a <code>HomeRegionNotSetException</code> error will be returned. Also, you
|
|
131
|
+
* must make the API calls while in your home region.</p>
|
|
132
|
+
*/
|
|
133
|
+
export declare class MigrationHub extends MigrationHubClient implements MigrationHub {
|
|
134
|
+
}
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
PutResourceAttributesCommandOutput,
|
|
69
69
|
} from "./commands/PutResourceAttributesCommand";
|
|
70
70
|
import { MigrationHubClient } from "./MigrationHubClient";
|
|
71
|
-
export
|
|
71
|
+
export interface MigrationHub {
|
|
72
72
|
associateCreatedArtifact(
|
|
73
73
|
args: AssociateCreatedArtifactCommandInput,
|
|
74
74
|
options?: __HttpHandlerOptions
|
|
@@ -291,3 +291,6 @@ export declare class MigrationHub extends MigrationHubClient {
|
|
|
291
291
|
cb: (err: any, data?: PutResourceAttributesCommandOutput) => void
|
|
292
292
|
): void;
|
|
293
293
|
}
|
|
294
|
+
export declare class MigrationHub
|
|
295
|
+
extends MigrationHubClient
|
|
296
|
+
implements MigrationHub {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-migration-hub",
|
|
3
3
|
"description": "AWS SDK for JavaScript Migration Hub Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.316.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.316.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.316.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|