Skip to content

BatchGetCodeSnippet

Source: src/AWS/Inspector2/BatchGetCodeSnippet.ts

Runtime binding for inspector2:BatchGetCodeSnippet.

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

Provide the implementation with Effect.provide(AWS.Inspector2.BatchGetCodeSnippetHttp).

// init
const batchGetCodeSnippet = yield* AWS.Inspector2.BatchGetCodeSnippet();
// runtime
const { codeSnippetResults } = yield* batchGetCodeSnippet({ findingArns: [findingArn] });