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.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:

  • 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 Source #

A request to SubscribeToDatasetRequest.

See: subscribeToDataset smart constructor.

Instances
Eq SubscribeToDataset Source # 
Instance details

Defined in Network.AWS.CognitoSync.SubscribeToDataset

Data SubscribeToDataset Source # 
Instance details

Defined in Network.AWS.CognitoSync.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 Source # 
Instance details

Defined in Network.AWS.CognitoSync.SubscribeToDataset

Show SubscribeToDataset Source # 
Instance details

Defined in Network.AWS.CognitoSync.SubscribeToDataset

Generic SubscribeToDataset Source # 
Instance details

Defined in Network.AWS.CognitoSync.SubscribeToDataset

Associated Types

type Rep SubscribeToDataset :: Type -> Type #

Hashable SubscribeToDataset Source # 
Instance details

Defined in Network.AWS.CognitoSync.SubscribeToDataset

ToJSON SubscribeToDataset Source # 
Instance details

Defined in Network.AWS.CognitoSync.SubscribeToDataset

AWSRequest SubscribeToDataset Source # 
Instance details

Defined in Network.AWS.CognitoSync.SubscribeToDataset

Associated Types

type Rs SubscribeToDataset :: Type #

ToHeaders SubscribeToDataset Source # 
Instance details

Defined in Network.AWS.CognitoSync.SubscribeToDataset

ToPath SubscribeToDataset Source # 
Instance details

Defined in Network.AWS.CognitoSync.SubscribeToDataset

ToQuery SubscribeToDataset Source # 
Instance details

Defined in Network.AWS.CognitoSync.SubscribeToDataset

NFData SubscribeToDataset Source # 
Instance details

Defined in Network.AWS.CognitoSync.SubscribeToDataset

Methods

rnf :: SubscribeToDataset -> () #

type Rep SubscribeToDataset Source # 
Instance details

Defined in Network.AWS.CognitoSync.SubscribeToDataset

type Rep SubscribeToDataset = D1 (MetaData "SubscribeToDataset" "Network.AWS.CognitoSync.SubscribeToDataset" "amazonka-cognito-sync-1.6.1-ha9SVGJqZqDpQMx6bgfWw" False) (C1 (MetaCons "SubscribeToDataset'" PrefixI True) ((S1 (MetaSel (Just "_stdIdentityPoolId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_stdIdentityId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_stdDatasetName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_stdDeviceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs SubscribeToDataset Source # 
Instance details

Defined in Network.AWS.CognitoSync.SubscribeToDataset

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

Defined in Network.AWS.CognitoSync.SubscribeToDataset

Data SubscribeToDatasetResponse Source # 
Instance details

Defined in Network.AWS.CognitoSync.SubscribeToDataset

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

Defined in Network.AWS.CognitoSync.SubscribeToDataset

Show SubscribeToDatasetResponse Source # 
Instance details

Defined in Network.AWS.CognitoSync.SubscribeToDataset

Generic SubscribeToDatasetResponse Source # 
Instance details

Defined in Network.AWS.CognitoSync.SubscribeToDataset

Associated Types

type Rep SubscribeToDatasetResponse :: Type -> Type #

NFData SubscribeToDatasetResponse Source # 
Instance details

Defined in Network.AWS.CognitoSync.SubscribeToDataset

type Rep SubscribeToDatasetResponse Source # 
Instance details

Defined in Network.AWS.CognitoSync.SubscribeToDataset

type Rep SubscribeToDatasetResponse = D1 (MetaData "SubscribeToDatasetResponse" "Network.AWS.CognitoSync.SubscribeToDataset" "amazonka-cognito-sync-1.6.1-ha9SVGJqZqDpQMx6bgfWw" True) (C1 (MetaCons "SubscribeToDatasetResponse'" PrefixI True) (S1 (MetaSel (Just "_stdrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses