Skip to content

get_blueprint

get_blueprint(
    name: NameString,
    *,
    config_overrides: Optional[GlueClientConfig] = None,
    include_blueprint: Optional[NullableBoolean] = None,
    include_parameter_spec: Optional[NullableBoolean] = None,
) -> GetBlueprintResponse

Retrieves the details of a blueprint.

Parameters:

  • name (NameString) –

    The name of the blueprint.

  • 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 parameter specification.

Raises:

Source code in docs_src/capo_glue/_services/glue.py
def get_blueprint(
    self,
    name: "capo_glue.types.name_string.NameString",
    *,
    config_overrides: Optional[GlueClientConfig] = 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.get_blueprint_response.GetBlueprintResponse":
    """<p>Retrieves the details of a blueprint.</p>

    Args:
        name: <p>The name of the blueprint.</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 parameter specification.</p>

    Raises:
        capo_glue.errors.entity_not_found_exception.EntityNotFoundException: <p>A specified entity does not exist</p>
        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.
    """

    def _handler(
        req: "OperationRequest[capo_glue.types.get_blueprint_request.GetBlueprintRequest]",
    ) -> OperationResponse[
        "capo_glue.types.get_blueprint_response.GetBlueprintResponse"
    ]:
        import capo_glue._operations.aws_glue.get_blueprint

        output, http_response = (
            capo_glue._operations.aws_glue.get_blueprint.get_blueprint(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetBlueprint")
    )
    input_: capo_glue.types.get_blueprint_request.GetBlueprintRequest = {
        "name": name
    }
    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 = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output