Skip to content

delete_table_replication

delete_table_replication(
    table_arn: TableARN,
    version_token: str,
    *,
    config_overrides: Optional[S3TablesClientConfig] = None,
) -> None

Deletes the replication configuration for a specific table. After deletion, new updates to this table will no longer be replicated to destination tables, though existing replicated copies will remain in destination buckets.

Permissions

You must have the s3tables:DeleteTableReplication permission to use this operation.

Parameters:

  • table_arn (TableARN) –

    The Amazon Resource Name (ARN) of the table.

  • version_token (str) –

    A version token from a previous GetTableReplication call. Use this token to ensure you're deleting the expected version of the configuration.

Raises:

Source code in docs_src/capo_s3tables/_services/s3_tables.py
def delete_table_replication(
    self,
    table_arn: "capo_s3tables.types.table_arn.TableARN",
    version_token: str,
    *,
    config_overrides: Optional[S3TablesClientConfig] = None,
) -> None:
    """<p>Deletes the replication configuration for a specific table. After deletion, new updates to this table will no longer be replicated to destination tables, though existing replicated copies will remain in destination buckets.</p> <dl> <dt>Permissions</dt> <dd> <p>You must have the <code>s3tables:DeleteTableReplication</code> permission to use this operation.</p> </dd> </dl>

    Args:
        table_arn: <p>The Amazon Resource Name (ARN) of the table.</p>
        version_token: <p>A version token from a previous GetTableReplication call. Use this token to ensure you're deleting the expected version of the configuration.</p>

    Raises:
        capo_s3tables.errors.access_denied_exception.AccessDeniedException: <p>The action cannot be performed because you do not have the required permission.</p>
        capo_s3tables.errors.bad_request_exception.BadRequestException: <p>The request is invalid or malformed.</p>
        capo_s3tables.errors.conflict_exception.ConflictException: <p>The request failed because there is a conflict with a previous write. You can retry the request.</p>
        capo_s3tables.errors.forbidden_exception.ForbiddenException: <p>The caller isn't authorized to make the request.</p>
        capo_s3tables.errors.internal_server_error_exception.InternalServerErrorException: <p>The request failed due to an internal server error.</p>
        capo_s3tables.errors.not_found_exception.NotFoundException: <p>The request was rejected because the specified resource could not be found.</p>
        capo_s3tables.errors.too_many_requests_exception.TooManyRequestsException: <p>The limit on the number of requests per second was exceeded.</p>
        capo_s3tables.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_s3tables.types.delete_table_replication_request.DeleteTableReplicationRequest]",
    ) -> OperationResponse[None]:
        import capo_s3tables._operations.s3_table_buckets.delete_table_replication

        output, http_response = (
            capo_s3tables._operations.s3_table_buckets.delete_table_replication.delete_table_replication(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteTableReplication")
    )
    input_: capo_s3tables.types.delete_table_replication_request.DeleteTableReplicationRequest = {
        "table_arn": table_arn,
        "version_token": version_token,
    }

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