libZSservicesZSamazonka-cognito-syncZSamazonka-cognito-sync
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CognitoSync.SubscribeToDataset

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

data SubscribeToDataset Source #

A request to SubscribeToDatasetRequest.

See: newSubscribeToDataset smart constructor.

Constructors

SubscribeToDataset' 

Fields

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

  • identityId :: Text

    Unique ID for this identity.

  • datasetName :: Text

    The name of the dataset to subcribe to.

  • deviceId :: Text

    The unique ID generated for this device by Cognito.

Instances

Instances details
Eq SubscribeToDataset Source # 
Instance details

Defined in Amazonka.CognitoSync.SubscribeToDataset

Read SubscribeToDataset Source # 
Instance details

Defined in Amazonka.CognitoSync.SubscribeToDataset

Show SubscribeToDataset Source # 
Instance details

Defined in Amazonka.CognitoSync.SubscribeToDataset

Generic SubscribeToDataset Source # 
Instance details

Defined in Amazonka.CognitoSync.SubscribeToDataset

Associated Types

type Rep SubscribeToDataset :: Type -> Type #

NFData SubscribeToDataset Source # 
Instance details

Defined in Amazonka.CognitoSync.SubscribeToDataset

Methods

rnf :: SubscribeToDataset -> () #

Hashable SubscribeToDataset Source # 
Instance details

Defined in Amazonka.CognitoSync.SubscribeToDataset

ToJSON SubscribeToDataset Source # 
Instance details

Defined in Amazonka.CognitoSync.SubscribeToDataset

AWSRequest SubscribeToDataset Source # 
Instance details

Defined in Amazonka.CognitoSync.SubscribeToDataset

Associated Types

type AWSResponse SubscribeToDataset #

ToHeaders SubscribeToDataset Source # 
Instance details

Defined in Amazonka.CognitoSync.SubscribeToDataset

ToPath SubscribeToDataset Source # 
Instance details

Defined in Amazonka.CognitoSync.SubscribeToDataset

ToQuery SubscribeToDataset Source # 
Instance details

Defined in Amazonka.CognitoSync.SubscribeToDataset

type Rep SubscribeToDataset Source # 
Instance details

Defined in Amazonka.CognitoSync.SubscribeToDataset

type Rep SubscribeToDataset = D1 ('MetaData "SubscribeToDataset" "Amazonka.CognitoSync.SubscribeToDataset" "libZSservicesZSamazonka-cognito-syncZSamazonka-cognito-sync" 'False) (C1 ('MetaCons "SubscribeToDataset'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "identityPoolId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "identityId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "datasetName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "deviceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse SubscribeToDataset Source # 
Instance details

Defined in Amazonka.CognitoSync.SubscribeToDataset

newSubscribeToDataset Source #

Create a value of SubscribeToDataset with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:identityPoolId:SubscribeToDataset', subscribeToDataset_identityPoolId - 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.

$sel:identityId:SubscribeToDataset', subscribeToDataset_identityId - Unique ID for this identity.

$sel:datasetName:SubscribeToDataset', subscribeToDataset_datasetName - The name of the dataset to subcribe to.

$sel:deviceId:SubscribeToDataset', subscribeToDataset_deviceId - The unique ID generated for this device by Cognito.

Request Lenses

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

subscribeToDataset_datasetName :: Lens' SubscribeToDataset Text Source #

The name of the dataset to subcribe to.

subscribeToDataset_deviceId :: Lens' SubscribeToDataset Text Source #

The unique ID generated for this device by Cognito.

Destructuring the Response

data SubscribeToDatasetResponse Source #

Response to a SubscribeToDataset request.

See: newSubscribeToDatasetResponse smart constructor.

Constructors

SubscribeToDatasetResponse' 

Fields

Instances

Instances details
Eq SubscribeToDatasetResponse Source # 
Instance details

Defined in Amazonka.CognitoSync.SubscribeToDataset

Read SubscribeToDatasetResponse Source # 
Instance details

Defined in Amazonka.CognitoSync.SubscribeToDataset

Show SubscribeToDatasetResponse Source # 
Instance details

Defined in Amazonka.CognitoSync.SubscribeToDataset

Generic SubscribeToDatasetResponse Source # 
Instance details

Defined in Amazonka.CognitoSync.SubscribeToDataset

Associated Types

type Rep SubscribeToDatasetResponse :: Type -> Type #

NFData SubscribeToDatasetResponse Source # 
Instance details

Defined in Amazonka.CognitoSync.SubscribeToDataset

type Rep SubscribeToDatasetResponse Source # 
Instance details

Defined in Amazonka.CognitoSync.SubscribeToDataset

type Rep SubscribeToDatasetResponse = D1 ('MetaData "SubscribeToDatasetResponse" "Amazonka.CognitoSync.SubscribeToDataset" "libZSservicesZSamazonka-cognito-syncZSamazonka-cognito-sync" 'False) (C1 ('MetaCons "SubscribeToDatasetResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newSubscribeToDatasetResponse Source #

Create a value of SubscribeToDatasetResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpStatus:SubscribeToDatasetResponse', subscribeToDatasetResponse_httpStatus - The response's http status code.

Response Lenses