Skip to content

/AWS1/IF_RE2=>CREATERESOURCEEXPLORERSETUP()

About CreateResourceExplorerSetup

Creates a Resource Explorer setup configuration across multiple Amazon Web Services Regions. This operation sets up indexes and views in the specified Regions. This operation can also be used to set an aggregator Region for cross-Region resource search.

Method Signature

METHODS /AWS1/IF_RE2~CREATERESOURCEEXPLORERSETUP
  IMPORTING
    !IT_REGIONLIST TYPE /AWS1/CL_RE2REGIONLIST_W=>TT_REGIONLIST OPTIONAL
    !IT_AGGREGATORREGIONS TYPE /AWS1/CL_RE2REGIONLIST_W=>TT_REGIONLIST OPTIONAL
    !IV_VIEWNAME TYPE /AWS1/RE2STRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_re2creresexplorerse01
  RAISING
    /AWS1/CX_RE2ACCESSDENIEDEX
    /AWS1/CX_RE2CONFLICTEXCEPTION
    /AWS1/CX_RE2INTERNALSERVEREX
    /AWS1/CX_RE2THROTTLINGEX
    /AWS1/CX_RE2VALIDATIONEX
    /AWS1/CX_RE2CLIENTEXC
    /AWS1/CX_RE2SERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

it_regionlist TYPE /AWS1/CL_RE2REGIONLIST_W=>TT_REGIONLIST TT_REGIONLIST

A list of Amazon Web Services Regions where Resource Explorer should be configured. Each Region in the list will have a user-owned index created.

iv_viewname TYPE /AWS1/RE2STRING /AWS1/RE2STRING

The name for the view to be created as part of the Resource Explorer setup. The view name must be unique within the Amazon Web Services account and Region.

Optional arguments:

it_aggregatorregions TYPE /AWS1/CL_RE2REGIONLIST_W=>TT_REGIONLIST TT_REGIONLIST

A list of Amazon Web Services Regions that should be configured as aggregator Regions. Aggregator Regions receive replicated index information from all other Regions where there is a user-owned index.

RETURNING

oo_output TYPE REF TO /aws1/cl_re2creresexplorerse01 /AWS1/CL_RE2CRERESEXPLORERSE01

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->createresourceexplorersetup(
  it_aggregatorregions = VALUE /aws1/cl_re2regionlist_w=>tt_regionlist(
    ( new /aws1/cl_re2regionlist_w( |string| ) )
  )
  it_regionlist = VALUE /aws1/cl_re2regionlist_w=>tt_regionlist(
    ( new /aws1/cl_re2regionlist_w( |string| ) )
  )
  iv_viewname = |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_taskid( ).
ENDIF.