migrationhub.d.ts
36.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class MigrationHub extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: MigrationHub.Types.ClientConfiguration)
config: Config & MigrationHub.Types.ClientConfiguration;
/**
* Associates a created artifact of an AWS cloud resource, the target receiving the migration, with the migration task performed by a migration tool. This API has the following traits: Migration tools can call the AssociateCreatedArtifact operation to indicate which AWS artifact is associated with a migration task. The created artifact name must be provided in ARN (Amazon Resource Name) format which will contain information about type and region; for example: arn:aws:ec2:us-east-1:488216288981:image/ami-6d0ba87b. Examples of the AWS resource behind the created artifact are, AMI's, EC2 instance, or DMS endpoint, etc.
*/
associateCreatedArtifact(params: MigrationHub.Types.AssociateCreatedArtifactRequest, callback?: (err: AWSError, data: MigrationHub.Types.AssociateCreatedArtifactResult) => void): Request<MigrationHub.Types.AssociateCreatedArtifactResult, AWSError>;
/**
* Associates a created artifact of an AWS cloud resource, the target receiving the migration, with the migration task performed by a migration tool. This API has the following traits: Migration tools can call the AssociateCreatedArtifact operation to indicate which AWS artifact is associated with a migration task. The created artifact name must be provided in ARN (Amazon Resource Name) format which will contain information about type and region; for example: arn:aws:ec2:us-east-1:488216288981:image/ami-6d0ba87b. Examples of the AWS resource behind the created artifact are, AMI's, EC2 instance, or DMS endpoint, etc.
*/
associateCreatedArtifact(callback?: (err: AWSError, data: MigrationHub.Types.AssociateCreatedArtifactResult) => void): Request<MigrationHub.Types.AssociateCreatedArtifactResult, AWSError>;
/**
* Associates a discovered resource ID from Application Discovery Service with a migration task.
*/
associateDiscoveredResource(params: MigrationHub.Types.AssociateDiscoveredResourceRequest, callback?: (err: AWSError, data: MigrationHub.Types.AssociateDiscoveredResourceResult) => void): Request<MigrationHub.Types.AssociateDiscoveredResourceResult, AWSError>;
/**
* Associates a discovered resource ID from Application Discovery Service with a migration task.
*/
associateDiscoveredResource(callback?: (err: AWSError, data: MigrationHub.Types.AssociateDiscoveredResourceResult) => void): Request<MigrationHub.Types.AssociateDiscoveredResourceResult, AWSError>;
/**
* Creates a progress update stream which is an AWS resource used for access control as well as a namespace for migration task names that is implicitly linked to your AWS account. It must uniquely identify the migration tool as it is used for all updates made by the tool; however, it does not need to be unique for each AWS account because it is scoped to the AWS account.
*/
createProgressUpdateStream(params: MigrationHub.Types.CreateProgressUpdateStreamRequest, callback?: (err: AWSError, data: MigrationHub.Types.CreateProgressUpdateStreamResult) => void): Request<MigrationHub.Types.CreateProgressUpdateStreamResult, AWSError>;
/**
* Creates a progress update stream which is an AWS resource used for access control as well as a namespace for migration task names that is implicitly linked to your AWS account. It must uniquely identify the migration tool as it is used for all updates made by the tool; however, it does not need to be unique for each AWS account because it is scoped to the AWS account.
*/
createProgressUpdateStream(callback?: (err: AWSError, data: MigrationHub.Types.CreateProgressUpdateStreamResult) => void): Request<MigrationHub.Types.CreateProgressUpdateStreamResult, AWSError>;
/**
* Deletes a progress update stream, including all of its tasks, which was previously created as an AWS resource used for access control. This API has the following traits: The only parameter needed for DeleteProgressUpdateStream is the stream name (same as a CreateProgressUpdateStream call). The call will return, and a background process will asynchronously delete the stream and all of its resources (tasks, associated resources, resource attributes, created artifacts). If the stream takes time to be deleted, it might still show up on a ListProgressUpdateStreams call. CreateProgressUpdateStream, ImportMigrationTask, NotifyMigrationTaskState, and all Associate[*] APIs related to the tasks belonging to the stream will throw "InvalidInputException" if the stream of the same name is in the process of being deleted. Once the stream and all of its resources are deleted, CreateProgressUpdateStream for a stream of the same name will succeed, and that stream will be an entirely new logical resource (without any resources associated with the old stream).
*/
deleteProgressUpdateStream(params: MigrationHub.Types.DeleteProgressUpdateStreamRequest, callback?: (err: AWSError, data: MigrationHub.Types.DeleteProgressUpdateStreamResult) => void): Request<MigrationHub.Types.DeleteProgressUpdateStreamResult, AWSError>;
/**
* Deletes a progress update stream, including all of its tasks, which was previously created as an AWS resource used for access control. This API has the following traits: The only parameter needed for DeleteProgressUpdateStream is the stream name (same as a CreateProgressUpdateStream call). The call will return, and a background process will asynchronously delete the stream and all of its resources (tasks, associated resources, resource attributes, created artifacts). If the stream takes time to be deleted, it might still show up on a ListProgressUpdateStreams call. CreateProgressUpdateStream, ImportMigrationTask, NotifyMigrationTaskState, and all Associate[*] APIs related to the tasks belonging to the stream will throw "InvalidInputException" if the stream of the same name is in the process of being deleted. Once the stream and all of its resources are deleted, CreateProgressUpdateStream for a stream of the same name will succeed, and that stream will be an entirely new logical resource (without any resources associated with the old stream).
*/
deleteProgressUpdateStream(callback?: (err: AWSError, data: MigrationHub.Types.DeleteProgressUpdateStreamResult) => void): Request<MigrationHub.Types.DeleteProgressUpdateStreamResult, AWSError>;
/**
* Gets the migration status of an application.
*/
describeApplicationState(params: MigrationHub.Types.DescribeApplicationStateRequest, callback?: (err: AWSError, data: MigrationHub.Types.DescribeApplicationStateResult) => void): Request<MigrationHub.Types.DescribeApplicationStateResult, AWSError>;
/**
* Gets the migration status of an application.
*/
describeApplicationState(callback?: (err: AWSError, data: MigrationHub.Types.DescribeApplicationStateResult) => void): Request<MigrationHub.Types.DescribeApplicationStateResult, AWSError>;
/**
* Retrieves a list of all attributes associated with a specific migration task.
*/
describeMigrationTask(params: MigrationHub.Types.DescribeMigrationTaskRequest, callback?: (err: AWSError, data: MigrationHub.Types.DescribeMigrationTaskResult) => void): Request<MigrationHub.Types.DescribeMigrationTaskResult, AWSError>;
/**
* Retrieves a list of all attributes associated with a specific migration task.
*/
describeMigrationTask(callback?: (err: AWSError, data: MigrationHub.Types.DescribeMigrationTaskResult) => void): Request<MigrationHub.Types.DescribeMigrationTaskResult, AWSError>;
/**
* Disassociates a created artifact of an AWS resource with a migration task performed by a migration tool that was previously associated. This API has the following traits: A migration user can call the DisassociateCreatedArtifacts operation to disassociate a created AWS Artifact from a migration task. The created artifact name must be provided in ARN (Amazon Resource Name) format which will contain information about type and region; for example: arn:aws:ec2:us-east-1:488216288981:image/ami-6d0ba87b. Examples of the AWS resource behind the created artifact are, AMI's, EC2 instance, or RDS instance, etc.
*/
disassociateCreatedArtifact(params: MigrationHub.Types.DisassociateCreatedArtifactRequest, callback?: (err: AWSError, data: MigrationHub.Types.DisassociateCreatedArtifactResult) => void): Request<MigrationHub.Types.DisassociateCreatedArtifactResult, AWSError>;
/**
* Disassociates a created artifact of an AWS resource with a migration task performed by a migration tool that was previously associated. This API has the following traits: A migration user can call the DisassociateCreatedArtifacts operation to disassociate a created AWS Artifact from a migration task. The created artifact name must be provided in ARN (Amazon Resource Name) format which will contain information about type and region; for example: arn:aws:ec2:us-east-1:488216288981:image/ami-6d0ba87b. Examples of the AWS resource behind the created artifact are, AMI's, EC2 instance, or RDS instance, etc.
*/
disassociateCreatedArtifact(callback?: (err: AWSError, data: MigrationHub.Types.DisassociateCreatedArtifactResult) => void): Request<MigrationHub.Types.DisassociateCreatedArtifactResult, AWSError>;
/**
* Disassociate an Application Discovery Service discovered resource from a migration task.
*/
disassociateDiscoveredResource(params: MigrationHub.Types.DisassociateDiscoveredResourceRequest, callback?: (err: AWSError, data: MigrationHub.Types.DisassociateDiscoveredResourceResult) => void): Request<MigrationHub.Types.DisassociateDiscoveredResourceResult, AWSError>;
/**
* Disassociate an Application Discovery Service discovered resource from a migration task.
*/
disassociateDiscoveredResource(callback?: (err: AWSError, data: MigrationHub.Types.DisassociateDiscoveredResourceResult) => void): Request<MigrationHub.Types.DisassociateDiscoveredResourceResult, AWSError>;
/**
* Registers a new migration task which represents a server, database, etc., being migrated to AWS by a migration tool. This API is a prerequisite to calling the NotifyMigrationTaskState API as the migration tool must first register the migration task with Migration Hub.
*/
importMigrationTask(params: MigrationHub.Types.ImportMigrationTaskRequest, callback?: (err: AWSError, data: MigrationHub.Types.ImportMigrationTaskResult) => void): Request<MigrationHub.Types.ImportMigrationTaskResult, AWSError>;
/**
* Registers a new migration task which represents a server, database, etc., being migrated to AWS by a migration tool. This API is a prerequisite to calling the NotifyMigrationTaskState API as the migration tool must first register the migration task with Migration Hub.
*/
importMigrationTask(callback?: (err: AWSError, data: MigrationHub.Types.ImportMigrationTaskResult) => void): Request<MigrationHub.Types.ImportMigrationTaskResult, AWSError>;
/**
* Lists the created artifacts attached to a given migration task in an update stream. This API has the following traits: Gets the list of the created artifacts while migration is taking place. Shows the artifacts created by the migration tool that was associated by the AssociateCreatedArtifact API. Lists created artifacts in a paginated interface.
*/
listCreatedArtifacts(params: MigrationHub.Types.ListCreatedArtifactsRequest, callback?: (err: AWSError, data: MigrationHub.Types.ListCreatedArtifactsResult) => void): Request<MigrationHub.Types.ListCreatedArtifactsResult, AWSError>;
/**
* Lists the created artifacts attached to a given migration task in an update stream. This API has the following traits: Gets the list of the created artifacts while migration is taking place. Shows the artifacts created by the migration tool that was associated by the AssociateCreatedArtifact API. Lists created artifacts in a paginated interface.
*/
listCreatedArtifacts(callback?: (err: AWSError, data: MigrationHub.Types.ListCreatedArtifactsResult) => void): Request<MigrationHub.Types.ListCreatedArtifactsResult, AWSError>;
/**
* Lists discovered resources associated with the given MigrationTask.
*/
listDiscoveredResources(params: MigrationHub.Types.ListDiscoveredResourcesRequest, callback?: (err: AWSError, data: MigrationHub.Types.ListDiscoveredResourcesResult) => void): Request<MigrationHub.Types.ListDiscoveredResourcesResult, AWSError>;
/**
* Lists discovered resources associated with the given MigrationTask.
*/
listDiscoveredResources(callback?: (err: AWSError, data: MigrationHub.Types.ListDiscoveredResourcesResult) => void): Request<MigrationHub.Types.ListDiscoveredResourcesResult, AWSError>;
/**
* Lists all, or filtered by resource name, migration tasks associated with the user account making this call. This API has the following traits: Can show a summary list of the most recent migration tasks. Can show a summary list of migration tasks associated with a given discovered resource. Lists migration tasks in a paginated interface.
*/
listMigrationTasks(params: MigrationHub.Types.ListMigrationTasksRequest, callback?: (err: AWSError, data: MigrationHub.Types.ListMigrationTasksResult) => void): Request<MigrationHub.Types.ListMigrationTasksResult, AWSError>;
/**
* Lists all, or filtered by resource name, migration tasks associated with the user account making this call. This API has the following traits: Can show a summary list of the most recent migration tasks. Can show a summary list of migration tasks associated with a given discovered resource. Lists migration tasks in a paginated interface.
*/
listMigrationTasks(callback?: (err: AWSError, data: MigrationHub.Types.ListMigrationTasksResult) => void): Request<MigrationHub.Types.ListMigrationTasksResult, AWSError>;
/**
* Lists progress update streams associated with the user account making this call.
*/
listProgressUpdateStreams(params: MigrationHub.Types.ListProgressUpdateStreamsRequest, callback?: (err: AWSError, data: MigrationHub.Types.ListProgressUpdateStreamsResult) => void): Request<MigrationHub.Types.ListProgressUpdateStreamsResult, AWSError>;
/**
* Lists progress update streams associated with the user account making this call.
*/
listProgressUpdateStreams(callback?: (err: AWSError, data: MigrationHub.Types.ListProgressUpdateStreamsResult) => void): Request<MigrationHub.Types.ListProgressUpdateStreamsResult, AWSError>;
/**
* Sets the migration state of an application. For a given application identified by the value passed to ApplicationId, its status is set or updated by passing one of three values to Status: NOT_STARTED | IN_PROGRESS | COMPLETED.
*/
notifyApplicationState(params: MigrationHub.Types.NotifyApplicationStateRequest, callback?: (err: AWSError, data: MigrationHub.Types.NotifyApplicationStateResult) => void): Request<MigrationHub.Types.NotifyApplicationStateResult, AWSError>;
/**
* Sets the migration state of an application. For a given application identified by the value passed to ApplicationId, its status is set or updated by passing one of three values to Status: NOT_STARTED | IN_PROGRESS | COMPLETED.
*/
notifyApplicationState(callback?: (err: AWSError, data: MigrationHub.Types.NotifyApplicationStateResult) => void): Request<MigrationHub.Types.NotifyApplicationStateResult, AWSError>;
/**
* Notifies Migration Hub of the current status, progress, or other detail regarding a migration task. This API has the following traits: Migration tools will call the NotifyMigrationTaskState API to share the latest progress and status. MigrationTaskName is used for addressing updates to the correct target. ProgressUpdateStream is used for access control and to provide a namespace for each migration tool.
*/
notifyMigrationTaskState(params: MigrationHub.Types.NotifyMigrationTaskStateRequest, callback?: (err: AWSError, data: MigrationHub.Types.NotifyMigrationTaskStateResult) => void): Request<MigrationHub.Types.NotifyMigrationTaskStateResult, AWSError>;
/**
* Notifies Migration Hub of the current status, progress, or other detail regarding a migration task. This API has the following traits: Migration tools will call the NotifyMigrationTaskState API to share the latest progress and status. MigrationTaskName is used for addressing updates to the correct target. ProgressUpdateStream is used for access control and to provide a namespace for each migration tool.
*/
notifyMigrationTaskState(callback?: (err: AWSError, data: MigrationHub.Types.NotifyMigrationTaskStateResult) => void): Request<MigrationHub.Types.NotifyMigrationTaskStateResult, AWSError>;
/**
* Provides identifying details of the resource being migrated so that it can be associated in the Application Discovery Service repository. This association occurs asynchronously after PutResourceAttributes returns. Keep in mind that subsequent calls to PutResourceAttributes will override previously stored attributes. For example, if it is first called with a MAC address, but later, it is desired to add an IP address, it will then be required to call it with both the IP and MAC addresses to prevent overriding the MAC address. Note the instructions regarding the special use case of the ResourceAttributeList parameter when specifying any "VM" related value. Because this is an asynchronous call, it will always return 200, whether an association occurs or not. To confirm if an association was found based on the provided details, call ListDiscoveredResources.
*/
putResourceAttributes(params: MigrationHub.Types.PutResourceAttributesRequest, callback?: (err: AWSError, data: MigrationHub.Types.PutResourceAttributesResult) => void): Request<MigrationHub.Types.PutResourceAttributesResult, AWSError>;
/**
* Provides identifying details of the resource being migrated so that it can be associated in the Application Discovery Service repository. This association occurs asynchronously after PutResourceAttributes returns. Keep in mind that subsequent calls to PutResourceAttributes will override previously stored attributes. For example, if it is first called with a MAC address, but later, it is desired to add an IP address, it will then be required to call it with both the IP and MAC addresses to prevent overriding the MAC address. Note the instructions regarding the special use case of the ResourceAttributeList parameter when specifying any "VM" related value. Because this is an asynchronous call, it will always return 200, whether an association occurs or not. To confirm if an association was found based on the provided details, call ListDiscoveredResources.
*/
putResourceAttributes(callback?: (err: AWSError, data: MigrationHub.Types.PutResourceAttributesResult) => void): Request<MigrationHub.Types.PutResourceAttributesResult, AWSError>;
}
declare namespace MigrationHub {
export type ApplicationId = string;
export type ApplicationStatus = "NOT_STARTED"|"IN_PROGRESS"|"COMPLETED"|string;
export interface AssociateCreatedArtifactRequest {
/**
* The name of the ProgressUpdateStream.
*/
ProgressUpdateStream: ProgressUpdateStream;
/**
* Unique identifier that references the migration task. Do not store personal data in this field.
*/
MigrationTaskName: MigrationTaskName;
/**
* An ARN of the AWS resource related to the migration (e.g., AMI, EC2 instance, RDS instance, etc.)
*/
CreatedArtifact: CreatedArtifact;
/**
* Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.
*/
DryRun?: DryRun;
}
export interface AssociateCreatedArtifactResult {
}
export interface AssociateDiscoveredResourceRequest {
/**
* The name of the ProgressUpdateStream.
*/
ProgressUpdateStream: ProgressUpdateStream;
/**
* The identifier given to the MigrationTask. Do not store personal data in this field.
*/
MigrationTaskName: MigrationTaskName;
/**
* Object representing a Resource.
*/
DiscoveredResource: DiscoveredResource;
/**
* Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.
*/
DryRun?: DryRun;
}
export interface AssociateDiscoveredResourceResult {
}
export type ConfigurationId = string;
export interface CreateProgressUpdateStreamRequest {
/**
* The name of the ProgressUpdateStream. Do not store personal data in this field.
*/
ProgressUpdateStreamName: ProgressUpdateStream;
/**
* Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.
*/
DryRun?: DryRun;
}
export interface CreateProgressUpdateStreamResult {
}
export interface CreatedArtifact {
/**
* An ARN that uniquely identifies the result of a migration task.
*/
Name: CreatedArtifactName;
/**
* A description that can be free-form text to record additional detail about the artifact for clarity or for later reference.
*/
Description?: CreatedArtifactDescription;
}
export type CreatedArtifactDescription = string;
export type CreatedArtifactList = CreatedArtifact[];
export type CreatedArtifactName = string;
export interface DeleteProgressUpdateStreamRequest {
/**
* The name of the ProgressUpdateStream. Do not store personal data in this field.
*/
ProgressUpdateStreamName: ProgressUpdateStream;
/**
* Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.
*/
DryRun?: DryRun;
}
export interface DeleteProgressUpdateStreamResult {
}
export interface DescribeApplicationStateRequest {
/**
* The configurationId in Application Discovery Service that uniquely identifies the grouped application.
*/
ApplicationId: ApplicationId;
}
export interface DescribeApplicationStateResult {
/**
* Status of the application - Not Started, In-Progress, Complete.
*/
ApplicationStatus?: ApplicationStatus;
/**
* The timestamp when the application status was last updated.
*/
LastUpdatedTime?: UpdateDateTime;
}
export interface DescribeMigrationTaskRequest {
/**
* The name of the ProgressUpdateStream.
*/
ProgressUpdateStream: ProgressUpdateStream;
/**
* The identifier given to the MigrationTask. Do not store personal data in this field.
*/
MigrationTaskName: MigrationTaskName;
}
export interface DescribeMigrationTaskResult {
/**
* Object encapsulating information about the migration task.
*/
MigrationTask?: MigrationTask;
}
export interface DisassociateCreatedArtifactRequest {
/**
* The name of the ProgressUpdateStream.
*/
ProgressUpdateStream: ProgressUpdateStream;
/**
* Unique identifier that references the migration task to be disassociated with the artifact. Do not store personal data in this field.
*/
MigrationTaskName: MigrationTaskName;
/**
* An ARN of the AWS resource related to the migration (e.g., AMI, EC2 instance, RDS instance, etc.)
*/
CreatedArtifactName: CreatedArtifactName;
/**
* Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.
*/
DryRun?: DryRun;
}
export interface DisassociateCreatedArtifactResult {
}
export interface DisassociateDiscoveredResourceRequest {
/**
* The name of the ProgressUpdateStream.
*/
ProgressUpdateStream: ProgressUpdateStream;
/**
* The identifier given to the MigrationTask. Do not store personal data in this field.
*/
MigrationTaskName: MigrationTaskName;
/**
* ConfigurationId of the Application Discovery Service resource to be disassociated.
*/
ConfigurationId: ConfigurationId;
/**
* Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.
*/
DryRun?: DryRun;
}
export interface DisassociateDiscoveredResourceResult {
}
export interface DiscoveredResource {
/**
* The configurationId in Application Discovery Service that uniquely identifies the on-premise resource.
*/
ConfigurationId: ConfigurationId;
/**
* A description that can be free-form text to record additional detail about the discovered resource for clarity or later reference.
*/
Description?: DiscoveredResourceDescription;
}
export type DiscoveredResourceDescription = string;
export type DiscoveredResourceList = DiscoveredResource[];
export type DryRun = boolean;
export interface ImportMigrationTaskRequest {
/**
* The name of the ProgressUpdateStream. >
*/
ProgressUpdateStream: ProgressUpdateStream;
/**
* Unique identifier that references the migration task. Do not store personal data in this field.
*/
MigrationTaskName: MigrationTaskName;
/**
* Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.
*/
DryRun?: DryRun;
}
export interface ImportMigrationTaskResult {
}
export type LatestResourceAttributeList = ResourceAttribute[];
export interface ListCreatedArtifactsRequest {
/**
* The name of the ProgressUpdateStream.
*/
ProgressUpdateStream: ProgressUpdateStream;
/**
* Unique identifier that references the migration task. Do not store personal data in this field.
*/
MigrationTaskName: MigrationTaskName;
/**
* If a NextToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in NextToken.
*/
NextToken?: Token;
/**
* Maximum number of results to be returned per page.
*/
MaxResults?: MaxResultsCreatedArtifacts;
}
export interface ListCreatedArtifactsResult {
/**
* If there are more created artifacts than the max result, return the next token to be passed to the next call as a bookmark of where to start from.
*/
NextToken?: Token;
/**
* List of created artifacts up to the maximum number of results specified in the request.
*/
CreatedArtifactList?: CreatedArtifactList;
}
export interface ListDiscoveredResourcesRequest {
/**
* The name of the ProgressUpdateStream.
*/
ProgressUpdateStream: ProgressUpdateStream;
/**
* The name of the MigrationTask. Do not store personal data in this field.
*/
MigrationTaskName: MigrationTaskName;
/**
* If a NextToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in NextToken.
*/
NextToken?: Token;
/**
* The maximum number of results returned per page.
*/
MaxResults?: MaxResultsResources;
}
export interface ListDiscoveredResourcesResult {
/**
* If there are more discovered resources than the max result, return the next token to be passed to the next call as a bookmark of where to start from.
*/
NextToken?: Token;
/**
* Returned list of discovered resources associated with the given MigrationTask.
*/
DiscoveredResourceList?: DiscoveredResourceList;
}
export interface ListMigrationTasksRequest {
/**
* If a NextToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in NextToken.
*/
NextToken?: Token;
/**
* Value to specify how many results are returned per page.
*/
MaxResults?: MaxResults;
/**
* Filter migration tasks by discovered resource name.
*/
ResourceName?: ResourceName;
}
export interface ListMigrationTasksResult {
/**
* If there are more migration tasks than the max result, return the next token to be passed to the next call as a bookmark of where to start from.
*/
NextToken?: Token;
/**
* Lists the migration task's summary which includes: MigrationTaskName, ProgressPercent, ProgressUpdateStream, Status, and the UpdateDateTime for each task.
*/
MigrationTaskSummaryList?: MigrationTaskSummaryList;
}
export interface ListProgressUpdateStreamsRequest {
/**
* If a NextToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in NextToken.
*/
NextToken?: Token;
/**
* Filter to limit the maximum number of results to list per page.
*/
MaxResults?: MaxResults;
}
export interface ListProgressUpdateStreamsResult {
/**
* List of progress update streams up to the max number of results passed in the input.
*/
ProgressUpdateStreamSummaryList?: ProgressUpdateStreamSummaryList;
/**
* If there are more streams created than the max result, return the next token to be passed to the next call as a bookmark of where to start from.
*/
NextToken?: Token;
}
export type MaxResults = number;
export type MaxResultsCreatedArtifacts = number;
export type MaxResultsResources = number;
export interface MigrationTask {
/**
* A name that identifies the vendor of the migration tool being used.
*/
ProgressUpdateStream?: ProgressUpdateStream;
/**
* Unique identifier that references the migration task. Do not store personal data in this field.
*/
MigrationTaskName?: MigrationTaskName;
/**
* Task object encapsulating task information.
*/
Task?: Task;
/**
* The timestamp when the task was gathered.
*/
UpdateDateTime?: UpdateDateTime;
/**
* Information about the resource that is being migrated. This data will be used to map the task to a resource in the Application Discovery Service repository.
*/
ResourceAttributeList?: LatestResourceAttributeList;
}
export type MigrationTaskName = string;
export interface MigrationTaskSummary {
/**
* An AWS resource used for access control. It should uniquely identify the migration tool as it is used for all updates made by the tool.
*/
ProgressUpdateStream?: ProgressUpdateStream;
/**
* Unique identifier that references the migration task. Do not store personal data in this field.
*/
MigrationTaskName?: MigrationTaskName;
/**
* Status of the task.
*/
Status?: Status;
/**
* Indication of the percentage completion of the task.
*/
ProgressPercent?: ProgressPercent;
/**
* Detail information of what is being done within the overall status state.
*/
StatusDetail?: StatusDetail;
/**
* The timestamp when the task was gathered.
*/
UpdateDateTime?: UpdateDateTime;
}
export type MigrationTaskSummaryList = MigrationTaskSummary[];
export type NextUpdateSeconds = number;
export interface NotifyApplicationStateRequest {
/**
* The configurationId in Application Discovery Service that uniquely identifies the grouped application.
*/
ApplicationId: ApplicationId;
/**
* Status of the application - Not Started, In-Progress, Complete.
*/
Status: ApplicationStatus;
/**
* The timestamp when the application state changed.
*/
UpdateDateTime?: UpdateDateTime;
/**
* Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.
*/
DryRun?: DryRun;
}
export interface NotifyApplicationStateResult {
}
export interface NotifyMigrationTaskStateRequest {
/**
* The name of the ProgressUpdateStream.
*/
ProgressUpdateStream: ProgressUpdateStream;
/**
* Unique identifier that references the migration task. Do not store personal data in this field.
*/
MigrationTaskName: MigrationTaskName;
/**
* Information about the task's progress and status.
*/
Task: Task;
/**
* The timestamp when the task was gathered.
*/
UpdateDateTime: UpdateDateTime;
/**
* Number of seconds after the UpdateDateTime within which the Migration Hub can expect an update. If Migration Hub does not receive an update within the specified interval, then the migration task will be considered stale.
*/
NextUpdateSeconds: NextUpdateSeconds;
/**
* Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.
*/
DryRun?: DryRun;
}
export interface NotifyMigrationTaskStateResult {
}
export type ProgressPercent = number;
export type ProgressUpdateStream = string;
export interface ProgressUpdateStreamSummary {
/**
* The name of the ProgressUpdateStream. Do not store personal data in this field.
*/
ProgressUpdateStreamName?: ProgressUpdateStream;
}
export type ProgressUpdateStreamSummaryList = ProgressUpdateStreamSummary[];
export interface PutResourceAttributesRequest {
/**
* The name of the ProgressUpdateStream.
*/
ProgressUpdateStream: ProgressUpdateStream;
/**
* Unique identifier that references the migration task. Do not store personal data in this field.
*/
MigrationTaskName: MigrationTaskName;
/**
* Information about the resource that is being migrated. This data will be used to map the task to a resource in the Application Discovery Service repository. Takes the object array of ResourceAttribute where the Type field is reserved for the following values: IPV4_ADDRESS | IPV6_ADDRESS | MAC_ADDRESS | FQDN | VM_MANAGER_ID | VM_MANAGED_OBJECT_REFERENCE | VM_NAME | VM_PATH | BIOS_ID | MOTHERBOARD_SERIAL_NUMBER where the identifying value can be a string up to 256 characters. If any "VM" related value is set for a ResourceAttribute object, it is required that VM_MANAGER_ID, as a minimum, is always set. If VM_MANAGER_ID is not set, then all "VM" fields will be discarded and "VM" fields will not be used for matching the migration task to a server in Application Discovery Service repository. See the Example section below for a use case of specifying "VM" related values. If a server you are trying to match has multiple IP or MAC addresses, you should provide as many as you know in separate type/value pairs passed to the ResourceAttributeList parameter to maximize the chances of matching.
*/
ResourceAttributeList: ResourceAttributeList;
/**
* Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.
*/
DryRun?: DryRun;
}
export interface PutResourceAttributesResult {
}
export interface ResourceAttribute {
/**
* Type of resource.
*/
Type: ResourceAttributeType;
/**
* Value of the resource type.
*/
Value: ResourceAttributeValue;
}
export type ResourceAttributeList = ResourceAttribute[];
export type ResourceAttributeType = "IPV4_ADDRESS"|"IPV6_ADDRESS"|"MAC_ADDRESS"|"FQDN"|"VM_MANAGER_ID"|"VM_MANAGED_OBJECT_REFERENCE"|"VM_NAME"|"VM_PATH"|"BIOS_ID"|"MOTHERBOARD_SERIAL_NUMBER"|string;
export type ResourceAttributeValue = string;
export type ResourceName = string;
export type Status = "NOT_STARTED"|"IN_PROGRESS"|"FAILED"|"COMPLETED"|string;
export type StatusDetail = string;
export interface Task {
/**
* Status of the task - Not Started, In-Progress, Complete.
*/
Status: Status;
/**
* Details of task status as notified by a migration tool. A tool might use this field to provide clarifying information about the status that is unique to that tool or that explains an error state.
*/
StatusDetail?: StatusDetail;
/**
* Indication of the percentage completion of the task.
*/
ProgressPercent?: ProgressPercent;
}
export type Token = string;
export type UpdateDateTime = Date;
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2017-05-31"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the MigrationHub client.
*/
export import Types = MigrationHub;
}
export = MigrationHub;