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 |
Lists datasets for an 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.
ListDatasets can be called with temporary user credentials provided by Cognito Identity or with developer credentials. You should use the Cognito Identity credentials to make this API call.
Synopsis
- data ListDatasets = ListDatasets' {
- nextToken :: Maybe Text
- maxResults :: Maybe Int
- identityId :: Text
- identityPoolId :: Text
- newListDatasets :: Text -> Text -> ListDatasets
- listDatasets_nextToken :: Lens' ListDatasets (Maybe Text)
- listDatasets_maxResults :: Lens' ListDatasets (Maybe Int)
- listDatasets_identityId :: Lens' ListDatasets Text
- listDatasets_identityPoolId :: Lens' ListDatasets Text
- data ListDatasetsResponse = ListDatasetsResponse' {}
- newListDatasetsResponse :: Int -> ListDatasetsResponse
- listDatasetsResponse_count :: Lens' ListDatasetsResponse (Maybe Int)
- listDatasetsResponse_nextToken :: Lens' ListDatasetsResponse (Maybe Text)
- listDatasetsResponse_datasets :: Lens' ListDatasetsResponse (Maybe [Dataset])
- listDatasetsResponse_httpStatus :: Lens' ListDatasetsResponse Int
Creating a Request
data ListDatasets Source #
Request for a list of datasets for an identity.
See: newListDatasets
smart constructor.
ListDatasets' | |
|
Instances
Create a value of ListDatasets
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:nextToken:ListDatasets'
, listDatasets_nextToken
- A pagination token for obtaining the next page of results.
$sel:maxResults:ListDatasets'
, listDatasets_maxResults
- The maximum number of results to be returned.
$sel:identityId:ListDatasets'
, listDatasets_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:identityPoolId:ListDatasets'
, listDatasets_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.
Request Lenses
listDatasets_nextToken :: Lens' ListDatasets (Maybe Text) Source #
A pagination token for obtaining the next page of results.
listDatasets_maxResults :: Lens' ListDatasets (Maybe Int) Source #
The maximum number of results to be returned.
listDatasets_identityId :: Lens' ListDatasets 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.
listDatasets_identityPoolId :: Lens' ListDatasets 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.
Destructuring the Response
data ListDatasetsResponse Source #
Returned for a successful ListDatasets request.
See: newListDatasetsResponse
smart constructor.
Instances
newListDatasetsResponse Source #
Create a value of ListDatasetsResponse
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:ListDatasetsResponse'
, listDatasetsResponse_count
- Number of datasets returned.
$sel:nextToken:ListDatasets'
, listDatasetsResponse_nextToken
- A pagination token for obtaining the next page of results.
$sel:datasets:ListDatasetsResponse'
, listDatasetsResponse_datasets
- A set of datasets.
$sel:httpStatus:ListDatasetsResponse'
, listDatasetsResponse_httpStatus
- The response's http status code.
Response Lenses
listDatasetsResponse_count :: Lens' ListDatasetsResponse (Maybe Int) Source #
Number of datasets returned.
listDatasetsResponse_nextToken :: Lens' ListDatasetsResponse (Maybe Text) Source #
A pagination token for obtaining the next page of results.
listDatasetsResponse_datasets :: Lens' ListDatasetsResponse (Maybe [Dataset]) Source #
A set of datasets.
listDatasetsResponse_httpStatus :: Lens' ListDatasetsResponse Int Source #
The response's http status code.