/AWS1/IF_CFS=>DESCRIBECONFIGRULEEVALSTATUS()¶
About DescribeConfigRuleEvaluationStatus¶
Returns status information for each of your Config managed rules. The status includes information such as the last time Config invoked the rule, the last time Config failed to invoke the rule, and the related error for the last failure.
Method Signature¶
METHODS /AWS1/IF_CFS~DESCRIBECONFIGRULEEVALSTATUS
IMPORTING
!IT_CONFIGRULENAMES TYPE /AWS1/CL_CFSCONFIGRULENAMES_W=>TT_CONFIGRULENAMES OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/CFSSTRING OPTIONAL
!IV_LIMIT TYPE /AWS1/CFSRULELIMIT OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cfsdsccfgrlevalstat01
RAISING
/AWS1/CX_CFSINVALIDNEXTTOKENEX
/AWS1/CX_CFSINVPARAMVALUEEX
/AWS1/CX_CFSNOSUCHCONFIGRULEEX
/AWS1/CX_CFSCLIENTEXC
/AWS1/CX_CFSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
it_configrulenames TYPE /AWS1/CL_CFSCONFIGRULENAMES_W=>TT_CONFIGRULENAMES TT_CONFIGRULENAMES¶
The name of the Config managed rules for which you want status information. If you do not specify any names, Config returns status information for all Config managed rules that you use.
iv_nexttoken TYPE /AWS1/CFSSTRING /AWS1/CFSSTRING¶
The
nextTokenstring returned on a previous page that you use to get the next page of results in a paginated response.
iv_limit TYPE /AWS1/CFSRULELIMIT /AWS1/CFSRULELIMIT¶
The number of rule evaluation results that you want returned.
This parameter is required if the rule limit for your account is more than the default of 1000 rules.
For information about requesting a rule limit increase, see Config Limits in the Amazon Web Services General Reference Guide.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cfsdsccfgrlevalstat01 /AWS1/CL_CFSDSCCFGRLEVALSTAT01¶
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->describeconfigruleevalstatus(
it_configrulenames = VALUE /aws1/cl_cfsconfigrulenames_w=>tt_configrulenames(
( new /aws1/cl_cfsconfigrulenames_w( |string| ) )
)
iv_limit = 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_configrulesevalstatus( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_configrulename = lo_row_1->get_configrulename( ).
lv_string = lo_row_1->get_configrulearn( ).
lv_string = lo_row_1->get_configruleid( ).
lv_date = lo_row_1->get_lastsuccessfulinvctime( ).
lv_date = lo_row_1->get_lastfailedinvocationtime( ).
lv_date = lo_row_1->get_lastsuccessfulevaltime( ).
lv_date = lo_row_1->get_lastfailedevaluationtime( ).
lv_date = lo_row_1->get_firstactivatedtime( ).
lv_date = lo_row_1->get_lastdeactivatedtime( ).
lv_string = lo_row_1->get_lasterrorcode( ).
lv_string = lo_row_1->get_lasterrormessage( ).
lv_boolean = lo_row_1->get_firstevaluationstarted( ).
lv_string = lo_row_1->get_lastdebuglogdeliverystat( ).
lv_string = lo_row_1->get_lastdebuglogdeliveryst00( ).
lv_date = lo_row_1->get_lastdebuglogdeliverytime( ).
ENDIF.
ENDLOOP.
lv_string = lo_result->get_nexttoken( ).
ENDIF.