Skip to content

GetTableMigrationResponse

Source code in docs_src/capo_s3tables/types/get_table_migration_response.py
class GetTableMigrationResponse(TypedDict, closed=True):
    migration_id: "capo_s3tables.types.migration_id.MigrationId"
    """<p>The ID of the migration.</p>"""
    table_bucket_arn: "capo_s3tables.types.table_bucket_arn.TableBucketARN"
    """<p>The Amazon Resource Name (ARN) of the table bucket that contains the destination table.</p>"""
    namespace: "capo_s3tables.types.namespace_name.NamespaceName"
    """<p>The namespace of the destination table.</p>"""
    table_arn: NotRequired["capo_s3tables.types.table_arn.TableARN"]
    """<p>The Amazon Resource Name (ARN) of the destination table, once the migration creates it.</p>"""
    name: "capo_s3tables.types.table_name.TableName"
    """<p>The name of the destination table.</p>"""
    type: "capo_s3tables.types.migration_type.MigrationType"
    """<p>The type of the migration. Valid values:</p> <ul> <li> <p> <code>start</code> - A migration that <code>StartTableMigration</code> started.</p> </li> <li> <p> <code>sync</code> - A migration that <code>SyncTableMigration</code> started.</p> </li> </ul>"""
    state: "capo_s3tables.types.migration_state.MigrationState"
    """<p>The state of the migration. Valid values:</p> <ul> <li> <p> <code>new</code> - S3 Tables accepted the request.</p> </li> <li> <p> <code>planning</code> - The migration is checking the source table, its objects and the destination for compatibility, and writing the compatibility reports.</p> </li> <li> <p> <code>pendingReview</code> - Planning finished, and the migration waits for you to continue or cancel it with <code>UpdateTableMigration</code>.</p> </li> <li> <p> <code>queued</code> - The migration is waiting to start migrating data.</p> </li> <li> <p> <code>migrating</code> - The migration is running the plan from the <code>planning</code> state: it copies data and commits it to the destination table. A migration reaches this state only if <code>hasValidPlan</code> is <code>true</code>.</p> </li> <li> <p> <code>succeeded</code> - Every planned object migrated.</p> </li> <li> <p> <code>failed</code> - The migration failed. Check <code>failureReason</code> for the cause.</p> </li> <li> <p> <code>cancelling</code> - You cancelled the migration, and it is finishing the work in progress.</p> </li> <li> <p> <code>cancelled</code> - The migration is cancelled.</p> </li> </ul> <p>A migration ends in the <code>succeeded</code>, <code>failed</code> or <code>cancelled</code> state. You can cancel it until it ends.</p>"""
    role_arn: "capo_s3tables.types.role_arn.RoleArn"
    """<p>The Amazon Resource Name (ARN) of the IAM role that the migration uses.</p>"""
    review_migration_plan: "bool"
    """<p>A Boolean value that specifies whether the migration waits in the <code>pendingReview</code> state, so that you can review the compatibility reports before it migrates any data.</p>"""
    has_valid_plan: NotRequired["bool"]
    """<p>A Boolean value that specifies whether planning produced a plan that the migration can run. If planning hasn't finished, this value isn't returned.</p>"""
    created_at: "datetime.datetime"
    """<p>The date and time that the migration was created.</p>"""
    state_updated_at: "datetime.datetime"
    """<p>The date and time that the migration's state last changed.</p>"""
    failure_reason: NotRequired[
        "capo_s3tables.types.migration_failure_reason.MigrationFailureReason"
    ]
    """<p>The reason that the migration failed. The code names the cause, such as a migration role that S3 Tables can't assume or an Amazon Web Services Glue table that doesn't exist, or the report that lists the findings. This value is returned only when the migration is in the <code>failed</code> state.</p>"""
    planning_stats: NotRequired["capo_s3tables.types.planning_stats.PlanningStats"]
    """<p>Statistics about the source and the partitions in the migration. This value is returned after planning finishes.</p>"""
    migration_stats: NotRequired["capo_s3tables.types.migration_stats.MigrationStats"]
    """<p>The number of objects that migrated, failed or are pending. These counts are set when planning finishes and updated when the migration ends.</p>"""
    source_type: "capo_s3tables.types.migration_source_type.MigrationSourceType"
    """<p>The type of the migration's source.</p>"""
    source: "capo_s3tables.types.source_configuration.SourceConfiguration"
    """<p>The source table of the migration.</p>"""
    data_migration: "capo_s3tables.types.data_migration_overview.DataMigrationOverview"
    """<p>The maintenance settings and migration policies for the destination table.</p>"""
    migration_output: (
        "capo_s3tables.types.migration_output_overview.MigrationOutputOverview"
    )
    """<p>The bucket and prefixes for the migration's reports, and the location of each report once it is written.</p>"""

