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

* Cancels an ongoing trace retrieval job initiated by StartTraceRetrieval using the provided RetrievalToken. A successful cancellation will return an HTTP 200 response. *

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { XRayClient, CancelTraceRetrievalCommand } from "@aws-sdk/client-xray"; // ES Modules import * // const { XRayClient, CancelTraceRetrievalCommand } = 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 = { // CancelTraceRetrievalRequest * RetrievalToken: "STRING_VALUE", // required * }; * const command = new CancelTraceRetrievalCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param CancelTraceRetrievalCommandInput - {@link CancelTraceRetrievalCommandInput} * @returns {@link CancelTraceRetrievalCommandOutput} * @see {@link CancelTraceRetrievalCommandInput} for command's `input` shape. * @see {@link CancelTraceRetrievalCommandOutput} 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 ResourceNotFoundException} (client fault) *

The resource was not found. Verify that the name or Amazon Resource Name (ARN) of the resource is * correct.

* * @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 CancelTraceRetrievalCommand extends CancelTraceRetrievalCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CancelTraceRetrievalRequest; output: {}; }; sdk: { input: CancelTraceRetrievalCommandInput; output: CancelTraceRetrievalCommandOutput; }; }; }