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

* Searches sample queries and returns a list of sample queries that are sorted by relevance. * To search for sample queries, provide a natural language SearchPhrase in English. *

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudTrailClient, SearchSampleQueriesCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import * // const { CloudTrailClient, SearchSampleQueriesCommand } = 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 = { // SearchSampleQueriesRequest * SearchPhrase: "STRING_VALUE", // required * MaxResults: Number("int"), * NextToken: "STRING_VALUE", * }; * const command = new SearchSampleQueriesCommand(input); * const response = await client.send(command); * // { // SearchSampleQueriesResponse * // SearchResults: [ // SearchSampleQueriesSearchResults * // { // SearchSampleQueriesSearchResult * // Name: "STRING_VALUE", * // Description: "STRING_VALUE", * // SQL: "STRING_VALUE", * // Relevance: Number("float"), * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param SearchSampleQueriesCommandInput - {@link SearchSampleQueriesCommandInput} * @returns {@link SearchSampleQueriesCommandOutput} * @see {@link SearchSampleQueriesCommandInput} for command's `input` shape. * @see {@link SearchSampleQueriesCommandOutput} for command's `response` shape. * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape. * * @throws {@link InvalidParameterException} (client fault) *

The request includes a parameter that is not valid.

* * @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 SearchSampleQueriesCommand extends SearchSampleQueriesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: SearchSampleQueriesRequest; output: SearchSampleQueriesResponse; }; sdk: { input: SearchSampleQueriesCommandInput; output: SearchSampleQueriesCommandOutput; }; }; }