Skip to content

/AWS1/IF_CNT=>DESCRIBESECURITYPROFILE()

About DescribeSecurityProfile

Gets basic information about the security profile.

For information about security profiles, see Security Profiles in the Amazon Connect Administrator Guide. For a mapping of the API name and user interface name of the security profile permissions, see List of security profile permissions.

Method Signature

IMPORTING

Required arguments:

iv_securityprofileid TYPE /AWS1/CNTSECURITYPROFILEID /AWS1/CNTSECURITYPROFILEID

The identifier for the security profle.

iv_instanceid TYPE /AWS1/CNTINSTANCEID /AWS1/CNTINSTANCEID

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

RETURNING

oo_output TYPE REF TO /aws1/cl_cntdescrsecprofilersp /AWS1/CL_CNTDESCRSECPROFILERSP

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_cnt~describesecurityprofile(
  iv_instanceid = |string|
  iv_securityprofileid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_securityprofile = lo_result->get_securityprofile( ).
  IF lo_securityprofile IS NOT INITIAL.
    lv_securityprofileid = lo_securityprofile->get_id( ).
    lv_instanceid = lo_securityprofile->get_organizationresourceid( ).
    lv_arn = lo_securityprofile->get_arn( ).
    lv_securityprofilename = lo_securityprofile->get_securityprofilename( ).
    lv_securityprofiledescript = lo_securityprofile->get_description( ).
    LOOP AT lo_securityprofile->get_tags( ) into ls_row.
      lv_key = ls_row-key.
      lo_value = ls_row-value.
      IF lo_value IS NOT INITIAL.
        lv_tagvalue = lo_value->get_value( ).
      ENDIF.
    ENDLOOP.
    LOOP AT lo_securityprofile->get_allowedaccesscontroltags( ) into ls_row_1.
      lv_key_1 = ls_row_1-key.
      lo_value_1 = ls_row_1-value.
      IF lo_value_1 IS NOT INITIAL.
        lv_securityprofilepolicyva = lo_value_1->get_value( ).
      ENDIF.
    ENDLOOP.
    LOOP AT lo_securityprofile->get_tagrestrictedresources( ) into lo_row_2.
      lo_row_3 = lo_row_2.
      IF lo_row_3 IS NOT INITIAL.
        lv_tagrestrictedresourcena = lo_row_3->get_value( ).
      ENDIF.
    ENDLOOP.
    lv_timestamp = lo_securityprofile->get_lastmodifiedtime( ).
    lv_regionname = lo_securityprofile->get_lastmodifiedregion( ).
    LOOP AT lo_securityprofile->get_hierarchyrestrictedres00( ) into lo_row_4.
      lo_row_5 = lo_row_4.
      IF lo_row_5 IS NOT INITIAL.
        lv_hierarchyrestrictedreso = lo_row_5->get_value( ).
      ENDIF.
    ENDLOOP.
    lv_hierarchygroupid = lo_securityprofile->get_alwedaccctlhierarchygr00( ).
  ENDIF.
ENDIF.