Skip to content

List Cis Scan Results Aggregated By Target Resource

inspector2_list_cis_scan_results_aggregated_by_target_resource R Documentation

Lists scan results aggregated by a target resource

Description

Lists scan results aggregated by a target resource.

Usage

inspector2_list_cis_scan_results_aggregated_by_target_resource(
  filterCriteria, maxResults, nextToken, scanArn, sortBy, sortOrder)

Arguments

filterCriteria

The filter criteria.

maxResults

The maximum number of scan results aggregated by a target resource to be returned in a single page of results.

nextToken

The pagination token from a previous request that's used to retrieve the next page of results.

scanArn

[required] The scan ARN.

sortBy

The sort by order.

sortOrder

The sort order.

Value

A list with the following syntax:

list(
  nextToken = "string",
  targetResourceAggregations = list(
    list(
      accountId = "string",
      platform = "string",
      scanArn = "string",
      statusCounts = list(
        failed = 123,
        passed = 123,
        skipped = 123
      ),
      targetResourceId = "string",
      targetResourceTags = list(
        list(
          "string"
        )
      ),
      targetStatus = "TIMED_OUT"|"CANCELLED"|"COMPLETED",
      targetStatusReason = "SCAN_IN_PROGRESS"|"UNSUPPORTED_OS"|"SSM_UNMANAGED"
    )
  )
)

Request syntax

svc$list_cis_scan_results_aggregated_by_target_resource(
  filterCriteria = list(
    accountIdFilters = list(
      list(
        comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
        value = "string"
      )
    ),
    checkIdFilters = list(
      list(
        comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
        value = "string"
      )
    ),
    failedChecksFilters = list(
      list(
        lowerInclusive = 123,
        upperInclusive = 123
      )
    ),
    platformFilters = list(
      list(
        comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
        value = "string"
      )
    ),
    statusFilters = list(
      list(
        comparison = "EQUALS",
        value = "PASSED"|"FAILED"|"SKIPPED"
      )
    ),
    targetResourceIdFilters = list(
      list(
        comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
        value = "string"
      )
    ),
    targetResourceTagFilters = list(
      list(
        comparison = "EQUALS",
        key = "string",
        value = "string"
      )
    ),
    targetStatusFilters = list(
      list(
        comparison = "EQUALS",
        value = "TIMED_OUT"|"CANCELLED"|"COMPLETED"
      )
    ),
    targetStatusReasonFilters = list(
      list(
        comparison = "EQUALS",
        value = "SCAN_IN_PROGRESS"|"UNSUPPORTED_OS"|"SSM_UNMANAGED"
      )
    )
  ),
  maxResults = 123,
  nextToken = "string",
  scanArn = "string",
  sortBy = "RESOURCE_ID"|"FAILED_COUNTS"|"ACCOUNT_ID"|"PLATFORM"|"TARGET_STATUS"|"TARGET_STATUS_REASON",
  sortOrder = "ASC"|"DESC"
)