Skip to content

/AWS1/IF_QST=>DESCRIBEDLPSETTING()

About DescribeDlpSetting

Describes the full configuration of a DLP setting in an Amazon Web Services account.

Method Signature

METHODS /AWS1/IF_QST~DESCRIBEDLPSETTING
  IMPORTING
    !IV_AWSACCOUNTID TYPE /AWS1/QSTAWSACCOUNTID OPTIONAL
    !IV_DLPSETTINGID TYPE /AWS1/QSTDLPSETTINGID OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_qstdescrlpsettingrsp
  RAISING
    /AWS1/CX_QSTACCESSDENIEDEX
    /AWS1/CX_QSTINTERNALFAILUREEX
    /AWS1/CX_QSTINVALIDREQUESTEX
    /AWS1/CX_QSTRESOURCENOTFOUNDEX
    /AWS1/CX_QSTTHROTTLINGEX
    /AWS1/CX_QSTCLIENTEXC
    /AWS1/CX_QSTSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_awsaccountid TYPE /AWS1/QSTAWSACCOUNTID /AWS1/QSTAWSACCOUNTID

The ID of the Amazon Web Services account that contains the DLP setting that you want to describe.

iv_dlpsettingid TYPE /AWS1/QSTDLPSETTINGID /AWS1/QSTDLPSETTINGID

The ID of the DLP setting that you want to describe.

RETURNING

oo_output TYPE REF TO /aws1/cl_qstdescrlpsettingrsp /AWS1/CL_QSTDESCRLPSETTINGRSP

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->describedlpsetting(
  iv_awsaccountid = |string|
  iv_dlpsettingid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_dlpsettingdetails = lo_result->get_dlpsetting( ).
  IF lo_dlpsettingdetails IS NOT INITIAL.
    lv_dlpsettingid = lo_dlpsettingdetails->get_dlpsettingid( ).
    lv_dlpsettingname = lo_dlpsettingdetails->get_name( ).
    lv_arn = lo_dlpsettingdetails->get_arn( ).
    lv_dlpsettingstatus = lo_dlpsettingdetails->get_status( ).
    lv_dlpprovidertype = lo_dlpsettingdetails->get_providertype( ).
    lo_providerconfig = lo_dlpsettingdetails->get_providerconfig( ).
    IF lo_providerconfig IS NOT INITIAL.
      lo_microsoftpurviewprovide = lo_providerconfig->get_microsoftpurview( ).
      IF lo_microsoftpurviewprovide IS NOT INITIAL.
        lo_microsoftpurviewcredent = lo_microsoftpurviewprovide->get_credentials( ).
        IF lo_microsoftpurviewcredent IS NOT INITIAL.
          lv_secretmanagerarn = lo_microsoftpurviewcredent->get_secretarn( ).
        ENDIF.
        LOOP AT lo_microsoftpurviewprovide->get_labelactionmappings( ) into lo_row.
          lo_row_1 = lo_row.
          IF lo_row_1 IS NOT INITIAL.
            lv_labelid = lo_row_1->get_labelid( ).
            lv_labelname = lo_row_1->get_labelname( ).
            lv_dlpaction = lo_row_1->get_action( ).
          ENDIF.
        ENDLOOP.
        lv_dlpaction = lo_microsoftpurviewprovide->get_unmappedaction( ).
      ENDIF.
    ENDIF.
    lv_dlpaction = lo_dlpsettingdetails->get_provideroutageaction( ).
    lv_timestamp = lo_dlpsettingdetails->get_createdat( ).
    lv_timestamp = lo_dlpsettingdetails->get_updatedat( ).
  ENDIF.
  lv_string = lo_result->get_requestid( ).
ENDIF.