Skip to content

RevokeSubscription

Source: src/AWS/DataZone/RevokeSubscription.ts

Runtime binding for datazone:RevokeSubscription.

Revokes an approved subscription in the bound domain, optionally retaining already-granted permissions. The domain id is injected from the binding. Provide the implementation with Effect.provide(AWS.DataZone.RevokeSubscriptionHttp).

// init — bind the operation to the domain
const revokeSubscription = yield* AWS.DataZone.RevokeSubscription(domain);
// runtime
yield* revokeSubscription({ identifier: subscriptionId, retainPermissions: false });