Amazon CodeGuru Security

2024/05/31 - Amazon CodeGuru Security - 1 updated api methods

Changes  This release includes minor model updates and documentation updates.

GetScan (updated) Link ΒΆ
Changes (response)
{'errorMessage': 'string'}

Returns details about a scan, including whether or not a scan has completed.

See also: AWS API Documentation

Request Syntax

client.get_scan(
    runId='string',
    scanName='string'
)
type runId:

string

param runId:

UUID that identifies the individual scan run you want to view details about. You retrieve this when you call the CreateScan operation. Defaults to the latest scan run if missing.

type scanName:

string

param scanName:

[REQUIRED]

The name of the scan you want to view details about.

rtype:

dict

returns:

Response Syntax

{
    'analysisType': 'Security'|'All',
    'createdAt': datetime(2015, 1, 1),
    'errorMessage': 'string',
    'numberOfRevisions': 123,
    'runId': 'string',
    'scanName': 'string',
    'scanNameArn': 'string',
    'scanState': 'InProgress'|'Successful'|'Failed',
    'updatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • analysisType (string) --

      The type of analysis CodeGuru Security performed in the scan, either Security or All. The Security type only generates findings related to security. The All type generates both security findings and quality findings.

    • createdAt (datetime) --

      The time the scan was created.

    • errorMessage (string) --

      Details about the error that causes a scan to fail to be retrieved.

    • numberOfRevisions (integer) --

      The number of times a scan has been re-run on a revised resource.

    • runId (string) --

      UUID that identifies the individual scan run.

    • scanName (string) --

      The name of the scan.

    • scanNameArn (string) --

      The ARN for the scan name.

    • scanState (string) --

      The current state of the scan. Returns either InProgress, Successful, or Failed.

    • updatedAt (datetime) --

      The time when the scan was last updated. Only available for STANDARD scan types.