import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { UpdateSamplingRuleRequest, UpdateSamplingRuleResult } from "../models/models_0"; import type { ServiceInputTypes, ServiceOutputTypes, XRayClientResolvedConfig } from "../XRayClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link UpdateSamplingRuleCommand}. */ export interface UpdateSamplingRuleCommandInput extends UpdateSamplingRuleRequest { } /** * @public * * The output of {@link UpdateSamplingRuleCommand}. */ export interface UpdateSamplingRuleCommandOutput extends UpdateSamplingRuleResult, __MetadataBearer { } declare const UpdateSamplingRuleCommand_base: { new (input: UpdateSamplingRuleCommandInput): import("@smithy/core/client").CommandImpl; new (input: UpdateSamplingRuleCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Modifies a sampling rule's configuration.

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