Skip to main content

identities

Creates, updates, deletes, gets or lists an identities resource.

Overview

Nameidentities
TypeResource
Idaws.cognito_identity.identities

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
identitiesarrayAn object containing a set of identities and associated mappings.
identity_pool_idstringAn identity pool ID in the format REGION:GUID. (pattern: <code>[\w-]+:[0-9a-f-]+</code>)
next_tokenstringA pagination token. (pattern: <code>[\S]+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_identitiesselectregionLists the identities in an identity pool. You must use Amazon Web Services developer credentials to call this operation.
describe_identityselectregionReturns metadata related to the given identity, including when the identity was created and any associated linked logins. You must use Amazon Web Services developer credentials to call this operation.
delete_identitiesdeleteregionDeletes identities from an identity pool. You can specify a list of 1-60 identities that you want to delete. You must use Amazon Web Services developer credentials to call this operation.
unlink_identityexecregion, IdentityId, LoginsToRemoveUnlinks a federated identity from an existing account. Unlinked logins will be considered new identities next time they are seen. Removing the last linked login will make this identity inaccessible. 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Lists the identities in an identity pool. You must use Amazon Web Services developer credentials to call this operation.

SELECT
identities,
identity_pool_id,
next_token
FROM aws.cognito_identity.identities
WHERE region = '{{ region }}' -- required
;

DELETE examples

Deletes identities from an identity pool. You can specify a list of 1-60 identities that you want to delete. You must use Amazon Web Services developer credentials to call this operation.

DELETE FROM aws.cognito_identity.identities
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Unlinks a federated identity from an existing account. Unlinked logins will be considered new identities next time they are seen. Removing the last linked login will make this identity inaccessible. This is a public API. You do not need any credentials to call this API.

EXEC aws.cognito_identity.identities.unlink_identity
@region='{{ region }}' --required
@@json=
'{
"IdentityId": "{{ IdentityId }}",
"Logins": "{{ Logins }}",
"LoginsToRemove": "{{ LoginsToRemove }}"
}'
;