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

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:

  • stdIdentityPoolId - 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 - Unique ID for this identity.
  • stdDatasetName - The name of the dataset to subcribe to.
  • stdDeviceId - The unique ID generated for this device by Cognito.

data SubscribeToDataset #

A request to SubscribeToDatasetRequest.

See: subscribeToDataset smart constructor.

Instances

Eq SubscribeToDataset # 
Data SubscribeToDataset # 

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 # 
Show SubscribeToDataset # 
Generic SubscribeToDataset # 
Hashable SubscribeToDataset # 
ToJSON SubscribeToDataset # 
NFData SubscribeToDataset # 

Methods

rnf :: SubscribeToDataset -> () #

AWSRequest SubscribeToDataset # 
ToQuery SubscribeToDataset # 
ToPath SubscribeToDataset # 
ToHeaders SubscribeToDataset # 
type Rep SubscribeToDataset # 
type Rep SubscribeToDataset = D1 (MetaData "SubscribeToDataset" "Network.AWS.CognitoSync.SubscribeToDataset" "amazonka-cognito-sync-1.4.5-6kgm8A380gaABwgTunDxt8" 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 # 

Request Lenses

stdIdentityPoolId :: Lens' SubscribeToDataset Text #

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 #

Unique ID for this identity.

stdDatasetName :: Lens' SubscribeToDataset Text #

The name of the dataset to subcribe to.

stdDeviceId :: Lens' SubscribeToDataset Text #

The unique ID generated for this device by Cognito.

Destructuring the Response

subscribeToDatasetResponse #

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 #

Response to a SubscribeToDataset request.

See: subscribeToDatasetResponse smart constructor.

Instances

Eq SubscribeToDatasetResponse # 
Data SubscribeToDatasetResponse # 

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 # 
Show SubscribeToDatasetResponse # 
Generic SubscribeToDatasetResponse # 
NFData SubscribeToDatasetResponse # 
type Rep SubscribeToDatasetResponse # 
type Rep SubscribeToDatasetResponse = D1 (MetaData "SubscribeToDatasetResponse" "Network.AWS.CognitoSync.SubscribeToDataset" "amazonka-cognito-sync-1.4.5-6kgm8A380gaABwgTunDxt8" True) (C1 (MetaCons "SubscribeToDatasetResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_stdrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses

stdrsResponseStatus :: Lens' SubscribeToDatasetResponse Int #

  • - | The response status code.