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

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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:

  • 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
Eq ListDatasets Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListDatasets

Data ListDatasets Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListDatasets

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 # 
Instance details

Defined in Network.AWS.CognitoSync.ListDatasets

Show ListDatasets Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListDatasets

Generic ListDatasets Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListDatasets

Associated Types

type Rep ListDatasets :: Type -> Type #

Hashable ListDatasets Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListDatasets

AWSRequest ListDatasets Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListDatasets

Associated Types

type Rs ListDatasets :: Type #

ToHeaders ListDatasets Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListDatasets

ToPath ListDatasets Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListDatasets

ToQuery ListDatasets Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListDatasets

NFData ListDatasets Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListDatasets

Methods

rnf :: ListDatasets -> () #

type Rep ListDatasets Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListDatasets

type Rep ListDatasets = D1 (MetaData "ListDatasets" "Network.AWS.CognitoSync.ListDatasets" "amazonka-cognito-sync-1.6.1-ha9SVGJqZqDpQMx6bgfWw" False) (C1 (MetaCons "ListDatasets'" PrefixI True) ((S1 (MetaSel (Just "_ldNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ldMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 (MetaSel (Just "_ldIdentityId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ldIdentityPoolId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs ListDatasets Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListDatasets

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 # 
Instance details

Defined in Network.AWS.CognitoSync.ListDatasets

Data ListDatasetsResponse Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListDatasets

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 # 
Instance details

Defined in Network.AWS.CognitoSync.ListDatasets

Show ListDatasetsResponse Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListDatasets

Generic ListDatasetsResponse Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListDatasets

Associated Types

type Rep ListDatasetsResponse :: Type -> Type #

NFData ListDatasetsResponse Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListDatasets

Methods

rnf :: ListDatasetsResponse -> () #

type Rep ListDatasetsResponse Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListDatasets

type Rep ListDatasetsResponse = D1 (MetaData "ListDatasetsResponse" "Network.AWS.CognitoSync.ListDatasets" "amazonka-cognito-sync-1.6.1-ha9SVGJqZqDpQMx6bgfWw" False) (C1 (MetaCons "ListDatasetsResponse'" PrefixI True) ((S1 (MetaSel (Just "_ldrsCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)) :*: S1 (MetaSel (Just "_ldrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_ldrsDatasets") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Dataset])) :*: S1 (MetaSel (Just "_ldrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (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.

ldrsResponseStatus :: Lens' ListDatasetsResponse Int Source #

  • - | The response status code.