Skip to content

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).

// init — resolve the runtime client
const getToken = yield* AWS.RedshiftServerless.GetIdentityCenterAuthToken();
const { token, expirationTime } = yield* getToken({
workgroupNames: [workgroupName],
});