Skip to content

/AWS1/CL_S3C=>UPDATESTORAGELENSGROUP()

About UpdateStorageLensGroup

Updates the existing Storage Lens group.

To use this operation, you must have the permission to perform the s3:UpdateStorageLensGroup action. For more information about the required Storage Lens Groups permissions, see Setting account permissions to use S3 Storage Lens groups.

For information about Storage Lens groups errors, see List of Amazon S3 Storage Lens error codes.

Method Signature

IMPORTING

Required arguments:

iv_name TYPE /AWS1/S3CSTORAGELENSGROUPNAME /AWS1/S3CSTORAGELENSGROUPNAME

The name of the Storage Lens group that you want to update.

iv_accountid TYPE /AWS1/S3CACCOUNTID /AWS1/S3CACCOUNTID

The Amazon Web Services account ID of the Storage Lens group owner.

io_storagelensgroup TYPE REF TO /AWS1/CL_S3CSTORAGELENSGROUP /AWS1/CL_S3CSTORAGELENSGROUP

The JSON file that contains the Storage Lens group 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_s3c~updatestoragelensgroup(
  io_storagelensgroup = new /aws1/cl_s3cstoragelensgroup(
    io_filter = new /aws1/cl_s3cstrglensgroupfilt(
      io_and = new /aws1/cl_s3cstrglensgroupandop(
        io_matchobjectage = new /aws1/cl_s3cmatchobjectage(
          iv_daysgreaterthan = 123
          iv_dayslessthan = 123
        )
        io_matchobjectsize = new /aws1/cl_s3cmatchobjectsize(
          iv_bytesgreaterthan = 123
          iv_byteslessthan = 123
        )
        it_matchanyprefix = VALUE /aws1/cl_s3cmatchanyprefix_w=>tt_matchanyprefix(
          ( new /aws1/cl_s3cmatchanyprefix_w( |string| ) )
        )
        it_matchanysuffix = VALUE /aws1/cl_s3cmatchanysuffix_w=>tt_matchanysuffix(
          ( new /aws1/cl_s3cmatchanysuffix_w( |string| ) )
        )
        it_matchanytag = VALUE /aws1/cl_s3cs3tag=>tt_matchanytag(
          (
            new /aws1/cl_s3cs3tag(
              iv_key = |string|
              iv_value = |string|
            )
          )
        )
      )
      io_matchobjectage = new /aws1/cl_s3cmatchobjectage(
        iv_daysgreaterthan = 123
        iv_dayslessthan = 123
      )
      io_matchobjectsize = new /aws1/cl_s3cmatchobjectsize(
        iv_bytesgreaterthan = 123
        iv_byteslessthan = 123
      )
      io_or = new /aws1/cl_s3cstrglensgrouporop(
        io_matchobjectage = new /aws1/cl_s3cmatchobjectage(
          iv_daysgreaterthan = 123
          iv_dayslessthan = 123
        )
        io_matchobjectsize = new /aws1/cl_s3cmatchobjectsize(
          iv_bytesgreaterthan = 123
          iv_byteslessthan = 123
        )
        it_matchanyprefix = VALUE /aws1/cl_s3cmatchanyprefix_w=>tt_matchanyprefix(
          ( new /aws1/cl_s3cmatchanyprefix_w( |string| ) )
        )
        it_matchanysuffix = VALUE /aws1/cl_s3cmatchanysuffix_w=>tt_matchanysuffix(
          ( new /aws1/cl_s3cmatchanysuffix_w( |string| ) )
        )
        it_matchanytag = VALUE /aws1/cl_s3cs3tag=>tt_matchanytag(
          (
            new /aws1/cl_s3cs3tag(
              iv_key = |string|
              iv_value = |string|
            )
          )
        )
      )
      it_matchanyprefix = VALUE /aws1/cl_s3cmatchanyprefix_w=>tt_matchanyprefix(
        ( new /aws1/cl_s3cmatchanyprefix_w( |string| ) )
      )
      it_matchanysuffix = VALUE /aws1/cl_s3cmatchanysuffix_w=>tt_matchanysuffix(
        ( new /aws1/cl_s3cmatchanysuffix_w( |string| ) )
      )
      it_matchanytag = VALUE /aws1/cl_s3cs3tag=>tt_matchanytag(
        (
          new /aws1/cl_s3cs3tag(
            iv_key = |string|
            iv_value = |string|
          )
        )
      )
    )
    iv_name = |string|
    iv_storagelensgrouparn = |string|
  )
  iv_accountid = |string|
  iv_name = |string|
).