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 |
Creates an association between a notification rule and an SNS topic 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.
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.
$sel:arn: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.
SubscribeResponse' | |
|
Instances
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:
$sel:arn: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.