Inspector2 / Paginator / ListCisScanResultsAggregatedByChecks

ListCisScanResultsAggregatedByChecks#

class Inspector2.Paginator.ListCisScanResultsAggregatedByChecks#
paginator = client.get_paginator('list_cis_scan_results_aggregated_by_checks')
paginate(**kwargs)#

Creates an iterator that will paginate through responses from Inspector2.Client.list_cis_scan_results_aggregated_by_checks().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    filterCriteria={
        'accountIdFilters': [
            {
                'comparison': 'EQUALS'|'PREFIX'|'NOT_EQUALS',
                'value': 'string'
            },
        ],
        'checkIdFilters': [
            {
                'comparison': 'EQUALS'|'PREFIX'|'NOT_EQUALS',
                'value': 'string'
            },
        ],
        'failedResourcesFilters': [
            {
                'lowerInclusive': 123,
                'upperInclusive': 123
            },
        ],
        'platformFilters': [
            {
                'comparison': 'EQUALS'|'PREFIX'|'NOT_EQUALS',
                'value': 'string'
            },
        ],
        'securityLevelFilters': [
            {
                'comparison': 'EQUALS',
                'value': 'LEVEL_1'|'LEVEL_2'
            },
        ],
        'titleFilters': [
            {
                'comparison': 'EQUALS'|'PREFIX'|'NOT_EQUALS',
                'value': 'string'
            },
        ]
    },
    scanArn='string',
    sortBy='CHECK_ID'|'TITLE'|'PLATFORM'|'FAILED_COUNTS'|'SECURITY_LEVEL',
    sortOrder='ASC'|'DESC',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • filterCriteria (dict) –

    The filter criteria.

    • accountIdFilters (list) –

      The criteria’s account ID filters.

      • (dict) –

        The CIS string filter.

        • comparison (string) – [REQUIRED]

          The comparison value of the CIS string filter.

        • value (string) – [REQUIRED]

          The value of the CIS string filter.

    • checkIdFilters (list) –

      The criteria’s check ID filters.

      • (dict) –

        The CIS string filter.

        • comparison (string) – [REQUIRED]

          The comparison value of the CIS string filter.

        • value (string) – [REQUIRED]

          The value of the CIS string filter.

    • failedResourcesFilters (list) –

      The criteria’s failed resources filters.

      • (dict) –

        The CIS number filter.

        • lowerInclusive (integer) –

          The CIS number filter’s lower inclusive.

        • upperInclusive (integer) –

          The CIS number filter’s upper inclusive.

    • platformFilters (list) –

      The criteria’s platform filters.

      • (dict) –

        The CIS string filter.

        • comparison (string) – [REQUIRED]

          The comparison value of the CIS string filter.

        • value (string) – [REQUIRED]

          The value of the CIS string filter.

    • securityLevelFilters (list) –

      The criteria’s security level filters.

      • (dict) –

        The CIS security level filter. Security level refers to the Benchmark levels that CIS assigns to a profile.

        • comparison (string) – [REQUIRED]

          The CIS security filter comparison value.

        • value (string) – [REQUIRED]

          The CIS security filter value.

    • titleFilters (list) –

      The criteria’s title filters.

      • (dict) –

        The CIS string filter.

        • comparison (string) – [REQUIRED]

          The comparison value of the CIS string filter.

        • value (string) – [REQUIRED]

          The value of the CIS string filter.

  • scanArn (string) –

    [REQUIRED]

    The scan ARN.

  • sortBy (string) – The sort by order.

  • sortOrder (string) – The sort order.

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:

dict

Returns:

Response Syntax

{
    'checkAggregations': [
        {
            'accountId': 'string',
            'checkDescription': 'string',
            'checkId': 'string',
            'level': 'LEVEL_1'|'LEVEL_2',
            'platform': 'string',
            'scanArn': 'string',
            'statusCounts': {
                'failed': 123,
                'passed': 123,
                'skipped': 123
            },
            'title': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • checkAggregations (list) –

      The check aggregations.

      • (dict) –

        A CIS check.

        • accountId (string) –

          The account ID for the CIS check.

        • checkDescription (string) –

          The description for the CIS check.

        • checkId (string) –

          The check ID for the CIS check.

        • level (string) –

          The CIS check level.

        • platform (string) –

          The CIS check platform.

        • scanArn (string) –

          The scan ARN for the CIS check scan ARN.

        • statusCounts (dict) –

          The CIS check status counts.

          • failed (integer) –

            The number of checks that failed.

          • passed (integer) –

            The number of checks that passed.

          • skipped (integer) –

            The number of checks that were skipped.

        • title (string) –

          The CIS check title.

    • NextToken (string) –

      A token to resume pagination.