Describes the findings that are specified by the ARNs of the findings.
Parameters:
-
finding_arns
(BatchDescribeArnList)
–
The ARN that specifies the finding that you want to describe.
-
locale
(Optional[Locale], default:
None
)
–
The locale into which you want to translate a finding description, recommendation, and the short description that identifies the finding.
Raises:
Source code in docs_src/capo_inspector/_services/async_inspector.py
| async def describe_findings(
self,
finding_arns: "capo_inspector.types.batch_describe_arn_list.BatchDescribeArnList",
*,
config_overrides: Optional[AsyncInspectorClientConfig] = None,
locale: Optional["capo_inspector.types.locale.Locale"] = None,
) -> "capo_inspector.types.describe_findings_response.DescribeFindingsResponse":
"""<p>Describes the findings that are specified by the ARNs of the findings.</p>
Args:
finding_arns: <p>The ARN that specifies the finding that you want to describe.</p>
locale: <p>The locale into which you want to translate a finding description, recommendation, and the short description that identifies the finding.</p>
Raises:
capo_inspector.errors.internal_exception.InternalException: <p>Internal server error.</p>
capo_inspector.errors.invalid_input_exception.InvalidInputException: <p>The request was rejected because an invalid or out-of-range value was supplied for an input parameter.</p>
capo_inspector.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_inspector.types.describe_findings_request.DescribeFindingsRequest]",
) -> AsyncOperationResponse[
"capo_inspector.types.describe_findings_response.DescribeFindingsResponse"
]:
import capo_inspector._operations.inspector_service.describe_findings
(
output,
http_response,
) = await capo_inspector._operations.inspector_service.describe_findings.async_describe_findings(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeFindings")
)
input_: capo_inspector.types.describe_findings_request.DescribeFindingsRequest = {
"finding_arns": finding_arns
}
if locale is not None:
input_["locale"] = locale
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|