async def describe_app_assessment(
self,
assessment_arn: "capo_resiliencehub.types.arn.Arn",
*,
config_overrides: Optional[AsyncresiliencehubClientConfig] = None,
) -> "capo_resiliencehub.types.describe_app_assessment_response.DescribeAppAssessmentResponse":
"""<p>Describes an assessment for an Resilience Hub application.</p>
Args:
assessment_arn: <p>Amazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:<code>partition</code>:resiliencehub:<code>region</code>:<code>account</code>:app-assessment/<code>app-id</code>. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html"> Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i> guide.</p>
Raises:
capo_resiliencehub.errors.access_denied_exception.AccessDeniedException: <p>You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions.</p>
capo_resiliencehub.errors.internal_server_exception.InternalServerException: <p>This exception occurs when there is an internal failure in the Resilience Hub service.</p>
capo_resiliencehub.errors.resource_not_found_exception.ResourceNotFoundException: <p>This exception occurs when the specified resource could not be found.</p>
capo_resiliencehub.errors.throttling_exception.ThrottlingException: <p>This exception occurs when you have exceeded the limit on the number of requests per second.</p>
capo_resiliencehub.errors.validation_exception.ValidationException: <p>This exception occurs when a request is not valid.</p>
capo_resiliencehub.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_resiliencehub.types.describe_app_assessment_request.DescribeAppAssessmentRequest]",
) -> AsyncOperationResponse[
"capo_resiliencehub.types.describe_app_assessment_response.DescribeAppAssessmentResponse"
]:
import capo_resiliencehub._operations.aws_resilience_hub.describe_app_assessment
(
output,
http_response,
) = await capo_resiliencehub._operations.aws_resilience_hub.describe_app_assessment.async_describe_app_assessment(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
def _redact_output(
output: "capo_resiliencehub.types.describe_app_assessment_response.DescribeAppAssessmentResponse",
) -> dict[str, Any]:
import capo_resiliencehub.types.describe_app_assessment_response
return capo_resiliencehub.types.describe_app_assessment_response.redact_sensitive(
output
)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging("DescribeAppAssessment", redact_output=_redact_output),
)
input_: capo_resiliencehub.types.describe_app_assessment_request.DescribeAppAssessmentRequest = {
"assessment_arn": assessment_arn
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output