DescribeMalwareScans

class GuardDuty.Paginator.DescribeMalwareScans
paginator = client.get_paginator('describe_malware_scans')
paginate(**kwargs)

Creates an iterator that will paginate through responses from GuardDuty.Client.describe_malware_scans().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    DetectorId='string',
    FilterCriteria={
        'FilterCriterion': [
            {
                'CriterionKey': 'EC2_INSTANCE_ARN'|'SCAN_ID'|'ACCOUNT_ID'|'GUARDDUTY_FINDING_ID'|'SCAN_START_TIME'|'SCAN_STATUS',
                'FilterCondition': {
                    'EqualsValue': 'string',
                    'GreaterThan': 123,
                    'LessThan': 123
                }
            },
        ]
    },
    SortCriteria={
        'AttributeName': 'string',
        'OrderBy': 'ASC'|'DESC'
    },
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
  • DetectorId (string) --

    [REQUIRED]

    The unique ID of the detector that the request is associated with.

  • FilterCriteria (dict) --

    Represents the criteria to be used in the filter for describing scan entries.

    • FilterCriterion (list) --

      Represents a condition that when matched will be added to the response of the operation.

      • (dict) --

        Represents a condition that when matched will be added to the response of the operation. Irrespective of using any filter criteria, an administrator account can view the scan entries for all of its member accounts. However, each member account can view the scan entries only for their own account.

        • CriterionKey (string) --

          An enum value representing possible scan properties to match with given scan entries.

        • FilterCondition (dict) --

          Contains information about the condition.

          • EqualsValue (string) --

            Represents an equal condition to be applied to a single field when querying for scan entries.

          • GreaterThan (integer) --

            Represents a greater than condition to be applied to a single field when querying for scan entries.

          • LessThan (integer) --

            Represents a less than condition to be applied to a single field when querying for scan entries.

  • SortCriteria (dict) --

    Represents the criteria used for sorting scan entries. The attributeName is required and it must be scanStartTime .

    • AttributeName (string) --

      Represents the finding attribute, such as accountId , that sorts the findings.

    • OrderBy (string) --

      The order by which the sorted findings are to be displayed.

  • 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

{
    'Scans': [
        {
            'DetectorId': 'string',
            'AdminDetectorId': 'string',
            'ScanId': 'string',
            'ScanStatus': 'RUNNING'|'COMPLETED'|'FAILED',
            'FailureReason': 'string',
            'ScanStartTime': datetime(2015, 1, 1),
            'ScanEndTime': datetime(2015, 1, 1),
            'TriggerDetails': {
                'GuardDutyFindingId': 'string',
                'Description': 'string'
            },
            'ResourceDetails': {
                'InstanceArn': 'string'
            },
            'ScanResultDetails': {
                'ScanResult': 'CLEAN'|'INFECTED'
            },
            'AccountId': 'string',
            'TotalBytes': 123,
            'FileCount': 123,
            'AttachedVolumes': [
                {
                    'VolumeArn': 'string',
                    'VolumeType': 'string',
                    'DeviceName': 'string',
                    'VolumeSizeInGB': 123,
                    'EncryptionType': 'string',
                    'SnapshotArn': 'string',
                    'KmsKeyArn': 'string'
                },
            ]
        },
    ],

}

Response Structure

  • (dict) --

    • Scans (list) --

      Contains information about malware scans.

      • (dict) --

        Contains information about a malware scan.

        • DetectorId (string) --

          The unique ID of the detector that the request is associated with.

        • AdminDetectorId (string) --

          The unique detector ID of the administrator account that the request is associated with. Note that this value will be the same as the one used for DetectorId if the account is an administrator.

        • ScanId (string) --

          The unique scan ID associated with a scan entry.

        • ScanStatus (string) --

          An enum value representing possible scan statuses.

        • FailureReason (string) --

          Represents the reason for FAILED scan status.

        • ScanStartTime (datetime) --

          The timestamp of when the scan was triggered.

        • ScanEndTime (datetime) --

          The timestamp of when the scan was finished.

        • TriggerDetails (dict) --

          Specifies the reason why the scan was initiated.

          • GuardDutyFindingId (string) --

            The ID of the GuardDuty finding that triggered the malware scan.

          • Description (string) --

            The description of the scan trigger.

        • ResourceDetails (dict) --

          Represents the resources that were scanned in the scan entry.

          • InstanceArn (string) --

            InstanceArn that was scanned in the scan entry.

        • ScanResultDetails (dict) --

          Represents the result of the scan.

          • ScanResult (string) --

            An enum value representing possible scan results.

        • AccountId (string) --

          The ID for the account that belongs to the scan.

        • TotalBytes (integer) --

          Represents total bytes that were scanned.

        • FileCount (integer) --

          Represents the number of files that were scanned.

        • AttachedVolumes (list) --

          List of volumes that were attached to the original instance to be scanned.

          • (dict) --

            Contains EBS volume details.

            • VolumeArn (string) --

              EBS volume Arn information.

            • VolumeType (string) --

              The EBS volume type.

            • DeviceName (string) --

              The device name for the EBS volume.

            • VolumeSizeInGB (integer) --

              EBS volume size in GB.

            • EncryptionType (string) --

              EBS volume encryption type.

            • SnapshotArn (string) --

              Snapshot Arn of the EBS volume.

            • KmsKeyArn (string) --

              KMS key Arn used to encrypt the EBS volume.