created_at instance-attribute

created_at: datetime

The date and time that the migration was created.

data_migration instance-attribute

data_migration: DataMigrationOverview

The maintenance settings and migration policies for the destination table.

failure_reason instance-attribute

failure_reason: NotRequired[MigrationFailureReason]

The reason that the migration failed. The code names the cause, such as a migration role that S3 Tables can't assume or an Amazon Web Services Glue table that doesn't exist, or the report that lists the findings. This value is returned only when the migration is in the failed state.

has_valid_plan instance-attribute

has_valid_plan: NotRequired[bool]

A Boolean value that specifies whether planning produced a plan that the migration can run. If planning hasn't finished, this value isn't returned.

migration_id instance-attribute

migration_id: MigrationId

The ID of the migration.

migration_output instance-attribute

migration_output: MigrationOutputOverview

The bucket and prefixes for the migration's reports, and the location of each report once it is written.

migration_stats instance-attribute

migration_stats: NotRequired[MigrationStats]

The number of objects that migrated, failed or are pending. These counts are set when planning finishes and updated when the migration ends.

name instance-attribute

name: TableName

The name of the destination table.

namespace instance-attribute

namespace: NamespaceName

The namespace of the destination table.

planning_stats instance-attribute

planning_stats: NotRequired[PlanningStats]

Statistics about the source and the partitions in the migration. This value is returned after planning finishes.

review_migration_plan instance-attribute

review_migration_plan: bool

A Boolean value that specifies whether the migration waits in the pendingReview state, so that you can review the compatibility reports before it migrates any data.

role_arn instance-attribute

role_arn: RoleArn

The Amazon Resource Name (ARN) of the IAM role that the migration uses.

source instance-attribute

The source table of the migration.

source_type instance-attribute

source_type: MigrationSourceType

The type of the migration's source.

state instance-attribute

The state of the migration. Valid values:

  • new - S3 Tables accepted the request.

  • planning - The migration is checking the source table, its objects and the destination for compatibility, and writing the compatibility reports.

  • pendingReview - Planning finished, and the migration waits for you to continue or cancel it with UpdateTableMigration.

  • queued - The migration is waiting to start migrating data.

  • migrating - The migration is running the plan from the planning state: it copies data and commits it to the destination table. A migration reaches this state only if hasValidPlan is true.

  • succeeded - Every planned object migrated.

  • failed - The migration failed. Check failureReason for the cause.

  • cancelling - You cancelled the migration, and it is finishing the work in progress.

  • cancelled - The migration is cancelled.

A migration ends in the succeeded, failed or cancelled state. You can cancel it until it ends.

state_updated_at instance-attribute

state_updated_at: datetime

The date and time that the migration's state last changed.

table_arn instance-attribute

table_arn: NotRequired[TableARN]

The Amazon Resource Name (ARN) of the destination table, once the migration creates it.

table_bucket_arn instance-attribute

table_bucket_arn: TableBucketARN

The Amazon Resource Name (ARN) of the table bucket that contains the destination table.

type instance-attribute

The type of the migration. Valid values:

  • start - A migration that StartTableMigration started.

  • sync - A migration that SyncTableMigration started.