Skip to main content

identity_pool_configurations

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

Overview

Nameidentity_pool_configurations
TypeResource
Idaws.cognito_sync.identity_pool_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
cognito_streamsobjectOptions to apply to this identity pool for Amazon Cognito streams.
identity_pool_idstringA name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. (pattern: <code>[\w-]+:[0-9a-f-]+</code>)
push_syncobjectOptions to apply to this identity pool for push synchronization.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_identity_pool_configurationselectidentity_pool_id, regionGets the configuration settings of an 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.
set_identity_pool_configurationupdateidentity_pool_id, regionSets the necessary configuration for push sync. This API can only be called with developer credentials. You cannot call this API 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. This is the ID of the pool to modify.
regionstringAWS region (default: us-east-1)

SELECT examples

Gets the configuration settings of an 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
cognito_streams,
identity_pool_id,
push_sync
FROM aws.cognito_sync.identity_pool_configurations
WHERE identity_pool_id = '{{ identity_pool_id }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Sets the necessary configuration for push sync. This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.

UPDATE aws.cognito_sync.identity_pool_configurations
SET
PushSync = '{{ PushSync }}',
CognitoStreams = '{{ CognitoStreams }}'
WHERE
identity_pool_id = '{{ identity_pool_id }}' --required
AND region = '{{ region }}' --required
RETURNING
cognito_streams,
identity_pool_id,
push_sync;