Skip to content

CodeSnippetResult

Source code in docs_src/capo_inspector2/types/code_snippet_result.py
class CodeSnippetResult(TypedDict, closed=True):
    finding_arn: NotRequired["capo_inspector2.types.finding_arn.FindingArn"]
    """<p>The ARN of a finding that the code snippet is associated with.</p>"""
    start_line: NotRequired["int"]
    """<p>The line number of the first line of a code snippet.</p>"""
    end_line: NotRequired["int"]
    """<p>The line number of the last line of a code snippet.</p>"""
    code_snippet: NotRequired["capo_inspector2.types.code_line_list.CodeLineList"]
    """<p>Contains information on the retrieved code snippet.</p>"""
    suggested_fixes: NotRequired["capo_inspector2.types.suggested_fixes.SuggestedFixes"]
    """<p>Details of a suggested code fix.</p>"""

code_snippet instance-attribute

code_snippet: NotRequired[CodeLineList]

Contains information on the retrieved code snippet.

end_line instance-attribute

end_line: NotRequired[int]

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

finding_arn instance-attribute

finding_arn: NotRequired[FindingArn]

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

start_line instance-attribute

start_line: NotRequired[int]

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

suggested_fixes instance-attribute

suggested_fixes: NotRequired[SuggestedFixes]

Details of a suggested code fix.