Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
- data UpdateRecords
- updateRecords :: Text -> Text -> Text -> Text -> UpdateRecords
- urClientContext :: Lens' UpdateRecords (Maybe Text)
- urDatasetName :: Lens' UpdateRecords Text
- urDeviceId :: Lens' UpdateRecords (Maybe Text)
- urIdentityId :: Lens' UpdateRecords Text
- urIdentityPoolId :: Lens' UpdateRecords Text
- urRecordPatches :: Lens' UpdateRecords [RecordPatch]
- urSyncSessionToken :: Lens' UpdateRecords Text
- data UpdateRecordsResponse
- updateRecordsResponse :: UpdateRecordsResponse
- urrRecords :: Lens' UpdateRecordsResponse [Record]
Request
data UpdateRecords Source
Request constructor
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> UpdateRecords |
UpdateRecords
constructor.
The fields accessible through corresponding lenses are:
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.
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:
urrRecords
::
[Record
]
Response lenses
urrRecords :: Lens' UpdateRecordsResponse [Record] Source
A list of records that have been updated.