Skip to content

ResetOriginEndpointState

Source: src/AWS/MediaPackageV2/ResetOriginEndpointState.ts

Runtime binding for mediapackagev2:ResetOriginEndpointState.

Resets the packaging state of the bound OriginEndpoint — clearing its manifests and cached segments so playback restarts clean after the channel’s content was reset or replaced. The endpoint’s group, channel, and name are injected from the binding. Provide the implementation with Effect.provide(AWS.MediaPackageV2.ResetOriginEndpointStateHttp).

// init — bind the operation to the endpoint
const resetEndpoint =
yield* AWS.MediaPackageV2.ResetOriginEndpointState(endpoint);
// runtime
const { ResetAt } = yield* resetEndpoint();