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

Gets event data results of a query. You must specify the QueryID value * returned by the StartQuery operation.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudTrailClient, GetQueryResultsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import * // const { CloudTrailClient, GetQueryResultsCommand } = 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 = { // GetQueryResultsRequest * EventDataStore: "STRING_VALUE", * QueryId: "STRING_VALUE", // required * NextToken: "STRING_VALUE", * MaxQueryResults: Number("int"), * EventDataStoreOwnerAccountId: "STRING_VALUE", * }; * const command = new GetQueryResultsCommand(input); * const response = await client.send(command); * // { // GetQueryResultsResponse * // QueryStatus: "QUEUED" || "RUNNING" || "FINISHED" || "FAILED" || "CANCELLED" || "TIMED_OUT", * // QueryStatistics: { // QueryStatistics * // ResultsCount: Number("int"), * // TotalResultsCount: Number("int"), * // BytesScanned: Number("long"), * // }, * // QueryResultRows: [ // QueryResultRows * // [ // QueryResultRow * // { // QueryResultColumn * // "": "STRING_VALUE", * // }, * // ], * // ], * // NextToken: "STRING_VALUE", * // ErrorMessage: "STRING_VALUE", * // }; * * ``` * * @param GetQueryResultsCommandInput - {@link GetQueryResultsCommandInput} * @returns {@link GetQueryResultsCommandOutput} * @see {@link GetQueryResultsCommandInput} for command's `input` shape. * @see {@link GetQueryResultsCommandOutput} 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 InsufficientEncryptionPolicyException} (client fault) *

For the CreateTrail * PutInsightSelectors, UpdateTrail, StartQuery, and StartImport operations, this exception is thrown * when the policy on the S3 bucket or KMS key does * not have sufficient permissions for the operation.

*

For all other operations, this exception is thrown when the policy for the KMS key does * not have sufficient permissions for the operation.

* * @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 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 QueryIdNotFoundException} (client fault) *

The query ID does not exist or does not map to a query.

* * @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 GetQueryResultsCommand extends GetQueryResultsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetQueryResultsRequest; output: GetQueryResultsResponse; }; sdk: { input: GetQueryResultsCommandInput; output: GetQueryResultsCommandOutput; }; }; }