aws.cognito_identity.get_credentials_for_identity
Example SQL Queries
SELECT * FROMaws.cognito_identity.get_credentials_for_identityWHERE"identity_id" = 'VALUE';Description
Returns credentials for the provided identity ID. Any provided logins will be validated against supported login providers. If the token is for cognito-identity.amazonaws.com, it will be passed through to AWS Security Token Service with the appropriate role for the token.
This is a public API. You do not need any credentials to call this API.
Table Definition
| Column Name | Column Data Type |
|---|---|
| identity_id Required Input Column A unique identifier in the format REGION:GUID. | VARCHAR |
| custom_role_arn Input Column The Amazon Resource Name (ARN) of the role to be assumed when multiple roles were received in the token from the identity provider. For example, a SAML-based identity provider. This parameter is optional for identity providers that do not support role customization. | VARCHAR |
| logins Input Column A set of optional name-value pairs that map provider names to provider tokens. The name-value pair will follow the syntax "provider_name": "provider_user_identifier". Logins should not be specified when trying to get credentials for an unauthenticated identity. The Logins parameter is required when using identities associated with external identity providers such as Facebook. For examples of Logins maps, see the code examples in the External Identity Providers section of the Amazon Cognito Developer Guide. | MAP(VARCHAR, VARCHAR) |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| credentials Credentials for the provided identity ID. | STRUCT( |
Show child fields
| |