Skip to content

batch_get_fleets

batch_get_fleets(
    names: FleetNames, *, config_overrides: Optional[CodeBuildClientConfig] = None
) -> BatchGetFleetsOutput

Gets information about one or more compute fleets.

Parameters:

  • names (FleetNames) –

    The names or ARNs of the compute fleets.

Raises:

Source code in docs_src/capo_codebuild/_services/code_build.py
def batch_get_fleets(
    self,
    names: "capo_codebuild.types.fleet_names.FleetNames",
    *,
    config_overrides: Optional[CodeBuildClientConfig] = None,
) -> "capo_codebuild.types.batch_get_fleets_output.BatchGetFleetsOutput":
    """<p>Gets information about one or more compute fleets.</p>

    Args:
        names: <p>The names or ARNs of the compute fleets.</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_fleets_input.BatchGetFleetsInput]",
    ) -> OperationResponse[
        "capo_codebuild.types.batch_get_fleets_output.BatchGetFleetsOutput"
    ]:
        import capo_codebuild._operations.code_build_20161006.batch_get_fleets

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("BatchGetFleets")
    )
    input_: capo_codebuild.types.batch_get_fleets_input.BatchGetFleetsInput = {
        "names": names
    }

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