import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetIndexingRulesRequest, GetIndexingRulesResult } from "../models/models_0"; import type { ServiceInputTypes, ServiceOutputTypes, XRayClientResolvedConfig } from "../XRayClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetIndexingRulesCommand}. */ export interface GetIndexingRulesCommandInput extends GetIndexingRulesRequest { } /** * @public * * The output of {@link GetIndexingRulesCommand}. */ export interface GetIndexingRulesCommandOutput extends GetIndexingRulesResult, __MetadataBearer { } declare const GetIndexingRulesCommand_base: { new (input: GetIndexingRulesCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [GetIndexingRulesCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

* Retrieves all indexing rules.

*

Indexing rules are used to determine the server-side sampling rate for spans ingested through the CloudWatchLogs destination and indexed by X-Ray. For more information, see Transaction Search.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { XRayClient, GetIndexingRulesCommand } from "@aws-sdk/client-xray"; // ES Modules import * // const { XRayClient, GetIndexingRulesCommand } = require("@aws-sdk/client-xray"); // CommonJS import * // import type { XRayClientConfig } from "@aws-sdk/client-xray"; * const config = {}; // type is XRayClientConfig * const client = new XRayClient(config); * const input = { // GetIndexingRulesRequest * NextToken: "STRING_VALUE", * }; * const command = new GetIndexingRulesCommand(input); * const response = await client.send(command); * // { // GetIndexingRulesResult * // IndexingRules: [ // IndexingRuleList * // { // IndexingRule * // Name: "STRING_VALUE", * // ModifiedAt: new Date("TIMESTAMP"), * // Rule: { // IndexingRuleValue Union: only one key present * // Probabilistic: { // ProbabilisticRuleValue * // DesiredSamplingPercentage: Number("double"), // required * // ActualSamplingPercentage: Number("double"), * // }, * // }, * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param GetIndexingRulesCommandInput - {@link GetIndexingRulesCommandInput} * @returns {@link GetIndexingRulesCommandOutput} * @see {@link GetIndexingRulesCommandInput} for command's `input` shape. * @see {@link GetIndexingRulesCommandOutput} for command's `response` shape. * @see {@link XRayClientResolvedConfig | config} for XRayClient's `config` shape. * * @throws {@link InvalidRequestException} (client fault) *

The request is missing required parameters or has invalid parameters.

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

The request exceeds the maximum number of requests per second.

* * @throws {@link XRayServiceException} *

Base exception class for all service exceptions from XRay service.

* * * @public */ export declare class GetIndexingRulesCommand extends GetIndexingRulesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetIndexingRulesRequest; output: GetIndexingRulesResult; }; sdk: { input: GetIndexingRulesCommandInput; output: GetIndexingRulesCommandOutput; }; }; }