amazonka-cognito-sync-1.4.0: Amazon Cognito Sync SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CognitoSync.ListDatasets

Contents

Description

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

Creating a Request

listDatasets Source

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:

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

listDatasetsResponse Source

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:

Response Lenses

ldrsCount :: Lens' ListDatasetsResponse (Maybe Int) Source

Number of datasets returned.

ldrsNextToken :: Lens' ListDatasetsResponse (Maybe Text) Source

A pagination token for obtaining the next page of results.