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.
>>> client.describe_refresh_schemas_status(endpoint_arn='')
Source code in docs_src/capo_database_migration_service/_services/database_migration_service.py
| def describe_refresh_schemas_status(
self,
endpoint_arn: "capo_database_migration_service.types.string.String",
*,
config_overrides: Optional[DatabaseMigrationServiceClientConfig] = 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.
>>> client.describe_refresh_schemas_status(endpoint_arn='')
"""
def _handler(
req: "OperationRequest[capo_database_migration_service.types.describe_refresh_schemas_status_message.DescribeRefreshSchemasStatusMessage]",
) -> OperationResponse[
"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 = (
capo_database_migration_service._operations.amazon_dm_sv20160101.describe_refresh_schemas_status.describe_refresh_schemas_status(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|