Skip to content

GenerateEmbedUrlForRegisteredUser

Source: src/AWS/QuickSight/GenerateEmbedUrlForRegisteredUser.ts

Runtime binding for quicksight:GenerateEmbedUrlForRegisteredUser.

Generates a single-use embed URL for a registered QuickSight user, defaulting the embedded experience to the bound Dashboard. The URL contains a temporary bearer token valid for 5 minutes; the resulting session lasts 15 minutes to 10 hours (SessionLifetimeInMinutes). Provide the implementation with Effect.provide(AWS.QuickSight.GenerateEmbedUrlForRegisteredUserHttp).

// init — bind the operation to the dashboard
const generateEmbedUrl =
yield* AWS.QuickSight.GenerateEmbedUrlForRegisteredUser(dashboard);
// runtime — the embed experience defaults to the bound dashboard
const { EmbedUrl } = yield* generateEmbedUrl({
UserArn: userArn,
SessionLifetimeInMinutes: 60,
});