import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccessAnalyzerClient"; import type { ListFindingsV2Request, ListFindingsV2Response } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListFindingsV2Command}. */ export interface ListFindingsV2CommandInput extends ListFindingsV2Request { } /** * @public * * The output of {@link ListFindingsV2Command}. */ export interface ListFindingsV2CommandOutput extends ListFindingsV2Response, __MetadataBearer { } declare const ListFindingsV2Command_base: { new (input: ListFindingsV2CommandInput): import("@smithy/core/client").CommandImpl; new (input: ListFindingsV2CommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Retrieves a list of findings generated by the specified analyzer. ListFindings and ListFindingsV2 both use access-analyzer:ListFindings in the Action element of an IAM policy statement. You must have permission to perform the access-analyzer:ListFindings action.

To learn about filter keys that you can use to retrieve a list of findings, see IAM Access Analyzer filter keys in the IAM User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { AccessAnalyzerClient, ListFindingsV2Command } from "@aws-sdk/client-accessanalyzer"; // ES Modules import * // const { AccessAnalyzerClient, ListFindingsV2Command } = require("@aws-sdk/client-accessanalyzer"); // CommonJS import * // import type { AccessAnalyzerClientConfig } from "@aws-sdk/client-accessanalyzer"; * const config = {}; // type is AccessAnalyzerClientConfig * const client = new AccessAnalyzerClient(config); * const input = { // ListFindingsV2Request * analyzerArn: "STRING_VALUE", // required * filter: { // FilterCriteriaMap * "": { // Criterion * eq: [ // ValueList * "STRING_VALUE", * ], * neq: [ * "STRING_VALUE", * ], * contains: [ * "STRING_VALUE", * ], * exists: true || false, * }, * }, * maxResults: Number("int"), * nextToken: "STRING_VALUE", * sort: { // SortCriteria * attributeName: "STRING_VALUE", * orderBy: "STRING_VALUE", * }, * }; * const command = new ListFindingsV2Command(input); * const response = await client.send(command); * // { // ListFindingsV2Response * // findings: [ // FindingsListV2 // required * // { // FindingSummaryV2 * // analyzedAt: new Date("TIMESTAMP"), // required * // createdAt: new Date("TIMESTAMP"), // required * // error: "STRING_VALUE", * // id: "STRING_VALUE", // required * // resource: "STRING_VALUE", * // resourceType: "STRING_VALUE", // required * // resourceOwnerAccount: "STRING_VALUE", // required * // status: "STRING_VALUE", // required * // updatedAt: new Date("TIMESTAMP"), // required * // findingType: "STRING_VALUE", * // }, * // ], * // nextToken: "STRING_VALUE", * // }; * * ``` * * @param ListFindingsV2CommandInput - {@link ListFindingsV2CommandInput} * @returns {@link ListFindingsV2CommandOutput} * @see {@link ListFindingsV2CommandInput} for command's `input` shape. * @see {@link ListFindingsV2CommandOutput} for command's `response` shape. * @see {@link AccessAnalyzerClientResolvedConfig | config} for AccessAnalyzerClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient access to perform this action.

* * @throws {@link InternalServerException} (server fault) *

Internal server error.

* * @throws {@link ResourceNotFoundException} (client fault) *

The specified resource could not be found.

* * @throws {@link ThrottlingException} (client fault) *

Throttling limit exceeded error.

* * @throws {@link ValidationException} (client fault) *

Validation exception error.

* * @throws {@link AccessAnalyzerServiceException} *

Base exception class for all service exceptions from AccessAnalyzer service.

* * * @public */ export declare class ListFindingsV2Command extends ListFindingsV2Command_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListFindingsV2Request; output: ListFindingsV2Response; }; sdk: { input: ListFindingsV2CommandInput; output: ListFindingsV2CommandOutput; }; }; }