| 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.Subscribe
Description
Creates an association between a notification rule and an Chatbot topic or Chatbot client so that the associated target can receive notifications when the events described in the rule are triggered.
Synopsis
- data Subscribe = Subscribe' {}
- newSubscribe :: Text -> Target -> Subscribe
- subscribe_clientRequestToken :: Lens' Subscribe (Maybe Text)
- subscribe_arn :: Lens' Subscribe Text
- subscribe_target :: Lens' Subscribe Target
- data SubscribeResponse = SubscribeResponse' {
- arn :: Maybe Text
- httpStatus :: Int
- newSubscribeResponse :: Int -> SubscribeResponse
- subscribeResponse_arn :: Lens' SubscribeResponse (Maybe Text)
- subscribeResponse_httpStatus :: Lens' SubscribeResponse Int
Creating a Request
See: newSubscribe smart constructor.
Constructors
| Subscribe' | |
Instances
Create a value of Subscribe 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:clientRequestToken:Subscribe', subscribe_clientRequestToken - An enumeration token that, when provided in a request, returns the next
batch of the results.
Subscribe, subscribe_arn - The Amazon Resource Name (ARN) of the notification rule for which you
want to create the association.
$sel:target:Subscribe', subscribe_target - Undocumented member.
Request Lenses
subscribe_clientRequestToken :: Lens' Subscribe (Maybe Text) Source #
An enumeration token that, when provided in a request, returns the next batch of the results.
subscribe_arn :: Lens' Subscribe Text Source #
The Amazon Resource Name (ARN) of the notification rule for which you want to create the association.
Destructuring the Response
data SubscribeResponse Source #
See: newSubscribeResponse smart constructor.
Constructors
| SubscribeResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> SubscribeResponse |
Create a value of SubscribeResponse 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:
Subscribe, subscribeResponse_arn - The Amazon Resource Name (ARN) of the notification rule for which you
have created assocations.
$sel:httpStatus:SubscribeResponse', subscribeResponse_httpStatus - The response's http status code.
Response Lenses
subscribeResponse_arn :: Lens' SubscribeResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the notification rule for which you have created assocations.
subscribeResponse_httpStatus :: Lens' SubscribeResponse Int Source #
The response's http status code.