amazonka-cognito-sync-1.4.2: 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.SubscribeToDataset

Contents

Description

Subscribes to receive notifications when a dataset is modified by another device.

This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.

Synopsis

Creating a Request

subscribeToDataset Source #

Creates a value of SubscribeToDataset with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data SubscribeToDataset Source #

A request to SubscribeToDatasetRequest.

See: subscribeToDataset smart constructor.

Instances

Eq SubscribeToDataset Source # 
Data SubscribeToDataset Source # 

Methods

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

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

toConstr :: SubscribeToDataset -> Constr #

dataTypeOf :: SubscribeToDataset -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SubscribeToDataset Source # 
Show SubscribeToDataset Source # 
Generic SubscribeToDataset Source # 
Hashable SubscribeToDataset Source # 
ToJSON SubscribeToDataset Source # 
NFData SubscribeToDataset Source # 

Methods

rnf :: SubscribeToDataset -> () #

AWSRequest SubscribeToDataset Source # 
ToQuery SubscribeToDataset Source # 
ToPath SubscribeToDataset Source # 
ToHeaders SubscribeToDataset Source # 
type Rep SubscribeToDataset Source # 
type Rep SubscribeToDataset = D1 (MetaData "SubscribeToDataset" "Network.AWS.CognitoSync.SubscribeToDataset" "amazonka-cognito-sync-1.4.2-KIRynQdJF721sdO47WpgwH" False) (C1 (MetaCons "SubscribeToDataset'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_stdIdentityPoolId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_stdIdentityId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_stdDatasetName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_stdDeviceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs SubscribeToDataset Source # 

Request Lenses

stdIdentityPoolId :: Lens' SubscribeToDataset Text Source #

A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. The ID of the pool to which the identity belongs.

stdIdentityId :: Lens' SubscribeToDataset Text Source #

Unique ID for this identity.

stdDatasetName :: Lens' SubscribeToDataset Text Source #

The name of the dataset to subcribe to.

stdDeviceId :: Lens' SubscribeToDataset Text Source #

The unique ID generated for this device by Cognito.

Destructuring the Response

subscribeToDatasetResponse Source #

Creates a value of SubscribeToDatasetResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data SubscribeToDatasetResponse Source #

Response to a SubscribeToDataset request.

See: subscribeToDatasetResponse smart constructor.

Instances

Eq SubscribeToDatasetResponse Source # 
Data SubscribeToDatasetResponse Source # 

Methods

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

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

toConstr :: SubscribeToDatasetResponse -> Constr #

dataTypeOf :: SubscribeToDatasetResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SubscribeToDatasetResponse Source # 
Show SubscribeToDatasetResponse Source # 
Generic SubscribeToDatasetResponse Source # 
NFData SubscribeToDatasetResponse Source # 
type Rep SubscribeToDatasetResponse Source # 
type Rep SubscribeToDatasetResponse = D1 (MetaData "SubscribeToDatasetResponse" "Network.AWS.CognitoSync.SubscribeToDataset" "amazonka-cognito-sync-1.4.2-KIRynQdJF721sdO47WpgwH" True) (C1 (MetaCons "SubscribeToDatasetResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_stdrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses