Skip to content

/AWS1/CL_S3=>CREATEBUCKETMETADATACONF()

About CreateBucketMetadataConfiguration

Creates an S3 Metadata V2 metadata configuration for a general purpose bucket. For more information, see Accelerating data discovery with S3 Metadata in the Amazon S3 User Guide.

Permissions

To use this operation, you must have the following permissions. For more information, see Setting up permissions for configuring metadata tables in the Amazon S3 User Guide.

If you want to encrypt your metadata tables with server-side encryption with Key Management Service (KMS) keys (SSE-KMS), you need additional permissions in your KMS key policy. For more information, see Setting up permissions for configuring metadata tables in the Amazon S3 User Guide.

If you also want to integrate your table bucket with Amazon Web Services analytics services so that you can query your metadata table, you need additional permissions. For more information, see Integrating Amazon S3 Tables with Amazon Web Services analytics services in the Amazon S3 User Guide.

To query your metadata tables, you need additional permissions. For more information, see Permissions for querying metadata tables in the Amazon S3 User Guide.

  • s3:CreateBucketMetadataTableConfiguration

    The IAM policy action name is the same for the V1 and V2 API operations.

  • s3tables:CreateTableBucket

  • s3tables:CreateNamespace

  • s3tables:GetTable

  • s3tables:CreateTable

  • s3tables:PutTablePolicy

  • s3tables:PutTableEncryption

  • kms:DescribeKey

The following operations are related to CreateBucketMetadataConfiguration:

Method Signature

IMPORTING

Required arguments:

iv_bucket TYPE /AWS1/S3_BUCKETNAME /AWS1/S3_BUCKETNAME

The general purpose bucket that you want to create the metadata configuration for.

io_metadataconfiguration TYPE REF TO /AWS1/CL_S3_METADATACONF /AWS1/CL_S3_METADATACONF

The contents of your metadata configuration.

Optional arguments:

iv_contentmd5 TYPE /AWS1/S3_CONTENTMD5 /AWS1/S3_CONTENTMD5

The Content-MD5 header for the metadata configuration.

iv_checksumalgorithm TYPE /AWS1/S3_CHECKSUMALGORITHM /AWS1/S3_CHECKSUMALGORITHM

The checksum algorithm to use with your metadata configuration.

iv_expectedbucketowner TYPE /AWS1/S3_ACCOUNTID /AWS1/S3_ACCOUNTID

The expected owner of the general purpose bucket that corresponds to your metadata configuration.

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.

lo_client->/aws1/if_s3~createbucketmetadataconf(
  io_metadataconfiguration = new /aws1/cl_s3_metadataconf(
    io_inventorytableconf = new /aws1/cl_s3_inventorytableconf(
      io_encryptionconfiguration = new /aws1/cl_s3_mettableencconf(
        iv_kmskeyarn = |string|
        iv_ssealgorithm = |string|
      )
      iv_configurationstate = |string|
    )
    io_journaltableconfiguration = new /aws1/cl_s3_journaltableconf(
      io_encryptionconfiguration = new /aws1/cl_s3_mettableencconf(
        iv_kmskeyarn = |string|
        iv_ssealgorithm = |string|
      )
      io_recordexpiration = new /aws1/cl_s3_recordexpiration(
        iv_days = 123
        iv_expiration = |string|
      )
    )
  )
  iv_bucket = |string|
  iv_checksumalgorithm = |string|
  iv_contentmd5 = |string|
  iv_expectedbucketowner = |string|
).