Returns information about a recovery point.
Parameters:
-
recovery_point_id
(str)
–
The unique identifier of the recovery point to return information for.
Raises:
Source code in docs_src/capo_redshift_serverless/_services/async_redshift_serverless.py
| async def get_recovery_point(
self,
recovery_point_id: str,
*,
config_overrides: Optional[AsyncRedshiftServerlessClientConfig] = None,
) -> "capo_redshift_serverless.types.get_recovery_point_response.GetRecoveryPointResponse":
"""<p>Returns information about a recovery point.</p>
Args:
recovery_point_id: <p>The unique identifier of the recovery point to return information for.</p>
Raises:
capo_redshift_serverless.errors.conflict_exception.ConflictException: <p>The submitted action has conflicts.</p>
capo_redshift_serverless.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception or failure.</p>
capo_redshift_serverless.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource could not be found.</p>
capo_redshift_serverless.errors.validation_exception.ValidationException: <p>The input failed to satisfy the constraints specified by an Amazon Web Services service.</p>
capo_redshift_serverless.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_redshift_serverless.types.get_recovery_point_request.GetRecoveryPointRequest]",
) -> AsyncOperationResponse[
"capo_redshift_serverless.types.get_recovery_point_response.GetRecoveryPointResponse"
]:
import capo_redshift_serverless._operations.redshift_serverless.get_recovery_point
(
output,
http_response,
) = await capo_redshift_serverless._operations.redshift_serverless.get_recovery_point.async_get_recovery_point(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetRecoveryPoint")
)
input_: capo_redshift_serverless.types.get_recovery_point_request.GetRecoveryPointRequest = {
"recovery_point_id": recovery_point_id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|