Skip to main content

migrations

Creates, updates, deletes, gets or lists a migrations resource.

Overview

Namemigrations
TypeResource
Idaws.opensearch.migrations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_idstringThe unique identifier of the OpenSearch application associated with the migration. (pattern: <code>[a-z0-9]{3,30}</code>)
created_atstring (date-time)The date and time when the migration job was created.
errorobjectError details if the migration failed or completed with errors.
exported_countintegerThe number of saved objects exported from the source data source.
imported_countintegerThe number of saved objects successfully imported into the target workspace.
migration_idstringThe unique identifier of the migration job.
sourceobjectThe source configuration for the migration, including the data source ARN.
statusstringThe current status of the migration job. Valid values are PENDING, IN_PROGRESS, SUCCEEDED, and FAILED.
updated_atstring (date-time)The date and time when the migration job was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_migrationselectmigration_id, regionRetrieves the current status and progress of a migration job, including the number of exported and imported objects and error details if the migration failed.
list_migrationsselectapplicationId, regionstatus, maxResults, nextTokenLists migration jobs for an Amazon OpenSearch Service application. You can filter results by migration status. Use pagination to ensure that the operation returns quickly and successfully.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
applicationIdstringThe unique identifier of the OpenSearch application to list migrations for.
migration_idstringThe unique identifier of the migration job to retrieve.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return in a single call.
nextTokenstringThe pagination token from a previous call to retrieve the next set of results.
statusstringFilters the results by migration status. Valid values are PENDING, IN_PROGRESS, SUCCEEDED, and FAILED.

SELECT examples

Retrieves the current status and progress of a migration job, including the number of exported and imported objects and error details if the migration failed.

SELECT
application_id,
created_at,
error,
exported_count,
imported_count,
migration_id,
source,
status,
updated_at
FROM aws.opensearch.migrations
WHERE migration_id = '{{ migration_id }}' -- required
AND region = '{{ region }}' -- required
;