Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
Synopsis
- data ListRecords = ListRecords' {}
- newListRecords :: Text -> Text -> Text -> ListRecords
- listRecords_lastSyncCount :: Lens' ListRecords (Maybe Integer)
- listRecords_nextToken :: Lens' ListRecords (Maybe Text)
- listRecords_syncSessionToken :: Lens' ListRecords (Maybe Text)
- listRecords_maxResults :: Lens' ListRecords (Maybe Int)
- listRecords_identityPoolId :: Lens' ListRecords Text
- listRecords_identityId :: Lens' ListRecords Text
- listRecords_datasetName :: Lens' ListRecords Text
- data ListRecordsResponse = ListRecordsResponse' {}
- newListRecordsResponse :: Int -> ListRecordsResponse
- listRecordsResponse_datasetDeletedAfterRequestedSyncCount :: Lens' ListRecordsResponse (Maybe Bool)
- listRecordsResponse_datasetExists :: Lens' ListRecordsResponse (Maybe Bool)
- listRecordsResponse_count :: Lens' ListRecordsResponse (Maybe Int)
- listRecordsResponse_records :: Lens' ListRecordsResponse (Maybe [Record])
- listRecordsResponse_nextToken :: Lens' ListRecordsResponse (Maybe Text)
- listRecordsResponse_mergedDatasetNames :: Lens' ListRecordsResponse (Maybe [Text])
- listRecordsResponse_syncSessionToken :: Lens' ListRecordsResponse (Maybe Text)
- listRecordsResponse_lastModifiedBy :: Lens' ListRecordsResponse (Maybe Text)
- listRecordsResponse_datasetSyncCount :: Lens' ListRecordsResponse (Maybe Integer)
- listRecordsResponse_httpStatus :: Lens' ListRecordsResponse Int
Creating a Request
data ListRecords Source #
A request for a list of records.
See: newListRecords
smart constructor.
ListRecords' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> ListRecords |
Create a value of ListRecords
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:lastSyncCount:ListRecords'
, listRecords_lastSyncCount
- The last server sync count for this record.
$sel:nextToken:ListRecords'
, listRecords_nextToken
- A pagination token for obtaining the next page of results.
$sel:syncSessionToken:ListRecords'
, listRecords_syncSessionToken
- A token containing a session ID, identity ID, and expiration.
$sel:maxResults:ListRecords'
, listRecords_maxResults
- The maximum number of results to be returned.
$sel:identityPoolId:ListRecords'
, listRecords_identityPoolId
- 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.
$sel:identityId:ListRecords'
, listRecords_identityId
- 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.
$sel:datasetName:ListRecords'
, listRecords_datasetName
- A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9,
'_' (underscore), '-' (dash), and '.' (dot).
Request Lenses
listRecords_lastSyncCount :: Lens' ListRecords (Maybe Integer) Source #
The last server sync count for this record.
listRecords_nextToken :: Lens' ListRecords (Maybe Text) Source #
A pagination token for obtaining the next page of results.
listRecords_syncSessionToken :: Lens' ListRecords (Maybe Text) Source #
A token containing a session ID, identity ID, and expiration.
listRecords_maxResults :: Lens' ListRecords (Maybe Int) Source #
The maximum number of results to be returned.
listRecords_identityPoolId :: 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.
listRecords_identityId :: 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.
listRecords_datasetName :: 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
data ListRecordsResponse Source #
Returned for a successful ListRecordsRequest.
See: newListRecordsResponse
smart constructor.
ListRecordsResponse' | |
|
Instances
newListRecordsResponse Source #
Create a value of ListRecordsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:datasetDeletedAfterRequestedSyncCount:ListRecordsResponse'
, listRecordsResponse_datasetDeletedAfterRequestedSyncCount
- A boolean value specifying whether to delete the dataset locally.
$sel:datasetExists:ListRecordsResponse'
, listRecordsResponse_datasetExists
- Indicates whether the dataset exists.
$sel:count:ListRecordsResponse'
, listRecordsResponse_count
- Total number of records.
$sel:records:ListRecordsResponse'
, listRecordsResponse_records
- A list of all records.
$sel:nextToken:ListRecords'
, listRecordsResponse_nextToken
- A pagination token for obtaining the next page of results.
$sel:mergedDatasetNames:ListRecordsResponse'
, listRecordsResponse_mergedDatasetNames
- Names of merged datasets.
$sel:syncSessionToken:ListRecords'
, listRecordsResponse_syncSessionToken
- A token containing a session ID, identity ID, and expiration.
$sel:lastModifiedBy:ListRecordsResponse'
, listRecordsResponse_lastModifiedBy
- The user/device that made the last change to this record.
$sel:datasetSyncCount:ListRecordsResponse'
, listRecordsResponse_datasetSyncCount
- Server sync count for this dataset.
$sel:httpStatus:ListRecordsResponse'
, listRecordsResponse_httpStatus
- The response's http status code.
Response Lenses
listRecordsResponse_datasetDeletedAfterRequestedSyncCount :: Lens' ListRecordsResponse (Maybe Bool) Source #
A boolean value specifying whether to delete the dataset locally.
listRecordsResponse_datasetExists :: Lens' ListRecordsResponse (Maybe Bool) Source #
Indicates whether the dataset exists.
listRecordsResponse_count :: Lens' ListRecordsResponse (Maybe Int) Source #
Total number of records.
listRecordsResponse_records :: Lens' ListRecordsResponse (Maybe [Record]) Source #
A list of all records.
listRecordsResponse_nextToken :: Lens' ListRecordsResponse (Maybe Text) Source #
A pagination token for obtaining the next page of results.
listRecordsResponse_mergedDatasetNames :: Lens' ListRecordsResponse (Maybe [Text]) Source #
Names of merged datasets.
listRecordsResponse_syncSessionToken :: Lens' ListRecordsResponse (Maybe Text) Source #
A token containing a session ID, identity ID, and expiration.
listRecordsResponse_lastModifiedBy :: Lens' ListRecordsResponse (Maybe Text) Source #
The user/device that made the last change to this record.
listRecordsResponse_datasetSyncCount :: Lens' ListRecordsResponse (Maybe Integer) Source #
Server sync count for this dataset.
listRecordsResponse_httpStatus :: Lens' ListRecordsResponse Int Source #
The response's http status code.