GetIdentityCenterAuthToken
Source:
src/AWS/RedshiftServerless/GetIdentityCenterAuthToken.ts
Runtime binding for the GetIdentityCenterAuthToken operation (IAM actions
redshift-serverless:GetIdentityCenterAuthToken).
Mints an IAM Identity Center authentication token for up to 20
workgroups — the trusted-identity-propagation alternative to
Connect’s GetCredentials flow. The response token decodes to
Redacted<string>. Provide the implementation with
Effect.provide(AWS.RedshiftServerless.GetIdentityCenterAuthTokenHttp).
Connecting to a Workgroup
Section titled “Connecting to a Workgroup”// init — resolve the runtime clientconst getToken = yield* AWS.RedshiftServerless.GetIdentityCenterAuthToken();
const { token, expirationTime } = yield* getToken({ workgroupNames: [workgroupName],});