Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
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
- listDatasets :: Text -> Text -> ListDatasets
- data ListDatasets
- ldNextToken :: Lens' ListDatasets (Maybe Text)
- ldMaxResults :: Lens' ListDatasets (Maybe Int)
- ldIdentityId :: Lens' ListDatasets Text
- ldIdentityPoolId :: Lens' ListDatasets Text
- listDatasetsResponse :: Int -> ListDatasetsResponse
- data ListDatasetsResponse
- ldrsCount :: Lens' ListDatasetsResponse (Maybe Int)
- ldrsNextToken :: Lens' ListDatasetsResponse (Maybe Text)
- ldrsDatasets :: Lens' ListDatasetsResponse [Dataset]
- ldrsResponseStatus :: Lens' ListDatasetsResponse Int
Creating a Request
Creates a value of ListDatasets
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ldNextToken
- A pagination token for obtaining the next page of results.ldMaxResults
- The maximum number of results to be returned.ldIdentityId
- 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.ldIdentityPoolId
- 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.
data ListDatasets Source #
Request for a list of datasets for an identity.
See: listDatasets
smart constructor.
Instances
Request Lenses
ldNextToken :: Lens' ListDatasets (Maybe Text) Source #
A pagination token for obtaining the next page of results.
ldMaxResults :: Lens' ListDatasets (Maybe Int) Source #
The maximum number of results to be returned.
ldIdentityId :: 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.
ldIdentityPoolId :: 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
Creates a value of ListDatasetsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ldrsCount
- Number of datasets returned.ldrsNextToken
- A pagination token for obtaining the next page of results.ldrsDatasets
- A set of datasets.ldrsResponseStatus
- -- | The response status code.
data ListDatasetsResponse Source #
Returned for a successful ListDatasets request.
See: listDatasetsResponse
smart constructor.
Instances
Response Lenses
ldrsNextToken :: Lens' ListDatasetsResponse (Maybe Text) Source #
A pagination token for obtaining the next page of results.
ldrsDatasets :: Lens' ListDatasetsResponse [Dataset] Source #
A set of datasets.
ldrsResponseStatus :: Lens' ListDatasetsResponse Int Source #
- - | The response status code.