/AWS1/IF_CFS=>DESCRIBECONFORMANCEPACKCPLNC()¶
About DescribeConformancePackCompliance¶
Returns compliance details for each rule in that conformance pack.
You must provide exact rule names.
Method Signature¶
METHODS /AWS1/IF_CFS~DESCRIBECONFORMANCEPACKCPLNC
IMPORTING
!IV_CONFORMANCEPACKNAME TYPE /AWS1/CFSCONFORMANCEPACKNAME OPTIONAL
!IO_FILTERS TYPE REF TO /AWS1/CL_CFSCONFORMANCEPACKC00 OPTIONAL
!IV_LIMIT TYPE /AWS1/CFSDSCCONFORMANCEPACKC00 OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/CFSNEXTTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cfsdscconformancepa01
RAISING
/AWS1/CX_CFSINVALIDLIMITEX
/AWS1/CX_CFSINVALIDNEXTTOKENEX
/AWS1/CX_CFSINVPARAMVALUEEX
/AWS1/CX_CFSNOSUCHCFGRLINCON00
/AWS1/CX_CFSNOSUCHCONFORMANC00
/AWS1/CX_CFSCLIENTEXC
/AWS1/CX_CFSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_conformancepackname TYPE /AWS1/CFSCONFORMANCEPACKNAME /AWS1/CFSCONFORMANCEPACKNAME¶
Name of the conformance pack.
Optional arguments:¶
io_filters TYPE REF TO /AWS1/CL_CFSCONFORMANCEPACKC00 /AWS1/CL_CFSCONFORMANCEPACKC00¶
A
ConformancePackComplianceFiltersobject.
iv_limit TYPE /AWS1/CFSDSCCONFORMANCEPACKC00 /AWS1/CFSDSCCONFORMANCEPACKC00¶
The maximum number of Config rules within a conformance pack are returned on each page.
iv_nexttoken TYPE /AWS1/CFSNEXTTOKEN /AWS1/CFSNEXTTOKEN¶
The
nextTokenstring returned in a previous request that you use to request the next page of results in a paginated response.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cfsdscconformancepa01 /AWS1/CL_CFSDSCCONFORMANCEPA01¶
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->describeconformancepackcplnc(
io_filters = new /aws1/cl_cfsconformancepackc00(
it_configrulenames = VALUE /aws1/cl_cfsconformancepackc01=>tt_conformancepackcfgrulenames(
( new /aws1/cl_cfsconformancepackc01( |string| ) )
)
iv_compliancetype = |string|
)
iv_conformancepackname = |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.
lv_conformancepackname = lo_result->get_conformancepackname( ).
LOOP AT lo_result->get_conformancepackrlcplnc00( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_configrulename = lo_row_1->get_configrulename( ).
lv_conformancepackcomplian = lo_row_1->get_compliancetype( ).
LOOP AT lo_row_1->get_controls( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_stringwithcharlimit128 = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.