Skip to content

GetSubscription

Source: src/AWS/DataZone/GetSubscription.ts

Runtime binding for datazone:GetSubscription.

Reads a subscription in the bound domain. The domain id is injected from the binding. Provide the implementation with Effect.provide(AWS.DataZone.GetSubscriptionHttp).

// init — bind the operation to the domain
const getSubscription = yield* AWS.DataZone.GetSubscription(domain);
// runtime
const sub = yield* getSubscription({ identifier: subscriptionId });