Retrieves the status and configuration of a single Glue system table for the account in the current Region.
Parameters:
-
system_table_type
(SystemTableType)
–
The type of the system table to retrieve. Valid values are GLUE_JOB_RUNS and GLUE_SESSIONS.
Raises:
Source code in docs_src/capo_glue/_services/async_glue.py
| async def get_system_table(
self,
system_table_type: "capo_glue.types.system_table_type.SystemTableType",
*,
config_overrides: Optional[AsyncGlueClientConfig] = None,
) -> "capo_glue.types.get_system_table_response.GetSystemTableResponse":
"""<p>Retrieves the status and configuration of a single Glue system table for the account in the current Region.</p>
Args:
system_table_type: <p>The type of the system table to retrieve. Valid values are <code>GLUE_JOB_RUNS</code> and <code>GLUE_SESSIONS</code>.</p>
Raises:
capo_glue.errors.access_denied_exception.AccessDeniedException: <p>Access to a resource was denied.</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_not_supported_exception.OperationNotSupportedException: <p>The operation is not available in the region.</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_system_table_request.GetSystemTableRequest]",
) -> AsyncOperationResponse[
"capo_glue.types.get_system_table_response.GetSystemTableResponse"
]:
import capo_glue._operations.aws_glue.get_system_table
(
output,
http_response,
) = await capo_glue._operations.aws_glue.get_system_table.async_get_system_table(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetSystemTable")
)
input_: capo_glue.types.get_system_table_request.GetSystemTableRequest = {
"system_table_type": system_table_type
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|