/AWS1/IF_TAD=>LISTRECOMMENDATIONRESOURCES()¶
About ListRecommendationResources¶
List Resources of a Recommendation
Method Signature¶
METHODS /AWS1/IF_TAD~LISTRECOMMENDATIONRESOURCES
IMPORTING
!IV_NEXTTOKEN TYPE /AWS1/TADSTRING OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/TADINTEGER OPTIONAL
!IV_STATUS TYPE /AWS1/TADRESOURCESTATUS OPTIONAL
!IV_EXCLUSIONSTATUS TYPE /AWS1/TADEXCLUSIONSTATUS OPTIONAL
!IV_REGIONCODE TYPE /AWS1/TADSTRING OPTIONAL
!IV_RECOMMENDATIONIDENTIFIER TYPE /AWS1/TADACCTRECOMMENDATIONID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_tadlstrecommendatio01
RAISING
/AWS1/CX_TADACCESSDENIEDEX
/AWS1/CX_TADINTERNALSERVEREX
/AWS1/CX_TADRESOURCENOTFOUNDEX
/AWS1/CX_TADTHROTTLINGEX
/AWS1/CX_TADVALIDATIONEX
/AWS1/CX_TADCLIENTEXC
/AWS1/CX_TADSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_recommendationidentifier TYPE /AWS1/TADACCTRECOMMENDATIONID /AWS1/TADACCTRECOMMENDATIONID¶
The Recommendation identifier
Optional arguments:¶
iv_nexttoken TYPE /AWS1/TADSTRING /AWS1/TADSTRING¶
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
iv_maxresults TYPE /AWS1/TADINTEGER /AWS1/TADINTEGER¶
The maximum number of results to return per page.
iv_status TYPE /AWS1/TADRESOURCESTATUS /AWS1/TADRESOURCESTATUS¶
The status of the resource
iv_exclusionstatus TYPE /AWS1/TADEXCLUSIONSTATUS /AWS1/TADEXCLUSIONSTATUS¶
The exclusion status of the resource
iv_regioncode TYPE /AWS1/TADSTRING /AWS1/TADSTRING¶
The AWS Region code of the resource
RETURNING¶
oo_output TYPE REF TO /aws1/cl_tadlstrecommendatio01 /AWS1/CL_TADLSTRECOMMENDATIO01¶
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->listrecommendationresources(
iv_exclusionstatus = |string|
iv_maxresults = 123
iv_nexttoken = |string|
iv_recommendationidentifier = |string|
iv_regioncode = |string|
iv_status = |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_nexttoken( ).
LOOP AT lo_result->get_recommendationresrcsums( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_id( ).
lv_recommendationresourcea = lo_row_1->get_arn( ).
lv_string = lo_row_1->get_awsresourceid( ).
lv_recommendationregioncod = lo_row_1->get_regioncode( ).
lv_resourcestatus = lo_row_1->get_status( ).
LOOP AT lo_row_1->get_metadata( ) into ls_row_2.
lv_key = ls_row_2-key.
lo_value = ls_row_2-value.
IF lo_value IS NOT INITIAL.
lv_string = lo_value->get_value( ).
ENDIF.
ENDLOOP.
lv_timestamp = lo_row_1->get_lastupdatedat( ).
lv_exclusionstatus = lo_row_1->get_exclusionstatus( ).
lv_accountrecommendationar = lo_row_1->get_recommendationarn( ).
ENDIF.
ENDLOOP.
ENDIF.
List all Resources for a Recommendation¶
List all Resources for a Recommendation
DATA(lo_result) = lo_client->listrecommendationresources( iv_recommendationidentifier = |arn:aws:trustedadvisor::000000000000:recommendation/55fa4d2e-bbb7-491a-833b-5773e9589578| ) .