Skip to main content

identity_pool_usages

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

Overview

Nameidentity_pool_usages
TypeResource
Idaws.cognito_sync.identity_pool_usages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
data_storageinteger (int64)Data storage information for the identity pool.
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 pool was last modified.
sync_sessions_countinteger (int64)Number of sync sessions for the identity pool.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_identity_pool_usageselectidentity_pool_id, regionGets usage details (for example, data storage) about a particular identity pool. This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.
list_identity_pool_usageselectregionnextToken, maxResultsGets a list of identity pools registered with Cognito. ListIdentityPoolUsage can only be called with developer credentials. You cannot make this API call with the temporary user credentials provided by Cognito Identity.

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_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)
maxResultsintegerThe maximum number of results to be returned.
nextTokenstringA pagination token for obtaining the next page of results.

SELECT examples

Gets usage details (for example, data storage) about a particular identity pool. This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.

SELECT
data_storage,
identity_pool_id,
last_modified_date,
sync_sessions_count
FROM aws.cognito_sync.identity_pool_usages
WHERE identity_pool_id = '{{ identity_pool_id }}' -- required
AND region = '{{ region }}' -- required
;