Safe Haskell | None |
---|---|
Language | Haskell2010 |
Registers a device to receive push sync notifications.
http://docs.aws.amazon.com/cognitosync/latest/APIReference/API_RegisterDevice.html
- data RegisterDevice
- registerDevice :: Text -> Text -> Platform -> Text -> RegisterDevice
- rdIdentityId :: Lens' RegisterDevice Text
- rdIdentityPoolId :: Lens' RegisterDevice Text
- rdPlatform :: Lens' RegisterDevice Platform
- rdToken :: Lens' RegisterDevice Text
- data RegisterDeviceResponse
- registerDeviceResponse :: RegisterDeviceResponse
- rdrDeviceId :: Lens' RegisterDeviceResponse (Maybe Text)
Request
data RegisterDevice Source
Request constructor
RegisterDevice
constructor.
The fields accessible through corresponding lenses are:
Request lenses
rdIdentityId :: Lens' RegisterDevice Text Source
The unique ID for this identity.
rdIdentityPoolId :: Lens' RegisterDevice Text Source
A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. Here, the ID of the pool that the identity belongs to.
rdPlatform :: Lens' RegisterDevice Platform Source
The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).
rdToken :: Lens' RegisterDevice Text Source
The push token.
Response
Response constructor
registerDeviceResponse :: RegisterDeviceResponse Source
RegisterDeviceResponse
constructor.
The fields accessible through corresponding lenses are:
rdrDeviceId
::
Maybe
Text
Response lenses
rdrDeviceId :: Lens' RegisterDeviceResponse (Maybe Text) Source
The unique ID generated for this device by Cognito.