Skip to content

update_system_table

update_system_table(
    system_table_type: SystemTableType,
    action: TableAction,
    *,
    config_overrides: Optional[GlueClientConfig] = None,
    encryption_configuration: Optional[SystemTableEncryptionConfiguration] = None,
    additional_configuration: Optional[SystemTablesConfigurationMap] = None,
) -> UpdateSystemTableResponse

Updates the status of a single Glue system table for the account in the current Region. Provisioning happens asynchronously; use GetSystemTable to retrieve the resulting state of the table.

Parameters:

  • system_table_type (SystemTableType) –

    The type of the system table to update. Valid values are GLUE_JOB_RUNS and GLUE_SESSIONS.

  • action (TableAction) –

    The action to perform on the system table. Valid values are ENABLE and DISABLE.

  • encryption_configuration (Optional[SystemTableEncryptionConfiguration], default: None ) –

    The encryption configuration to apply to the system table. This field is valid only when Action is ENABLE. If you don't specify it, the table is encrypted using SSE_S3.

  • additional_configuration (Optional[SystemTablesConfigurationMap], default: None ) –

    A map of additional configuration properties to apply to the system table.

Raises:

Source code in docs_src/capo_glue/_services/glue.py
def update_system_table(
    self,
    system_table_type: "capo_glue.types.system_table_type.SystemTableType",
    action: "capo_glue.types.table_action.TableAction",
    *,
    config_overrides: Optional[GlueClientConfig] = None,
    encryption_configuration: Optional[
        "capo_glue.types.system_table_encryption_configuration.SystemTableEncryptionConfiguration"
    ] = None,
    additional_configuration: Optional[
        "capo_glue.types.system_tables_configuration_map.SystemTablesConfigurationMap"
    ] = None,
) -> "capo_glue.types.update_system_table_response.UpdateSystemTableResponse":
    """<p>Updates the status of a single Glue system table for the account in the current Region. Provisioning happens asynchronously; use <code>GetSystemTable</code> to retrieve the resulting state of the table.</p>

    Args:
        system_table_type: <p>The type of the system table to update. Valid values are <code>GLUE_JOB_RUNS</code> and <code>GLUE_SESSIONS</code>.</p>
        action: <p>The action to perform on the system table. Valid values are <code>ENABLE</code> and <code>DISABLE</code>.</p>
        encryption_configuration: <p>The encryption configuration to apply to the system table. This field is valid only when <code>Action</code> is <code>ENABLE</code>. If you don't specify it, the table is encrypted using <code>SSE_S3</code>.</p>
        additional_configuration: <p>A map of additional configuration properties to apply to the system table.</p>

    Raises:
        capo_glue.errors.access_denied_exception.AccessDeniedException: <p>Access to a resource was denied.</p>
        capo_glue.errors.concurrent_modification_exception.ConcurrentModificationException: <p>Two processes are trying to modify a resource simultaneously.</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.resource_number_limit_exceeded_exception.ResourceNumberLimitExceededException: <p>A resource numerical limit was exceeded.</p>
        capo_glue.errors.throttling_exception.ThrottlingException: <p>The throttling threshhold was exceeded.</p>
        capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_glue.types.update_system_table_request.UpdateSystemTableRequest]",
    ) -> OperationResponse[
        "capo_glue.types.update_system_table_response.UpdateSystemTableResponse"
    ]:
        import capo_glue._operations.aws_glue.update_system_table

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateSystemTable")
    )
    input_: capo_glue.types.update_system_table_request.UpdateSystemTableRequest = {
        "system_table_type": system_table_type,
        "action": action,
    }
    if encryption_configuration is not None:
        input_["encryption_configuration"] = encryption_configuration
    if additional_configuration is not None:
        input_["additional_configuration"] = additional_configuration

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output