/AWS1/IF_IN2=>LISTCONNECTORSCANCONFS()¶
About ListConnectorScanConfigurations¶
Lists scan configurations for Amazon Web Services Config connectors. Results are paginated. Use the nextToken parameter to retrieve the next page of results.
Method Signature¶
METHODS /AWS1/IF_IN2~LISTCONNECTORSCANCONFS
IMPORTING
!IT_AWSCONFIGCONNECTORARNS TYPE /AWS1/CL_IN2AWSCFGCONNARNLST_W=>TT_AWSCONFIGCONNECTORARNLIST OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/IN2LISTCNRCANCFGSMAXRSLT OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/IN2CONNECTORNEXTTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_in2lstcnctcanconfsrsp
RAISING
/AWS1/CX_IN2ACCESSDENIEDEX
/AWS1/CX_IN2INTERNALSERVEREX
/AWS1/CX_IN2THROTTLINGEX
/AWS1/CX_IN2VALIDATIONEX
/AWS1/CX_IN2CLIENTEXC
/AWS1/CX_IN2SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
it_awsconfigconnectorarns TYPE /AWS1/CL_IN2AWSCFGCONNARNLST_W=>TT_AWSCONFIGCONNECTORARNLIST TT_AWSCONFIGCONNECTORARNLIST¶
The list of Amazon Web Services Config connector ARNs to filter results.
iv_maxresults TYPE /AWS1/IN2LISTCNRCANCFGSMAXRSLT /AWS1/IN2LISTCNRCANCFGSMAXRSLT¶
The maximum number of results to return in a single call. Valid range is 1 to 50. To retrieve the remaining results, make another request with the
nextTokenvalue returned from this request.
iv_nexttoken TYPE /AWS1/IN2CONNECTORNEXTTOKEN /AWS1/IN2CONNECTORNEXTTOKEN¶
A token to use for paginating results. Set this value to null for the first request. For subsequent calls, use the
nextTokenvalue returned from the previous request.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_in2lstcnctcanconfsrsp /AWS1/CL_IN2LSTCNCTCANCONFSRSP¶
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->listconnectorscanconfs(
it_awsconfigconnectorarns = VALUE /aws1/cl_in2awscfgconnarnlst_w=>tt_awsconfigconnectorarnlist(
( new /aws1/cl_in2awscfgconnarnlst_w( |string| ) )
)
iv_maxresults = 123
iv_nexttoken = |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_scanconfigurations( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_awsconfigconnectorarn = lo_row_1->get_awsconfigconnectorarn( ).
LOOP AT lo_row_1->get_connectorarns( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_connectorarn = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lo_connectorscanconfigurat = lo_row_1->get_scanconfiguration( ).
IF lo_connectorscanconfigurat IS NOT INITIAL.
lo_connectorcontainerimage = lo_connectorscanconfigurat->get_containerimagescanning( ).
IF lo_connectorcontainerimage IS NOT INITIAL.
lv_containerimagerescandur = lo_connectorcontainerimage->get_pushduration( ).
lv_containerimagepulldater = lo_connectorcontainerimage->get_pullduration( ).
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
lv_connectornexttoken = lo_result->get_nexttoken( ).
ENDIF.
List scan configurations for a specific AWS Config connector¶
List scan configurations for a specific AWS Config connector
DATA(lo_result) = lo_client->listconnectorscanconfs(
it_awsconfigconnectorarns = VALUE /aws1/cl_in2awscfgconnarnlst_w=>tt_awsconfigconnectorarnlist(
( new /aws1/cl_in2awscfgconnarnlst_w( |arn:aws:config:us-east-1:123456789012:connector/azure/a7bc5463-04ce-4b52-901e-f26f7292a4a7/2fbed4bd-5b95-4947-a751-8defc76ecdae| ) )
)
iv_maxresults = 10
).