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).
Subscription Workflows
Section titled “Subscription Workflows”// init — bind the operation to the domainconst createSubscriptionRequest = yield* AWS.DataZone.CreateSubscriptionRequest(domain);
// runtimeyield* createSubscriptionRequest({ subscribedPrincipals: [{ project: { identifier: projectId } }], subscribedListings: [{ identifier: listingId }], requestReason: "nightly enrichment job needs read access",});