credentials_for_identities
Creates, updates, deletes, gets or lists a credentials_for_identities resource.
Overview
| Name | credentials_for_identities |
| Type | Resource |
| Id | aws.cognito_identity.credentials_for_identities |
Fields
The following fields are returned by SELECT queries:
- get_credentials_for_identity
| Name | Datatype | Description |
|---|---|---|
credentials | object | Credentials for the provided identity ID. |
identity_id | string | A unique identifier in the format REGION:GUID. (pattern: <code>[\w-]+:[0-9a-f-]+</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_credentials_for_identity | select | region | 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 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. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_credentials_for_identity
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 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.
SELECT
credentials,
identity_id
FROM aws.cognito_identity.credentials_for_identities
WHERE region = '{{ region }}' -- required
;