Skip to content

GetUserProfile

Source: src/AWS/DataZone/GetUserProfile.ts

Runtime binding for datazone:GetUserProfile.

Reads a user profile in the bound domain — e.g. to resolve the requester of a subscription request. The domain id is injected from the binding. Provide the implementation with Effect.provide(AWS.DataZone.GetUserProfileHttp).

// init — bind the operation to the domain
const getUserProfile = yield* AWS.DataZone.GetUserProfile(domain);
// runtime
const profile = yield* getUserProfile({ userIdentifier: userId });