CodeSnippetResult - Inspector
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

CodeSnippetResult

Contains information on a code snippet retrieved by Amazon Inspector from a code vulnerability finding.

Contents

codeSnippet

Contains information on the retrieved code snippet.

Type: Array of CodeLine objects

Array Members: Minimum number of 1 item. Maximum number of 20 items.

Required: No

endLine

The line number of the last line of a code snippet.

Type: Integer

Required: No

findingArn

The ARN of a finding that the code snippet is associated with.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 100.

Pattern: ^arn:(aws[a-zA-Z-]*)?:inspector2:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:finding/[a-f0-9]{32}$

Required: No

startLine

The line number of the first line of a code snippet.

Type: Integer

Required: No

suggestedFixes

Details of a suggested code fix.

Type: Array of SuggestedFix objects

Array Members: Minimum number of 1 item. Maximum number of 5 items.

Required: No

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: