/AWS1/IF_DFM=>LISTSAMPLES()¶
About ListSamples¶
Gets information about samples, given an AWS Device Farm job ARN.
Method Signature¶
METHODS /AWS1/IF_DFM~LISTSAMPLES
IMPORTING
!IV_ARN TYPE /AWS1/DFMAMAZONRESOURCENAME OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/DFMPAGINATIONTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dfmlistsamplesresult
RAISING
/AWS1/CX_DFMARGUMENTEXCEPTION
/AWS1/CX_DFMLIMITEXCEEDEDEX
/AWS1/CX_DFMNOTFOUNDEXCEPTION
/AWS1/CX_DFMSERVICEACCOUNTEX
/AWS1/CX_DFMCLIENTEXC
/AWS1/CX_DFMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_arn TYPE /AWS1/DFMAMAZONRESOURCENAME /AWS1/DFMAMAZONRESOURCENAME¶
The Amazon Resource Name (ARN) of the job used to list samples.
Optional arguments:¶
iv_nexttoken TYPE /AWS1/DFMPAGINATIONTOKEN /AWS1/DFMPAGINATIONTOKEN¶
An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_dfmlistsamplesresult /AWS1/CL_DFMLISTSAMPLESRESULT¶
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->listsamples(
iv_arn = |string|
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_samples( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_amazonresourcename = lo_row_1->get_arn( ).
lv_sampletype = lo_row_1->get_type( ).
lv_url = lo_row_1->get_url( ).
ENDIF.
ENDLOOP.
lv_paginationtoken = lo_result->get_nexttoken( ).
ENDIF.
To get information about samples¶
The following example returns information about samples, given a specific Device Farm project.
DATA(lo_result) = lo_client->listsamples(
iv_arn = |arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456|
iv_nexttoken = |RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE|
).