Skip to content

get_system_table

get_system_table(
    system_table_type: SystemTableType,
    *,
    config_overrides: Optional[GlueClientConfig] = None,
) -> GetSystemTableResponse

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/glue.py
def get_system_table(
    self,
    system_table_type: "capo_glue.types.system_table_type.SystemTableType",
    *,
    config_overrides: Optional[GlueClientConfig] = 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.
    """

    def _handler(
        req: "OperationRequest[capo_glue.types.get_system_table_request.GetSystemTableRequest]",
    ) -> OperationResponse[
        "capo_glue.types.get_system_table_response.GetSystemTableResponse"
    ]:
        import capo_glue._operations.aws_glue.get_system_table

        output, http_response = (
            capo_glue._operations.aws_glue.get_system_table.get_system_table(
                req.options, req.input
            )
        )
        return OperationResponse(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 = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output