| 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.Budgets.CreateSubscriber
Description
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.
Constructors
| CreateSubscriber' | |
Fields
| |
Instances
Arguments
| :: 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.
CreateSubscriber, createSubscriber_budgetName - The name of the budget that you want to subscribe to. Budget names must
be unique within an account.
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.
Constructors
| CreateSubscriberResponse' | |
Fields
| |
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.