Skip to content

CreateSubscriptionRequest

Source: src/AWS/DataZone/CreateSubscriptionRequest.ts

Runtime binding for datazone:CreateSubscriptionRequest.

Requests a subscription to a published listing in the bound domain on behalf of a project. The domain id is injected from the binding. Provide the implementation with Effect.provide(AWS.DataZone.CreateSubscriptionRequestHttp).

// init — bind the operation to the domain
const createSubscriptionRequest = yield* AWS.DataZone.CreateSubscriptionRequest(domain);
// runtime
yield* createSubscriptionRequest({
subscribedPrincipals: [{ project: { identifier: projectId } }],
subscribedListings: [{ identifier: listingId }],
requestReason: "nightly enrichment job needs read access",
});