/AWS1/IF_MA2=>GETALLOWLIST()¶
About GetAllowList¶
Retrieves the settings and status of an allow list.
Method Signature¶
METHODS /AWS1/IF_MA2~GETALLOWLIST
IMPORTING
!IV_ID TYPE /AWS1/MA2__STRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ma2getallowlistrsp
RAISING
/AWS1/CX_MA2ACCESSDENIEDEX
/AWS1/CX_MA2INTERNALSERVEREX
/AWS1/CX_MA2RESOURCENOTFOUNDEX
/AWS1/CX_MA2THROTTLINGEX
/AWS1/CX_MA2VALIDATIONEX
/AWS1/CX_MA2CLIENTEXC
/AWS1/CX_MA2SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_id TYPE /AWS1/MA2__STRING /AWS1/MA2__STRING¶
The unique identifier for the Amazon Macie resource that the request applies to.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ma2getallowlistrsp /AWS1/CL_MA2GETALLOWLISTRSP¶
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->getallowlist( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv___stringmin71max89patte = lo_result->get_arn( ).
lv___timestampiso8601 = lo_result->get_createdat( ).
lo_allowlistcriteria = lo_result->get_criteria( ).
IF lo_allowlistcriteria IS NOT INITIAL.
lv___stringmin1max512patte = lo_allowlistcriteria->get_regex( ).
lo_s3wordslist = lo_allowlistcriteria->get_s3wordslist( ).
IF lo_s3wordslist IS NOT INITIAL.
lv___stringmin3max255patte = lo_s3wordslist->get_bucketname( ).
lv___stringmin1max1024patt = lo_s3wordslist->get_objectkey( ).
ENDIF.
ENDIF.
lv___stringmin1max512patte = lo_result->get_description( ).
lv___stringmin22max22patte = lo_result->get_id( ).
lv___stringmin1max128patte = lo_result->get_name( ).
lo_allowliststatus = lo_result->get_status( ).
IF lo_allowliststatus IS NOT INITIAL.
lv_allowliststatuscode = lo_allowliststatus->get_code( ).
lv___stringmin1max1024patt = lo_allowliststatus->get_description( ).
ENDIF.
LOOP AT lo_result->get_tags( ) into ls_row.
lv_key = ls_row-key.
lo_value = ls_row-value.
IF lo_value IS NOT INITIAL.
lv___string = lo_value->get_value( ).
ENDIF.
ENDLOOP.
lv___timestampiso8601 = lo_result->get_updatedat( ).
ENDIF.