Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- subscribeToDataset :: Text -> Text -> Text -> Text -> SubscribeToDataset
- data SubscribeToDataset
- stdIdentityPoolId :: Lens' SubscribeToDataset Text
- stdIdentityId :: Lens' SubscribeToDataset Text
- stdDatasetName :: Lens' SubscribeToDataset Text
- stdDeviceId :: Lens' SubscribeToDataset Text
- subscribeToDatasetResponse :: Int -> SubscribeToDatasetResponse
- data SubscribeToDatasetResponse
- stdrsResponseStatus :: Lens' SubscribeToDatasetResponse Int
Creating a Request
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> 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 Source #
A request to SubscribeToDatasetRequest.
See: subscribeToDataset
smart constructor.
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:
stdrsResponseStatus
- -- | The response status code.
data SubscribeToDatasetResponse Source #
Response to a SubscribeToDataset request.
See: subscribeToDatasetResponse
smart constructor.
Response Lenses
stdrsResponseStatus :: Lens' SubscribeToDatasetResponse Int Source #
- - | The response status code.