Skip to content

AcceptSubscriptionRequest

Source: src/AWS/DataZone/AcceptSubscriptionRequest.ts

Runtime binding for datazone:AcceptSubscriptionRequest.

Approves a pending subscription request in the bound domain — the core of an automated approval workflow. The domain id is injected from the binding. Provide the implementation with Effect.provide(AWS.DataZone.AcceptSubscriptionRequestHttp).

// init — bind the operation to the domain
const acceptSubscriptionRequest = yield* AWS.DataZone.AcceptSubscriptionRequest(domain);
// runtime
yield* acceptSubscriptionRequest({ identifier: requestId, decisionComment: "auto-approved" });