Skip to content

/AWS1/IF_TAD=>BTCUPRECOMMENDATIONRESRCEX00()

About BatchUpdateRecommendationResourceExclusion

Update one or more exclusion statuses for a list of recommendation resources. This API supports up to 25 unique recommendation resource ARNs per request. This API currently doesn't support prioritized recommendation resources. This API updates global recommendations, eliminating the need to call the API in each AWS Region. After submitting an exclusion update, note that it might take a few minutes for the changes to be reflected in the system.

Method Signature

METHODS /AWS1/IF_TAD~BTCUPRECOMMENDATIONRESRCEX00
  IMPORTING
    !IT_RECOMMENDATIONRESRCEXCL00 TYPE /AWS1/CL_TADRECOMMENDATIONRE02=>TT_RECOMMENDATIONRESRCEXCLUS00 OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_tadbtcuprecommendat01
  RAISING
    /AWS1/CX_TADACCESSDENIEDEX
    /AWS1/CX_TADCONFLICTEXCEPTION
    /AWS1/CX_TADINTERNALSERVEREX
    /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:

it_recommendationresrcexcl00 TYPE /AWS1/CL_TADRECOMMENDATIONRE02=>TT_RECOMMENDATIONRESRCEXCLUS00 TT_RECOMMENDATIONRESRCEXCLUS00

A list of recommendation resource ARNs and exclusion status to update

RETURNING

oo_output TYPE REF TO /aws1/cl_tadbtcuprecommendat01 /AWS1/CL_TADBTCUPRECOMMENDAT01

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->btcuprecommendationresrcex00(
  it_recommendationresrcexcl00 = VALUE /aws1/cl_tadrecommendationre02=>tt_recommendationresrcexclus00(
    (
      new /aws1/cl_tadrecommendationre02(
        iv_arn = |string|
        iv_isexcluded = ABAP_TRUE
      )
    )
  )
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  LOOP AT lo_result->get_btcuprecommendationres00( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_recommendationresourcea = lo_row_1->get_arn( ).
      lv_string = lo_row_1->get_errorcode( ).
      lv_string = lo_row_1->get_errormessage( ).
    ENDIF.
  ENDLOOP.
ENDIF.

Batch updates the exclusion status for a list of recommendation resources

Batch updates the exclusion status for a list of recommendation resources

DATA(lo_result) = lo_client->btcuprecommendationresrcex00(
  it_recommendationresrcexcl00 = VALUE /aws1/cl_tadrecommendationre02=>tt_recommendationresrcexclus00(
    (
      new /aws1/cl_tadrecommendationre02(
        iv_arn = |arn:aws:trustedadvisor::000000000000:recommendation-resource/55fa4d2e-bbb7-491a-833b-5773e9589578/18959a1f1973cff8e706e9d9bde28bba36cd602a6b2cb86c8b61252835236010|
        iv_isexcluded = ABAP_TRUE
      )
    )
  )
).