@aws-sdk/client-migration-hub-refactor-spaces 3.315.0 → 3.319.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/MigrationHubRefactorSpaces.js +28 -336
- package/dist-cjs/protocols/Aws_restJson1.js +4 -4
- package/dist-es/MigrationHubRefactorSpaces.js +29 -337
- package/dist-es/protocols/Aws_restJson1.js +4 -4
- package/dist-types/MigrationHubRefactorSpaces.d.ts +38 -174
- package/dist-types/ts3.4/MigrationHubRefactorSpaces.d.ts +4 -1
- package/package.json +8 -8
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MigrationHubRefactorSpaces = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CreateApplicationCommand_1 = require("./commands/CreateApplicationCommand");
|
|
5
6
|
const CreateEnvironmentCommand_1 = require("./commands/CreateEnvironmentCommand");
|
|
6
7
|
const CreateRouteCommand_1 = require("./commands/CreateRouteCommand");
|
|
@@ -26,342 +27,33 @@ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
|
26
27
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
27
28
|
const UpdateRouteCommand_1 = require("./commands/UpdateRouteCommand");
|
|
28
29
|
const MigrationHubRefactorSpacesClient_1 = require("./MigrationHubRefactorSpacesClient");
|
|
30
|
+
const commands = {
|
|
31
|
+
CreateApplicationCommand: CreateApplicationCommand_1.CreateApplicationCommand,
|
|
32
|
+
CreateEnvironmentCommand: CreateEnvironmentCommand_1.CreateEnvironmentCommand,
|
|
33
|
+
CreateRouteCommand: CreateRouteCommand_1.CreateRouteCommand,
|
|
34
|
+
CreateServiceCommand: CreateServiceCommand_1.CreateServiceCommand,
|
|
35
|
+
DeleteApplicationCommand: DeleteApplicationCommand_1.DeleteApplicationCommand,
|
|
36
|
+
DeleteEnvironmentCommand: DeleteEnvironmentCommand_1.DeleteEnvironmentCommand,
|
|
37
|
+
DeleteResourcePolicyCommand: DeleteResourcePolicyCommand_1.DeleteResourcePolicyCommand,
|
|
38
|
+
DeleteRouteCommand: DeleteRouteCommand_1.DeleteRouteCommand,
|
|
39
|
+
DeleteServiceCommand: DeleteServiceCommand_1.DeleteServiceCommand,
|
|
40
|
+
GetApplicationCommand: GetApplicationCommand_1.GetApplicationCommand,
|
|
41
|
+
GetEnvironmentCommand: GetEnvironmentCommand_1.GetEnvironmentCommand,
|
|
42
|
+
GetResourcePolicyCommand: GetResourcePolicyCommand_1.GetResourcePolicyCommand,
|
|
43
|
+
GetRouteCommand: GetRouteCommand_1.GetRouteCommand,
|
|
44
|
+
GetServiceCommand: GetServiceCommand_1.GetServiceCommand,
|
|
45
|
+
ListApplicationsCommand: ListApplicationsCommand_1.ListApplicationsCommand,
|
|
46
|
+
ListEnvironmentsCommand: ListEnvironmentsCommand_1.ListEnvironmentsCommand,
|
|
47
|
+
ListEnvironmentVpcsCommand: ListEnvironmentVpcsCommand_1.ListEnvironmentVpcsCommand,
|
|
48
|
+
ListRoutesCommand: ListRoutesCommand_1.ListRoutesCommand,
|
|
49
|
+
ListServicesCommand: ListServicesCommand_1.ListServicesCommand,
|
|
50
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
51
|
+
PutResourcePolicyCommand: PutResourcePolicyCommand_1.PutResourcePolicyCommand,
|
|
52
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
53
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
54
|
+
UpdateRouteCommand: UpdateRouteCommand_1.UpdateRouteCommand,
|
|
55
|
+
};
|
|
29
56
|
class MigrationHubRefactorSpaces extends MigrationHubRefactorSpacesClient_1.MigrationHubRefactorSpacesClient {
|
|
30
|
-
createApplication(args, optionsOrCb, cb) {
|
|
31
|
-
const command = new CreateApplicationCommand_1.CreateApplicationCommand(args);
|
|
32
|
-
if (typeof optionsOrCb === "function") {
|
|
33
|
-
this.send(command, optionsOrCb);
|
|
34
|
-
}
|
|
35
|
-
else if (typeof cb === "function") {
|
|
36
|
-
if (typeof optionsOrCb !== "object")
|
|
37
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
38
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
return this.send(command, optionsOrCb);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
createEnvironment(args, optionsOrCb, cb) {
|
|
45
|
-
const command = new CreateEnvironmentCommand_1.CreateEnvironmentCommand(args);
|
|
46
|
-
if (typeof optionsOrCb === "function") {
|
|
47
|
-
this.send(command, optionsOrCb);
|
|
48
|
-
}
|
|
49
|
-
else if (typeof cb === "function") {
|
|
50
|
-
if (typeof optionsOrCb !== "object")
|
|
51
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
52
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
return this.send(command, optionsOrCb);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
createRoute(args, optionsOrCb, cb) {
|
|
59
|
-
const command = new CreateRouteCommand_1.CreateRouteCommand(args);
|
|
60
|
-
if (typeof optionsOrCb === "function") {
|
|
61
|
-
this.send(command, optionsOrCb);
|
|
62
|
-
}
|
|
63
|
-
else if (typeof cb === "function") {
|
|
64
|
-
if (typeof optionsOrCb !== "object")
|
|
65
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
66
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
return this.send(command, optionsOrCb);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
createService(args, optionsOrCb, cb) {
|
|
73
|
-
const command = new CreateServiceCommand_1.CreateServiceCommand(args);
|
|
74
|
-
if (typeof optionsOrCb === "function") {
|
|
75
|
-
this.send(command, optionsOrCb);
|
|
76
|
-
}
|
|
77
|
-
else if (typeof cb === "function") {
|
|
78
|
-
if (typeof optionsOrCb !== "object")
|
|
79
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
80
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
return this.send(command, optionsOrCb);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
deleteApplication(args, optionsOrCb, cb) {
|
|
87
|
-
const command = new DeleteApplicationCommand_1.DeleteApplicationCommand(args);
|
|
88
|
-
if (typeof optionsOrCb === "function") {
|
|
89
|
-
this.send(command, optionsOrCb);
|
|
90
|
-
}
|
|
91
|
-
else if (typeof cb === "function") {
|
|
92
|
-
if (typeof optionsOrCb !== "object")
|
|
93
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
94
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
return this.send(command, optionsOrCb);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
deleteEnvironment(args, optionsOrCb, cb) {
|
|
101
|
-
const command = new DeleteEnvironmentCommand_1.DeleteEnvironmentCommand(args);
|
|
102
|
-
if (typeof optionsOrCb === "function") {
|
|
103
|
-
this.send(command, optionsOrCb);
|
|
104
|
-
}
|
|
105
|
-
else if (typeof cb === "function") {
|
|
106
|
-
if (typeof optionsOrCb !== "object")
|
|
107
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
108
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
return this.send(command, optionsOrCb);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
deleteResourcePolicy(args, optionsOrCb, cb) {
|
|
115
|
-
const command = new DeleteResourcePolicyCommand_1.DeleteResourcePolicyCommand(args);
|
|
116
|
-
if (typeof optionsOrCb === "function") {
|
|
117
|
-
this.send(command, optionsOrCb);
|
|
118
|
-
}
|
|
119
|
-
else if (typeof cb === "function") {
|
|
120
|
-
if (typeof optionsOrCb !== "object")
|
|
121
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
122
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
return this.send(command, optionsOrCb);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
deleteRoute(args, optionsOrCb, cb) {
|
|
129
|
-
const command = new DeleteRouteCommand_1.DeleteRouteCommand(args);
|
|
130
|
-
if (typeof optionsOrCb === "function") {
|
|
131
|
-
this.send(command, optionsOrCb);
|
|
132
|
-
}
|
|
133
|
-
else if (typeof cb === "function") {
|
|
134
|
-
if (typeof optionsOrCb !== "object")
|
|
135
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
136
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
return this.send(command, optionsOrCb);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
deleteService(args, optionsOrCb, cb) {
|
|
143
|
-
const command = new DeleteServiceCommand_1.DeleteServiceCommand(args);
|
|
144
|
-
if (typeof optionsOrCb === "function") {
|
|
145
|
-
this.send(command, optionsOrCb);
|
|
146
|
-
}
|
|
147
|
-
else if (typeof cb === "function") {
|
|
148
|
-
if (typeof optionsOrCb !== "object")
|
|
149
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
150
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
151
|
-
}
|
|
152
|
-
else {
|
|
153
|
-
return this.send(command, optionsOrCb);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
getApplication(args, optionsOrCb, cb) {
|
|
157
|
-
const command = new GetApplicationCommand_1.GetApplicationCommand(args);
|
|
158
|
-
if (typeof optionsOrCb === "function") {
|
|
159
|
-
this.send(command, optionsOrCb);
|
|
160
|
-
}
|
|
161
|
-
else if (typeof cb === "function") {
|
|
162
|
-
if (typeof optionsOrCb !== "object")
|
|
163
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
164
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
165
|
-
}
|
|
166
|
-
else {
|
|
167
|
-
return this.send(command, optionsOrCb);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
getEnvironment(args, optionsOrCb, cb) {
|
|
171
|
-
const command = new GetEnvironmentCommand_1.GetEnvironmentCommand(args);
|
|
172
|
-
if (typeof optionsOrCb === "function") {
|
|
173
|
-
this.send(command, optionsOrCb);
|
|
174
|
-
}
|
|
175
|
-
else if (typeof cb === "function") {
|
|
176
|
-
if (typeof optionsOrCb !== "object")
|
|
177
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
178
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
179
|
-
}
|
|
180
|
-
else {
|
|
181
|
-
return this.send(command, optionsOrCb);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
getResourcePolicy(args, optionsOrCb, cb) {
|
|
185
|
-
const command = new GetResourcePolicyCommand_1.GetResourcePolicyCommand(args);
|
|
186
|
-
if (typeof optionsOrCb === "function") {
|
|
187
|
-
this.send(command, optionsOrCb);
|
|
188
|
-
}
|
|
189
|
-
else if (typeof cb === "function") {
|
|
190
|
-
if (typeof optionsOrCb !== "object")
|
|
191
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
192
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
193
|
-
}
|
|
194
|
-
else {
|
|
195
|
-
return this.send(command, optionsOrCb);
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
getRoute(args, optionsOrCb, cb) {
|
|
199
|
-
const command = new GetRouteCommand_1.GetRouteCommand(args);
|
|
200
|
-
if (typeof optionsOrCb === "function") {
|
|
201
|
-
this.send(command, optionsOrCb);
|
|
202
|
-
}
|
|
203
|
-
else if (typeof cb === "function") {
|
|
204
|
-
if (typeof optionsOrCb !== "object")
|
|
205
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
206
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
207
|
-
}
|
|
208
|
-
else {
|
|
209
|
-
return this.send(command, optionsOrCb);
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
getService(args, optionsOrCb, cb) {
|
|
213
|
-
const command = new GetServiceCommand_1.GetServiceCommand(args);
|
|
214
|
-
if (typeof optionsOrCb === "function") {
|
|
215
|
-
this.send(command, optionsOrCb);
|
|
216
|
-
}
|
|
217
|
-
else if (typeof cb === "function") {
|
|
218
|
-
if (typeof optionsOrCb !== "object")
|
|
219
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
220
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
221
|
-
}
|
|
222
|
-
else {
|
|
223
|
-
return this.send(command, optionsOrCb);
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
listApplications(args, optionsOrCb, cb) {
|
|
227
|
-
const command = new ListApplicationsCommand_1.ListApplicationsCommand(args);
|
|
228
|
-
if (typeof optionsOrCb === "function") {
|
|
229
|
-
this.send(command, optionsOrCb);
|
|
230
|
-
}
|
|
231
|
-
else if (typeof cb === "function") {
|
|
232
|
-
if (typeof optionsOrCb !== "object")
|
|
233
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
234
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
235
|
-
}
|
|
236
|
-
else {
|
|
237
|
-
return this.send(command, optionsOrCb);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
listEnvironments(args, optionsOrCb, cb) {
|
|
241
|
-
const command = new ListEnvironmentsCommand_1.ListEnvironmentsCommand(args);
|
|
242
|
-
if (typeof optionsOrCb === "function") {
|
|
243
|
-
this.send(command, optionsOrCb);
|
|
244
|
-
}
|
|
245
|
-
else if (typeof cb === "function") {
|
|
246
|
-
if (typeof optionsOrCb !== "object")
|
|
247
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
248
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
249
|
-
}
|
|
250
|
-
else {
|
|
251
|
-
return this.send(command, optionsOrCb);
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
listEnvironmentVpcs(args, optionsOrCb, cb) {
|
|
255
|
-
const command = new ListEnvironmentVpcsCommand_1.ListEnvironmentVpcsCommand(args);
|
|
256
|
-
if (typeof optionsOrCb === "function") {
|
|
257
|
-
this.send(command, optionsOrCb);
|
|
258
|
-
}
|
|
259
|
-
else if (typeof cb === "function") {
|
|
260
|
-
if (typeof optionsOrCb !== "object")
|
|
261
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
262
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
263
|
-
}
|
|
264
|
-
else {
|
|
265
|
-
return this.send(command, optionsOrCb);
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
listRoutes(args, optionsOrCb, cb) {
|
|
269
|
-
const command = new ListRoutesCommand_1.ListRoutesCommand(args);
|
|
270
|
-
if (typeof optionsOrCb === "function") {
|
|
271
|
-
this.send(command, optionsOrCb);
|
|
272
|
-
}
|
|
273
|
-
else if (typeof cb === "function") {
|
|
274
|
-
if (typeof optionsOrCb !== "object")
|
|
275
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
276
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
277
|
-
}
|
|
278
|
-
else {
|
|
279
|
-
return this.send(command, optionsOrCb);
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
listServices(args, optionsOrCb, cb) {
|
|
283
|
-
const command = new ListServicesCommand_1.ListServicesCommand(args);
|
|
284
|
-
if (typeof optionsOrCb === "function") {
|
|
285
|
-
this.send(command, optionsOrCb);
|
|
286
|
-
}
|
|
287
|
-
else if (typeof cb === "function") {
|
|
288
|
-
if (typeof optionsOrCb !== "object")
|
|
289
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
290
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
291
|
-
}
|
|
292
|
-
else {
|
|
293
|
-
return this.send(command, optionsOrCb);
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
297
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
298
|
-
if (typeof optionsOrCb === "function") {
|
|
299
|
-
this.send(command, optionsOrCb);
|
|
300
|
-
}
|
|
301
|
-
else if (typeof cb === "function") {
|
|
302
|
-
if (typeof optionsOrCb !== "object")
|
|
303
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
304
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
305
|
-
}
|
|
306
|
-
else {
|
|
307
|
-
return this.send(command, optionsOrCb);
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
putResourcePolicy(args, optionsOrCb, cb) {
|
|
311
|
-
const command = new PutResourcePolicyCommand_1.PutResourcePolicyCommand(args);
|
|
312
|
-
if (typeof optionsOrCb === "function") {
|
|
313
|
-
this.send(command, optionsOrCb);
|
|
314
|
-
}
|
|
315
|
-
else if (typeof cb === "function") {
|
|
316
|
-
if (typeof optionsOrCb !== "object")
|
|
317
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
318
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
319
|
-
}
|
|
320
|
-
else {
|
|
321
|
-
return this.send(command, optionsOrCb);
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
tagResource(args, optionsOrCb, cb) {
|
|
325
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
326
|
-
if (typeof optionsOrCb === "function") {
|
|
327
|
-
this.send(command, optionsOrCb);
|
|
328
|
-
}
|
|
329
|
-
else if (typeof cb === "function") {
|
|
330
|
-
if (typeof optionsOrCb !== "object")
|
|
331
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
332
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
333
|
-
}
|
|
334
|
-
else {
|
|
335
|
-
return this.send(command, optionsOrCb);
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
untagResource(args, optionsOrCb, cb) {
|
|
339
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
340
|
-
if (typeof optionsOrCb === "function") {
|
|
341
|
-
this.send(command, optionsOrCb);
|
|
342
|
-
}
|
|
343
|
-
else if (typeof cb === "function") {
|
|
344
|
-
if (typeof optionsOrCb !== "object")
|
|
345
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
346
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
347
|
-
}
|
|
348
|
-
else {
|
|
349
|
-
return this.send(command, optionsOrCb);
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
updateRoute(args, optionsOrCb, cb) {
|
|
353
|
-
const command = new UpdateRouteCommand_1.UpdateRouteCommand(args);
|
|
354
|
-
if (typeof optionsOrCb === "function") {
|
|
355
|
-
this.send(command, optionsOrCb);
|
|
356
|
-
}
|
|
357
|
-
else if (typeof cb === "function") {
|
|
358
|
-
if (typeof optionsOrCb !== "object")
|
|
359
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
360
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
361
|
-
}
|
|
362
|
-
else {
|
|
363
|
-
return this.send(command, optionsOrCb);
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
57
|
}
|
|
367
58
|
exports.MigrationHubRefactorSpaces = MigrationHubRefactorSpaces;
|
|
59
|
+
(0, smithy_client_1.createAggregatedClient)(commands, MigrationHubRefactorSpaces);
|
|
@@ -17,7 +17,7 @@ const se_CreateApplicationCommand = async (input, context) => {
|
|
|
17
17
|
let body;
|
|
18
18
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
19
19
|
ApiGatewayProxy: (_) => (0, smithy_client_1._json)(_),
|
|
20
|
-
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
20
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
21
21
|
Name: [],
|
|
22
22
|
ProxyType: [],
|
|
23
23
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -42,7 +42,7 @@ const se_CreateEnvironmentCommand = async (input, context) => {
|
|
|
42
42
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments";
|
|
43
43
|
let body;
|
|
44
44
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
45
|
-
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
45
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
46
46
|
Description: [],
|
|
47
47
|
Name: [],
|
|
48
48
|
NetworkFabricType: [],
|
|
@@ -70,7 +70,7 @@ const se_CreateRouteCommand = async (input, context) => {
|
|
|
70
70
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
71
71
|
let body;
|
|
72
72
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
73
|
-
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
73
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
74
74
|
DefaultRoute: (_) => (0, smithy_client_1._json)(_),
|
|
75
75
|
RouteType: [],
|
|
76
76
|
ServiceIdentifier: [],
|
|
@@ -99,7 +99,7 @@ const se_CreateServiceCommand = async (input, context) => {
|
|
|
99
99
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
100
100
|
let body;
|
|
101
101
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
102
|
-
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
102
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
103
103
|
Description: [],
|
|
104
104
|
EndpointType: [],
|
|
105
105
|
LambdaEndpoint: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { CreateApplicationCommand, } from "./commands/CreateApplicationCommand";
|
|
2
3
|
import { CreateEnvironmentCommand, } from "./commands/CreateEnvironmentCommand";
|
|
3
4
|
import { CreateRouteCommand } from "./commands/CreateRouteCommand";
|
|
@@ -22,342 +23,33 @@ import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
|
|
|
22
23
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
23
24
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
24
25
|
import { UpdateRouteCommand } from "./commands/UpdateRouteCommand";
|
|
25
|
-
import { MigrationHubRefactorSpacesClient } from "./MigrationHubRefactorSpacesClient";
|
|
26
|
+
import { MigrationHubRefactorSpacesClient, } from "./MigrationHubRefactorSpacesClient";
|
|
27
|
+
const commands = {
|
|
28
|
+
CreateApplicationCommand,
|
|
29
|
+
CreateEnvironmentCommand,
|
|
30
|
+
CreateRouteCommand,
|
|
31
|
+
CreateServiceCommand,
|
|
32
|
+
DeleteApplicationCommand,
|
|
33
|
+
DeleteEnvironmentCommand,
|
|
34
|
+
DeleteResourcePolicyCommand,
|
|
35
|
+
DeleteRouteCommand,
|
|
36
|
+
DeleteServiceCommand,
|
|
37
|
+
GetApplicationCommand,
|
|
38
|
+
GetEnvironmentCommand,
|
|
39
|
+
GetResourcePolicyCommand,
|
|
40
|
+
GetRouteCommand,
|
|
41
|
+
GetServiceCommand,
|
|
42
|
+
ListApplicationsCommand,
|
|
43
|
+
ListEnvironmentsCommand,
|
|
44
|
+
ListEnvironmentVpcsCommand,
|
|
45
|
+
ListRoutesCommand,
|
|
46
|
+
ListServicesCommand,
|
|
47
|
+
ListTagsForResourceCommand,
|
|
48
|
+
PutResourcePolicyCommand,
|
|
49
|
+
TagResourceCommand,
|
|
50
|
+
UntagResourceCommand,
|
|
51
|
+
UpdateRouteCommand,
|
|
52
|
+
};
|
|
26
53
|
export class MigrationHubRefactorSpaces extends MigrationHubRefactorSpacesClient {
|
|
27
|
-
createApplication(args, optionsOrCb, cb) {
|
|
28
|
-
const command = new CreateApplicationCommand(args);
|
|
29
|
-
if (typeof optionsOrCb === "function") {
|
|
30
|
-
this.send(command, optionsOrCb);
|
|
31
|
-
}
|
|
32
|
-
else if (typeof cb === "function") {
|
|
33
|
-
if (typeof optionsOrCb !== "object")
|
|
34
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
35
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
return this.send(command, optionsOrCb);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
createEnvironment(args, optionsOrCb, cb) {
|
|
42
|
-
const command = new CreateEnvironmentCommand(args);
|
|
43
|
-
if (typeof optionsOrCb === "function") {
|
|
44
|
-
this.send(command, optionsOrCb);
|
|
45
|
-
}
|
|
46
|
-
else if (typeof cb === "function") {
|
|
47
|
-
if (typeof optionsOrCb !== "object")
|
|
48
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
49
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
return this.send(command, optionsOrCb);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
createRoute(args, optionsOrCb, cb) {
|
|
56
|
-
const command = new CreateRouteCommand(args);
|
|
57
|
-
if (typeof optionsOrCb === "function") {
|
|
58
|
-
this.send(command, optionsOrCb);
|
|
59
|
-
}
|
|
60
|
-
else if (typeof cb === "function") {
|
|
61
|
-
if (typeof optionsOrCb !== "object")
|
|
62
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
63
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
return this.send(command, optionsOrCb);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
createService(args, optionsOrCb, cb) {
|
|
70
|
-
const command = new CreateServiceCommand(args);
|
|
71
|
-
if (typeof optionsOrCb === "function") {
|
|
72
|
-
this.send(command, optionsOrCb);
|
|
73
|
-
}
|
|
74
|
-
else if (typeof cb === "function") {
|
|
75
|
-
if (typeof optionsOrCb !== "object")
|
|
76
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
77
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
return this.send(command, optionsOrCb);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
deleteApplication(args, optionsOrCb, cb) {
|
|
84
|
-
const command = new DeleteApplicationCommand(args);
|
|
85
|
-
if (typeof optionsOrCb === "function") {
|
|
86
|
-
this.send(command, optionsOrCb);
|
|
87
|
-
}
|
|
88
|
-
else if (typeof cb === "function") {
|
|
89
|
-
if (typeof optionsOrCb !== "object")
|
|
90
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
91
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
return this.send(command, optionsOrCb);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
deleteEnvironment(args, optionsOrCb, cb) {
|
|
98
|
-
const command = new DeleteEnvironmentCommand(args);
|
|
99
|
-
if (typeof optionsOrCb === "function") {
|
|
100
|
-
this.send(command, optionsOrCb);
|
|
101
|
-
}
|
|
102
|
-
else if (typeof cb === "function") {
|
|
103
|
-
if (typeof optionsOrCb !== "object")
|
|
104
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
105
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
106
|
-
}
|
|
107
|
-
else {
|
|
108
|
-
return this.send(command, optionsOrCb);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
deleteResourcePolicy(args, optionsOrCb, cb) {
|
|
112
|
-
const command = new DeleteResourcePolicyCommand(args);
|
|
113
|
-
if (typeof optionsOrCb === "function") {
|
|
114
|
-
this.send(command, optionsOrCb);
|
|
115
|
-
}
|
|
116
|
-
else if (typeof cb === "function") {
|
|
117
|
-
if (typeof optionsOrCb !== "object")
|
|
118
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
119
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
return this.send(command, optionsOrCb);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
deleteRoute(args, optionsOrCb, cb) {
|
|
126
|
-
const command = new DeleteRouteCommand(args);
|
|
127
|
-
if (typeof optionsOrCb === "function") {
|
|
128
|
-
this.send(command, optionsOrCb);
|
|
129
|
-
}
|
|
130
|
-
else if (typeof cb === "function") {
|
|
131
|
-
if (typeof optionsOrCb !== "object")
|
|
132
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
133
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
return this.send(command, optionsOrCb);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
deleteService(args, optionsOrCb, cb) {
|
|
140
|
-
const command = new DeleteServiceCommand(args);
|
|
141
|
-
if (typeof optionsOrCb === "function") {
|
|
142
|
-
this.send(command, optionsOrCb);
|
|
143
|
-
}
|
|
144
|
-
else if (typeof cb === "function") {
|
|
145
|
-
if (typeof optionsOrCb !== "object")
|
|
146
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
147
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
148
|
-
}
|
|
149
|
-
else {
|
|
150
|
-
return this.send(command, optionsOrCb);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
getApplication(args, optionsOrCb, cb) {
|
|
154
|
-
const command = new GetApplicationCommand(args);
|
|
155
|
-
if (typeof optionsOrCb === "function") {
|
|
156
|
-
this.send(command, optionsOrCb);
|
|
157
|
-
}
|
|
158
|
-
else if (typeof cb === "function") {
|
|
159
|
-
if (typeof optionsOrCb !== "object")
|
|
160
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
161
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
162
|
-
}
|
|
163
|
-
else {
|
|
164
|
-
return this.send(command, optionsOrCb);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
getEnvironment(args, optionsOrCb, cb) {
|
|
168
|
-
const command = new GetEnvironmentCommand(args);
|
|
169
|
-
if (typeof optionsOrCb === "function") {
|
|
170
|
-
this.send(command, optionsOrCb);
|
|
171
|
-
}
|
|
172
|
-
else if (typeof cb === "function") {
|
|
173
|
-
if (typeof optionsOrCb !== "object")
|
|
174
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
175
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
176
|
-
}
|
|
177
|
-
else {
|
|
178
|
-
return this.send(command, optionsOrCb);
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
getResourcePolicy(args, optionsOrCb, cb) {
|
|
182
|
-
const command = new GetResourcePolicyCommand(args);
|
|
183
|
-
if (typeof optionsOrCb === "function") {
|
|
184
|
-
this.send(command, optionsOrCb);
|
|
185
|
-
}
|
|
186
|
-
else if (typeof cb === "function") {
|
|
187
|
-
if (typeof optionsOrCb !== "object")
|
|
188
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
189
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
190
|
-
}
|
|
191
|
-
else {
|
|
192
|
-
return this.send(command, optionsOrCb);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
getRoute(args, optionsOrCb, cb) {
|
|
196
|
-
const command = new GetRouteCommand(args);
|
|
197
|
-
if (typeof optionsOrCb === "function") {
|
|
198
|
-
this.send(command, optionsOrCb);
|
|
199
|
-
}
|
|
200
|
-
else if (typeof cb === "function") {
|
|
201
|
-
if (typeof optionsOrCb !== "object")
|
|
202
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
203
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
204
|
-
}
|
|
205
|
-
else {
|
|
206
|
-
return this.send(command, optionsOrCb);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
getService(args, optionsOrCb, cb) {
|
|
210
|
-
const command = new GetServiceCommand(args);
|
|
211
|
-
if (typeof optionsOrCb === "function") {
|
|
212
|
-
this.send(command, optionsOrCb);
|
|
213
|
-
}
|
|
214
|
-
else if (typeof cb === "function") {
|
|
215
|
-
if (typeof optionsOrCb !== "object")
|
|
216
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
217
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
218
|
-
}
|
|
219
|
-
else {
|
|
220
|
-
return this.send(command, optionsOrCb);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
listApplications(args, optionsOrCb, cb) {
|
|
224
|
-
const command = new ListApplicationsCommand(args);
|
|
225
|
-
if (typeof optionsOrCb === "function") {
|
|
226
|
-
this.send(command, optionsOrCb);
|
|
227
|
-
}
|
|
228
|
-
else if (typeof cb === "function") {
|
|
229
|
-
if (typeof optionsOrCb !== "object")
|
|
230
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
231
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
232
|
-
}
|
|
233
|
-
else {
|
|
234
|
-
return this.send(command, optionsOrCb);
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
listEnvironments(args, optionsOrCb, cb) {
|
|
238
|
-
const command = new ListEnvironmentsCommand(args);
|
|
239
|
-
if (typeof optionsOrCb === "function") {
|
|
240
|
-
this.send(command, optionsOrCb);
|
|
241
|
-
}
|
|
242
|
-
else if (typeof cb === "function") {
|
|
243
|
-
if (typeof optionsOrCb !== "object")
|
|
244
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
245
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
246
|
-
}
|
|
247
|
-
else {
|
|
248
|
-
return this.send(command, optionsOrCb);
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
listEnvironmentVpcs(args, optionsOrCb, cb) {
|
|
252
|
-
const command = new ListEnvironmentVpcsCommand(args);
|
|
253
|
-
if (typeof optionsOrCb === "function") {
|
|
254
|
-
this.send(command, optionsOrCb);
|
|
255
|
-
}
|
|
256
|
-
else if (typeof cb === "function") {
|
|
257
|
-
if (typeof optionsOrCb !== "object")
|
|
258
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
259
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
260
|
-
}
|
|
261
|
-
else {
|
|
262
|
-
return this.send(command, optionsOrCb);
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
listRoutes(args, optionsOrCb, cb) {
|
|
266
|
-
const command = new ListRoutesCommand(args);
|
|
267
|
-
if (typeof optionsOrCb === "function") {
|
|
268
|
-
this.send(command, optionsOrCb);
|
|
269
|
-
}
|
|
270
|
-
else if (typeof cb === "function") {
|
|
271
|
-
if (typeof optionsOrCb !== "object")
|
|
272
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
273
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
274
|
-
}
|
|
275
|
-
else {
|
|
276
|
-
return this.send(command, optionsOrCb);
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
listServices(args, optionsOrCb, cb) {
|
|
280
|
-
const command = new ListServicesCommand(args);
|
|
281
|
-
if (typeof optionsOrCb === "function") {
|
|
282
|
-
this.send(command, optionsOrCb);
|
|
283
|
-
}
|
|
284
|
-
else if (typeof cb === "function") {
|
|
285
|
-
if (typeof optionsOrCb !== "object")
|
|
286
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
287
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
288
|
-
}
|
|
289
|
-
else {
|
|
290
|
-
return this.send(command, optionsOrCb);
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
294
|
-
const command = new ListTagsForResourceCommand(args);
|
|
295
|
-
if (typeof optionsOrCb === "function") {
|
|
296
|
-
this.send(command, optionsOrCb);
|
|
297
|
-
}
|
|
298
|
-
else if (typeof cb === "function") {
|
|
299
|
-
if (typeof optionsOrCb !== "object")
|
|
300
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
301
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
302
|
-
}
|
|
303
|
-
else {
|
|
304
|
-
return this.send(command, optionsOrCb);
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
putResourcePolicy(args, optionsOrCb, cb) {
|
|
308
|
-
const command = new PutResourcePolicyCommand(args);
|
|
309
|
-
if (typeof optionsOrCb === "function") {
|
|
310
|
-
this.send(command, optionsOrCb);
|
|
311
|
-
}
|
|
312
|
-
else if (typeof cb === "function") {
|
|
313
|
-
if (typeof optionsOrCb !== "object")
|
|
314
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
315
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
316
|
-
}
|
|
317
|
-
else {
|
|
318
|
-
return this.send(command, optionsOrCb);
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
tagResource(args, optionsOrCb, cb) {
|
|
322
|
-
const command = new TagResourceCommand(args);
|
|
323
|
-
if (typeof optionsOrCb === "function") {
|
|
324
|
-
this.send(command, optionsOrCb);
|
|
325
|
-
}
|
|
326
|
-
else if (typeof cb === "function") {
|
|
327
|
-
if (typeof optionsOrCb !== "object")
|
|
328
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
329
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
330
|
-
}
|
|
331
|
-
else {
|
|
332
|
-
return this.send(command, optionsOrCb);
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
untagResource(args, optionsOrCb, cb) {
|
|
336
|
-
const command = new UntagResourceCommand(args);
|
|
337
|
-
if (typeof optionsOrCb === "function") {
|
|
338
|
-
this.send(command, optionsOrCb);
|
|
339
|
-
}
|
|
340
|
-
else if (typeof cb === "function") {
|
|
341
|
-
if (typeof optionsOrCb !== "object")
|
|
342
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
343
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
344
|
-
}
|
|
345
|
-
else {
|
|
346
|
-
return this.send(command, optionsOrCb);
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
updateRoute(args, optionsOrCb, cb) {
|
|
350
|
-
const command = new UpdateRouteCommand(args);
|
|
351
|
-
if (typeof optionsOrCb === "function") {
|
|
352
|
-
this.send(command, optionsOrCb);
|
|
353
|
-
}
|
|
354
|
-
else if (typeof cb === "function") {
|
|
355
|
-
if (typeof optionsOrCb !== "object")
|
|
356
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
357
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
358
|
-
}
|
|
359
|
-
else {
|
|
360
|
-
return this.send(command, optionsOrCb);
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
54
|
}
|
|
55
|
+
createAggregatedClient(commands, MigrationHubRefactorSpaces);
|
|
@@ -14,7 +14,7 @@ export const se_CreateApplicationCommand = async (input, context) => {
|
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify(take(input, {
|
|
16
16
|
ApiGatewayProxy: (_) => _json(_),
|
|
17
|
-
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
17
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
18
18
|
Name: [],
|
|
19
19
|
ProxyType: [],
|
|
20
20
|
Tags: (_) => _json(_),
|
|
@@ -38,7 +38,7 @@ export const se_CreateEnvironmentCommand = async (input, context) => {
|
|
|
38
38
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments";
|
|
39
39
|
let body;
|
|
40
40
|
body = JSON.stringify(take(input, {
|
|
41
|
-
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
41
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
42
42
|
Description: [],
|
|
43
43
|
Name: [],
|
|
44
44
|
NetworkFabricType: [],
|
|
@@ -65,7 +65,7 @@ export const se_CreateRouteCommand = async (input, context) => {
|
|
|
65
65
|
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
66
66
|
let body;
|
|
67
67
|
body = JSON.stringify(take(input, {
|
|
68
|
-
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
68
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
69
69
|
DefaultRoute: (_) => _json(_),
|
|
70
70
|
RouteType: [],
|
|
71
71
|
ServiceIdentifier: [],
|
|
@@ -93,7 +93,7 @@ export const se_CreateServiceCommand = async (input, context) => {
|
|
|
93
93
|
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
94
94
|
let body;
|
|
95
95
|
body = JSON.stringify(take(input, {
|
|
96
|
-
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
96
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
97
97
|
Description: [],
|
|
98
98
|
EndpointType: [],
|
|
99
99
|
LambdaEndpoint: (_) => _json(_),
|
|
@@ -24,298 +24,162 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
|
|
|
24
24
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
25
25
|
import { UpdateRouteCommandInput, UpdateRouteCommandOutput } from "./commands/UpdateRouteCommand";
|
|
26
26
|
import { MigrationHubRefactorSpacesClient } from "./MigrationHubRefactorSpacesClient";
|
|
27
|
-
|
|
28
|
-
* @public
|
|
29
|
-
* <fullname>Amazon Web Services Migration Hub Refactor Spaces</fullname>
|
|
30
|
-
* <p>This API reference provides descriptions, syntax, and other details about each of the
|
|
31
|
-
* actions and data types for Amazon Web Services Migration Hub Refactor Spaces (Refactor Spaces). The topic for each action shows the API
|
|
32
|
-
* request parameters and the response. Alternatively, you can use one of the Amazon Web Services SDKs to
|
|
33
|
-
* access an API that is tailored to the programming language or platform that you're using. For
|
|
34
|
-
* more information, see <a href="https://aws.amazon.com/tools/#SDKs">Amazon Web Services SDKs</a>.</p>
|
|
35
|
-
* <p>To share Refactor Spaces environments with other Amazon Web Services accounts or with Organizations
|
|
36
|
-
* and their OUs, use Resource Access Manager's <code>CreateResourceShare</code> API. See <a href="https://docs.aws.amazon.com/ram/latest/APIReference/API_CreateResourceShare.html">CreateResourceShare</a> in the <i>Amazon Web Services RAM API Reference</i>.</p>
|
|
37
|
-
*/
|
|
38
|
-
export declare class MigrationHubRefactorSpaces extends MigrationHubRefactorSpacesClient {
|
|
27
|
+
export interface MigrationHubRefactorSpaces {
|
|
39
28
|
/**
|
|
40
|
-
* @
|
|
41
|
-
* <p>Creates an Amazon Web Services Migration Hub Refactor Spaces application. The account that owns the environment also owns the
|
|
42
|
-
* applications created inside the environment, regardless of the account that creates the
|
|
43
|
-
* application. Refactor Spaces provisions an Amazon API Gateway, API Gateway VPC link, and
|
|
44
|
-
* Network Load Balancer for the application proxy inside your account.</p>
|
|
45
|
-
* <p>In environments created with a <a href="https://docs.aws.amazon.com/migrationhub-refactor-spaces/latest/APIReference/API_CreateEnvironment.html#migrationhubrefactorspaces-CreateEnvironment-request-NetworkFabricType">CreateEnvironment:NetworkFabricType</a> of <code>NONE</code> you need to configure
|
|
46
|
-
* <a href="https://docs.aws.amazon.com/whitepapers/latest/aws-vpc-connectivity-options/amazon-vpc-to-amazon-vpc-connectivity-options.html"> VPC to VPC connectivity</a> between your service VPC and the application proxy VPC to
|
|
47
|
-
* route traffic through the application proxy to a service with a private URL endpoint. For more
|
|
48
|
-
* information, see <a href="https://docs.aws.amazon.com/migrationhub-refactor-spaces/latest/userguide/getting-started-create-application.html">
|
|
49
|
-
* Create an application</a> in the <i>Refactor Spaces User Guide</i>. </p>
|
|
29
|
+
* @see {@link CreateApplicationCommand}
|
|
50
30
|
*/
|
|
51
31
|
createApplication(args: CreateApplicationCommandInput, options?: __HttpHandlerOptions): Promise<CreateApplicationCommandOutput>;
|
|
52
32
|
createApplication(args: CreateApplicationCommandInput, cb: (err: any, data?: CreateApplicationCommandOutput) => void): void;
|
|
53
33
|
createApplication(args: CreateApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateApplicationCommandOutput) => void): void;
|
|
54
34
|
/**
|
|
55
|
-
* @
|
|
56
|
-
* <p>Creates an Amazon Web Services Migration Hub Refactor Spaces environment. The caller owns the environment resource, and all
|
|
57
|
-
* Refactor Spaces applications, services, and routes created within the environment. They are referred
|
|
58
|
-
* to as the <i>environment owner</i>. The environment owner has cross-account
|
|
59
|
-
* visibility and control of Refactor Spaces resources that are added to the environment by other
|
|
60
|
-
* accounts that the environment is shared with.</p>
|
|
61
|
-
* <p>When creating an environment with a <a href="https://docs.aws.amazon.com/migrationhub-refactor-spaces/latest/APIReference/API_CreateEnvironment.html#migrationhubrefactorspaces-CreateEnvironment-request-NetworkFabricType">CreateEnvironment:NetworkFabricType</a> of <code>TRANSIT_GATEWAY</code>, Refactor Spaces
|
|
62
|
-
* provisions a transit gateway to enable services in VPCs to communicate directly across
|
|
63
|
-
* accounts. If <a href="https://docs.aws.amazon.com/migrationhub-refactor-spaces/latest/APIReference/API_CreateEnvironment.html#migrationhubrefactorspaces-CreateEnvironment-request-NetworkFabricType">CreateEnvironment:NetworkFabricType</a> is <code>NONE</code>, Refactor Spaces does not create
|
|
64
|
-
* a transit gateway and you must use your network infrastructure to route traffic to services
|
|
65
|
-
* with private URL endpoints.</p>
|
|
35
|
+
* @see {@link CreateEnvironmentCommand}
|
|
66
36
|
*/
|
|
67
37
|
createEnvironment(args: CreateEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<CreateEnvironmentCommandOutput>;
|
|
68
38
|
createEnvironment(args: CreateEnvironmentCommandInput, cb: (err: any, data?: CreateEnvironmentCommandOutput) => void): void;
|
|
69
39
|
createEnvironment(args: CreateEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateEnvironmentCommandOutput) => void): void;
|
|
70
40
|
/**
|
|
71
|
-
* @
|
|
72
|
-
* <p>Creates an Amazon Web Services Migration Hub Refactor Spaces route. The account owner of the service resource is always the
|
|
73
|
-
* environment owner, regardless of which account creates the route. Routes target a service in
|
|
74
|
-
* the application. If an application does not have any routes, then the first route must be
|
|
75
|
-
* created as a <code>DEFAULT</code>
|
|
76
|
-
* <code>RouteType</code>.</p>
|
|
77
|
-
* <p>When created, the default route defaults to an active state so state is not a required
|
|
78
|
-
* input. However, like all other state values the state of the default route can be updated
|
|
79
|
-
* after creation, but only when all other routes are also inactive. Conversely, no route can be
|
|
80
|
-
* active without the default route also being active.</p>
|
|
81
|
-
* <p>When you create a route, Refactor Spaces configures the Amazon API Gateway to send traffic
|
|
82
|
-
* to the target service as follows:</p>
|
|
83
|
-
* <ul>
|
|
84
|
-
* <li>
|
|
85
|
-
* <p>
|
|
86
|
-
* <b>URL Endpoints</b>
|
|
87
|
-
* </p>
|
|
88
|
-
* <p>If the service has a URL endpoint, and the endpoint resolves to a private IP address,
|
|
89
|
-
* Refactor Spaces routes traffic using the API Gateway VPC link. If a service endpoint
|
|
90
|
-
* resolves to a public IP address, Refactor Spaces routes traffic over the public internet.
|
|
91
|
-
* Services can have HTTP or HTTPS URL endpoints. For HTTPS URLs, publicly-signed
|
|
92
|
-
* certificates are supported. Private Certificate Authorities (CAs) are permitted only if
|
|
93
|
-
* the CA's domain is also publicly resolvable. </p>
|
|
94
|
-
* <p>Refactor Spaces automatically resolves the public Domain Name System (DNS) names that are
|
|
95
|
-
* set in <code>CreateService:UrlEndpoint </code>when you create a service. The DNS names
|
|
96
|
-
* resolve when the DNS time-to-live (TTL) expires, or every 60 seconds for TTLs less than 60
|
|
97
|
-
* seconds. This periodic DNS resolution ensures that the route configuration remains
|
|
98
|
-
* up-to-date. </p>
|
|
99
|
-
* <p/>
|
|
100
|
-
* <p>
|
|
101
|
-
* <b>One-time health check</b>
|
|
102
|
-
* </p>
|
|
103
|
-
* <p>A one-time health check is performed on the service when either the route is updated
|
|
104
|
-
* from inactive to active, or when it is created with an active state. If the health check
|
|
105
|
-
* fails, the route transitions the route state to <code>FAILED</code>, an error code of
|
|
106
|
-
* <code>SERVICE_ENDPOINT_HEALTH_CHECK_FAILURE</code> is provided, and no traffic is sent
|
|
107
|
-
* to the service.</p>
|
|
108
|
-
* <p>For private URLs, a target group is created on the Network Load Balancer and the load
|
|
109
|
-
* balancer target group runs default target health checks. By default, the health check is
|
|
110
|
-
* run against the service endpoint URL. Optionally, the health check can be performed
|
|
111
|
-
* against a different protocol, port, and/or path using the <a href="https://docs.aws.amazon.com/migrationhub-refactor-spaces/latest/APIReference/API_CreateService.html#migrationhubrefactorspaces-CreateService-request-UrlEndpoint">CreateService:UrlEndpoint</a> parameter. All other health check settings for the
|
|
112
|
-
* load balancer use the default values described in the <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/application/target-group-health-checks.html">Health
|
|
113
|
-
* checks for your target groups</a> in the <i>Elastic Load Balancing
|
|
114
|
-
* guide</i>. The health check is considered successful if at least one target
|
|
115
|
-
* within the target group transitions to a healthy state.</p>
|
|
116
|
-
* <p/>
|
|
117
|
-
* </li>
|
|
118
|
-
* <li>
|
|
119
|
-
* <p>
|
|
120
|
-
* <b>Lambda function endpoints</b>
|
|
121
|
-
* </p>
|
|
122
|
-
* <p>If the service has an Lambda function endpoint, then Refactor Spaces
|
|
123
|
-
* configures the Lambda function's resource policy to allow the application's
|
|
124
|
-
* API Gateway to invoke the function.</p>
|
|
125
|
-
* <p>The Lambda function state is checked. If the function is not active, the
|
|
126
|
-
* function configuration is updated so that Lambda resources are provisioned. If
|
|
127
|
-
* the Lambda state is <code>Failed</code>, then the route creation fails. For
|
|
128
|
-
* more information, see the <a href="https://docs.aws.amazon.com/lambda/latest/dg/API_GetFunctionConfiguration.html#SSS-GetFunctionConfiguration-response-State">GetFunctionConfiguration's State response parameter</a> in the <i>Lambda Developer Guide</i>.</p>
|
|
129
|
-
* <p>A check is performed to determine that a Lambda function with the specified ARN
|
|
130
|
-
* exists. If it does not exist, the health check fails. For public URLs, a connection is
|
|
131
|
-
* opened to the public endpoint. If the URL is not reachable, the health check fails.
|
|
132
|
-
* </p>
|
|
133
|
-
* </li>
|
|
134
|
-
* </ul>
|
|
135
|
-
* <p>
|
|
136
|
-
* <b>Environments without a network bridge</b>
|
|
137
|
-
* </p>
|
|
138
|
-
* <p>When you create environments without a network bridge (<a href="https://docs.aws.amazon.com/migrationhub-refactor-spaces/latest/APIReference/API_CreateEnvironment.html#migrationhubrefactorspaces-CreateEnvironment-request-NetworkFabricType">CreateEnvironment:NetworkFabricType</a> is <code>NONE)</code> and you use your own
|
|
139
|
-
* networking infrastructure, you need to configure <a href="https://docs.aws.amazon.com/whitepapers/latest/aws-vpc-connectivity-options/amazon-vpc-to-amazon-vpc-connectivity-options.html">VPC to VPC connectivity</a> between your network and the application proxy VPC. Route
|
|
140
|
-
* creation from the application proxy to service endpoints will fail if your network is not
|
|
141
|
-
* configured to connect to the application proxy VPC. For more information, see <a href="https://docs.aws.amazon.com/migrationhub-refactor-spaces/latest/userguide/getting-started-create-role.html"> Create
|
|
142
|
-
* a route</a> in the <i>Refactor Spaces User Guide</i>.</p>
|
|
143
|
-
* <p/>
|
|
41
|
+
* @see {@link CreateRouteCommand}
|
|
144
42
|
*/
|
|
145
43
|
createRoute(args: CreateRouteCommandInput, options?: __HttpHandlerOptions): Promise<CreateRouteCommandOutput>;
|
|
146
44
|
createRoute(args: CreateRouteCommandInput, cb: (err: any, data?: CreateRouteCommandOutput) => void): void;
|
|
147
45
|
createRoute(args: CreateRouteCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateRouteCommandOutput) => void): void;
|
|
148
46
|
/**
|
|
149
|
-
* @
|
|
150
|
-
* <p>Creates an Amazon Web Services Migration Hub Refactor Spaces service. The account owner of the service is always the
|
|
151
|
-
* environment owner, regardless of which account in the environment creates the service.
|
|
152
|
-
* Services have either a URL endpoint in a virtual private cloud (VPC), or a Lambda
|
|
153
|
-
* function endpoint.</p>
|
|
154
|
-
* <important>
|
|
155
|
-
* <p>If an Amazon Web Services resource is launched in a service VPC, and you want it to be
|
|
156
|
-
* accessible to all of an environment’s services with VPCs and routes, apply the
|
|
157
|
-
* <code>RefactorSpacesSecurityGroup</code> to the resource. Alternatively, to add more
|
|
158
|
-
* cross-account constraints, apply your own security group.</p>
|
|
159
|
-
* </important>
|
|
47
|
+
* @see {@link CreateServiceCommand}
|
|
160
48
|
*/
|
|
161
49
|
createService(args: CreateServiceCommandInput, options?: __HttpHandlerOptions): Promise<CreateServiceCommandOutput>;
|
|
162
50
|
createService(args: CreateServiceCommandInput, cb: (err: any, data?: CreateServiceCommandOutput) => void): void;
|
|
163
51
|
createService(args: CreateServiceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateServiceCommandOutput) => void): void;
|
|
164
52
|
/**
|
|
165
|
-
* @
|
|
166
|
-
* <p>Deletes an Amazon Web Services Migration Hub Refactor Spaces application. Before you can delete an application, you must first
|
|
167
|
-
* delete any services or routes within the application.</p>
|
|
53
|
+
* @see {@link DeleteApplicationCommand}
|
|
168
54
|
*/
|
|
169
55
|
deleteApplication(args: DeleteApplicationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteApplicationCommandOutput>;
|
|
170
56
|
deleteApplication(args: DeleteApplicationCommandInput, cb: (err: any, data?: DeleteApplicationCommandOutput) => void): void;
|
|
171
57
|
deleteApplication(args: DeleteApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteApplicationCommandOutput) => void): void;
|
|
172
58
|
/**
|
|
173
|
-
* @
|
|
174
|
-
* <p>Deletes an Amazon Web Services Migration Hub Refactor Spaces environment. Before you can delete an environment, you must first
|
|
175
|
-
* delete any applications and services within the environment.</p>
|
|
59
|
+
* @see {@link DeleteEnvironmentCommand}
|
|
176
60
|
*/
|
|
177
61
|
deleteEnvironment(args: DeleteEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<DeleteEnvironmentCommandOutput>;
|
|
178
62
|
deleteEnvironment(args: DeleteEnvironmentCommandInput, cb: (err: any, data?: DeleteEnvironmentCommandOutput) => void): void;
|
|
179
63
|
deleteEnvironment(args: DeleteEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteEnvironmentCommandOutput) => void): void;
|
|
180
64
|
/**
|
|
181
|
-
* @
|
|
182
|
-
* <p>Deletes the resource policy set for the environment. </p>
|
|
65
|
+
* @see {@link DeleteResourcePolicyCommand}
|
|
183
66
|
*/
|
|
184
67
|
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteResourcePolicyCommandOutput>;
|
|
185
68
|
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
|
|
186
69
|
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
|
|
187
70
|
/**
|
|
188
|
-
* @
|
|
189
|
-
* <p>Deletes an Amazon Web Services Migration Hub Refactor Spaces route.</p>
|
|
71
|
+
* @see {@link DeleteRouteCommand}
|
|
190
72
|
*/
|
|
191
73
|
deleteRoute(args: DeleteRouteCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRouteCommandOutput>;
|
|
192
74
|
deleteRoute(args: DeleteRouteCommandInput, cb: (err: any, data?: DeleteRouteCommandOutput) => void): void;
|
|
193
75
|
deleteRoute(args: DeleteRouteCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRouteCommandOutput) => void): void;
|
|
194
76
|
/**
|
|
195
|
-
* @
|
|
196
|
-
* <p>Deletes an Amazon Web Services Migration Hub Refactor Spaces service. </p>
|
|
77
|
+
* @see {@link DeleteServiceCommand}
|
|
197
78
|
*/
|
|
198
79
|
deleteService(args: DeleteServiceCommandInput, options?: __HttpHandlerOptions): Promise<DeleteServiceCommandOutput>;
|
|
199
80
|
deleteService(args: DeleteServiceCommandInput, cb: (err: any, data?: DeleteServiceCommandOutput) => void): void;
|
|
200
81
|
deleteService(args: DeleteServiceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteServiceCommandOutput) => void): void;
|
|
201
82
|
/**
|
|
202
|
-
* @
|
|
203
|
-
* <p>Gets an Amazon Web Services Migration Hub Refactor Spaces application.</p>
|
|
83
|
+
* @see {@link GetApplicationCommand}
|
|
204
84
|
*/
|
|
205
85
|
getApplication(args: GetApplicationCommandInput, options?: __HttpHandlerOptions): Promise<GetApplicationCommandOutput>;
|
|
206
86
|
getApplication(args: GetApplicationCommandInput, cb: (err: any, data?: GetApplicationCommandOutput) => void): void;
|
|
207
87
|
getApplication(args: GetApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetApplicationCommandOutput) => void): void;
|
|
208
88
|
/**
|
|
209
|
-
* @
|
|
210
|
-
* <p>Gets an Amazon Web Services Migration Hub Refactor Spaces environment.</p>
|
|
89
|
+
* @see {@link GetEnvironmentCommand}
|
|
211
90
|
*/
|
|
212
91
|
getEnvironment(args: GetEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<GetEnvironmentCommandOutput>;
|
|
213
92
|
getEnvironment(args: GetEnvironmentCommandInput, cb: (err: any, data?: GetEnvironmentCommandOutput) => void): void;
|
|
214
93
|
getEnvironment(args: GetEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEnvironmentCommandOutput) => void): void;
|
|
215
94
|
/**
|
|
216
|
-
* @
|
|
217
|
-
* <p>Gets the resource-based permission policy that is set for the given environment. </p>
|
|
95
|
+
* @see {@link GetResourcePolicyCommand}
|
|
218
96
|
*/
|
|
219
97
|
getResourcePolicy(args: GetResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetResourcePolicyCommandOutput>;
|
|
220
98
|
getResourcePolicy(args: GetResourcePolicyCommandInput, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
|
|
221
99
|
getResourcePolicy(args: GetResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
|
|
222
100
|
/**
|
|
223
|
-
* @
|
|
224
|
-
* <p>Gets an Amazon Web Services Migration Hub Refactor Spaces route.</p>
|
|
101
|
+
* @see {@link GetRouteCommand}
|
|
225
102
|
*/
|
|
226
103
|
getRoute(args: GetRouteCommandInput, options?: __HttpHandlerOptions): Promise<GetRouteCommandOutput>;
|
|
227
104
|
getRoute(args: GetRouteCommandInput, cb: (err: any, data?: GetRouteCommandOutput) => void): void;
|
|
228
105
|
getRoute(args: GetRouteCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRouteCommandOutput) => void): void;
|
|
229
106
|
/**
|
|
230
|
-
* @
|
|
231
|
-
* <p>Gets an Amazon Web Services Migration Hub Refactor Spaces service. </p>
|
|
107
|
+
* @see {@link GetServiceCommand}
|
|
232
108
|
*/
|
|
233
109
|
getService(args: GetServiceCommandInput, options?: __HttpHandlerOptions): Promise<GetServiceCommandOutput>;
|
|
234
110
|
getService(args: GetServiceCommandInput, cb: (err: any, data?: GetServiceCommandOutput) => void): void;
|
|
235
111
|
getService(args: GetServiceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetServiceCommandOutput) => void): void;
|
|
236
112
|
/**
|
|
237
|
-
* @
|
|
238
|
-
* <p>Lists all the Amazon Web Services Migration Hub Refactor Spaces applications within an environment. </p>
|
|
113
|
+
* @see {@link ListApplicationsCommand}
|
|
239
114
|
*/
|
|
240
115
|
listApplications(args: ListApplicationsCommandInput, options?: __HttpHandlerOptions): Promise<ListApplicationsCommandOutput>;
|
|
241
116
|
listApplications(args: ListApplicationsCommandInput, cb: (err: any, data?: ListApplicationsCommandOutput) => void): void;
|
|
242
117
|
listApplications(args: ListApplicationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListApplicationsCommandOutput) => void): void;
|
|
243
118
|
/**
|
|
244
|
-
* @
|
|
245
|
-
* <p>Lists Amazon Web Services Migration Hub Refactor Spaces environments owned by a caller account or shared with the caller
|
|
246
|
-
* account. </p>
|
|
119
|
+
* @see {@link ListEnvironmentsCommand}
|
|
247
120
|
*/
|
|
248
121
|
listEnvironments(args: ListEnvironmentsCommandInput, options?: __HttpHandlerOptions): Promise<ListEnvironmentsCommandOutput>;
|
|
249
122
|
listEnvironments(args: ListEnvironmentsCommandInput, cb: (err: any, data?: ListEnvironmentsCommandOutput) => void): void;
|
|
250
123
|
listEnvironments(args: ListEnvironmentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEnvironmentsCommandOutput) => void): void;
|
|
251
124
|
/**
|
|
252
|
-
* @
|
|
253
|
-
* <p>Lists all Amazon Web Services Migration Hub Refactor Spaces service virtual private clouds (VPCs) that are part of the
|
|
254
|
-
* environment. </p>
|
|
125
|
+
* @see {@link ListEnvironmentVpcsCommand}
|
|
255
126
|
*/
|
|
256
127
|
listEnvironmentVpcs(args: ListEnvironmentVpcsCommandInput, options?: __HttpHandlerOptions): Promise<ListEnvironmentVpcsCommandOutput>;
|
|
257
128
|
listEnvironmentVpcs(args: ListEnvironmentVpcsCommandInput, cb: (err: any, data?: ListEnvironmentVpcsCommandOutput) => void): void;
|
|
258
129
|
listEnvironmentVpcs(args: ListEnvironmentVpcsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEnvironmentVpcsCommandOutput) => void): void;
|
|
259
130
|
/**
|
|
260
|
-
* @
|
|
261
|
-
* <p>Lists all the Amazon Web Services Migration Hub Refactor Spaces routes within an application. </p>
|
|
131
|
+
* @see {@link ListRoutesCommand}
|
|
262
132
|
*/
|
|
263
133
|
listRoutes(args: ListRoutesCommandInput, options?: __HttpHandlerOptions): Promise<ListRoutesCommandOutput>;
|
|
264
134
|
listRoutes(args: ListRoutesCommandInput, cb: (err: any, data?: ListRoutesCommandOutput) => void): void;
|
|
265
135
|
listRoutes(args: ListRoutesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRoutesCommandOutput) => void): void;
|
|
266
136
|
/**
|
|
267
|
-
* @
|
|
268
|
-
* <p>Lists all the Amazon Web Services Migration Hub Refactor Spaces services within an application. </p>
|
|
137
|
+
* @see {@link ListServicesCommand}
|
|
269
138
|
*/
|
|
270
139
|
listServices(args: ListServicesCommandInput, options?: __HttpHandlerOptions): Promise<ListServicesCommandOutput>;
|
|
271
140
|
listServices(args: ListServicesCommandInput, cb: (err: any, data?: ListServicesCommandOutput) => void): void;
|
|
272
141
|
listServices(args: ListServicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListServicesCommandOutput) => void): void;
|
|
273
142
|
/**
|
|
274
|
-
* @
|
|
275
|
-
* <p>Lists the tags of a resource. The caller account must be the same as the resource’s
|
|
276
|
-
* <code>OwnerAccountId</code>. Listing tags in other accounts is not supported. </p>
|
|
143
|
+
* @see {@link ListTagsForResourceCommand}
|
|
277
144
|
*/
|
|
278
145
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
279
146
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
280
147
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
281
148
|
/**
|
|
282
|
-
* @
|
|
283
|
-
* <p>Attaches a resource-based permission policy to the Amazon Web Services Migration Hub Refactor Spaces environment. The policy
|
|
284
|
-
* must contain the same actions and condition statements as the
|
|
285
|
-
* <code>arn:aws:ram::aws:permission/AWSRAMDefaultPermissionRefactorSpacesEnvironment</code>
|
|
286
|
-
* permission in Resource Access Manager. The policy must not contain new lines or blank lines.
|
|
287
|
-
* </p>
|
|
149
|
+
* @see {@link PutResourcePolicyCommand}
|
|
288
150
|
*/
|
|
289
151
|
putResourcePolicy(args: PutResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutResourcePolicyCommandOutput>;
|
|
290
152
|
putResourcePolicy(args: PutResourcePolicyCommandInput, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
|
|
291
153
|
putResourcePolicy(args: PutResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
|
|
292
154
|
/**
|
|
293
|
-
* @
|
|
294
|
-
* <p>Removes the tags of a given resource. Tags are metadata which can be used to manage a
|
|
295
|
-
* resource. To tag a resource, the caller account must be the same as the resource’s
|
|
296
|
-
* <code>OwnerAccountId</code>. Tagging resources in other accounts is not supported.</p>
|
|
297
|
-
* <note>
|
|
298
|
-
* <p>Amazon Web Services Migration Hub Refactor Spaces does not propagate tags to orchestrated resources, such as an
|
|
299
|
-
* environment’s transit gateway.</p>
|
|
300
|
-
* </note>
|
|
155
|
+
* @see {@link TagResourceCommand}
|
|
301
156
|
*/
|
|
302
157
|
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
303
158
|
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
304
159
|
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
305
160
|
/**
|
|
306
|
-
* @
|
|
307
|
-
* <p>Adds to or modifies the tags of the given resource. Tags are metadata which can be used to
|
|
308
|
-
* manage a resource. To untag a resource, the caller account must be the same as the resource’s
|
|
309
|
-
* <code>OwnerAccountId</code>. Untagging resources across accounts is not supported. </p>
|
|
161
|
+
* @see {@link UntagResourceCommand}
|
|
310
162
|
*/
|
|
311
163
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
312
164
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
313
165
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
314
166
|
/**
|
|
315
|
-
* @
|
|
316
|
-
* <p> Updates an Amazon Web Services Migration Hub Refactor Spaces route. </p>
|
|
167
|
+
* @see {@link UpdateRouteCommand}
|
|
317
168
|
*/
|
|
318
169
|
updateRoute(args: UpdateRouteCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRouteCommandOutput>;
|
|
319
170
|
updateRoute(args: UpdateRouteCommandInput, cb: (err: any, data?: UpdateRouteCommandOutput) => void): void;
|
|
320
171
|
updateRoute(args: UpdateRouteCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRouteCommandOutput) => void): void;
|
|
321
172
|
}
|
|
173
|
+
/**
|
|
174
|
+
* @public
|
|
175
|
+
* <fullname>Amazon Web Services Migration Hub Refactor Spaces</fullname>
|
|
176
|
+
* <p>This API reference provides descriptions, syntax, and other details about each of the
|
|
177
|
+
* actions and data types for Amazon Web Services Migration Hub Refactor Spaces (Refactor Spaces). The topic for each action shows the API
|
|
178
|
+
* request parameters and the response. Alternatively, you can use one of the Amazon Web Services SDKs to
|
|
179
|
+
* access an API that is tailored to the programming language or platform that you're using. For
|
|
180
|
+
* more information, see <a href="https://aws.amazon.com/tools/#SDKs">Amazon Web Services SDKs</a>.</p>
|
|
181
|
+
* <p>To share Refactor Spaces environments with other Amazon Web Services accounts or with Organizations
|
|
182
|
+
* and their OUs, use Resource Access Manager's <code>CreateResourceShare</code> API. See <a href="https://docs.aws.amazon.com/ram/latest/APIReference/API_CreateResourceShare.html">CreateResourceShare</a> in the <i>Amazon Web Services RAM API Reference</i>.</p>
|
|
183
|
+
*/
|
|
184
|
+
export declare class MigrationHubRefactorSpaces extends MigrationHubRefactorSpacesClient implements MigrationHubRefactorSpaces {
|
|
185
|
+
}
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
UpdateRouteCommandOutput,
|
|
97
97
|
} from "./commands/UpdateRouteCommand";
|
|
98
98
|
import { MigrationHubRefactorSpacesClient } from "./MigrationHubRefactorSpacesClient";
|
|
99
|
-
export
|
|
99
|
+
export interface MigrationHubRefactorSpaces {
|
|
100
100
|
createApplication(
|
|
101
101
|
args: CreateApplicationCommandInput,
|
|
102
102
|
options?: __HttpHandlerOptions
|
|
@@ -410,3 +410,6 @@ export declare class MigrationHubRefactorSpaces extends MigrationHubRefactorSpac
|
|
|
410
410
|
cb: (err: any, data?: UpdateRouteCommandOutput) => void
|
|
411
411
|
): void;
|
|
412
412
|
}
|
|
413
|
+
export declare class MigrationHubRefactorSpaces
|
|
414
|
+
extends MigrationHubRefactorSpacesClient
|
|
415
|
+
implements MigrationHubRefactorSpaces {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-migration-hub-refactor-spaces",
|
|
3
3
|
"description": "AWS SDK for JavaScript Migration Hub Refactor Spaces Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.319.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.319.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.319.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",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"@aws-sdk/middleware-serde": "3.310.0",
|
|
37
37
|
"@aws-sdk/middleware-signing": "3.310.0",
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.310.0",
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.319.0",
|
|
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.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.319.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
54
54
|
"@aws-sdk/util-user-agent-node": "3.310.0",
|