v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-142311090.8 KB

Gets the roles for an identity pool.

You must use AWS Developer credentials to call this API.

post/#X-Amz-Target=AWSCognitoIdentityService.GetIdentityPoolRoles

Headers

X-Amz-Target'AWSCognitoIdentityService.GetIdentityPoolRoles' required

Request body

IdentityPoolIdstring required

An identity pool ID in the format REGION:GUID.

Response

Success

IdentityPoolIdstring

An identity pool ID in the format REGION:GUID.

Rolesobject

The map of roles associated with this pool. Currently only authenticated and unauthenticated roles are supported.

RoleMappingsobject

How users for a specific identity provider are to mapped to roles. This is a String-to-<a>RoleMapping</a> object map. The string identifies the identity provider, for example, "graph.facebook.com" or "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".