Skip to content

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.

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,
});
}
const token = yield* identities.getOpenIdTokenForDeveloperIdentity({
Logins: { "my.developer.provider": userId },
});