/AWS1/IF_ECR=>DESCRPULLTHROUGHCACHERULES()¶
About DescribePullThroughCacheRules¶
Returns the pull through cache rules for a registry.
Method Signature¶
METHODS /AWS1/IF_ECR~DESCRPULLTHROUGHCACHERULES
IMPORTING
!IV_REGISTRYID TYPE /AWS1/ECRREGISTRYID OPTIONAL
!IT_ECRREPOSITORYPREFIXES TYPE /AWS1/CL_ECRPULLTHRUCACHERLR00=>TT_PULLTHRUCACHERLREPOSITORY00 OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/ECRNEXTTOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/ECRMAXRESULTS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ecrdscpullthrucache01
RAISING
/AWS1/CX_ECRINVALIDPARAMETEREX
/AWS1/CX_ECRPULLTHRUCACHERLN00
/AWS1/CX_ECRSERVEREXCEPTION
/AWS1/CX_ECRVALIDATIONEX
/AWS1/CX_ECRCLIENTEXC
/AWS1/CX_ECRSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_registryid TYPE /AWS1/ECRREGISTRYID /AWS1/ECRREGISTRYID¶
The Amazon Web Services account ID associated with the registry to return the pull through cache rules for. If you do not specify a registry, the default registry is assumed.
it_ecrrepositoryprefixes TYPE /AWS1/CL_ECRPULLTHRUCACHERLR00=>TT_PULLTHRUCACHERLREPOSITORY00 TT_PULLTHRUCACHERLREPOSITORY00¶
The Amazon ECR repository prefixes associated with the pull through cache rules to return. If no repository prefix value is specified, all pull through cache rules are returned.
iv_nexttoken TYPE /AWS1/ECRNEXTTOKEN /AWS1/ECRNEXTTOKEN¶
The
nextTokenvalue returned from a previous paginatedDescribePullThroughCacheRulesRequestrequest wheremaxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue. This value is null when there are no more results to return.
iv_maxresults TYPE /AWS1/ECRMAXRESULTS /AWS1/ECRMAXRESULTS¶
The maximum number of pull through cache rules returned by
DescribePullThroughCacheRulesRequestin paginated output. When this parameter is used,DescribePullThroughCacheRulesRequestonly returnsmaxResultsresults in a single page along with anextTokenresponse element. The remaining results of the initial request can be seen by sending anotherDescribePullThroughCacheRulesRequestrequest with the returnednextTokenvalue. This value can be between 1 and 1000. If this parameter is not used, thenDescribePullThroughCacheRulesRequestreturns up to 100 results and anextTokenvalue, if applicable.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ecrdscpullthrucache01 /AWS1/CL_ECRDSCPULLTHRUCACHE01¶
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->descrpullthroughcacherules(
it_ecrrepositoryprefixes = VALUE /aws1/cl_ecrpullthrucacherlr00=>tt_pullthrucacherlrepository00(
( new /aws1/cl_ecrpullthrucacherlr00( |string| ) )
)
iv_maxresults = 123
iv_nexttoken = |string|
iv_registryid = |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_pullthroughcacherules( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_pullthroughcacherulerep = lo_row_1->get_ecrrepositoryprefix( ).
lv_url = lo_row_1->get_upstreamregistryurl( ).
lv_creationtimestamp = lo_row_1->get_createdat( ).
lv_registryid = lo_row_1->get_registryid( ).
lv_credentialarn = lo_row_1->get_credentialarn( ).
lv_customrolearn = lo_row_1->get_customrolearn( ).
lv_pullthroughcacherulerep = lo_row_1->get_upstreamrepositoryprefix( ).
lv_upstreamregistry = lo_row_1->get_upstreamregistry( ).
lv_updatedtimestamp = lo_row_1->get_updatedat( ).
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.