Skip to content

/AWS1/IF_GLU=>BATCHGETCRAWLERS()

About BatchGetCrawlers

Returns a list of resource metadata for a given list of crawler names. After calling the ListCrawlers operation, you can call this operation to access the data to which you have been granted permissions. This operation supports all IAM permissions, including permission conditions that uses tags.

Method Signature

METHODS /AWS1/IF_GLU~BATCHGETCRAWLERS
  IMPORTING
    !IT_CRAWLERNAMES TYPE /AWS1/CL_GLUCRAWLERNAMELIST_W=>TT_CRAWLERNAMELIST OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_glubtcgetcrawlersrsp
  RAISING
    /AWS1/CX_GLUINVALIDINPUTEX
    /AWS1/CX_GLUOPERATIONTIMEOUTEX
    /AWS1/CX_GLUCLIENTEXC
    /AWS1/CX_GLUSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

it_crawlernames TYPE /AWS1/CL_GLUCRAWLERNAMELIST_W=>TT_CRAWLERNAMELIST TT_CRAWLERNAMELIST

A list of crawler names, which might be the names returned from the ListCrawlers operation.

RETURNING

oo_output TYPE REF TO /aws1/cl_glubtcgetcrawlersrsp /AWS1/CL_GLUBTCGETCRAWLERSRSP

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->batchgetcrawlers(
  it_crawlernames = VALUE /aws1/cl_glucrawlernamelist_w=>tt_crawlernamelist(
    ( new /aws1/cl_glucrawlernamelist_w( |string| ) )
  )
).

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_crawlers( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_namestring = lo_row_1->get_name( ).
      lv_role = lo_row_1->get_role( ).
      lo_crawlertargets = lo_row_1->get_targets( ).
      IF lo_crawlertargets IS NOT INITIAL.
        LOOP AT lo_crawlertargets->get_s3targets( ) into lo_row_2.
          lo_row_3 = lo_row_2.
          IF lo_row_3 IS NOT INITIAL.
            lv_path = lo_row_3->get_path( ).
            LOOP AT lo_row_3->get_exclusions( ) into lo_row_4.
              lo_row_5 = lo_row_4.
              IF lo_row_5 IS NOT INITIAL.
                lv_path = lo_row_5->get_value( ).
              ENDIF.
            ENDLOOP.
            lv_connectionname = lo_row_3->get_connectionname( ).
            lv_nullableinteger = lo_row_3->get_samplesize( ).
            lv_eventqueuearn = lo_row_3->get_eventqueuearn( ).
            lv_eventqueuearn = lo_row_3->get_dlqeventqueuearn( ).
          ENDIF.
        ENDLOOP.
        LOOP AT lo_crawlertargets->get_jdbctargets( ) into lo_row_6.
          lo_row_7 = lo_row_6.
          IF lo_row_7 IS NOT INITIAL.
            lv_connectionname = lo_row_7->get_connectionname( ).
            lv_path = lo_row_7->get_path( ).
            LOOP AT lo_row_7->get_exclusions( ) into lo_row_4.
              lo_row_5 = lo_row_4.
              IF lo_row_5 IS NOT INITIAL.
                lv_path = lo_row_5->get_value( ).
              ENDIF.
            ENDLOOP.
            LOOP AT lo_row_7->get_enableadditionalmetadata( ) into lo_row_8.
              lo_row_9 = lo_row_8.
              IF lo_row_9 IS NOT INITIAL.
                lv_jdbcmetadataentry = lo_row_9->get_value( ).
              ENDIF.
            ENDLOOP.
          ENDIF.
        ENDLOOP.
        LOOP AT lo_crawlertargets->get_mongodbtargets( ) into lo_row_10.
          lo_row_11 = lo_row_10.
          IF lo_row_11 IS NOT INITIAL.
            lv_connectionname = lo_row_11->get_connectionname( ).
            lv_path = lo_row_11->get_path( ).
            lv_nullableboolean = lo_row_11->get_scanall( ).
          ENDIF.
        ENDLOOP.
        LOOP AT lo_crawlertargets->get_dynamodbtargets( ) into lo_row_12.
          lo_row_13 = lo_row_12.
          IF lo_row_13 IS NOT INITIAL.
            lv_path = lo_row_13->get_path( ).
            lv_nullableboolean = lo_row_13->get_scanall( ).
            lv_nullabledouble = lo_row_13->get_scanrate( ).
          ENDIF.
        ENDLOOP.
        LOOP AT lo_crawlertargets->get_catalogtargets( ) into lo_row_14.
          lo_row_15 = lo_row_14.
          IF lo_row_15 IS NOT INITIAL.
            lv_namestring = lo_row_15->get_databasename( ).
            LOOP AT lo_row_15->get_tables( ) into lo_row_16.
              lo_row_17 = lo_row_16.
              IF lo_row_17 IS NOT INITIAL.
                lv_namestring = lo_row_17->get_value( ).
              ENDIF.
            ENDLOOP.
            lv_connectionname = lo_row_15->get_connectionname( ).
            lv_eventqueuearn = lo_row_15->get_eventqueuearn( ).
            lv_eventqueuearn = lo_row_15->get_dlqeventqueuearn( ).
          ENDIF.
        ENDLOOP.
        LOOP AT lo_crawlertargets->get_deltatargets( ) into lo_row_18.
          lo_row_19 = lo_row_18.
          IF lo_row_19 IS NOT INITIAL.
            LOOP AT lo_row_19->get_deltatables( ) into lo_row_4.
              lo_row_5 = lo_row_4.
              IF lo_row_5 IS NOT INITIAL.
                lv_path = lo_row_5->get_value( ).
              ENDIF.
            ENDLOOP.
            lv_connectionname = lo_row_19->get_connectionname( ).
            lv_nullableboolean = lo_row_19->get_writemanifest( ).
            lv_nullableboolean = lo_row_19->get_createnativedeltatable( ).
          ENDIF.
        ENDLOOP.
        LOOP AT lo_crawlertargets->get_icebergtargets( ) into lo_row_20.
          lo_row_21 = lo_row_20.
          IF lo_row_21 IS NOT INITIAL.
            LOOP AT lo_row_21->get_paths( ) into lo_row_4.
              lo_row_5 = lo_row_4.
              IF lo_row_5 IS NOT INITIAL.
                lv_path = lo_row_5->get_value( ).
              ENDIF.
            ENDLOOP.
            lv_connectionname = lo_row_21->get_connectionname( ).
            LOOP AT lo_row_21->get_exclusions( ) into lo_row_4.
              lo_row_5 = lo_row_4.
              IF lo_row_5 IS NOT INITIAL.
                lv_path = lo_row_5->get_value( ).
              ENDIF.
            ENDLOOP.
            lv_nullableinteger = lo_row_21->get_maximumtraversaldepth( ).
          ENDIF.
        ENDLOOP.
        LOOP AT lo_crawlertargets->get_huditargets( ) into lo_row_22.
          lo_row_23 = lo_row_22.
          IF lo_row_23 IS NOT INITIAL.
            LOOP AT lo_row_23->get_paths( ) into lo_row_4.
              lo_row_5 = lo_row_4.
              IF lo_row_5 IS NOT INITIAL.
                lv_path = lo_row_5->get_value( ).
              ENDIF.
            ENDLOOP.
            lv_connectionname = lo_row_23->get_connectionname( ).
            LOOP AT lo_row_23->get_exclusions( ) into lo_row_4.
              lo_row_5 = lo_row_4.
              IF lo_row_5 IS NOT INITIAL.
                lv_path = lo_row_5->get_value( ).
              ENDIF.
            ENDLOOP.
            lv_nullableinteger = lo_row_23->get_maximumtraversaldepth( ).
          ENDIF.
        ENDLOOP.
      ENDIF.
      lv_databasename = lo_row_1->get_databasename( ).
      lv_descriptionstring = lo_row_1->get_description( ).
      LOOP AT lo_row_1->get_classifiers( ) into lo_row_24.
        lo_row_25 = lo_row_24.
        IF lo_row_25 IS NOT INITIAL.
          lv_namestring = lo_row_25->get_value( ).
        ENDIF.
      ENDLOOP.
      lo_recrawlpolicy = lo_row_1->get_recrawlpolicy( ).
      IF lo_recrawlpolicy IS NOT INITIAL.
        lv_recrawlbehavior = lo_recrawlpolicy->get_recrawlbehavior( ).
      ENDIF.
      lo_schemachangepolicy = lo_row_1->get_schemachangepolicy( ).
      IF lo_schemachangepolicy IS NOT INITIAL.
        lv_updatebehavior = lo_schemachangepolicy->get_updatebehavior( ).
        lv_deletebehavior = lo_schemachangepolicy->get_deletebehavior( ).
      ENDIF.
      lo_lineageconfiguration = lo_row_1->get_lineageconfiguration( ).
      IF lo_lineageconfiguration IS NOT INITIAL.
        lv_crawlerlineagesettings = lo_lineageconfiguration->get_crawlerlineagesettings( ).
      ENDIF.
      lv_crawlerstate = lo_row_1->get_state( ).
      lv_tableprefix = lo_row_1->get_tableprefix( ).
      lo_schedule = lo_row_1->get_schedule( ).
      IF lo_schedule IS NOT INITIAL.
        lv_cronexpression = lo_schedule->get_scheduleexpression( ).
        lv_schedulestate = lo_schedule->get_state( ).
      ENDIF.
      lv_millisecondscount = lo_row_1->get_crawlelapsedtime( ).
      lv_timestamp = lo_row_1->get_creationtime( ).
      lv_timestamp = lo_row_1->get_lastupdated( ).
      lo_lastcrawlinfo = lo_row_1->get_lastcrawl( ).
      IF lo_lastcrawlinfo IS NOT INITIAL.
        lv_lastcrawlstatus = lo_lastcrawlinfo->get_status( ).
        lv_descriptionstring = lo_lastcrawlinfo->get_errormessage( ).
        lv_loggroup = lo_lastcrawlinfo->get_loggroup( ).
        lv_logstream = lo_lastcrawlinfo->get_logstream( ).
        lv_messageprefix = lo_lastcrawlinfo->get_messageprefix( ).
        lv_timestamp = lo_lastcrawlinfo->get_starttime( ).
      ENDIF.
      lv_versionid = lo_row_1->get_version( ).
      lv_crawlerconfiguration = lo_row_1->get_configuration( ).
      lv_crawlersecurityconfigur = lo_row_1->get_crawlersecurityconf( ).
      lo_lakeformationconfigurat = lo_row_1->get_lakeformationconf( ).
      IF lo_lakeformationconfigurat IS NOT INITIAL.
        lv_nullableboolean = lo_lakeformationconfigurat->get_uselakeformationcreds( ).
        lv_accountid = lo_lakeformationconfigurat->get_accountid( ).
      ENDIF.
    ENDIF.
  ENDLOOP.
  LOOP AT lo_result->get_crawlersnotfound( ) into lo_row_26.
    lo_row_27 = lo_row_26.
    IF lo_row_27 IS NOT INITIAL.
      lv_namestring = lo_row_27->get_value( ).
    ENDIF.
  ENDLOOP.
ENDIF.