amazonka-cognito-sync-0.2.0: Amazon Cognito Sync SDK.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.CognitoSync.UpdateRecords

Contents

Description

Posts updates to records and add and delete records for a dataset and user. The credentials used to make this API call need to have access to the identity data. With Amazon Cognito Sync, each identity has access only to its own data. You should use Amazon Cognito Identity service to retrieve the credentials necessary to make this API call.

http://docs.aws.amazon.com/cognitosync/latest/APIReference/API_UpdateRecords.html

Synopsis

Request

Request constructor

Request lenses

urClientContext :: Lens' UpdateRecords (Maybe Text) Source

Intended to supply a device ID that will populate the lastModifiedBy field referenced in other methods. The ClientContext field is not yet implemented.

urDatasetName :: Lens' UpdateRecords Text Source

A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), - (dash), and . (dot).

urDeviceId :: Lens' UpdateRecords (Maybe Text) Source

The unique ID generated for this device by Cognito.

urIdentityId :: Lens' UpdateRecords Text Source

A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.

urIdentityPoolId :: Lens' UpdateRecords Text Source

A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.

urRecordPatches :: Lens' UpdateRecords [RecordPatch] Source

A list of patch operations.

urSyncSessionToken :: Lens' UpdateRecords Text Source

The SyncSessionToken returned by a previous call to ListRecords for this dataset and identity.

Response

Response constructor

updateRecordsResponse :: UpdateRecordsResponse Source

UpdateRecordsResponse constructor.

The fields accessible through corresponding lenses are:

Response lenses

urrRecords :: Lens' UpdateRecordsResponse [Record] Source

A list of records that have been updated.