Skip to content

put_system_tables_configuration async

put_system_tables_configuration(
    *,
    config_overrides: Optional[AsyncEMRClientConfig] = None,
    platforms: Optional[SystemTablesConfigurationList] = None,
) -> PutSystemTablesConfigurationOutput

Enables or disables system tables for one or more Amazon EMR platforms in your account in the current Region. System tables store Amazon EMR operational data as Apache Iceberg tables in Amazon S3 Tables in your account. For each platform in the request, the operation replaces that platform's system tables configuration; platforms that you don't specify are unchanged. The operation isn't atomic across platforms: if it returns an error, some of the platforms in the request might already be updated. Call GetSystemTablesConfiguration to see the current configuration of each platform before you retry. Tables are set up asynchronously: a table that you enable reports PROVISIONING until it is ready. Use GetSystemTablesConfiguration to check its status. If the storage for your system tables is still transitioning after a recent deletion, the operation returns a ConflictException. Wait a few minutes and retry.

Parameters:

Raises:

Source code in docs_src/capo_emr/_services/async_emr.py
async def put_system_tables_configuration(
    self,
    *,
    config_overrides: Optional[AsyncEMRClientConfig] = None,
    platforms: Optional[
        "capo_emr.types.system_tables_configuration_list.SystemTablesConfigurationList"
    ] = None,
) -> "capo_emr.types.put_system_tables_configuration_output.PutSystemTablesConfigurationOutput":
    """<p>Enables or disables system tables for one or more Amazon EMR platforms in your account in the current Region. System tables store Amazon EMR operational data as Apache Iceberg tables in Amazon S3 Tables in your account. For each platform in the request, the operation replaces that platform's system tables configuration; platforms that you don't specify are unchanged. The operation isn't atomic across platforms: if it returns an error, some of the platforms in the request might already be updated. Call <code>GetSystemTablesConfiguration</code> to see the current configuration of each platform before you retry. Tables are set up asynchronously: a table that you enable reports <code>PROVISIONING</code> until it is ready. Use <code>GetSystemTablesConfiguration</code> to check its status. If the storage for your system tables is still transitioning after a recent deletion, the operation returns a <code>ConflictException</code>. Wait a few minutes and retry.</p>

    Args:
        platforms: <p>The system tables configuration to apply to each platform. Specify each platform at most once.</p>

    Raises:
        capo_emr.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient permissions to perform this operation.</p>
        capo_emr.errors.conflict_exception.ConflictException: <p>The request conflicts with the current state of the resource.</p>
        capo_emr.errors.internal_server_exception.InternalServerException: <p>This exception occurs when there is an internal failure in the Amazon EMR service.</p>
        capo_emr.errors.throttling_exception.ThrottlingException: <p>The request was denied because of request throttling. Retry the request after a delay.</p>
        capo_emr.errors.validation_exception.ValidationException: <p>The request failed because an input parameter is not valid.</p>
        capo_emr.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_emr.types.put_system_tables_configuration_input.PutSystemTablesConfigurationInput]",
    ) -> AsyncOperationResponse[
        "capo_emr.types.put_system_tables_configuration_output.PutSystemTablesConfigurationOutput"
    ]:
        import capo_emr._operations.elastic_map_reduce.put_system_tables_configuration

        (
            output,
            http_response,
        ) = await capo_emr._operations.elastic_map_reduce.put_system_tables_configuration.async_put_system_tables_configuration(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("PutSystemTablesConfiguration")
    )
    input_: capo_emr.types.put_system_tables_configuration_input.PutSystemTablesConfigurationInput = {}
    if platforms is not None:
        input_["platforms"] = platforms

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output