getMigration method

Future<GetMigrationResponse> getMigration({
  1. required String migrationId,
})

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.

May throw AccessDeniedException. May throw DisabledOperationException. May throw InternalException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter migrationId : The unique identifier of the migration job to retrieve.

Implementation

Future<GetMigrationResponse> getMigration({
  required String migrationId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/2021-01-01/opensearch/app-migrations/${Uri.encodeComponent(migrationId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetMigrationResponse.fromJson(response);
}