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/glue.py
| def batch_get_blueprints(
self,
names: "capo_glue.types.batch_get_blueprint_names.BatchGetBlueprintNames",
*,
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.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.
"""
def _handler(
req: "OperationRequest[capo_glue.types.batch_get_blueprints_request.BatchGetBlueprintsRequest]",
) -> OperationResponse[
"capo_glue.types.batch_get_blueprints_response.BatchGetBlueprintsResponse"
]:
import capo_glue._operations.aws_glue.batch_get_blueprints
output, http_response = (
capo_glue._operations.aws_glue.batch_get_blueprints.batch_get_blueprints(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|