| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.Budgets.CreateSubscriber
Description
Creates a subscriber. You must create the associated budget and notification before you create the subscriber.
Synopsis
- createSubscriber :: Text -> Text -> Notification -> Subscriber -> CreateSubscriber
- data CreateSubscriber
- csAccountId :: Lens' CreateSubscriber Text
- csBudgetName :: Lens' CreateSubscriber Text
- csNotification :: Lens' CreateSubscriber Notification
- csSubscriber :: Lens' CreateSubscriber Subscriber
- createSubscriberResponse :: Int -> CreateSubscriberResponse
- data CreateSubscriberResponse
- csrsResponseStatus :: Lens' CreateSubscriberResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> Notification | |
| -> Subscriber | |
| -> CreateSubscriber |
Creates a value of CreateSubscriber with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
csAccountId- TheaccountIdassociated with the budget that you want to create a subscriber for.csBudgetName- The name of the budget that you want to subscribe to. Budget names must be unique within an account.csNotification- The notification that you want to create a subscriber for.csSubscriber- The subscriber that you want to associate with a budget notification.
data CreateSubscriber Source #
Request of CreateSubscriber
See: createSubscriber smart constructor.
Instances
Request Lenses
csAccountId :: Lens' CreateSubscriber Text Source #
The accountId associated with the budget that you want to create a subscriber for.
csBudgetName :: Lens' CreateSubscriber Text Source #
The name of the budget that you want to subscribe to. Budget names must be unique within an account.
csNotification :: Lens' CreateSubscriber Notification Source #
The notification that you want to create a subscriber for.
csSubscriber :: Lens' CreateSubscriber Subscriber Source #
The subscriber that you want to associate with a budget notification.
Destructuring the Response
createSubscriberResponse Source #
Arguments
| :: Int | |
| -> CreateSubscriberResponse |
Creates a value of CreateSubscriberResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
csrsResponseStatus- -- | The response status code.
data CreateSubscriberResponse Source #
Response of CreateSubscriber
See: createSubscriberResponse smart constructor.
Instances
Response Lenses
csrsResponseStatus :: Lens' CreateSubscriberResponse Int Source #
- - | The response status code.