Skip to content

/AWS1/IF_S3T=>PUTTABLEBUCKETREPLICATION()

About PutTableBucketReplication

Creates or updates the replication configuration for a table bucket. This operation defines how tables in the source bucket are replicated to destination buckets. Replication helps ensure data availability and disaster recovery across regions or accounts.

Permissions
  • You must have the s3tables:PutTableBucketReplication permission to use this operation. The IAM role specified in the configuration must have permissions to read from the source bucket and write permissions to all destination buckets.

  • You must also have the following permissions:

    • s3tables:GetTable permission on the source table.

    • s3tables:ListTables permission on the bucket containing the table.

    • s3tables:CreateTable permission for the destination.

    • s3tables:CreateNamespace permission for the destination.

    • s3tables:GetTableMaintenanceConfig permission for the source bucket.

    • s3tables:PutTableMaintenanceConfig permission for the destination bucket.

  • You must have iam:PassRole permission with condition allowing roles to be passed to replication.s3tables.amazonaws.com.

Method Signature

METHODS /AWS1/IF_S3T~PUTTABLEBUCKETREPLICATION
  IMPORTING
    !IV_TABLEBUCKETARN TYPE /AWS1/S3TTABLEBUCKETARN OPTIONAL
    !IV_VERSIONTOKEN TYPE /AWS1/S3TVERSIONTOKEN OPTIONAL
    !IO_CONFIGURATION TYPE REF TO /AWS1/CL_S3TTABLEBKTREPLCONF OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_s3tputtablebktreplrsp
  RAISING
    /AWS1/CX_S3TACCESSDENIEDEX
    /AWS1/CX_S3TBADREQUESTEX
    /AWS1/CX_S3TCONFLICTEXCEPTION
    /AWS1/CX_S3TFORBIDDENEXCEPTION
    /AWS1/CX_S3TINTERNALSERVERER00
    /AWS1/CX_S3TNOTFOUNDEXCEPTION
    /AWS1/CX_S3TTOOMANYREQUESTSEX
    /AWS1/CX_S3TCLIENTEXC
    /AWS1/CX_S3TSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_tablebucketarn TYPE /AWS1/S3TTABLEBUCKETARN /AWS1/S3TTABLEBUCKETARN

The Amazon Resource Name (ARN) of the source table bucket.

io_configuration TYPE REF TO /AWS1/CL_S3TTABLEBKTREPLCONF /AWS1/CL_S3TTABLEBKTREPLCONF

The replication configuration to apply, including the IAM role and replication rules.

Optional arguments:

iv_versiontoken TYPE /AWS1/S3TVERSIONTOKEN /AWS1/S3TVERSIONTOKEN

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

RETURNING

oo_output TYPE REF TO /aws1/cl_s3tputtablebktreplrsp /AWS1/CL_S3TPUTTABLEBKTREPLRSP

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

DATA(lo_result) = lo_client->puttablebucketreplication(
  io_configuration = new /aws1/cl_s3ttablebktreplconf(
    it_rules = VALUE /aws1/cl_s3ttablebktreplrule=>tt_tablebucketreplicationrules(
      (
        new /aws1/cl_s3ttablebktreplrule(
          it_destinations = VALUE /aws1/cl_s3treplicationdst=>tt_replicationdestinations(
            ( new /aws1/cl_s3treplicationdst( |string| ) )
          )
        )
      )
    )
    iv_role = |string|
  )
  iv_tablebucketarn = |string|
  iv_versiontoken = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_versiontoken = lo_result->get_versiontoken( ).
  lv_string = lo_result->get_status( ).
ENDIF.