Skip to content

/AWS1/IF_REH=>DESCRIBEAPP()

About DescribeApp

Describes an Resilience Hub application.

Method Signature

IMPORTING

Required arguments:

iv_apparn TYPE /AWS1/REHARN /AWS1/REHARN

Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.

RETURNING

oo_output TYPE REF TO /aws1/cl_rehdescrappresponse /AWS1/CL_REHDESCRAPPRESPONSE

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_reh~describeapp( |string| ).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_app = lo_result->get_app( ).
  IF lo_app IS NOT INITIAL.
    lv_arn = lo_app->get_apparn( ).
    lv_entityname = lo_app->get_name( ).
    lv_entitydescription = lo_app->get_description( ).
    lv_arn = lo_app->get_policyarn( ).
    lv_timestamp = lo_app->get_creationtime( ).
    lv_appstatustype = lo_app->get_status( ).
    lv_appcompliancestatustype = lo_app->get_compliancestatus( ).
    lv_timestamp = lo_app->get_lastappcplncevaltime( ).
    lv_double = lo_app->get_resiliencyscore( ).
    lv_timestamp = lo_app->get_lastresiliencyscoreeva00( ).
    LOOP AT lo_app->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.
    lv_appassessmentschedulety = lo_app->get_assessmentschedule( ).
    lo_permissionmodel = lo_app->get_permissionmodel( ).
    IF lo_permissionmodel IS NOT INITIAL.
      lv_permissionmodeltype = lo_permissionmodel->get_type( ).
      lv_iamrolename = lo_permissionmodel->get_invokerrolename( ).
      LOOP AT lo_permissionmodel->get_crossaccountrolearns( ) into lo_row_1.
        lo_row_2 = lo_row_1.
        IF lo_row_2 IS NOT INITIAL.
          lv_iamrolearn = lo_row_2->get_value( ).
        ENDIF.
      ENDLOOP.
    ENDIF.
    LOOP AT lo_app->get_eventsubscriptions( ) into lo_row_3.
      lo_row_4 = lo_row_3.
      IF lo_row_4 IS NOT INITIAL.
        lv_string255 = lo_row_4->get_name( ).
        lv_eventtype = lo_row_4->get_eventtype( ).
        lv_arn = lo_row_4->get_snstopicarn( ).
      ENDIF.
    ENDLOOP.
    lv_appdriftstatustype = lo_app->get_driftstatus( ).
    lv_timestamp = lo_app->get_lastdriftevaluationtime( ).
    lv_integeroptional = lo_app->get_rtoinsecs( ).
    lv_integeroptional = lo_app->get_rpoinsecs( ).
    lv_arn = lo_app->get_awsapplicationarn( ).
  ENDIF.
ENDIF.