Skip to main content

code_snippets

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

Overview​

Namecode_snippets
TypeResource
Idaws.inspector2.code_snippets

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
code_snippet_resultsarrayThe retrieved code snippets associated with the provided finding ARNs.
errorsarrayAny errors Amazon Inspector encountered while trying to retrieve the requested code snippets.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
batch_get_code_snippetselectregionRetrieves code snippets from findings that Amazon Inspector detected code vulnerabilities in.

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 code snippets from findings that Amazon Inspector detected code vulnerabilities in.

SELECT
code_snippet_results,
errors
FROM aws.inspector2.code_snippets
WHERE region = '{{ region }}' -- required
;