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 { GetFindingsStatisticsRequest, GetFindingsStatisticsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetFindingsStatisticsCommand}. */ export interface GetFindingsStatisticsCommandInput extends GetFindingsStatisticsRequest { } /** * @public * * The output of {@link GetFindingsStatisticsCommand}. */ export interface GetFindingsStatisticsCommandOutput extends GetFindingsStatisticsResponse, __MetadataBearer { } declare const GetFindingsStatisticsCommand_base: { new (input: GetFindingsStatisticsCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetFindingsStatisticsCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Retrieves a list of aggregated finding statistics for an external access or unused access analyzer.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { AccessAnalyzerClient, GetFindingsStatisticsCommand } from "@aws-sdk/client-accessanalyzer"; // ES Modules import * // const { AccessAnalyzerClient, GetFindingsStatisticsCommand } = 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 = { // GetFindingsStatisticsRequest * analyzerArn: "STRING_VALUE", // required * }; * const command = new GetFindingsStatisticsCommand(input); * const response = await client.send(command); * // { // GetFindingsStatisticsResponse * // findingsStatistics: [ // FindingsStatisticsList * // { // FindingsStatistics Union: only one key present * // externalAccessFindingsStatistics: { // ExternalAccessFindingsStatistics * // resourceTypeStatistics: { // ResourceTypeStatisticsMap * // "": { // ResourceTypeDetails * // totalActivePublic: Number("int"), * // totalActiveCrossAccount: Number("int"), * // totalActiveErrors: Number("int"), * // }, * // }, * // totalActiveFindings: Number("int"), * // totalArchivedFindings: Number("int"), * // totalResolvedFindings: Number("int"), * // }, * // internalAccessFindingsStatistics: { // InternalAccessFindingsStatistics * // resourceTypeStatistics: { // InternalAccessResourceTypeStatisticsMap * // "": { // InternalAccessResourceTypeDetails * // totalActiveFindings: Number("int"), * // totalResolvedFindings: Number("int"), * // totalArchivedFindings: Number("int"), * // }, * // }, * // totalActiveFindings: Number("int"), * // totalArchivedFindings: Number("int"), * // totalResolvedFindings: Number("int"), * // }, * // unusedAccessFindingsStatistics: { // UnusedAccessFindingsStatistics * // unusedAccessTypeStatistics: [ // UnusedAccessTypeStatisticsList * // { // UnusedAccessTypeStatistics * // unusedAccessType: "STRING_VALUE", * // total: Number("int"), * // }, * // ], * // topAccounts: [ // AccountAggregations * // { // FindingAggregationAccountDetails * // account: "STRING_VALUE", * // numberOfActiveFindings: Number("int"), * // details: { // FindingAggregationAccountDetailsMap * // "": Number("int"), * // }, * // }, * // ], * // totalActiveFindings: Number("int"), * // totalArchivedFindings: Number("int"), * // totalResolvedFindings: Number("int"), * // }, * // }, * // ], * // lastUpdatedAt: new Date("TIMESTAMP"), * // }; * * ``` * * @param GetFindingsStatisticsCommandInput - {@link GetFindingsStatisticsCommandInput} * @returns {@link GetFindingsStatisticsCommandOutput} * @see {@link GetFindingsStatisticsCommandInput} for command's `input` shape. * @see {@link GetFindingsStatisticsCommandOutput} 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 GetFindingsStatisticsCommand extends GetFindingsStatisticsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetFindingsStatisticsRequest; output: GetFindingsStatisticsResponse; }; sdk: { input: GetFindingsStatisticsCommandInput; output: GetFindingsStatisticsCommandOutput; }; }; }