| 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.CodeStarNotifications.Unsubscribe
Description
Removes an association between a notification rule and an Chatbot 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.
Constructors
| Unsubscribe' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Unsubscribe |
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:
Unsubscribe, unsubscribe_arn - The Amazon Resource Name (ARN) of the notification rule.
Unsubscribe, unsubscribe_targetAddress - The ARN of the Chatbot 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 Chatbot topic to unsubscribe from the notification rule.
Destructuring the Response
data UnsubscribeResponse Source #
See: newUnsubscribeResponse smart constructor.
Constructors
| UnsubscribeResponse' | |
Fields
| |
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.
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.