Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
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.
Synopsis
- data ListRecords = ListRecords' {}
- newListRecords :: Text -> Text -> Text -> ListRecords
- listRecords_lastSyncCount :: Lens' ListRecords (Maybe Integer)
- listRecords_maxResults :: Lens' ListRecords (Maybe Int)
- listRecords_nextToken :: Lens' ListRecords (Maybe Text)
- listRecords_syncSessionToken :: Lens' ListRecords (Maybe Text)
- listRecords_identityPoolId :: Lens' ListRecords Text
- listRecords_identityId :: Lens' ListRecords Text
- listRecords_datasetName :: Lens' ListRecords Text
- data ListRecordsResponse = ListRecordsResponse' {}
- newListRecordsResponse :: Int -> ListRecordsResponse
- listRecordsResponse_count :: Lens' ListRecordsResponse (Maybe Int)
- listRecordsResponse_datasetDeletedAfterRequestedSyncCount :: Lens' ListRecordsResponse (Maybe Bool)
- listRecordsResponse_datasetExists :: Lens' ListRecordsResponse (Maybe Bool)
- listRecordsResponse_datasetSyncCount :: Lens' ListRecordsResponse (Maybe Integer)
- listRecordsResponse_lastModifiedBy :: Lens' ListRecordsResponse (Maybe Text)
- listRecordsResponse_mergedDatasetNames :: Lens' ListRecordsResponse (Maybe [Text])
- listRecordsResponse_nextToken :: Lens' ListRecordsResponse (Maybe Text)
- listRecordsResponse_records :: Lens' ListRecordsResponse (Maybe [Record])
- listRecordsResponse_syncSessionToken :: Lens' ListRecordsResponse (Maybe Text)
- listRecordsResponse_httpStatus :: Lens' ListRecordsResponse Int
Creating a Request
data ListRecords Source #
A request for a list of records.
See: newListRecords
smart constructor.
ListRecords' | |
|
Instances
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:maxResults:ListRecords'
, listRecords_maxResults
- The maximum number of results to be returned.
ListRecords
, listRecords_nextToken
- A pagination token for obtaining the next page of results.
ListRecords
, listRecords_syncSessionToken
- A token containing a session ID, identity ID, and expiration.
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.
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.
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_maxResults :: Lens' ListRecords (Maybe Int) Source #
The maximum number of results to be returned.
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_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:count:ListRecordsResponse'
, listRecordsResponse_count
- Total number of records.
$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:datasetSyncCount:ListRecordsResponse'
, listRecordsResponse_datasetSyncCount
- Server sync count for this dataset.
ListRecordsResponse
, listRecordsResponse_lastModifiedBy
- The user/device that made the last change to this record.
$sel:mergedDatasetNames:ListRecordsResponse'
, listRecordsResponse_mergedDatasetNames
- Names of merged datasets.
ListRecords
, listRecordsResponse_nextToken
- A pagination token for obtaining the next page of results.
$sel:records:ListRecordsResponse'
, listRecordsResponse_records
- A list of all records.
ListRecords
, listRecordsResponse_syncSessionToken
- A token containing a session ID, identity ID, and expiration.
$sel:httpStatus:ListRecordsResponse'
, listRecordsResponse_httpStatus
- The response's http status code.
Response Lenses
listRecordsResponse_count :: Lens' ListRecordsResponse (Maybe Int) Source #
Total number of records.
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_datasetSyncCount :: Lens' ListRecordsResponse (Maybe Integer) Source #
Server sync count for this dataset.
listRecordsResponse_lastModifiedBy :: Lens' ListRecordsResponse (Maybe Text) Source #
The user/device that made the last change to this record.
listRecordsResponse_mergedDatasetNames :: Lens' ListRecordsResponse (Maybe [Text]) Source #
Names of merged datasets.
listRecordsResponse_nextToken :: Lens' ListRecordsResponse (Maybe Text) Source #
A pagination token for obtaining the next page of results.
listRecordsResponse_records :: Lens' ListRecordsResponse (Maybe [Record]) Source #
A list of all records.
listRecordsResponse_syncSessionToken :: Lens' ListRecordsResponse (Maybe Text) Source #
A token containing a session ID, identity ID, and expiration.
listRecordsResponse_httpStatus :: Lens' ListRecordsResponse Int Source #
The response's http status code.