Skip to content

describe_refresh_schemas_status async

describe_refresh_schemas_status(
    endpoint_arn: String,
    *,
    config_overrides: Optional[AsyncDatabaseMigrationServiceClientConfig] = None,
) -> DescribeRefreshSchemasStatusResponse

Returns the status of the RefreshSchemas operation.

Parameters:

  • endpoint_arn (String) –

    The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

Raises:

Examples:

Describe refresh schema status Returns the status of the refresh-schemas operation.

>>> await client.describe_refresh_schemas_status(endpoint_arn='')
Source code in docs_src/capo_database_migration_service/_services/async_database_migration_service.py
async def describe_refresh_schemas_status(
    self,
    endpoint_arn: "capo_database_migration_service.types.string.String",
    *,
    config_overrides: Optional[AsyncDatabaseMigrationServiceClientConfig] = None,
) -> "capo_database_migration_service.types.describe_refresh_schemas_status_response.DescribeRefreshSchemasStatusResponse":
    """<p>Returns the status of the RefreshSchemas operation.</p>

    Args:
        endpoint_arn: <p>The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.</p>

    Raises:
        capo_database_migration_service.errors.invalid_resource_state_fault.InvalidResourceStateFault: <p>The resource is in a state that prevents it from being used for database migration.</p>
        capo_database_migration_service.errors.resource_not_found_fault.ResourceNotFoundFault: <p>The resource could not be found.</p>
        capo_database_migration_service.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        Describe refresh schema status
        Returns the status of the refresh-schemas operation.

        >>> await client.describe_refresh_schemas_status(endpoint_arn='')
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_database_migration_service.types.describe_refresh_schemas_status_message.DescribeRefreshSchemasStatusMessage]",
    ) -> AsyncOperationResponse[
        "capo_database_migration_service.types.describe_refresh_schemas_status_response.DescribeRefreshSchemasStatusResponse"
    ]:
        import capo_database_migration_service._operations.amazon_dm_sv20160101.describe_refresh_schemas_status

        (
            output,
            http_response,
        ) = await capo_database_migration_service._operations.amazon_dm_sv20160101.describe_refresh_schemas_status.async_describe_refresh_schemas_status(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeRefreshSchemasStatus")
    )
    input_: capo_database_migration_service.types.describe_refresh_schemas_status_message.DescribeRefreshSchemasStatusMessage = {
        "endpoint_arn": endpoint_arn
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output