Skip to content

Batch Get Code Snippet

inspector2_batch_get_code_snippet R Documentation

Retrieves code snippets from findings that Amazon Inspector detected code vulnerabilities in

Description

Retrieves code snippets from findings that Amazon Inspector detected code vulnerabilities in.

Usage

inspector2_batch_get_code_snippet(findingArns)

Arguments

findingArns

[required] An array of finding ARNs for the findings you want to retrieve code snippets from.

Value

A list with the following syntax:

list(
  codeSnippetResults = list(
    list(
      codeSnippet = list(
        list(
          content = "string",
          lineNumber = 123
        )
      ),
      endLine = 123,
      findingArn = "string",
      startLine = 123,
      suggestedFixes = list(
        list(
          code = "string",
          description = "string"
        )
      )
    )
  ),
  errors = list(
    list(
      errorCode = "INTERNAL_ERROR"|"ACCESS_DENIED"|"CODE_SNIPPET_NOT_FOUND"|"INVALID_INPUT",
      errorMessage = "string",
      findingArn = "string"
    )
  )
)

Request syntax

svc$batch_get_code_snippet(
  findingArns = list(
    "string"
  )
)