IdentityPoolAdmin
Source:
src/AWS/Cognito/IdentityPoolAdmin.ts
Runtime binding for administrative Cognito identity pool operations — identity management and the developer-authenticated identities flow.
Bind this to an IdentityPool inside a function runtime to get a typed
client for listing/deleting identities and for developer-provider token
minting. The binding grants the corresponding cognito-identity:* IAM
actions scoped to the pool’s ARN and injects the pool ID into pool-scoped
calls.
Managing Identities
Section titled “Managing Identities”const identities = yield* Cognito.IdentityPoolAdmin(identityPool);
const page = yield* identities.listIdentities({ MaxResults: 20 });const first = page.Identities?.[0];if (first?.IdentityId) { const detail = yield* identities.describeIdentity({ IdentityId: first.IdentityId, });}Developer-Authenticated Identities
Section titled “Developer-Authenticated Identities”const token = yield* identities.getOpenIdTokenForDeveloperIdentity({ Logins: { "my.developer.provider": userId },});