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

You cannot find traces through this API if Transaction Search is enabled since trace is not indexed in X-Ray.

*
*

Retrieves a list of traces specified by ID. Each trace is a collection of segment * documents that originates from a single request. Use GetTraceSummaries to get a * list of trace IDs.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { XRayClient, BatchGetTracesCommand } from "@aws-sdk/client-xray"; // ES Modules import * // const { XRayClient, BatchGetTracesCommand } = 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 = { // BatchGetTracesRequest * TraceIds: [ // TraceIdList // required * "STRING_VALUE", * ], * NextToken: "STRING_VALUE", * }; * const command = new BatchGetTracesCommand(input); * const response = await client.send(command); * // { // BatchGetTracesResult * // Traces: [ // TraceList * // { // Trace * // Id: "STRING_VALUE", * // Duration: Number("double"), * // LimitExceeded: true || false, * // Segments: [ // SegmentList * // { // Segment * // Id: "STRING_VALUE", * // Document: "STRING_VALUE", * // }, * // ], * // }, * // ], * // UnprocessedTraceIds: [ // UnprocessedTraceIdList * // "STRING_VALUE", * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param BatchGetTracesCommandInput - {@link BatchGetTracesCommandInput} * @returns {@link BatchGetTracesCommandOutput} * @see {@link BatchGetTracesCommandInput} for command's `input` shape. * @see {@link BatchGetTracesCommandOutput} 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 BatchGetTracesCommand extends BatchGetTracesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: BatchGetTracesRequest; output: BatchGetTracesResult; }; sdk: { input: BatchGetTracesCommandInput; output: BatchGetTracesCommandOutput; }; }; }