Skip to main content

code_security_scans

Creates, updates, deletes, gets or lists a code_security_scans resource.

Overview

Namecode_security_scans
TypeResource
Idaws.inspector2.code_security_scans

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_idstringThe Amazon Web Services account ID associated with the scan.
created_atstring (date-time)The timestamp when the scan was created.
last_commit_idstringThe identifier of the last commit that was scanned. This is only returned if the scan was successful or skipped.
resourceobjectIdentifies a specific resource in a code repository that will be scanned.
scan_idstringThe unique identifier of the scan. (pattern: <code>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}</code>)
statusstringThe current status of the scan. (IN_PROGRESS, SUCCESSFUL, FAILED, SKIPPED)
status_reasonstringThe reason for the current status of the scan.
updated_atstring (date-time)The timestamp when the scan was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_code_security_scanselectregionRetrieves information about a specific code security scan.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves information about a specific code security scan.

SELECT
account_id,
created_at,
last_commit_id,
resource,
scan_id,
status,
status_reason,
updated_at
FROM aws.inspector2.code_security_scans
WHERE region = '{{ region }}' -- required
;