import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient"; import type { ListPublicKeysRequest, ListPublicKeysResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListPublicKeysCommand}. */ export interface ListPublicKeysCommandInput extends ListPublicKeysRequest { } /** * @public * * The output of {@link ListPublicKeysCommand}. */ export interface ListPublicKeysCommandOutput extends ListPublicKeysResponse, __MetadataBearer { } declare const ListPublicKeysCommand_base: { new (input: ListPublicKeysCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [ListPublicKeysCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Returns all public keys whose private keys were used to sign the digest files within the * specified time range. The public key is needed to validate digest files that were signed * with its corresponding private key.

* *

CloudTrail uses different private and public key pairs per Region. Each digest * file is signed with a private key unique to its Region. When you validate a digest file * from a specific Region, you must look in the same Region for its corresponding public * key.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudTrailClient, ListPublicKeysCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import * // const { CloudTrailClient, ListPublicKeysCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import * // import type { CloudTrailClientConfig } from "@aws-sdk/client-cloudtrail"; * const config = {}; // type is CloudTrailClientConfig * const client = new CloudTrailClient(config); * const input = { // ListPublicKeysRequest * StartTime: new Date("TIMESTAMP"), * EndTime: new Date("TIMESTAMP"), * NextToken: "STRING_VALUE", * }; * const command = new ListPublicKeysCommand(input); * const response = await client.send(command); * // { // ListPublicKeysResponse * // PublicKeyList: [ // PublicKeyList * // { // PublicKey * // Value: new Uint8Array(), * // ValidityStartTime: new Date("TIMESTAMP"), * // ValidityEndTime: new Date("TIMESTAMP"), * // Fingerprint: "STRING_VALUE", * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param ListPublicKeysCommandInput - {@link ListPublicKeysCommandInput} * @returns {@link ListPublicKeysCommandOutput} * @see {@link ListPublicKeysCommandInput} for command's `input` shape. * @see {@link ListPublicKeysCommandOutput} for command's `response` shape. * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape. * * @throws {@link InvalidTimeRangeException} (client fault) *

Occurs if the timestamp values are not valid. Either the start time occurs after the end * time, or the time range is outside the range of possible values.

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

Reserved for future use.

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

This exception is thrown when the requested operation is not permitted.

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

This exception is thrown when the requested operation is not supported.

* * @throws {@link CloudTrailServiceException} *

Base exception class for all service exceptions from CloudTrail service.

* * * @public */ export declare class ListPublicKeysCommand extends ListPublicKeysCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListPublicKeysRequest; output: ListPublicKeysResponse; }; sdk: { input: ListPublicKeysCommandInput; output: ListPublicKeysCommandOutput; }; }; }