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 |
Removes an association between a notification rule and an Amazon SNS topic so that subscribers to that topic stop receiving notifications when the events described in the rule are triggered.
Synopsis
- data Unsubscribe = Unsubscribe' {
- arn :: Text
- targetAddress :: Sensitive Text
- newUnsubscribe :: Text -> Text -> Unsubscribe
- unsubscribe_arn :: Lens' Unsubscribe Text
- unsubscribe_targetAddress :: Lens' Unsubscribe Text
- data UnsubscribeResponse = UnsubscribeResponse' {
- httpStatus :: Int
- arn :: Text
- newUnsubscribeResponse :: Int -> Text -> UnsubscribeResponse
- unsubscribeResponse_httpStatus :: Lens' UnsubscribeResponse Int
- unsubscribeResponse_arn :: Lens' UnsubscribeResponse Text
Creating a Request
data Unsubscribe Source #
See: newUnsubscribe
smart constructor.
Unsubscribe' | |
|
Instances
Create a value of Unsubscribe
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:arn:Unsubscribe'
, unsubscribe_arn
- The Amazon Resource Name (ARN) of the notification rule.
$sel:targetAddress:Unsubscribe'
, unsubscribe_targetAddress
- The ARN of the SNS topic to unsubscribe from the notification rule.
Request Lenses
unsubscribe_arn :: Lens' Unsubscribe Text Source #
The Amazon Resource Name (ARN) of the notification rule.
unsubscribe_targetAddress :: Lens' Unsubscribe Text Source #
The ARN of the SNS topic to unsubscribe from the notification rule.
Destructuring the Response
data UnsubscribeResponse Source #
See: newUnsubscribeResponse
smart constructor.
UnsubscribeResponse' | |
|
Instances
newUnsubscribeResponse Source #
Create a value of UnsubscribeResponse
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:UnsubscribeResponse'
, unsubscribeResponse_httpStatus
- The response's http status code.
$sel:arn:Unsubscribe'
, unsubscribeResponse_arn
- The Amazon Resource Name (ARN) of the the notification rule from which
you have removed a subscription.
Response Lenses
unsubscribeResponse_httpStatus :: Lens' UnsubscribeResponse Int Source #
The response's http status code.
unsubscribeResponse_arn :: Lens' UnsubscribeResponse Text Source #
The Amazon Resource Name (ARN) of the the notification rule from which you have removed a subscription.