/AWS1/IF_S3C=>LISTREGIONALBUCKETS()
¶
About ListRegionalBuckets¶
This operation is not supported by directory buckets.
Returns a list of all Outposts buckets in an Outpost that are owned by the authenticated sender of the request. For more information, see Using Amazon S3 on Outposts in the Amazon S3 User Guide.
For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts
endpoint hostname prefix and x-amz-outpost-id
in your request, see the Examples section.
You must URL encode any signed header values that contain spaces. For example, if your header value is my file.txt
, containing two spaces after my
, you must URL encode this value to my%20%20file.txt
.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_accountid
TYPE /AWS1/S3CACCOUNTID
/AWS1/S3CACCOUNTID
¶
The Amazon Web Services account ID of the Outposts bucket.
Optional arguments:¶
iv_nexttoken
TYPE /AWS1/S3CNONEMPTYMAXLENGTH1000
/AWS1/S3CNONEMPTYMAXLENGTH1000
¶
iv_maxresults
TYPE /AWS1/S3CMAXRESULTS
/AWS1/S3CMAXRESULTS
¶
iv_outpostid
TYPE /AWS1/S3CNONEMPTYMAXLENGTH6400
/AWS1/S3CNONEMPTYMAXLENGTH6400
¶
The ID of the Outposts resource.
This ID is required by Amazon S3 on Outposts buckets.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_s3clistregionalbktsrs
/AWS1/CL_S3CLISTREGIONALBKTSRS
¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
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.
DATA(lo_result) = lo_client->/aws1/if_s3c~listregionalbuckets(
iv_accountid = |string|
iv_maxresults = 123
iv_nexttoken = |string|
iv_outpostid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_regionalbucketlist( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_bucketname = lo_row_1->get_bucket( ).
lv_s3regionalbucketarn = lo_row_1->get_bucketarn( ).
lv_publicaccessblockenable = lo_row_1->get_publicaccessblockenabled( ).
lv_creationdate = lo_row_1->get_creationdate( ).
lv_nonemptymaxlength64stri = lo_row_1->get_outpostid( ).
ENDIF.
ENDLOOP.
lv_nonemptymaxlength1024st = lo_result->get_nexttoken( ).
ENDIF.