| 1 | package Paws::MigrationHub; | ||
| 2 | use Moose; | ||
| 3 | sub service { 'mgh' } | ||
| 4 | sub signing_name { 'mgh' } | ||
| 5 | sub version { '2017-05-31' } | ||
| 6 | sub target_prefix { 'AWSMigrationHub' } | ||
| 7 | sub json_version { "1.1" } | ||
| 8 | has max_attempts => (is => 'ro', isa => 'Int', default => 5); | ||
| 9 | has retry => (is => 'ro', isa => 'HashRef', default => sub { | ||
| 10 | { base => 'rand', type => 'exponential', growth_factor => 2 } | ||
| 11 | }); | ||
| 12 | has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [ | ||
| 13 | ] }); | ||
| 14 | |||
| 15 | with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::JsonCaller'; | ||
| 16 | |||
| 17 | |||
| 18 | sub AssociateCreatedArtifact { | ||
| 19 | my $self = shift; | ||
| 20 | my $call_object = $self->new_with_coercions('Paws::MigrationHub::AssociateCreatedArtifact', @_); | ||
| 21 | return $self->caller->do_call($self, $call_object); | ||
| 22 | } | ||
| 23 | sub AssociateDiscoveredResource { | ||
| 24 | my $self = shift; | ||
| 25 | my $call_object = $self->new_with_coercions('Paws::MigrationHub::AssociateDiscoveredResource', @_); | ||
| 26 | return $self->caller->do_call($self, $call_object); | ||
| 27 | } | ||
| 28 | sub CreateProgressUpdateStream { | ||
| 29 | my $self = shift; | ||
| 30 | my $call_object = $self->new_with_coercions('Paws::MigrationHub::CreateProgressUpdateStream', @_); | ||
| 31 | return $self->caller->do_call($self, $call_object); | ||
| 32 | } | ||
| 33 | sub DeleteProgressUpdateStream { | ||
| 34 | my $self = shift; | ||
| 35 | my $call_object = $self->new_with_coercions('Paws::MigrationHub::DeleteProgressUpdateStream', @_); | ||
| 36 | return $self->caller->do_call($self, $call_object); | ||
| 37 | } | ||
| 38 | sub DescribeApplicationState { | ||
| 39 | my $self = shift; | ||
| 40 | my $call_object = $self->new_with_coercions('Paws::MigrationHub::DescribeApplicationState', @_); | ||
| 41 | return $self->caller->do_call($self, $call_object); | ||
| 42 | } | ||
| 43 | sub DescribeMigrationTask { | ||
| 44 | my $self = shift; | ||
| 45 | my $call_object = $self->new_with_coercions('Paws::MigrationHub::DescribeMigrationTask', @_); | ||
| 46 | return $self->caller->do_call($self, $call_object); | ||
| 47 | } | ||
| 48 | sub DisassociateCreatedArtifact { | ||
| 49 | my $self = shift; | ||
| 50 | my $call_object = $self->new_with_coercions('Paws::MigrationHub::DisassociateCreatedArtifact', @_); | ||
| 51 | return $self->caller->do_call($self, $call_object); | ||
| 52 | } | ||
| 53 | sub DisassociateDiscoveredResource { | ||
| 54 | my $self = shift; | ||
| 55 | my $call_object = $self->new_with_coercions('Paws::MigrationHub::DisassociateDiscoveredResource', @_); | ||
| 56 | return $self->caller->do_call($self, $call_object); | ||
| 57 | } | ||
| 58 | sub ImportMigrationTask { | ||
| 59 | my $self = shift; | ||
| 60 | my $call_object = $self->new_with_coercions('Paws::MigrationHub::ImportMigrationTask', @_); | ||
| 61 | return $self->caller->do_call($self, $call_object); | ||
| 62 | } | ||
| 63 | sub ListApplicationStates { | ||
| 64 | my $self = shift; | ||
| 65 | my $call_object = $self->new_with_coercions('Paws::MigrationHub::ListApplicationStates', @_); | ||
| 66 | return $self->caller->do_call($self, $call_object); | ||
| 67 | } | ||
| 68 | sub ListCreatedArtifacts { | ||
| 69 | my $self = shift; | ||
| 70 | my $call_object = $self->new_with_coercions('Paws::MigrationHub::ListCreatedArtifacts', @_); | ||
| 71 | return $self->caller->do_call($self, $call_object); | ||
| 72 | } | ||
| 73 | sub ListDiscoveredResources { | ||
| 74 | my $self = shift; | ||
| 75 | my $call_object = $self->new_with_coercions('Paws::MigrationHub::ListDiscoveredResources', @_); | ||
| 76 | return $self->caller->do_call($self, $call_object); | ||
| 77 | } | ||
| 78 | sub ListMigrationTasks { | ||
| 79 | my $self = shift; | ||
| 80 | my $call_object = $self->new_with_coercions('Paws::MigrationHub::ListMigrationTasks', @_); | ||
| 81 | return $self->caller->do_call($self, $call_object); | ||
| 82 | } | ||
| 83 | sub ListProgressUpdateStreams { | ||
| 84 | my $self = shift; | ||
| 85 | my $call_object = $self->new_with_coercions('Paws::MigrationHub::ListProgressUpdateStreams', @_); | ||
| 86 | return $self->caller->do_call($self, $call_object); | ||
| 87 | } | ||
| 88 | sub NotifyApplicationState { | ||
| 89 | my $self = shift; | ||
| 90 | my $call_object = $self->new_with_coercions('Paws::MigrationHub::NotifyApplicationState', @_); | ||
| 91 | return $self->caller->do_call($self, $call_object); | ||
| 92 | } | ||
| 93 | sub NotifyMigrationTaskState { | ||
| 94 | my $self = shift; | ||
| 95 | my $call_object = $self->new_with_coercions('Paws::MigrationHub::NotifyMigrationTaskState', @_); | ||
| 96 | return $self->caller->do_call($self, $call_object); | ||
| 97 | } | ||
| 98 | sub PutResourceAttributes { | ||
| 99 | my $self = shift; | ||
| 100 | my $call_object = $self->new_with_coercions('Paws::MigrationHub::PutResourceAttributes', @_); | ||
| 101 | return $self->caller->do_call($self, $call_object); | ||
| 102 | } | ||
| 103 | |||
| 104 | sub ListAllApplicationStates { | ||
| 105 | my $self = shift; | ||
| 106 | |||
| 107 | my $callback = shift @_ if (ref($_[0]) eq 'CODE'); | ||
| 108 | my $result = $self->ListApplicationStates(@_); | ||
| 109 | my $next_result = $result; | ||
| 110 | |||
| 111 | if (not defined $callback) { | ||
| 112 | while ($next_result->NextToken) { | ||
| 113 | $next_result = $self->ListApplicationStates(@_, NextToken => $next_result->NextToken); | ||
| 114 | push @{ $result->ApplicationStateList }, @{ $next_result->ApplicationStateList }; | ||
| 115 | } | ||
| 116 | return $result; | ||
| 117 | } else { | ||
| 118 | while ($result->NextToken) { | ||
| 119 | $callback->($_ => 'ApplicationStateList') foreach (@{ $result->ApplicationStateList }); | ||
| 120 | $result = $self->ListApplicationStates(@_, NextToken => $result->NextToken); | ||
| 121 | } | ||
| 122 | $callback->($_ => 'ApplicationStateList') foreach (@{ $result->ApplicationStateList }); | ||
| 123 | } | ||
| 124 | |||
| 125 | return undef | ||
| 126 | } | ||
| 127 | sub ListAllCreatedArtifacts { | ||
| 128 | my $self = shift; | ||
| 129 | |||
| 130 | my $callback = shift @_ if (ref($_[0]) eq 'CODE'); | ||
| 131 | my $result = $self->ListCreatedArtifacts(@_); | ||
| 132 | my $next_result = $result; | ||
| 133 | |||
| 134 | if (not defined $callback) { | ||
| 135 | while ($next_result->NextToken) { | ||
| 136 | $next_result = $self->ListCreatedArtifacts(@_, NextToken => $next_result->NextToken); | ||
| 137 | push @{ $result->CreatedArtifactList }, @{ $next_result->CreatedArtifactList }; | ||
| 138 | } | ||
| 139 | return $result; | ||
| 140 | } else { | ||
| 141 | while ($result->NextToken) { | ||
| 142 | $callback->($_ => 'CreatedArtifactList') foreach (@{ $result->CreatedArtifactList }); | ||
| 143 | $result = $self->ListCreatedArtifacts(@_, NextToken => $result->NextToken); | ||
| 144 | } | ||
| 145 | $callback->($_ => 'CreatedArtifactList') foreach (@{ $result->CreatedArtifactList }); | ||
| 146 | } | ||
| 147 | |||
| 148 | return undef | ||
| 149 | } | ||
| 150 | sub ListAllDiscoveredResources { | ||
| 151 | my $self = shift; | ||
| 152 | |||
| 153 | my $callback = shift @_ if (ref($_[0]) eq 'CODE'); | ||
| 154 | my $result = $self->ListDiscoveredResources(@_); | ||
| 155 | my $next_result = $result; | ||
| 156 | |||
| 157 | if (not defined $callback) { | ||
| 158 | while ($next_result->NextToken) { | ||
| 159 | $next_result = $self->ListDiscoveredResources(@_, NextToken => $next_result->NextToken); | ||
| 160 | push @{ $result->DiscoveredResourceList }, @{ $next_result->DiscoveredResourceList }; | ||
| 161 | } | ||
| 162 | return $result; | ||
| 163 | } else { | ||
| 164 | while ($result->NextToken) { | ||
| 165 | $callback->($_ => 'DiscoveredResourceList') foreach (@{ $result->DiscoveredResourceList }); | ||
| 166 | $result = $self->ListDiscoveredResources(@_, NextToken => $result->NextToken); | ||
| 167 | } | ||
| 168 | $callback->($_ => 'DiscoveredResourceList') foreach (@{ $result->DiscoveredResourceList }); | ||
| 169 | } | ||
| 170 | |||
| 171 | return undef | ||
| 172 | } | ||
| 173 | sub ListAllMigrationTasks { | ||
| 174 | my $self = shift; | ||
| 175 | |||
| 176 | my $callback = shift @_ if (ref($_[0]) eq 'CODE'); | ||
| 177 | my $result = $self->ListMigrationTasks(@_); | ||
| 178 | my $next_result = $result; | ||
| 179 | |||
| 180 | if (not defined $callback) { | ||
| 181 | while ($next_result->NextToken) { | ||
| 182 | $next_result = $self->ListMigrationTasks(@_, NextToken => $next_result->NextToken); | ||
| 183 | push @{ $result->MigrationTaskSummaryList }, @{ $next_result->MigrationTaskSummaryList }; | ||
| 184 | } | ||
| 185 | return $result; | ||
| 186 | } else { | ||
| 187 | while ($result->NextToken) { | ||
| 188 | $callback->($_ => 'MigrationTaskSummaryList') foreach (@{ $result->MigrationTaskSummaryList }); | ||
| 189 | $result = $self->ListMigrationTasks(@_, NextToken => $result->NextToken); | ||
| 190 | } | ||
| 191 | $callback->($_ => 'MigrationTaskSummaryList') foreach (@{ $result->MigrationTaskSummaryList }); | ||
| 192 | } | ||
| 193 | |||
| 194 | return undef | ||
| 195 | } | ||
| 196 | sub ListAllProgressUpdateStreams { | ||
| 197 | my $self = shift; | ||
| 198 | |||
| 199 | my $callback = shift @_ if (ref($_[0]) eq 'CODE'); | ||
| 200 | my $result = $self->ListProgressUpdateStreams(@_); | ||
| 201 | my $next_result = $result; | ||
| 202 | |||
| 203 | if (not defined $callback) { | ||
| 204 | while ($next_result->NextToken) { | ||
| 205 | $next_result = $self->ListProgressUpdateStreams(@_, NextToken => $next_result->NextToken); | ||
| 206 | push @{ $result->ProgressUpdateStreamSummaryList }, @{ $next_result->ProgressUpdateStreamSummaryList }; | ||
| 207 | } | ||
| 208 | return $result; | ||
| 209 | } else { | ||
| 210 | while ($result->NextToken) { | ||
| 211 | $callback->($_ => 'ProgressUpdateStreamSummaryList') foreach (@{ $result->ProgressUpdateStreamSummaryList }); | ||
| 212 | $result = $self->ListProgressUpdateStreams(@_, NextToken => $result->NextToken); | ||
| 213 | } | ||
| 214 | $callback->($_ => 'ProgressUpdateStreamSummaryList') foreach (@{ $result->ProgressUpdateStreamSummaryList }); | ||
| 215 | } | ||
| 216 | |||
| 217 | return undef | ||
| 218 | } | ||
| 219 | |||
| 220 | |||
| 221 | sub operations { qw/AssociateCreatedArtifact AssociateDiscoveredResource CreateProgressUpdateStream DeleteProgressUpdateStream DescribeApplicationState DescribeMigrationTask DisassociateCreatedArtifact DisassociateDiscoveredResource ImportMigrationTask ListApplicationStates ListCreatedArtifacts ListDiscoveredResources ListMigrationTasks ListProgressUpdateStreams NotifyApplicationState NotifyMigrationTaskState PutResourceAttributes / } | ||
| 222 | |||
| 223 | 1; | ||
| 224 | |||
| 225 | ### main pod documentation begin ### | ||
| 226 | |||
| 227 | =head1 NAME | ||
| 228 | |||
| 229 | Paws::MigrationHub - Perl Interface to AWS AWS Migration Hub | ||
| 230 | |||
| 231 | =head1 SYNOPSIS | ||
| 232 | |||
| 233 | use Paws; | ||
| 234 | |||
| 235 | my $obj = Paws->service('MigrationHub'); | ||
| 236 | my $res = $obj->Method( | ||
| 237 | Arg1 => $val1, | ||
| 238 | Arg2 => [ 'V1', 'V2' ], | ||
| 239 | # if Arg3 is an object, the HashRef will be used as arguments to the constructor | ||
| 240 | # of the arguments type | ||
| 241 | Arg3 => { Att1 => 'Val1' }, | ||
| 242 | # if Arg4 is an array of objects, the HashRefs will be passed as arguments to | ||
| 243 | # the constructor of the arguments type | ||
| 244 | Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ], | ||
| 245 | ); | ||
| 246 | |||
| 247 | =head1 DESCRIPTION | ||
| 248 | |||
| 249 | The AWS Migration Hub API methods help to obtain server and application | ||
| 250 | migration status and integrate your resource-specific migration tool by | ||
| 251 | providing a programmatic interface to Migration Hub. | ||
| 252 | |||
| 253 | Remember that you must set your AWS Migration Hub home region before | ||
| 254 | you call any of these APIs, or a C<HomeRegionNotSetException> error | ||
| 255 | will be returned. Also, you must make the API calls while in your home | ||
| 256 | region. | ||
| 257 | |||
| 258 | For the AWS API documentation, see L<https://docs.aws.amazon.com/migrationhub/> | ||
| 259 | |||
| 260 | |||
| 261 | =head1 METHODS | ||
| 262 | |||
| 263 | =head2 AssociateCreatedArtifact | ||
| 264 | |||
| 265 | =over | ||
| 266 | |||
| 267 | =item CreatedArtifact => L<Paws::MigrationHub::CreatedArtifact> | ||
| 268 | |||
| 269 | =item MigrationTaskName => Str | ||
| 270 | |||
| 271 | =item ProgressUpdateStream => Str | ||
| 272 | |||
| 273 | =item [DryRun => Bool] | ||
| 274 | |||
| 275 | |||
| 276 | =back | ||
| 277 | |||
| 278 | Each argument is described in detail in: L<Paws::MigrationHub::AssociateCreatedArtifact> | ||
| 279 | |||
| 280 | Returns: a L<Paws::MigrationHub::AssociateCreatedArtifactResult> instance | ||
| 281 | |||
| 282 | Associates a created artifact of an AWS cloud resource, the target | ||
| 283 | receiving the migration, with the migration task performed by a | ||
| 284 | migration tool. This API has the following traits: | ||
| 285 | |||
| 286 | =over | ||
| 287 | |||
| 288 | =item * | ||
| 289 | |||
| 290 | Migration tools can call the C<AssociateCreatedArtifact> operation to | ||
| 291 | indicate which AWS artifact is associated with a migration task. | ||
| 292 | |||
| 293 | =item * | ||
| 294 | |||
| 295 | The created artifact name must be provided in ARN (Amazon Resource | ||
| 296 | Name) format which will contain information about type and region; for | ||
| 297 | example: C<arn:aws:ec2:us-east-1:488216288981:image/ami-6d0ba87b>. | ||
| 298 | |||
| 299 | =item * | ||
| 300 | |||
| 301 | Examples of the AWS resource behind the created artifact are, AMI's, | ||
| 302 | EC2 instance, or DMS endpoint, etc. | ||
| 303 | |||
| 304 | =back | ||
| 305 | |||
| 306 | |||
| 307 | |||
| 308 | =head2 AssociateDiscoveredResource | ||
| 309 | |||
| 310 | =over | ||
| 311 | |||
| 312 | =item DiscoveredResource => L<Paws::MigrationHub::DiscoveredResource> | ||
| 313 | |||
| 314 | =item MigrationTaskName => Str | ||
| 315 | |||
| 316 | =item ProgressUpdateStream => Str | ||
| 317 | |||
| 318 | =item [DryRun => Bool] | ||
| 319 | |||
| 320 | |||
| 321 | =back | ||
| 322 | |||
| 323 | Each argument is described in detail in: L<Paws::MigrationHub::AssociateDiscoveredResource> | ||
| 324 | |||
| 325 | Returns: a L<Paws::MigrationHub::AssociateDiscoveredResourceResult> instance | ||
| 326 | |||
| 327 | Associates a discovered resource ID from Application Discovery Service | ||
| 328 | with a migration task. | ||
| 329 | |||
| 330 | |||
| 331 | =head2 CreateProgressUpdateStream | ||
| 332 | |||
| 333 | =over | ||
| 334 | |||
| 335 | =item ProgressUpdateStreamName => Str | ||
| 336 | |||
| 337 | =item [DryRun => Bool] | ||
| 338 | |||
| 339 | |||
| 340 | =back | ||
| 341 | |||
| 342 | Each argument is described in detail in: L<Paws::MigrationHub::CreateProgressUpdateStream> | ||
| 343 | |||
| 344 | Returns: a L<Paws::MigrationHub::CreateProgressUpdateStreamResult> instance | ||
| 345 | |||
| 346 | Creates a progress update stream which is an AWS resource used for | ||
| 347 | access control as well as a namespace for migration task names that is | ||
| 348 | implicitly linked to your AWS account. It must uniquely identify the | ||
| 349 | migration tool as it is used for all updates made by the tool; however, | ||
| 350 | it does not need to be unique for each AWS account because it is scoped | ||
| 351 | to the AWS account. | ||
| 352 | |||
| 353 | |||
| 354 | =head2 DeleteProgressUpdateStream | ||
| 355 | |||
| 356 | =over | ||
| 357 | |||
| 358 | =item ProgressUpdateStreamName => Str | ||
| 359 | |||
| 360 | =item [DryRun => Bool] | ||
| 361 | |||
| 362 | |||
| 363 | =back | ||
| 364 | |||
| 365 | Each argument is described in detail in: L<Paws::MigrationHub::DeleteProgressUpdateStream> | ||
| 366 | |||
| 367 | Returns: a L<Paws::MigrationHub::DeleteProgressUpdateStreamResult> instance | ||
| 368 | |||
| 369 | Deletes a progress update stream, including all of its tasks, which was | ||
| 370 | previously created as an AWS resource used for access control. This API | ||
| 371 | has the following traits: | ||
| 372 | |||
| 373 | =over | ||
| 374 | |||
| 375 | =item * | ||
| 376 | |||
| 377 | The only parameter needed for C<DeleteProgressUpdateStream> is the | ||
| 378 | stream name (same as a C<CreateProgressUpdateStream> call). | ||
| 379 | |||
| 380 | =item * | ||
| 381 | |||
| 382 | The call will return, and a background process will asynchronously | ||
| 383 | delete the stream and all of its resources (tasks, associated | ||
| 384 | resources, resource attributes, created artifacts). | ||
| 385 | |||
| 386 | =item * | ||
| 387 | |||
| 388 | If the stream takes time to be deleted, it might still show up on a | ||
| 389 | C<ListProgressUpdateStreams> call. | ||
| 390 | |||
| 391 | =item * | ||
| 392 | |||
| 393 | C<CreateProgressUpdateStream>, C<ImportMigrationTask>, | ||
| 394 | C<NotifyMigrationTaskState>, and all Associate[*] APIs related to the | ||
| 395 | tasks belonging to the stream will throw "InvalidInputException" if the | ||
| 396 | stream of the same name is in the process of being deleted. | ||
| 397 | |||
| 398 | =item * | ||
| 399 | |||
| 400 | Once the stream and all of its resources are deleted, | ||
| 401 | C<CreateProgressUpdateStream> for a stream of the same name will | ||
| 402 | succeed, and that stream will be an entirely new logical resource | ||
| 403 | (without any resources associated with the old stream). | ||
| 404 | |||
| 405 | =back | ||
| 406 | |||
| 407 | |||
| 408 | |||
| 409 | =head2 DescribeApplicationState | ||
| 410 | |||
| 411 | =over | ||
| 412 | |||
| 413 | =item ApplicationId => Str | ||
| 414 | |||
| 415 | |||
| 416 | =back | ||
| 417 | |||
| 418 | Each argument is described in detail in: L<Paws::MigrationHub::DescribeApplicationState> | ||
| 419 | |||
| 420 | Returns: a L<Paws::MigrationHub::DescribeApplicationStateResult> instance | ||
| 421 | |||
| 422 | Gets the migration status of an application. | ||
| 423 | |||
| 424 | |||
| 425 | =head2 DescribeMigrationTask | ||
| 426 | |||
| 427 | =over | ||
| 428 | |||
| 429 | =item MigrationTaskName => Str | ||
| 430 | |||
| 431 | =item ProgressUpdateStream => Str | ||
| 432 | |||
| 433 | |||
| 434 | =back | ||
| 435 | |||
| 436 | Each argument is described in detail in: L<Paws::MigrationHub::DescribeMigrationTask> | ||
| 437 | |||
| 438 | Returns: a L<Paws::MigrationHub::DescribeMigrationTaskResult> instance | ||
| 439 | |||
| 440 | Retrieves a list of all attributes associated with a specific migration | ||
| 441 | task. | ||
| 442 | |||
| 443 | |||
| 444 | =head2 DisassociateCreatedArtifact | ||
| 445 | |||
| 446 | =over | ||
| 447 | |||
| 448 | =item CreatedArtifactName => Str | ||
| 449 | |||
| 450 | =item MigrationTaskName => Str | ||
| 451 | |||
| 452 | =item ProgressUpdateStream => Str | ||
| 453 | |||
| 454 | =item [DryRun => Bool] | ||
| 455 | |||
| 456 | |||
| 457 | =back | ||
| 458 | |||
| 459 | Each argument is described in detail in: L<Paws::MigrationHub::DisassociateCreatedArtifact> | ||
| 460 | |||
| 461 | Returns: a L<Paws::MigrationHub::DisassociateCreatedArtifactResult> instance | ||
| 462 | |||
| 463 | Disassociates a created artifact of an AWS resource with a migration | ||
| 464 | task performed by a migration tool that was previously associated. This | ||
| 465 | API has the following traits: | ||
| 466 | |||
| 467 | =over | ||
| 468 | |||
| 469 | =item * | ||
| 470 | |||
| 471 | A migration user can call the C<DisassociateCreatedArtifacts> operation | ||
| 472 | to disassociate a created AWS Artifact from a migration task. | ||
| 473 | |||
| 474 | =item * | ||
| 475 | |||
| 476 | The created artifact name must be provided in ARN (Amazon Resource | ||
| 477 | Name) format which will contain information about type and region; for | ||
| 478 | example: C<arn:aws:ec2:us-east-1:488216288981:image/ami-6d0ba87b>. | ||
| 479 | |||
| 480 | =item * | ||
| 481 | |||
| 482 | Examples of the AWS resource behind the created artifact are, AMI's, | ||
| 483 | EC2 instance, or RDS instance, etc. | ||
| 484 | |||
| 485 | =back | ||
| 486 | |||
| 487 | |||
| 488 | |||
| 489 | =head2 DisassociateDiscoveredResource | ||
| 490 | |||
| 491 | =over | ||
| 492 | |||
| 493 | =item ConfigurationId => Str | ||
| 494 | |||
| 495 | =item MigrationTaskName => Str | ||
| 496 | |||
| 497 | =item ProgressUpdateStream => Str | ||
| 498 | |||
| 499 | =item [DryRun => Bool] | ||
| 500 | |||
| 501 | |||
| 502 | =back | ||
| 503 | |||
| 504 | Each argument is described in detail in: L<Paws::MigrationHub::DisassociateDiscoveredResource> | ||
| 505 | |||
| 506 | Returns: a L<Paws::MigrationHub::DisassociateDiscoveredResourceResult> instance | ||
| 507 | |||
| 508 | Disassociate an Application Discovery Service discovered resource from | ||
| 509 | a migration task. | ||
| 510 | |||
| 511 | |||
| 512 | =head2 ImportMigrationTask | ||
| 513 | |||
| 514 | =over | ||
| 515 | |||
| 516 | =item MigrationTaskName => Str | ||
| 517 | |||
| 518 | =item ProgressUpdateStream => Str | ||
| 519 | |||
| 520 | =item [DryRun => Bool] | ||
| 521 | |||
| 522 | |||
| 523 | =back | ||
| 524 | |||
| 525 | Each argument is described in detail in: L<Paws::MigrationHub::ImportMigrationTask> | ||
| 526 | |||
| 527 | Returns: a L<Paws::MigrationHub::ImportMigrationTaskResult> instance | ||
| 528 | |||
| 529 | Registers a new migration task which represents a server, database, | ||
| 530 | etc., being migrated to AWS by a migration tool. | ||
| 531 | |||
| 532 | This API is a prerequisite to calling the C<NotifyMigrationTaskState> | ||
| 533 | API as the migration tool must first register the migration task with | ||
| 534 | Migration Hub. | ||
| 535 | |||
| 536 | |||
| 537 | =head2 ListApplicationStates | ||
| 538 | |||
| 539 | =over | ||
| 540 | |||
| 541 | =item [ApplicationIds => ArrayRef[Str|Undef]] | ||
| 542 | |||
| 543 | =item [MaxResults => Int] | ||
| 544 | |||
| 545 | =item [NextToken => Str] | ||
| 546 | |||
| 547 | |||
| 548 | =back | ||
| 549 | |||
| 550 | Each argument is described in detail in: L<Paws::MigrationHub::ListApplicationStates> | ||
| 551 | |||
| 552 | Returns: a L<Paws::MigrationHub::ListApplicationStatesResult> instance | ||
| 553 | |||
| 554 | Lists all the migration statuses for your applications. If you use the | ||
| 555 | optional C<ApplicationIds> parameter, only the migration statuses for | ||
| 556 | those applications will be returned. | ||
| 557 | |||
| 558 | |||
| 559 | =head2 ListCreatedArtifacts | ||
| 560 | |||
| 561 | =over | ||
| 562 | |||
| 563 | =item MigrationTaskName => Str | ||
| 564 | |||
| 565 | =item ProgressUpdateStream => Str | ||
| 566 | |||
| 567 | =item [MaxResults => Int] | ||
| 568 | |||
| 569 | =item [NextToken => Str] | ||
| 570 | |||
| 571 | |||
| 572 | =back | ||
| 573 | |||
| 574 | Each argument is described in detail in: L<Paws::MigrationHub::ListCreatedArtifacts> | ||
| 575 | |||
| 576 | Returns: a L<Paws::MigrationHub::ListCreatedArtifactsResult> instance | ||
| 577 | |||
| 578 | Lists the created artifacts attached to a given migration task in an | ||
| 579 | update stream. This API has the following traits: | ||
| 580 | |||
| 581 | =over | ||
| 582 | |||
| 583 | =item * | ||
| 584 | |||
| 585 | Gets the list of the created artifacts while migration is taking place. | ||
| 586 | |||
| 587 | =item * | ||
| 588 | |||
| 589 | Shows the artifacts created by the migration tool that was associated | ||
| 590 | by the C<AssociateCreatedArtifact> API. | ||
| 591 | |||
| 592 | =item * | ||
| 593 | |||
| 594 | Lists created artifacts in a paginated interface. | ||
| 595 | |||
| 596 | =back | ||
| 597 | |||
| 598 | |||
| 599 | |||
| 600 | =head2 ListDiscoveredResources | ||
| 601 | |||
| 602 | =over | ||
| 603 | |||
| 604 | =item MigrationTaskName => Str | ||
| 605 | |||
| 606 | =item ProgressUpdateStream => Str | ||
| 607 | |||
| 608 | =item [MaxResults => Int] | ||
| 609 | |||
| 610 | =item [NextToken => Str] | ||
| 611 | |||
| 612 | |||
| 613 | =back | ||
| 614 | |||
| 615 | Each argument is described in detail in: L<Paws::MigrationHub::ListDiscoveredResources> | ||
| 616 | |||
| 617 | Returns: a L<Paws::MigrationHub::ListDiscoveredResourcesResult> instance | ||
| 618 | |||
| 619 | Lists discovered resources associated with the given C<MigrationTask>. | ||
| 620 | |||
| 621 | |||
| 622 | =head2 ListMigrationTasks | ||
| 623 | |||
| 624 | =over | ||
| 625 | |||
| 626 | =item [MaxResults => Int] | ||
| 627 | |||
| 628 | =item [NextToken => Str] | ||
| 629 | |||
| 630 | =item [ResourceName => Str] | ||
| 631 | |||
| 632 | |||
| 633 | =back | ||
| 634 | |||
| 635 | Each argument is described in detail in: L<Paws::MigrationHub::ListMigrationTasks> | ||
| 636 | |||
| 637 | Returns: a L<Paws::MigrationHub::ListMigrationTasksResult> instance | ||
| 638 | |||
| 639 | Lists all, or filtered by resource name, migration tasks associated | ||
| 640 | with the user account making this call. This API has the following | ||
| 641 | traits: | ||
| 642 | |||
| 643 | =over | ||
| 644 | |||
| 645 | =item * | ||
| 646 | |||
| 647 | Can show a summary list of the most recent migration tasks. | ||
| 648 | |||
| 649 | =item * | ||
| 650 | |||
| 651 | Can show a summary list of migration tasks associated with a given | ||
| 652 | discovered resource. | ||
| 653 | |||
| 654 | =item * | ||
| 655 | |||
| 656 | Lists migration tasks in a paginated interface. | ||
| 657 | |||
| 658 | =back | ||
| 659 | |||
| 660 | |||
| 661 | |||
| 662 | =head2 ListProgressUpdateStreams | ||
| 663 | |||
| 664 | =over | ||
| 665 | |||
| 666 | =item [MaxResults => Int] | ||
| 667 | |||
| 668 | =item [NextToken => Str] | ||
| 669 | |||
| 670 | |||
| 671 | =back | ||
| 672 | |||
| 673 | Each argument is described in detail in: L<Paws::MigrationHub::ListProgressUpdateStreams> | ||
| 674 | |||
| 675 | Returns: a L<Paws::MigrationHub::ListProgressUpdateStreamsResult> instance | ||
| 676 | |||
| 677 | Lists progress update streams associated with the user account making | ||
| 678 | this call. | ||
| 679 | |||
| 680 | |||
| 681 | =head2 NotifyApplicationState | ||
| 682 | |||
| 683 | =over | ||
| 684 | |||
| 685 | =item ApplicationId => Str | ||
| 686 | |||
| 687 | =item Status => Str | ||
| 688 | |||
| 689 | =item [DryRun => Bool] | ||
| 690 | |||
| 691 | =item [UpdateDateTime => Str] | ||
| 692 | |||
| 693 | |||
| 694 | =back | ||
| 695 | |||
| 696 | Each argument is described in detail in: L<Paws::MigrationHub::NotifyApplicationState> | ||
| 697 | |||
| 698 | Returns: a L<Paws::MigrationHub::NotifyApplicationStateResult> instance | ||
| 699 | |||
| 700 | Sets the migration state of an application. For a given application | ||
| 701 | identified by the value passed to C<ApplicationId>, its status is set | ||
| 702 | or updated by passing one of three values to C<Status>: C<NOT_STARTED | | ||
| 703 | IN_PROGRESS | COMPLETED>. | ||
| 704 | |||
| 705 | |||
| 706 | =head2 NotifyMigrationTaskState | ||
| 707 | |||
| 708 | =over | ||
| 709 | |||
| 710 | =item MigrationTaskName => Str | ||
| 711 | |||
| 712 | =item NextUpdateSeconds => Int | ||
| 713 | |||
| 714 | =item ProgressUpdateStream => Str | ||
| 715 | |||
| 716 | =item Task => L<Paws::MigrationHub::Task> | ||
| 717 | |||
| 718 | =item UpdateDateTime => Str | ||
| 719 | |||
| 720 | =item [DryRun => Bool] | ||
| 721 | |||
| 722 | |||
| 723 | =back | ||
| 724 | |||
| 725 | Each argument is described in detail in: L<Paws::MigrationHub::NotifyMigrationTaskState> | ||
| 726 | |||
| 727 | Returns: a L<Paws::MigrationHub::NotifyMigrationTaskStateResult> instance | ||
| 728 | |||
| 729 | Notifies Migration Hub of the current status, progress, or other detail | ||
| 730 | regarding a migration task. This API has the following traits: | ||
| 731 | |||
| 732 | =over | ||
| 733 | |||
| 734 | =item * | ||
| 735 | |||
| 736 | Migration tools will call the C<NotifyMigrationTaskState> API to share | ||
| 737 | the latest progress and status. | ||
| 738 | |||
| 739 | =item * | ||
| 740 | |||
| 741 | C<MigrationTaskName> is used for addressing updates to the correct | ||
| 742 | target. | ||
| 743 | |||
| 744 | =item * | ||
| 745 | |||
| 746 | C<ProgressUpdateStream> is used for access control and to provide a | ||
| 747 | namespace for each migration tool. | ||
| 748 | |||
| 749 | =back | ||
| 750 | |||
| 751 | |||
| 752 | |||
| 753 | =head2 PutResourceAttributes | ||
| 754 | |||
| 755 | =over | ||
| 756 | |||
| 757 | =item MigrationTaskName => Str | ||
| 758 | |||
| 759 | =item ProgressUpdateStream => Str | ||
| 760 | |||
| 761 | =item ResourceAttributeList => ArrayRef[L<Paws::MigrationHub::ResourceAttribute>] | ||
| 762 | |||
| 763 | =item [DryRun => Bool] | ||
| 764 | |||
| 765 | |||
| 766 | =back | ||
| 767 | |||
| 768 | Each argument is described in detail in: L<Paws::MigrationHub::PutResourceAttributes> | ||
| 769 | |||
| 770 | Returns: a L<Paws::MigrationHub::PutResourceAttributesResult> instance | ||
| 771 | |||
| 772 | Provides identifying details of the resource being migrated so that it | ||
| 773 | can be associated in the Application Discovery Service repository. This | ||
| 774 | association occurs asynchronously after C<PutResourceAttributes> | ||
| 775 | returns. | ||
| 776 | |||
| 777 | =over | ||
| 778 | |||
| 779 | =item * | ||
| 780 | |||
| 781 | Keep in mind that subsequent calls to PutResourceAttributes will | ||
| 782 | override previously stored attributes. For example, if it is first | ||
| 783 | called with a MAC address, but later, it is desired to I<add> an IP | ||
| 784 | address, it will then be required to call it with I<both> the IP and | ||
| 785 | MAC addresses to prevent overriding the MAC address. | ||
| 786 | |||
| 787 | =item * | ||
| 788 | |||
| 789 | Note the instructions regarding the special use case of the | ||
| 790 | C<ResourceAttributeList> | ||
| 791 | (https://docs.aws.amazon.com/migrationhub/latest/ug/API_PutResourceAttributes.html#migrationhub-PutResourceAttributes-request-ResourceAttributeList) | ||
| 792 | parameter when specifying any "VM" related value. | ||
| 793 | |||
| 794 | =back | ||
| 795 | |||
| 796 | Because this is an asynchronous call, it will always return 200, | ||
| 797 | whether an association occurs or not. To confirm if an association was | ||
| 798 | found based on the provided details, call C<ListDiscoveredResources>. | ||
| 799 | |||
| 800 | |||
| 801 | |||
| 802 | |||
| 803 | =head1 PAGINATORS | ||
| 804 | |||
| 805 | Paginator methods are helpers that repetively call methods that return partial results | ||
| 806 | |||
| 807 | =head2 ListAllApplicationStates(sub { },[ApplicationIds => ArrayRef[Str|Undef], MaxResults => Int, NextToken => Str]) | ||
| 808 | |||
| 809 | =head2 ListAllApplicationStates([ApplicationIds => ArrayRef[Str|Undef], MaxResults => Int, NextToken => Str]) | ||
| 810 | |||
| 811 | |||
| 812 | If passed a sub as first parameter, it will call the sub for each element found in : | ||
| 813 | |||
| 814 | - ApplicationStateList, passing the object as the first parameter, and the string 'ApplicationStateList' as the second parameter | ||
| 815 | |||
| 816 | If not, it will return a a L<Paws::MigrationHub::ListApplicationStatesResult> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. | ||
| 817 | |||
| 818 | |||
| 819 | =head2 ListAllCreatedArtifacts(sub { },MigrationTaskName => Str, ProgressUpdateStream => Str, [MaxResults => Int, NextToken => Str]) | ||
| 820 | |||
| 821 | =head2 ListAllCreatedArtifacts(MigrationTaskName => Str, ProgressUpdateStream => Str, [MaxResults => Int, NextToken => Str]) | ||
| 822 | |||
| 823 | |||
| 824 | If passed a sub as first parameter, it will call the sub for each element found in : | ||
| 825 | |||
| 826 | - CreatedArtifactList, passing the object as the first parameter, and the string 'CreatedArtifactList' as the second parameter | ||
| 827 | |||
| 828 | If not, it will return a a L<Paws::MigrationHub::ListCreatedArtifactsResult> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. | ||
| 829 | |||
| 830 | |||
| 831 | =head2 ListAllDiscoveredResources(sub { },MigrationTaskName => Str, ProgressUpdateStream => Str, [MaxResults => Int, NextToken => Str]) | ||
| 832 | |||
| 833 | =head2 ListAllDiscoveredResources(MigrationTaskName => Str, ProgressUpdateStream => Str, [MaxResults => Int, NextToken => Str]) | ||
| 834 | |||
| 835 | |||
| 836 | If passed a sub as first parameter, it will call the sub for each element found in : | ||
| 837 | |||
| 838 | - DiscoveredResourceList, passing the object as the first parameter, and the string 'DiscoveredResourceList' as the second parameter | ||
| 839 | |||
| 840 | If not, it will return a a L<Paws::MigrationHub::ListDiscoveredResourcesResult> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. | ||
| 841 | |||
| 842 | |||
| 843 | =head2 ListAllMigrationTasks(sub { },[MaxResults => Int, NextToken => Str, ResourceName => Str]) | ||
| 844 | |||
| 845 | =head2 ListAllMigrationTasks([MaxResults => Int, NextToken => Str, ResourceName => Str]) | ||
| 846 | |||
| 847 | |||
| 848 | If passed a sub as first parameter, it will call the sub for each element found in : | ||
| 849 | |||
| 850 | - MigrationTaskSummaryList, passing the object as the first parameter, and the string 'MigrationTaskSummaryList' as the second parameter | ||
| 851 | |||
| 852 | If not, it will return a a L<Paws::MigrationHub::ListMigrationTasksResult> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. | ||
| 853 | |||
| 854 | |||
| 855 | =head2 ListAllProgressUpdateStreams(sub { },[MaxResults => Int, NextToken => Str]) | ||
| 856 | |||
| 857 | =head2 ListAllProgressUpdateStreams([MaxResults => Int, NextToken => Str]) | ||
| 858 | |||
| 859 | |||
| 860 | If passed a sub as first parameter, it will call the sub for each element found in : | ||
| 861 | |||
| 862 | - ProgressUpdateStreamSummaryList, passing the object as the first parameter, and the string 'ProgressUpdateStreamSummaryList' as the second parameter | ||
| 863 | |||
| 864 | If not, it will return a a L<Paws::MigrationHub::ListProgressUpdateStreamsResult> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. | ||
| 865 | |||
| 866 | |||
| 867 | |||
| 868 | |||
| 869 | |||
| 870 | =head1 SEE ALSO | ||
| 871 | |||
| 872 | This service class forms part of L<Paws> | ||
| 873 | |||
| 874 | =head1 BUGS and CONTRIBUTIONS | ||
| 875 | |||
| 876 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 877 | |||
| 878 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 879 | |||
| 880 | =cut | ||
| 881 |