Skip to content

/AWS1/CL_CFS=>DSCAGGREGATECPLNCBYCONFORM00()

About DescribeAggregateComplianceByConformancePacks

Returns a list of the existing and deleted conformance packs and their associated compliance status with the count of compliant and noncompliant Config rules within each conformance pack. Also returns the total rule count which includes compliant rules, noncompliant rules, and rules that cannot be evaluated due to insufficient data.

The results can return an empty result page, but if you have a nextToken, the results are displayed on the next page.

Method Signature

IMPORTING

Required arguments:

iv_confaggregatorname TYPE /AWS1/CFSCONFAGGREGATORNAME /AWS1/CFSCONFAGGREGATORNAME

The name of the configuration aggregator.

Optional arguments:

io_filters TYPE REF TO /AWS1/CL_CFSAGGREGATECONFORM00 /AWS1/CL_CFSAGGREGATECONFORM00

Filters the result by AggregateConformancePackComplianceFilters object.

iv_limit TYPE /AWS1/CFSLIMIT /AWS1/CFSLIMIT

The maximum number of conformance packs compliance details returned on each page. The default is maximum. If you specify 0, Config uses the default.

iv_nexttoken TYPE /AWS1/CFSNEXTTOKEN /AWS1/CFSNEXTTOKEN

The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

RETURNING

oo_output TYPE REF TO /aws1/cl_cfsdscaggregatecpln03 /AWS1/CL_CFSDSCAGGREGATECPLN03

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->/aws1/if_cfs~dscaggregatecplncbyconform00(
  io_filters = new /aws1/cl_cfsaggregateconform00(
    iv_accountid = |string|
    iv_awsregion = |string|
    iv_compliancetype = |string|
    iv_conformancepackname = |string|
  )
  iv_confaggregatorname = |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_aggregatecplncbyconfor00( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_conformancepackname = lo_row_1->get_conformancepackname( ).
      lo_aggregateconformancepac = lo_row_1->get_compliance( ).
      IF lo_aggregateconformancepac IS NOT INITIAL.
        lv_conformancepackcomplian = lo_aggregateconformancepac->get_compliancetype( ).
        lv_integer = lo_aggregateconformancepac->get_compliantrulecount( ).
        lv_integer = lo_aggregateconformancepac->get_noncompliantrulecount( ).
        lv_integer = lo_aggregateconformancepac->get_totalrulecount( ).
      ENDIF.
      lv_accountid = lo_row_1->get_accountid( ).
      lv_awsregion = lo_row_1->get_awsregion( ).
    ENDIF.
  ENDLOOP.
  lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.