/AWS1/IF_S3C=>LISTACCPTSFORDIRECTORYBKTS()¶
About ListAccessPointsForDirectoryBuckets¶
Returns a list of the access points that are owned by the Amazon Web Services account and that are associated with the specified directory bucket.
To list access points for general purpose buckets, see ListAccesspoints.
To use this operation, you must have the permission to perform the
s3express:ListAccessPointsForDirectoryBuckets
action.
For information about REST API errors, see REST error responses.
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¶
METHODS /AWS1/IF_S3C~LISTACCPTSFORDIRECTORYBKTS
IMPORTING
!IV_ACCOUNTID TYPE /AWS1/S3CACCOUNTID OPTIONAL
!IV_DIRECTORYBUCKET TYPE /AWS1/S3CBUCKETNAME OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/S3CNONEMPTYMAXLENGTH1000 OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/S3CMAXRESULTS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_s3clstaccptsfordire01
RAISING
/AWS1/CX_S3CCLIENTEXC
/AWS1/CX_S3CSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_accountid TYPE /AWS1/S3CACCOUNTID /AWS1/S3CACCOUNTID¶
The Amazon Web Services account ID that owns the access points.
Optional arguments:¶
iv_directorybucket TYPE /AWS1/S3CBUCKETNAME /AWS1/S3CBUCKETNAME¶
The name of the directory bucket associated with the access points you want to list.
iv_nexttoken TYPE /AWS1/S3CNONEMPTYMAXLENGTH1000 /AWS1/S3CNONEMPTYMAXLENGTH1000¶
If
NextTokenis returned, there are more access points available than requested in themaxResultsvalue. The value ofNextTokenis a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours.
iv_maxresults TYPE /AWS1/S3CMAXRESULTS /AWS1/S3CMAXRESULTS¶
The maximum number of access points that you would like returned in the
ListAccessPointsForDirectoryBucketsresponse. If the directory bucket is associated with more than this number of access points, the results include the pagination tokenNextToken. Make another call using theNextTokento retrieve more results.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_s3clstaccptsfordire01 /AWS1/CL_S3CLSTACCPTSFORDIRE01¶
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->listaccptsfordirectorybkts(
iv_accountid = |string|
iv_directorybucket = |string|
iv_maxresults = 123
iv_nexttoken = |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_accesspointlist( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_accesspointname = lo_row_1->get_name( ).
lv_networkorigin = lo_row_1->get_networkorigin( ).
lo_vpcconfiguration = lo_row_1->get_vpcconfiguration( ).
IF lo_vpcconfiguration IS NOT INITIAL.
lv_vpcid = lo_vpcconfiguration->get_vpcid( ).
ENDIF.
lv_accesspointbucketname = lo_row_1->get_bucket( ).
lv_s3accesspointarn = lo_row_1->get_accesspointarn( ).
lv_alias = lo_row_1->get_alias( ).
lv_accountid = lo_row_1->get_bucketaccountid( ).
lv_datasourceid = lo_row_1->get_datasourceid( ).
lv_datasourcetype = lo_row_1->get_datasourcetype( ).
ENDIF.
ENDLOOP.
lv_nonemptymaxlength1024st = lo_result->get_nexttoken( ).
ENDIF.