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.
http://docs.aws.amazon.com/cognitosync/latest/APIReference/API_ListRecords.html
- data ListRecords
- listRecords :: Text -> Text -> Text -> ListRecords
- lrDatasetName :: Lens' ListRecords Text
- lrIdentityId :: Lens' ListRecords Text
- lrIdentityPoolId :: Lens' ListRecords Text
- lrLastSyncCount :: Lens' ListRecords (Maybe Integer)
- lrMaxResults :: Lens' ListRecords (Maybe Int)
- lrNextToken :: Lens' ListRecords (Maybe Text)
- lrSyncSessionToken :: Lens' ListRecords (Maybe Text)
- data ListRecordsResponse
- listRecordsResponse :: ListRecordsResponse
- lrrCount :: Lens' ListRecordsResponse (Maybe Int)
- lrrDatasetDeletedAfterRequestedSyncCount :: Lens' ListRecordsResponse (Maybe Bool)
- lrrDatasetExists :: Lens' ListRecordsResponse (Maybe Bool)
- lrrDatasetSyncCount :: Lens' ListRecordsResponse (Maybe Integer)
- lrrLastModifiedBy :: Lens' ListRecordsResponse (Maybe Text)
- lrrMergedDatasetNames :: Lens' ListRecordsResponse [Text]
- lrrNextToken :: Lens' ListRecordsResponse (Maybe Text)
- lrrRecords :: Lens' ListRecordsResponse [Record]
- lrrSyncSessionToken :: Lens' ListRecordsResponse (Maybe Text)
Request
data ListRecords Source
Eq ListRecords | |
Ord ListRecords | |
Read ListRecords | |
Show ListRecords | |
AWSRequest ListRecords | |
ToQuery ListRecords | |
ToPath ListRecords | |
ToHeaders ListRecords | |
ToJSON ListRecords | |
type Sv ListRecords = CognitoSync | |
type Rs ListRecords = ListRecordsResponse |
Request constructor
:: Text | |
-> Text | |
-> Text | |
-> ListRecords |
ListRecords
constructor.
The fields accessible through corresponding lenses are:
lrDatasetName
::
Text
lrIdentityId
::
Text
lrIdentityPoolId
::
Text
lrLastSyncCount
::
Maybe
Integer
lrMaxResults
::
Maybe
Int
lrNextToken
::
Maybe
Text
lrSyncSessionToken
::
Maybe
Text
Request lenses
lrDatasetName :: Lens' ListRecords Text Source
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.
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.
lrLastSyncCount :: Lens' ListRecords (Maybe Integer) Source
The last server sync count for this record.
lrMaxResults :: Lens' ListRecords (Maybe Int) Source
The maximum number of results to be returned.
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.
Response
Response constructor
listRecordsResponse :: ListRecordsResponse Source
ListRecordsResponse
constructor.
The fields accessible through corresponding lenses are:
lrrCount
::
Maybe
Int
lrrDatasetDeletedAfterRequestedSyncCount
::
Maybe
Bool
lrrDatasetExists
::
Maybe
Bool
lrrDatasetSyncCount
::
Maybe
Integer
lrrLastModifiedBy
::
Maybe
Text
lrrMergedDatasetNames
::
[Text
]lrrNextToken
::
Maybe
Text
lrrRecords
::
[Record
]lrrSyncSessionToken
::
Maybe
Text
Response lenses
lrrCount :: Lens' ListRecordsResponse (Maybe Int) Source
Total number of records.
lrrDatasetDeletedAfterRequestedSyncCount :: Lens' ListRecordsResponse (Maybe Bool) Source
A boolean value specifying whether to delete the dataset locally.
lrrDatasetExists :: Lens' ListRecordsResponse (Maybe Bool) Source
Indicates whether the dataset exists.
lrrDatasetSyncCount :: Lens' ListRecordsResponse (Maybe Integer) Source
Server sync count for this dataset.
lrrLastModifiedBy :: Lens' ListRecordsResponse (Maybe Text) Source
The user/device that made the last change to this record.
lrrMergedDatasetNames :: Lens' ListRecordsResponse [Text] Source
Names of merged datasets.
lrrNextToken :: Lens' ListRecordsResponse (Maybe Text) Source
A pagination token for obtaining the next page of results.
lrrRecords :: Lens' ListRecordsResponse [Record] Source
A list of all records.
lrrSyncSessionToken :: Lens' ListRecordsResponse (Maybe Text) Source
A token containing a session ID, identity ID, and expiration.