code_security_scans
Creates, updates, deletes, gets or lists a code_security_scans resource.
Overview
| Name | code_security_scans |
| Type | Resource |
| Id | aws.inspector2.code_security_scans |
Fields
The following fields are returned by SELECT queries:
- get_code_security_scan
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Amazon Web Services account ID associated with the scan. |
created_at | string (date-time) | The timestamp when the scan was created. |
last_commit_id | string | The identifier of the last commit that was scanned. This is only returned if the scan was successful or skipped. |
resource | object | Identifies a specific resource in a code repository that will be scanned. |
scan_id | string | The 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>) |
status | string | The current status of the scan. (IN_PROGRESS, SUCCESSFUL, FAILED, SKIPPED) |
status_reason | string | The reason for the current status of the scan. |
updated_at | string (date-time) | The timestamp when the scan was last updated. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_code_security_scan | select | region | Retrieves 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_code_security_scan
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
;