/AWS1/IF_MA2=>GETSENSITIVITYINSPECTIONTMPL()¶
About GetSensitivityInspectionTemplate¶
Retrieves the settings for the sensitivity inspection template for an account.
Method Signature¶
METHODS /AWS1/IF_MA2~GETSENSITIVITYINSPECTIONTMPL
  IMPORTING
    !IV_ID TYPE /AWS1/MA2__STRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ma2getsensitivityin01
  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_ma2getsensitivityin01 /AWS1/CL_MA2GETSENSITIVITYIN01¶
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->getsensitivityinspectiontmpl( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv___string = lo_result->get_description( ).
  lo_sensitivityinspectionte = lo_result->get_excludes( ).
  IF lo_sensitivityinspectionte IS NOT INITIAL.
    LOOP AT lo_sensitivityinspectionte->get_manageddataidentifierids( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv___string = lo_row_1->get_value( ).
      ENDIF.
    ENDLOOP.
  ENDIF.
  lo_sensitivityinspectionte_1 = lo_result->get_includes( ).
  IF lo_sensitivityinspectionte_1 IS NOT INITIAL.
    LOOP AT lo_sensitivityinspectionte_1->get_allowlistids( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv___string = lo_row_1->get_value( ).
      ENDIF.
    ENDLOOP.
    LOOP AT lo_sensitivityinspectionte_1->get_customdataidentifierids( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv___string = lo_row_1->get_value( ).
      ENDIF.
    ENDLOOP.
    LOOP AT lo_sensitivityinspectionte_1->get_manageddataidentifierids( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv___string = lo_row_1->get_value( ).
      ENDIF.
    ENDLOOP.
  ENDIF.
  lv___string = lo_result->get_name( ).
  lv_sensitivityinspectionte_2 = lo_result->get_sensitivityinspectiont00( ).
ENDIF.