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

Retrieves all sampling rules.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { XRayClient, GetSamplingRulesCommand } from "@aws-sdk/client-xray"; // ES Modules import * // const { XRayClient, GetSamplingRulesCommand } = 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 = { // GetSamplingRulesRequest * NextToken: "STRING_VALUE", * }; * const command = new GetSamplingRulesCommand(input); * const response = await client.send(command); * // { // GetSamplingRulesResult * // SamplingRuleRecords: [ // SamplingRuleRecordList * // { // SamplingRuleRecord * // SamplingRule: { // SamplingRule * // RuleName: "STRING_VALUE", * // RuleARN: "STRING_VALUE", * // ResourceARN: "STRING_VALUE", // required * // Priority: Number("int"), // required * // FixedRate: Number("double"), // required * // ReservoirSize: Number("int"), // required * // ServiceName: "STRING_VALUE", // required * // ServiceType: "STRING_VALUE", // required * // Host: "STRING_VALUE", // required * // HTTPMethod: "STRING_VALUE", // required * // URLPath: "STRING_VALUE", // required * // Version: Number("int"), // required * // Attributes: { // AttributeMap * // "": "STRING_VALUE", * // }, * // SamplingRateBoost: { // SamplingRateBoost * // MaxRate: Number("double"), // required * // CooldownWindowMinutes: Number("int"), // required * // }, * // }, * // CreatedAt: new Date("TIMESTAMP"), * // ModifiedAt: new Date("TIMESTAMP"), * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param GetSamplingRulesCommandInput - {@link GetSamplingRulesCommandInput} * @returns {@link GetSamplingRulesCommandOutput} * @see {@link GetSamplingRulesCommandInput} for command's `input` shape. * @see {@link GetSamplingRulesCommandOutput} 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 GetSamplingRulesCommand extends GetSamplingRulesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetSamplingRulesRequest; output: GetSamplingRulesResult; }; sdk: { input: GetSamplingRulesCommandInput; output: GetSamplingRulesCommandOutput; }; }; }