amazonka-cognito-sync-1.4.4: 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:

data ListDatasets Source #

Request for a list of datasets for an identity.

See: listDatasets smart constructor.

Instances

Eq ListDatasets Source # 
Data ListDatasets Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListDatasets -> c ListDatasets #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListDatasets #

toConstr :: ListDatasets -> Constr #

dataTypeOf :: ListDatasets -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListDatasets) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListDatasets) #

gmapT :: (forall b. Data b => b -> b) -> ListDatasets -> ListDatasets #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListDatasets -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListDatasets -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListDatasets -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListDatasets -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListDatasets -> m ListDatasets #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListDatasets -> m ListDatasets #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListDatasets -> m ListDatasets #

Read ListDatasets Source # 
Show ListDatasets Source # 
Generic ListDatasets Source # 

Associated Types

type Rep ListDatasets :: * -> * #

Hashable ListDatasets Source # 
NFData ListDatasets Source # 

Methods

rnf :: ListDatasets -> () #

AWSRequest ListDatasets Source # 
ToPath ListDatasets Source # 
ToHeaders ListDatasets Source # 
ToQuery ListDatasets Source # 
type Rep ListDatasets Source # 
type Rep ListDatasets = D1 (MetaData "ListDatasets" "Network.AWS.CognitoSync.ListDatasets" "amazonka-cognito-sync-1.4.4-7bddhsjDJsa9qLuXzI9IR7" False) (C1 (MetaCons "ListDatasets'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ldNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ldMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)))) ((:*:) (S1 (MetaSel (Just Symbol "_ldIdentityId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_ldIdentityPoolId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs ListDatasets Source # 

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:

data ListDatasetsResponse Source #

Returned for a successful ListDatasets request.

See: listDatasetsResponse smart constructor.

Instances

Eq ListDatasetsResponse Source # 
Data ListDatasetsResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListDatasetsResponse -> c ListDatasetsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListDatasetsResponse #

toConstr :: ListDatasetsResponse -> Constr #

dataTypeOf :: ListDatasetsResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListDatasetsResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListDatasetsResponse) #

gmapT :: (forall b. Data b => b -> b) -> ListDatasetsResponse -> ListDatasetsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListDatasetsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListDatasetsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListDatasetsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListDatasetsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListDatasetsResponse -> m ListDatasetsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListDatasetsResponse -> m ListDatasetsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListDatasetsResponse -> m ListDatasetsResponse #

Read ListDatasetsResponse Source # 
Show ListDatasetsResponse Source # 
Generic ListDatasetsResponse Source # 
NFData ListDatasetsResponse Source # 

Methods

rnf :: ListDatasetsResponse -> () #

type Rep ListDatasetsResponse Source # 
type Rep ListDatasetsResponse = D1 (MetaData "ListDatasetsResponse" "Network.AWS.CognitoSync.ListDatasets" "amazonka-cognito-sync-1.4.4-7bddhsjDJsa9qLuXzI9IR7" False) (C1 (MetaCons "ListDatasetsResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ldrsCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))) (S1 (MetaSel (Just Symbol "_ldrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_ldrsDatasets") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Dataset]))) (S1 (MetaSel (Just Symbol "_ldrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

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.