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 a subscriber. You must create the associated budget and notification before you create the subscriber.
Synopsis
- data CreateSubscriber = CreateSubscriber' {}
- newCreateSubscriber :: Text -> Text -> Notification -> Subscriber -> CreateSubscriber
- createSubscriber_accountId :: Lens' CreateSubscriber Text
- createSubscriber_budgetName :: Lens' CreateSubscriber Text
- createSubscriber_notification :: Lens' CreateSubscriber Notification
- createSubscriber_subscriber :: Lens' CreateSubscriber Subscriber
- data CreateSubscriberResponse = CreateSubscriberResponse' {
- httpStatus :: Int
- newCreateSubscriberResponse :: Int -> CreateSubscriberResponse
- createSubscriberResponse_httpStatus :: Lens' CreateSubscriberResponse Int
Creating a Request
data CreateSubscriber Source #
Request of CreateSubscriber
See: newCreateSubscriber
smart constructor.
CreateSubscriber' | |
|
Instances
:: Text | |
-> Text | |
-> Notification | |
-> Subscriber | |
-> CreateSubscriber |
Create a value of CreateSubscriber
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:accountId:CreateSubscriber'
, createSubscriber_accountId
- The accountId
that is associated with the budget that you want to
create a subscriber for.
$sel:budgetName:CreateSubscriber'
, createSubscriber_budgetName
- The name of the budget that you want to subscribe to. Budget names must
be unique within an account.
$sel:notification:CreateSubscriber'
, createSubscriber_notification
- The notification that you want to create a subscriber for.
$sel:subscriber:CreateSubscriber'
, createSubscriber_subscriber
- The subscriber that you want to associate with a budget notification.
Request Lenses
createSubscriber_accountId :: Lens' CreateSubscriber Text Source #
The accountId
that is associated with the budget that you want to
create a subscriber for.
createSubscriber_budgetName :: Lens' CreateSubscriber Text Source #
The name of the budget that you want to subscribe to. Budget names must be unique within an account.
createSubscriber_notification :: Lens' CreateSubscriber Notification Source #
The notification that you want to create a subscriber for.
createSubscriber_subscriber :: Lens' CreateSubscriber Subscriber Source #
The subscriber that you want to associate with a budget notification.
Destructuring the Response
data CreateSubscriberResponse Source #
Response of CreateSubscriber
See: newCreateSubscriberResponse
smart constructor.
CreateSubscriberResponse' | |
|
Instances
newCreateSubscriberResponse Source #
Create a value of CreateSubscriberResponse
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:CreateSubscriberResponse'
, createSubscriberResponse_httpStatus
- The response's http status code.
Response Lenses
createSubscriberResponse_httpStatus :: Lens' CreateSubscriberResponse Int Source #
The response's http status code.