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

Safe HaskellNone
LanguageHaskell2010

Network.AWS.CognitoSync.UpdateRecords

Contents

Description

Posts updates to records and adds and deletes records for a dataset and user.

UpdateRecords can only be called with temporary user credentials provided by Cognito Identity. You cannot make this API call with developer credentials.

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.