| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CognitoSync.UnsubscribeFromDataset
Description
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.
Constructors
| UnsubscribeFromDataset' | |
Fields
| |
Instances
newUnsubscribeFromDataset Source #
Arguments
| :: 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:
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.
UnsubscribeFromDataset, unsubscribeFromDataset_identityId - Unique ID for this identity.
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.
Constructors
| UnsubscribeFromDatasetResponse' | |
Fields
| |
Instances
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.