Skip to main content

devices

Creates, updates, deletes, gets or lists a devices resource.

Overview

Namedevices
TypeResource
Idaws.cognito_sync.devices

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
register_deviceinsertidentity_pool_id, identity_id, region, Platform, TokenRegisters a device to receive push sync notifications. This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API 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_idstringThe unique ID for this identity.
identity_pool_idstringA name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. Here, the ID of the pool that the identity belongs to.
regionstringAWS region (default: us-east-1)

INSERT examples

Registers a device to receive push sync notifications. This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.

INSERT INTO aws.cognito_sync.devices (
Platform,
Token,
identity_pool_id,
identity_id,
region
)
SELECT
'{{ Platform }}' /* required */,
'{{ Token }}' /* required */,
'{{ identity_pool_id }}',
'{{ identity_id }}',
'{{ region }}'
RETURNING
device_id
;