| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.AWS.CognitoSync.UpdateRecords
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
- 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
Instances
| Eq UpdateRecords | |
| Read UpdateRecords | |
| Show UpdateRecords | |
| AWSRequest UpdateRecords | |
| ToQuery UpdateRecords | |
| ToPath UpdateRecords | |
| ToHeaders UpdateRecords | |
| ToJSON UpdateRecords | |
| type Sv UpdateRecords = CognitoSync | |
| type Rs UpdateRecords = UpdateRecordsResponse |
Request constructor
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> Text | |
| -> UpdateRecords |
UpdateRecords constructor.
The fields accessible through corresponding lenses are:
urClientContext::MaybeTexturDatasetName::TexturDeviceId::MaybeTexturIdentityId::TexturIdentityPoolId::TexturRecordPatches::[RecordPatch]urSyncSessionToken::Text
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
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.