PutBucketInventoryConfiguration #

Overview #

This implementation of the PUT operation adds an inventory configuration (identified by the inventory ID) to the bucket. You can have up to 1,000 inventory configurations per bucket.

AWS API Reference: https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketInventoryConfiguration.html

Method #


Import Parameters #

The request uses the following import parameters.

  • i_bucket_name (bucket in AWS) (Required)

    Name of the bucket to create.

  • i_region (Required)

    AWS Region of the Amazon S3 Bucket.

  • i_id(id in AWS) (Required)

    The ID used to identify the inventory configuration.

  • i_destination(Destination in AWS) (Required)

    Contains information about where to publish the inventory results.

  • i_filter(Filter in AWS)

    Specifies an inventory filter. The inventory only includes objects that meet the filter’s criteria.

  • i_includeobjectversion(IncludedObjectVersions in AWS) (Required)

    Object versions to include in the inventory list.

  • i_isenabled(IsEnabled in AWS) (Required)

    Specifies whether the inventory is enabled or disabled.

  • i_t_optionalfields(OptionalFields Table in AWS)

    Contains the optional fields that are included in the inventory results.

  • i_schedule(Schedule in AWS)

    Specifies the schedule for generating inventory results.

  • i_x_amz_expected_b_owner(x-amz-expected-bucket-owner in AWS)

    The account id of the expected bucket owner.

Export Parameters #

This method use the following export parameters:

  • e_http_status

    HTTP Status code.

  • e_response_headers

    Returns information about the request in format Name/Value pair values.

  • e_response_content

    Response content in string format.

Example #

DATA: lo_s3                     TYPE REF TO /lnkc/cl_sdk_aws_s3,
      lv_http_status            TYPE i,
      lt_response_headers       TYPE tihttpnvp,
      lv_response_content       TYPE string,
      ls_destination            TYPE /lnkc/aws_s3_s_inventorydestin,
      lt_optional_fields        TYPE /lnkc/aws_s3_t_strings.

      CREATE OBJECT lo_s3
          i_user_name         = 'user_awsconnector'
          i_access_key        = 'acces_key_value'
          i_secret_access_key = 'secret_acceskey_value'.

        CALL METHOD lo_s3->putbucketinventoryconfiguratio
            i_bucket_name            = 'i_bucket_name'
            i_region                 = 'i_region'
            i_id                     = 'i_id'
            i_destination            = ls_destination
            i_filter                 = 'i_filter'
            i_includedobjectversions = 'i_includedobjectversions'
            i_isenabled              = 'i_isenabled'
            i_t_optionalfields       = lt_optional_fields
            i_schedule               = 'i_schedule'
*           i_x_amz_expected_b_owner =
            e_http_status            = lv_http_status
            e_response_headers       = lt_response_headers
            e_response_content       = lv_response_content.
      CATCH /lnkc/cx_sdk_aws .
        " Error Message