Skip to main content

identity_usages

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

Overview

Nameidentity_usages
TypeResource
Idaws.cognito_sync.identity_usages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
data_storageinteger (int64)Total data storage for this identity.
dataset_countintegerNumber of datasets for the identity.
identity_idstringA name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region. (pattern: <code>[\w-]+:[0-9a-f-]+</code>)
identity_pool_idstringA name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region. (pattern: <code>[\w-]+:[0-9a-f-]+</code>)
last_modified_datestring (date-time)Date on which the identity was last modified.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_identity_usageselectidentity_pool_id, identity_id, regionGets usage information for an identity, including number of datasets and data usage. This API can be called with temporary user credentials provided by Cognito Identity or with developer credentials.

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
identity_idstringA name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
identity_pool_idstringA name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
regionstringAWS region (default: us-east-1)

SELECT examples

Gets usage information for an identity, including number of datasets and data usage. This API can be called with temporary user credentials provided by Cognito Identity or with developer credentials.

SELECT
data_storage,
dataset_count,
identity_id,
identity_pool_id,
last_modified_date
FROM aws.cognito_sync.identity_usages
WHERE identity_pool_id = '{{ identity_pool_id }}' -- required
AND identity_id = '{{ identity_id }}' -- required
AND region = '{{ region }}' -- required
;