Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Gets paginated records, optionally changed after a particular sync count for a dataset and identity. With Amazon Cognito Sync, each identity has access only to its own data. Thus, the credentials used to make this API call need to have access to the identity data.
ListRecords can be called with temporary user credentials provided by Cognito Identity or with developer credentials. You should use Cognito Identity credentials to make this API call.
See: AWS API Reference for ListRecords.
- listRecords :: Text -> Text -> Text -> ListRecords
- data ListRecords
- lrLastSyncCount :: Lens' ListRecords (Maybe Integer)
- lrNextToken :: Lens' ListRecords (Maybe Text)
- lrSyncSessionToken :: Lens' ListRecords (Maybe Text)
- lrMaxResults :: Lens' ListRecords (Maybe Int)
- lrIdentityPoolId :: Lens' ListRecords Text
- lrIdentityId :: Lens' ListRecords Text
- lrDatasetName :: Lens' ListRecords Text
- listRecordsResponse :: Int -> ListRecordsResponse
- data ListRecordsResponse
- lrrsDatasetDeletedAfterRequestedSyncCount :: Lens' ListRecordsResponse (Maybe Bool)
- lrrsDatasetExists :: Lens' ListRecordsResponse (Maybe Bool)
- lrrsCount :: Lens' ListRecordsResponse (Maybe Int)
- lrrsRecords :: Lens' ListRecordsResponse [Record]
- lrrsNextToken :: Lens' ListRecordsResponse (Maybe Text)
- lrrsSyncSessionToken :: Lens' ListRecordsResponse (Maybe Text)
- lrrsMergedDatasetNames :: Lens' ListRecordsResponse [Text]
- lrrsLastModifiedBy :: Lens' ListRecordsResponse (Maybe Text)
- lrrsDatasetSyncCount :: Lens' ListRecordsResponse (Maybe Integer)
- lrrsStatus :: Lens' ListRecordsResponse Int
Creating a Request
Creates a value of ListRecords
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ListRecords Source
A request for a list of records.
See: listRecords
smart constructor.
Request Lenses
lrLastSyncCount :: Lens' ListRecords (Maybe Integer) Source
The last server sync count for this record.
lrNextToken :: Lens' ListRecords (Maybe Text) Source
A pagination token for obtaining the next page of results.
lrSyncSessionToken :: Lens' ListRecords (Maybe Text) Source
A token containing a session ID, identity ID, and expiration.
lrMaxResults :: Lens' ListRecords (Maybe Int) Source
The maximum number of results to be returned.
lrIdentityPoolId :: Lens' ListRecords 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.
lrIdentityId :: Lens' ListRecords 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.
lrDatasetName :: Lens' ListRecords Text Source
A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot).
Destructuring the Response
Creates a value of ListRecordsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ListRecordsResponse Source
Returned for a successful ListRecordsRequest.
See: listRecordsResponse
smart constructor.
Response Lenses
lrrsDatasetDeletedAfterRequestedSyncCount :: Lens' ListRecordsResponse (Maybe Bool) Source
A boolean value specifying whether to delete the dataset locally.
lrrsDatasetExists :: Lens' ListRecordsResponse (Maybe Bool) Source
Indicates whether the dataset exists.
lrrsRecords :: Lens' ListRecordsResponse [Record] Source
A list of all records.
lrrsNextToken :: Lens' ListRecordsResponse (Maybe Text) Source
A pagination token for obtaining the next page of results.
lrrsSyncSessionToken :: Lens' ListRecordsResponse (Maybe Text) Source
A token containing a session ID, identity ID, and expiration.
lrrsMergedDatasetNames :: Lens' ListRecordsResponse [Text] Source
Names of merged datasets.
lrrsLastModifiedBy :: Lens' ListRecordsResponse (Maybe Text) Source
The user/device that made the last change to this record.
lrrsDatasetSyncCount :: Lens' ListRecordsResponse (Maybe Integer) Source
Server sync count for this dataset.
lrrsStatus :: Lens' ListRecordsResponse Int Source
The response status code.