Returns an array of report groups.
Parameters:
-
report_group_arns
(ReportGroupArns)
–
An array of report group ARNs that identify the report groups to return.
Raises:
Source code in docs_src/capo_codebuild/_services/async_code_build.py
| async def batch_get_report_groups(
self,
report_group_arns: "capo_codebuild.types.report_group_arns.ReportGroupArns",
*,
config_overrides: Optional[AsyncCodeBuildClientConfig] = None,
) -> (
"capo_codebuild.types.batch_get_report_groups_output.BatchGetReportGroupsOutput"
):
"""<p> Returns an array of report groups. </p>
Args:
report_group_arns: <p> An array of report group ARNs that identify the report groups to return. </p>
Raises:
capo_codebuild.errors.invalid_input_exception.InvalidInputException: <p>The input value that was provided is not valid.</p>
capo_codebuild.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_codebuild.types.batch_get_report_groups_input.BatchGetReportGroupsInput]",
) -> AsyncOperationResponse[
"capo_codebuild.types.batch_get_report_groups_output.BatchGetReportGroupsOutput"
]:
import capo_codebuild._operations.code_build_20161006.batch_get_report_groups
(
output,
http_response,
) = await capo_codebuild._operations.code_build_20161006.batch_get_report_groups.async_batch_get_report_groups(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("BatchGetReportGroups")
)
input_: capo_codebuild.types.batch_get_report_groups_input.BatchGetReportGroupsInput = {
"report_group_arns": report_group_arns
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|