Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Unsubscribes from receiving 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
- data UnsubscribeFromDataset = UnsubscribeFromDataset' {
- identityPoolId :: Text
- identityId :: Text
- datasetName :: Text
- deviceId :: Text
- newUnsubscribeFromDataset :: Text -> Text -> Text -> Text -> UnsubscribeFromDataset
- unsubscribeFromDataset_identityPoolId :: Lens' UnsubscribeFromDataset Text
- unsubscribeFromDataset_identityId :: Lens' UnsubscribeFromDataset Text
- unsubscribeFromDataset_datasetName :: Lens' UnsubscribeFromDataset Text
- unsubscribeFromDataset_deviceId :: Lens' UnsubscribeFromDataset Text
- data UnsubscribeFromDatasetResponse = UnsubscribeFromDatasetResponse' {
- httpStatus :: Int
- newUnsubscribeFromDatasetResponse :: Int -> UnsubscribeFromDatasetResponse
- unsubscribeFromDatasetResponse_httpStatus :: Lens' UnsubscribeFromDatasetResponse Int
Creating a Request
data UnsubscribeFromDataset Source #
A request to UnsubscribeFromDataset.
See: newUnsubscribeFromDataset
smart constructor.
UnsubscribeFromDataset' | |
|
Instances
newUnsubscribeFromDataset Source #
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> UnsubscribeFromDataset |
Create a value of UnsubscribeFromDataset
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:UnsubscribeFromDataset'
, unsubscribeFromDataset_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 this identity belongs.
$sel:identityId:UnsubscribeFromDataset'
, unsubscribeFromDataset_identityId
- Unique ID for this identity.
$sel:datasetName:UnsubscribeFromDataset'
, unsubscribeFromDataset_datasetName
- The name of the dataset from which to unsubcribe.
$sel:deviceId:UnsubscribeFromDataset'
, unsubscribeFromDataset_deviceId
- The unique ID generated for this device by Cognito.
Request Lenses
unsubscribeFromDataset_identityPoolId :: Lens' UnsubscribeFromDataset 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 this identity belongs.
unsubscribeFromDataset_identityId :: Lens' UnsubscribeFromDataset Text Source #
Unique ID for this identity.
unsubscribeFromDataset_datasetName :: Lens' UnsubscribeFromDataset Text Source #
The name of the dataset from which to unsubcribe.
unsubscribeFromDataset_deviceId :: Lens' UnsubscribeFromDataset Text Source #
The unique ID generated for this device by Cognito.
Destructuring the Response
data UnsubscribeFromDatasetResponse Source #
Response to an UnsubscribeFromDataset request.
See: newUnsubscribeFromDatasetResponse
smart constructor.
UnsubscribeFromDatasetResponse' | |
|
Instances
Eq UnsubscribeFromDatasetResponse Source # | |
Read UnsubscribeFromDatasetResponse Source # | |
Show UnsubscribeFromDatasetResponse Source # | |
Defined in Amazonka.CognitoSync.UnsubscribeFromDataset | |
Generic UnsubscribeFromDatasetResponse Source # | |
NFData UnsubscribeFromDatasetResponse Source # | |
Defined in Amazonka.CognitoSync.UnsubscribeFromDataset rnf :: UnsubscribeFromDatasetResponse -> () # | |
type Rep UnsubscribeFromDatasetResponse Source # | |
Defined in Amazonka.CognitoSync.UnsubscribeFromDataset type Rep UnsubscribeFromDatasetResponse = D1 ('MetaData "UnsubscribeFromDatasetResponse" "Amazonka.CognitoSync.UnsubscribeFromDataset" "libZSservicesZSamazonka-cognito-syncZSamazonka-cognito-sync" 'False) (C1 ('MetaCons "UnsubscribeFromDatasetResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUnsubscribeFromDatasetResponse Source #
Create a value of UnsubscribeFromDatasetResponse
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:UnsubscribeFromDatasetResponse'
, unsubscribeFromDatasetResponse_httpStatus
- The response's http status code.
Response Lenses
unsubscribeFromDatasetResponse_httpStatus :: Lens' UnsubscribeFromDatasetResponse Int Source #
The response's http status code.