Skip to content

batch_get_blueprints async

batch_get_blueprints(
    names: BatchGetBlueprintNames,
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
    include_blueprint: Optional[NullableBoolean] = None,
    include_parameter_spec: Optional[NullableBoolean] = None,
) -> BatchGetBlueprintsResponse

Retrieves information about a list of blueprints.

Parameters:

  • names (BatchGetBlueprintNames) –

    A list of blueprint names.

  • include_blueprint (Optional[NullableBoolean], default: None ) –

    Specifies whether or not to include the blueprint in the response.

  • include_parameter_spec (Optional[NullableBoolean], default: None ) –

    Specifies whether or not to include the parameters, as a JSON string, for the blueprint in the response.

Raises:

Source code in docs_src/capo_glue/_services/async_glue.py
async def batch_get_blueprints(
    self,
    names: "capo_glue.types.batch_get_blueprint_names.BatchGetBlueprintNames",
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
    include_blueprint: Optional[
        "capo_glue.types.nullable_boolean.NullableBoolean"
    ] = None,
    include_parameter_spec: Optional[
        "capo_glue.types.nullable_boolean.NullableBoolean"
    ] = None,
) -> "capo_glue.types.batch_get_blueprints_response.BatchGetBlueprintsResponse":
    """<p>Retrieves information about a list of blueprints.</p>

    Args:
        names: <p>A list of blueprint names.</p>
        include_blueprint: <p>Specifies whether or not to include the blueprint in the response.</p>
        include_parameter_spec: <p>Specifies whether or not to include the parameters, as a JSON string, for the blueprint in the response.</p>

    Raises:
        capo_glue.errors.internal_service_exception.InternalServiceException: <p>An internal service error occurred.</p>
        capo_glue.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
        capo_glue.errors.operation_timeout_exception.OperationTimeoutException: <p>The operation timed out.</p>
        capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_glue.types.batch_get_blueprints_request.BatchGetBlueprintsRequest]",
    ) -> AsyncOperationResponse[
        "capo_glue.types.batch_get_blueprints_response.BatchGetBlueprintsResponse"
    ]:
        import capo_glue._operations.aws_glue.batch_get_blueprints

        (
            output,
            http_response,
        ) = await capo_glue._operations.aws_glue.batch_get_blueprints.async_batch_get_blueprints(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("BatchGetBlueprints")
    )
    input_: capo_glue.types.batch_get_blueprints_request.BatchGetBlueprintsRequest = {
        "names": names
    }
    if include_blueprint is not None:
        input_["include_blueprint"] = include_blueprint
    if include_parameter_spec is not None:
        input_["include_parameter_spec"] = include_parameter_spec

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output