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/async_glue.py
| async def get_blueprint(
self,
name: "capo_glue.types.name_string.NameString",
*,
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.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.
"""
async def _handler(
req: "AsyncOperationRequest[capo_glue.types.get_blueprint_request.GetBlueprintRequest]",
) -> AsyncOperationResponse[
"capo_glue.types.get_blueprint_response.GetBlueprintResponse"
]:
import capo_glue._operations.aws_glue.get_blueprint
(
output,
http_response,
) = await capo_glue._operations.aws_glue.get_blueprint.async_get_blueprint(
req.options, req.input
)
return AsyncOperationResponse(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 = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|