async def get_recovery_plan_execution(
self,
recovery_plan_execution_arn: "capo_drs.types.strict_drsarn.StrictDRSARN",
*,
config_overrides: Optional[AsyncdrsClientConfig] = None,
) -> "capo_drs.types.get_recovery_plan_execution_response.GetRecoveryPlanExecutionResponse":
"""<p>Gets the details of a Recovery Plan execution.</p>
Args:
recovery_plan_execution_arn: <p>The ARN of the Recovery Plan execution.</p>
Raises:
capo_drs.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
capo_drs.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception or failure.</p>
capo_drs.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource for this operation was not found.</p>
capo_drs.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
capo_drs.errors.uninitialized_account_exception.UninitializedAccountException: <p>The account performing the request has not been initialized.</p>
capo_drs.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the AWS service.</p>
capo_drs.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_drs.types.get_recovery_plan_execution_request.GetRecoveryPlanExecutionRequest]",
) -> AsyncOperationResponse[
"capo_drs.types.get_recovery_plan_execution_response.GetRecoveryPlanExecutionResponse"
]:
import capo_drs._operations.elastic_disaster_recovery_service.get_recovery_plan_execution
(
output,
http_response,
) = await capo_drs._operations.elastic_disaster_recovery_service.get_recovery_plan_execution.async_get_recovery_plan_execution(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
def _redact_output(
output: "capo_drs.types.get_recovery_plan_execution_response.GetRecoveryPlanExecutionResponse",
) -> dict[str, Any]:
import capo_drs.types.get_recovery_plan_execution_response
return capo_drs.types.get_recovery_plan_execution_response.redact_sensitive(
output
)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging("GetRecoveryPlanExecution", redact_output=_redact_output),
)
input_: capo_drs.types.get_recovery_plan_execution_request.GetRecoveryPlanExecutionRequest = {
"recovery_plan_execution_arn": recovery_plan_execution_arn
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output