Skip to content

batch_get_reports

batch_get_reports(
    report_arns: ReportArns, *, config_overrides: Optional[CodeBuildClientConfig] = None
) -> BatchGetReportsOutput

Returns an array of reports.

Parameters:

  • report_arns (ReportArns) –

    An array of ARNs that identify the Report objects to return.

Raises:

Source code in docs_src/capo_codebuild/_services/code_build.py
def batch_get_reports(
    self,
    report_arns: "capo_codebuild.types.report_arns.ReportArns",
    *,
    config_overrides: Optional[CodeBuildClientConfig] = None,
) -> "capo_codebuild.types.batch_get_reports_output.BatchGetReportsOutput":
    """<p> Returns an array of reports. </p>

    Args:
        report_arns: <p> An array of ARNs that identify the <code>Report</code> objects 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.
    """

    def _handler(
        req: "OperationRequest[capo_codebuild.types.batch_get_reports_input.BatchGetReportsInput]",
    ) -> OperationResponse[
        "capo_codebuild.types.batch_get_reports_output.BatchGetReportsOutput"
    ]:
        import capo_codebuild._operations.code_build_20161006.batch_get_reports

        output, http_response = (
            capo_codebuild._operations.code_build_20161006.batch_get_reports.batch_get_reports(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("BatchGetReports")
    )
    input_: capo_codebuild.types.batch_get_reports_input.BatchGetReportsInput = {
        "report_arns": report_arns
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output