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 { ListQueriesRequest, ListQueriesResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListQueriesCommand}. */ export interface ListQueriesCommandInput extends ListQueriesRequest { } /** * @public * * The output of {@link ListQueriesCommand}. */ export interface ListQueriesCommandOutput extends ListQueriesResponse, __MetadataBearer { } declare const ListQueriesCommand_base: { new (input: ListQueriesCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: ListQueriesCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Returns a list of queries and query statuses for the past seven days. You must specify * an ARN value for EventDataStore. Optionally, to shorten the list of results, * you can specify a time range, formatted as timestamps, by adding StartTime and * EndTime parameters, and a QueryStatus value. Valid values for * QueryStatus include QUEUED, RUNNING, * FINISHED, FAILED, TIMED_OUT, or * CANCELLED.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudTrailClient, ListQueriesCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import * // const { CloudTrailClient, ListQueriesCommand } = 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 = { // ListQueriesRequest * EventDataStore: "STRING_VALUE", // required * NextToken: "STRING_VALUE", * MaxResults: Number("int"), * StartTime: new Date("TIMESTAMP"), * EndTime: new Date("TIMESTAMP"), * QueryStatus: "QUEUED" || "RUNNING" || "FINISHED" || "FAILED" || "CANCELLED" || "TIMED_OUT", * }; * const command = new ListQueriesCommand(input); * const response = await client.send(command); * // { // ListQueriesResponse * // Queries: [ // Queries * // { // Query * // QueryId: "STRING_VALUE", * // QueryStatus: "QUEUED" || "RUNNING" || "FINISHED" || "FAILED" || "CANCELLED" || "TIMED_OUT", * // CreationTime: new Date("TIMESTAMP"), * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param ListQueriesCommandInput - {@link ListQueriesCommandInput} * @returns {@link ListQueriesCommandOutput} * @see {@link ListQueriesCommandInput} for command's `input` shape. * @see {@link ListQueriesCommandOutput} for command's `response` shape. * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape. * * @throws {@link EventDataStoreARNInvalidException} (client fault) *

The specified event data store ARN is not valid or does not map to an event data store * in your account.

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

The specified event data store was not found.

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

The event data store is inactive.

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

A date range for the query was specified that is not valid. Be sure that the start time * is chronologically before the end time. For more information about writing a query, see * Create or edit a query in the CloudTrail User Guide.

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

This exception is thrown if the limit specified is not valid.

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

A token that is not valid, or a token that was previously used in a request with * different parameters. This exception is thrown if the token is not valid.

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

The request includes a parameter that is not valid.

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

The query status is not valid for the operation.

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

This exception is thrown when the management account does not have a service-linked * role.

* * @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 ListQueriesCommand extends ListQueriesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListQueriesRequest; output: ListQueriesResponse; }; sdk: { input: ListQueriesCommandInput; output: ListQueriesCommandOutput; }; }; }