Skip to content

CancelTraceRetrieval

Source: src/AWS/XRay/CancelTraceRetrieval.ts

Cancel an ongoing Transaction Search trace retrieval job by its RetrievalToken.

Bind the operation in the function’s init phase to get a runtime callable; provide the implementation with Effect.provide(XRay.CancelTraceRetrievalHttp). The action is account-scoped: X-Ray does not support resource-level permissions for xray:CancelTraceRetrieval, so the binding grants it on *.

import * as XRay from "alchemy/AWS/XRay";
// init — grants xray:CancelTraceRetrieval
const cancelTraceRetrieval = yield* XRay.CancelTraceRetrieval();
// runtime
yield* cancelTraceRetrieval({ RetrievalToken: token });