/AWS1/IF_REK=>DESCRIBEPROJECTS()¶
About DescribeProjects¶
Gets information about your Rekognition projects.
This operation requires permissions to perform the rekognition:DescribeProjects action.
Method Signature¶
METHODS /AWS1/IF_REK~DESCRIBEPROJECTS
IMPORTING
!IV_NEXTTOKEN TYPE /AWS1/REKEXTENDEDPAGINATIONTOK OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/REKPROJECTSPAGESIZE OPTIONAL
!IT_PROJECTNAMES TYPE /AWS1/CL_REKPROJECTNAMES_W=>TT_PROJECTNAMES OPTIONAL
!IT_FEATURES TYPE /AWS1/CL_REKCUSTIZATIONFEATS_W=>TT_CUSTOMIZATIONFEATURES OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_rekdescrprojectsrsp
RAISING
/AWS1/CX_REKACCESSDENIEDEX
/AWS1/CX_REKINTERNALSERVERERR
/AWS1/CX_REKINVPAGINATIONTOKEX
/AWS1/CX_REKINVALIDPARAMETEREX
/AWS1/CX_REKPROVTHRUPUTEXCDEX
/AWS1/CX_REKTHROTTLINGEX
/AWS1/CX_REKCLIENTEXC
/AWS1/CX_REKSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_nexttoken TYPE /AWS1/REKEXTENDEDPAGINATIONTOK /AWS1/REKEXTENDEDPAGINATIONTOK¶
If the previous response was incomplete (because there is more results to retrieve), Rekognition returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.
iv_maxresults TYPE /AWS1/REKPROJECTSPAGESIZE /AWS1/REKPROJECTSPAGESIZE¶
The maximum number of results to return per paginated call. The largest value you can specify is 100. If you specify a value greater than 100, a ValidationException error occurs. The default value is 100.
it_projectnames TYPE /AWS1/CL_REKPROJECTNAMES_W=>TT_PROJECTNAMES TT_PROJECTNAMES¶
A list of the projects that you want Rekognition to describe. If you don't specify a value, the response includes descriptions for all the projects in your AWS account.
it_features TYPE /AWS1/CL_REKCUSTIZATIONFEATS_W=>TT_CUSTOMIZATIONFEATURES TT_CUSTOMIZATIONFEATURES¶
Specifies the type of customization to filter projects by. If no value is specified, CUSTOM_LABELS is used as a default.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_rekdescrprojectsrsp /AWS1/CL_REKDESCRPROJECTSRSP¶
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->describeprojects(
it_features = VALUE /aws1/cl_rekcustizationfeats_w=>tt_customizationfeatures(
( new /aws1/cl_rekcustizationfeats_w( |string| ) )
)
it_projectnames = VALUE /aws1/cl_rekprojectnames_w=>tt_projectnames(
( new /aws1/cl_rekprojectnames_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_projectdescriptions( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_projectarn = lo_row_1->get_projectarn( ).
lv_datetime = lo_row_1->get_creationtimestamp( ).
lv_projectstatus = lo_row_1->get_status( ).
LOOP AT lo_row_1->get_datasets( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_datetime = lo_row_3->get_creationtimestamp( ).
lv_datasettype = lo_row_3->get_datasettype( ).
lv_datasetarn = lo_row_3->get_datasetarn( ).
lv_datasetstatus = lo_row_3->get_status( ).
lv_statusmessage = lo_row_3->get_statusmessage( ).
lv_datasetstatusmessagecod = lo_row_3->get_statusmessagecode( ).
ENDIF.
ENDLOOP.
lv_customizationfeature = lo_row_1->get_feature( ).
lv_projectautoupdate = lo_row_1->get_autoupdate( ).
ENDIF.
ENDLOOP.
lv_extendedpaginationtoken = lo_result->get_nexttoken( ).
ENDIF.