ListBuckets #
Overview #
Returns a list of all buckets owned by the authenticated sender of the request.
AWS API Reference: https://docs.aws.amazon.com/es_es/AmazonS3/latest/API/API_ListBuckets.html
Method #
LISTBUCKETS
Import Parameters #
The request uses the following import parameters.
-
i_region (Required)
AWS Region of the Amazon S3 Bucket.
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.
TRY.
CREATE OBJECT lo_s3
EXPORTING
i_user_name = 'user_awsconnector'
i_access_key = 'acces_key_value'
i_secret_access_key = 'secret_acceskey_value'.
ENDTRY.
TRY.
CALL METHOD lo_s3->listbuckets
EXPORTING
i_region = 'i_region'
IMPORTING
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
ENDTRY.