Skip to content

List Malware Scans

guardduty_list_malware_scans R Documentation

Returns a list of malware scans

Description

Returns a list of malware scans. Each member account can view the malware scans for their own accounts. An administrator can view the malware scans for all of its members' accounts.

Usage

guardduty_list_malware_scans(MaxResults, NextToken, FilterCriteria,
  SortCriteria)

Arguments

MaxResults

You can use this parameter to indicate the maximum number of items that you want in the response. The default value is 50. The maximum value is 50.

NextToken

You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the list action. For subsequent calls to the action, fill nextToken in the request with the value of NextToken from the previous response to continue listing results.

FilterCriteria

Represents the criteria used to filter the malware scan entries.

SortCriteria

Represents the criteria used for sorting malware scan entries.

Value

A list with the following syntax:

list(
  Scans = list(
    list(
      ResourceArn = "string",
      ResourceType = "EBS_RECOVERY_POINT"|"EBS_SNAPSHOT"|"EBS_VOLUME"|"EC2_AMI"|"EC2_INSTANCE"|"EC2_RECOVERY_POINT"|"S3_RECOVERY_POINT"|"S3_BUCKET"|"S3_POINT_IN_TIME_RECOVERY",
      ScanId = "string",
      ScanStatus = "RUNNING"|"COMPLETED"|"COMPLETED_WITH_ISSUES"|"FAILED"|"SKIPPED",
      ScanResultStatus = "NO_THREATS_FOUND"|"THREATS_FOUND",
      ScanType = "BACKUP_INITIATED"|"ON_DEMAND"|"GUARDDUTY_INITIATED",
      ScanStartedAt = as.POSIXct(
        "2015-01-01"
      ),
      ScanCompletedAt = as.POSIXct(
        "2015-01-01"
      )
    )
  ),
  NextToken = "string"
)

Request syntax

svc$list_malware_scans(
  MaxResults = 123,
  NextToken = "string",
  FilterCriteria = list(
    ListMalwareScansFilterCriterion = list(
      list(
        ListMalwareScansCriterionKey = "RESOURCE_ARN"|"SCAN_ID"|"ACCOUNT_ID"|"GUARDDUTY_FINDING_ID"|"RESOURCE_TYPE"|"SCAN_START_TIME"|"SCAN_STATUS"|"SCAN_TYPE",
        FilterCondition = list(
          EqualsValue = "string",
          GreaterThan = 123,
          LessThan = 123
        )
      )
    )
  ),
  SortCriteria = list(
    AttributeName = "string",
    OrderBy = "ASC"|"DESC"
  )
)