GetBucketAccelerateConfigurati

GetBucketAccelerateConfigurati #

Overview #

This implementation of the GET operation uses the accelerate subresource to return the Transfer Acceleration state of a bucket, which is either Enabled or Suspended. Amazon S3 Transfer Acceleration is a bucket-level feature that enables you to perform faster data transfers to and from Amazon S3.

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

Method #

GETBUCKETACCELERATECONFIGURATI (GetBucketAccelerateConfiguration in AWS)

Import Parameters #

The request uses the following import parameters.

  • i_bucket_name (bucket in AWS) (Required)

    Name of the bucket.

  • i_region (Required)

    AWS Region of the Amazon S3 Bucket.

  • 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.

  • e_status (Status in AWS)

    The accelerate configuration of the bucket. Valid Values: Enabled | Suspended


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,
      lv_status           TYPE string.

  TRY.
      CREATE OBJECT lo_s3
        EXPORTING
          i_user_name         = 'user_aws'
          i_access_key        = 'acces_key_value'
          i_secret_access_key = 'secret_acceskey_value'.
  ENDTRY.

 TRY.
    CALL METHOD lo_s3->getbucketaccelerateconfigurati
      EXPORTING
        i_bucket_name      = 'Bucket_name'
        i_region           = 'eu-west-1'
      IMPORTING
        e_http_status      = lv_http_status
        e_response_headers = lt_response_headers
        e_response_content = lv_response_content
        e_status           = lv_status.
 ENDTRY.