Skip to content

List Coverage

inspector2_list_coverage R Documentation

Lists coverage details for you environment

Description

Lists coverage details for you environment.

Usage

inspector2_list_coverage(filterCriteria, maxResults, nextToken)

Arguments

filterCriteria

An object that contains details on the filters to apply to the coverage data for your environment.

maxResults

The maximum number of results the response can return. If your request would return more than the maximum the response will return a nextToken value, use this value when you call the action again to get the remaining results.

nextToken

A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. If your response returns more than the maxResults maximum value it will also return a nextToken value. For subsequent calls, use the nextToken value returned from the previous request to continue listing results after the first page.

Value

A list with the following syntax:

list(
  coveredResources = list(
    list(
      accountId = "string",
      lastScannedAt = as.POSIXct(
        "2015-01-01"
      ),
      resourceId = "string",
      resourceMetadata = list(
        ec2 = list(
          amiId = "string",
          platform = "WINDOWS"|"LINUX"|"UNKNOWN"|"MACOS",
          tags = list(
            "string"
          )
        ),
        ecrImage = list(
          imagePulledAt = as.POSIXct(
            "2015-01-01"
          ),
          tags = list(
            "string"
          )
        ),
        ecrRepository = list(
          name = "string",
          scanFrequency = "MANUAL"|"SCAN_ON_PUSH"|"CONTINUOUS_SCAN"
        ),
        lambdaFunction = list(
          functionName = "string",
          functionTags = list(
            "string"
          ),
          layers = list(
            "string"
          ),
          runtime = "NODEJS"|"NODEJS_12_X"|"NODEJS_14_X"|"NODEJS_16_X"|"JAVA_8"|"JAVA_8_AL2"|"JAVA_11"|"PYTHON_3_7"|"PYTHON_3_8"|"PYTHON_3_9"|"UNSUPPORTED"|"NODEJS_18_X"|"GO_1_X"|"JAVA_17"|"PYTHON_3_10"
        )
      ),
      resourceType = "AWS_EC2_INSTANCE"|"AWS_ECR_CONTAINER_IMAGE"|"AWS_ECR_REPOSITORY"|"AWS_LAMBDA_FUNCTION",
      scanMode = "EC2_SSM_AGENT_BASED"|"EC2_AGENTLESS",
      scanStatus = list(
        reason = "PENDING_INITIAL_SCAN"|"ACCESS_DENIED"|"INTERNAL_ERROR"|"UNMANAGED_EC2_INSTANCE"|"UNSUPPORTED_OS"|"SCAN_ELIGIBILITY_EXPIRED"|"RESOURCE_TERMINATED"|"SUCCESSFUL"|"NO_RESOURCES_FOUND"|"IMAGE_SIZE_EXCEEDED"|"SCAN_FREQUENCY_MANUAL"|"SCAN_FREQUENCY_SCAN_ON_PUSH"|"EC2_INSTANCE_STOPPED"|"PENDING_DISABLE"|"NO_INVENTORY"|"STALE_INVENTORY"|"EXCLUDED_BY_TAG"|"UNSUPPORTED_RUNTIME"|"UNSUPPORTED_MEDIA_TYPE"|"UNSUPPORTED_CONFIG_FILE"|"DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED"|"DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED"|"DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED"|"DEEP_INSPECTION_NO_INVENTORY"|"AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED"|"AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED",
        statusCode = "ACTIVE"|"INACTIVE"
      ),
      scanType = "NETWORK"|"PACKAGE"|"CODE"
    )
  ),
  nextToken = "string"
)

Request syntax

svc$list_coverage(
  filterCriteria = list(
    accountId = list(
      list(
        comparison = "EQUALS"|"NOT_EQUALS",
        value = "string"
      )
    ),
    ec2InstanceTags = list(
      list(
        comparison = "EQUALS",
        key = "string",
        value = "string"
      )
    ),
    ecrImageTags = list(
      list(
        comparison = "EQUALS"|"NOT_EQUALS",
        value = "string"
      )
    ),
    ecrRepositoryName = list(
      list(
        comparison = "EQUALS"|"NOT_EQUALS",
        value = "string"
      )
    ),
    imagePulledAt = list(
      list(
        endInclusive = as.POSIXct(
          "2015-01-01"
        ),
        startInclusive = as.POSIXct(
          "2015-01-01"
        )
      )
    ),
    lambdaFunctionName = list(
      list(
        comparison = "EQUALS"|"NOT_EQUALS",
        value = "string"
      )
    ),
    lambdaFunctionRuntime = list(
      list(
        comparison = "EQUALS"|"NOT_EQUALS",
        value = "string"
      )
    ),
    lambdaFunctionTags = list(
      list(
        comparison = "EQUALS",
        key = "string",
        value = "string"
      )
    ),
    lastScannedAt = list(
      list(
        endInclusive = as.POSIXct(
          "2015-01-01"
        ),
        startInclusive = as.POSIXct(
          "2015-01-01"
        )
      )
    ),
    resourceId = list(
      list(
        comparison = "EQUALS"|"NOT_EQUALS",
        value = "string"
      )
    ),
    resourceType = list(
      list(
        comparison = "EQUALS"|"NOT_EQUALS",
        value = "string"
      )
    ),
    scanMode = list(
      list(
        comparison = "EQUALS"|"NOT_EQUALS",
        value = "string"
      )
    ),
    scanStatusCode = list(
      list(
        comparison = "EQUALS"|"NOT_EQUALS",
        value = "string"
      )
    ),
    scanStatusReason = list(
      list(
        comparison = "EQUALS"|"NOT_EQUALS",
        value = "string"
      )
    ),
    scanType = list(
      list(
        comparison = "EQUALS"|"NOT_EQUALS",
        value = "string"
      )
    )
  ),
  maxResults = 123,
  nextToken = "string"
)