Skip to content

batch_get_projects

batch_get_projects(
    names: ProjectNames, *, config_overrides: Optional[CodeBuildClientConfig] = None
) -> BatchGetProjectsOutput

Gets information about one or more build projects.

Parameters:

  • names (ProjectNames) –

    The names or ARNs of the build projects. To get information about a project shared with your Amazon Web Services account, its ARN must be specified. You cannot specify a shared project using its name.

Raises:

Source code in docs_src/capo_codebuild/_services/code_build.py
def batch_get_projects(
    self,
    names: "capo_codebuild.types.project_names.ProjectNames",
    *,
    config_overrides: Optional[CodeBuildClientConfig] = None,
) -> "capo_codebuild.types.batch_get_projects_output.BatchGetProjectsOutput":
    """<p>Gets information about one or more build projects.</p>

    Args:
        names: <p>The names or ARNs of the build projects. To get information about a project shared with your Amazon Web Services account, its ARN must be specified. You cannot specify a shared project using its name.</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_projects_input.BatchGetProjectsInput]",
    ) -> OperationResponse[
        "capo_codebuild.types.batch_get_projects_output.BatchGetProjectsOutput"
    ]:
        import capo_codebuild._operations.code_build_20161006.batch_get_projects

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("BatchGetProjects")
    )
    input_: capo_codebuild.types.batch_get_projects_input.BatchGetProjectsInput = {
        "names": names
    }

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