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 |
Creates a notification. You must create the budget before you create the associated notification.
Synopsis
- createNotification :: Text -> Text -> Notification -> NonEmpty Subscriber -> CreateNotification
- data CreateNotification
- cnAccountId :: Lens' CreateNotification Text
- cnBudgetName :: Lens' CreateNotification Text
- cnNotification :: Lens' CreateNotification Notification
- cnSubscribers :: Lens' CreateNotification (NonEmpty Subscriber)
- createNotificationResponse :: Int -> CreateNotificationResponse
- data CreateNotificationResponse
- cnrsResponseStatus :: Lens' CreateNotificationResponse Int
Creating a Request
:: Text | |
-> Text | |
-> Notification | |
-> NonEmpty Subscriber | |
-> CreateNotification |
Creates a value of CreateNotification
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cnAccountId
- TheaccountId
that is associated with the budget that you want to create a notification for.cnBudgetName
- The name of the budget that you want AWS to notified you about. Budget names must be unique within an account.cnNotification
- The notification that you want to create.cnSubscribers
- A list of subscribers that you want to associate with the notification. Each notification can have one SNS subscriber and up to ten email subscribers.
data CreateNotification Source #
Request of CreateNotification
See: createNotification
smart constructor.
Instances
Request Lenses
cnAccountId :: Lens' CreateNotification Text Source #
The accountId
that is associated with the budget that you want to create a notification for.
cnBudgetName :: Lens' CreateNotification Text Source #
The name of the budget that you want AWS to notified you about. Budget names must be unique within an account.
cnNotification :: Lens' CreateNotification Notification Source #
The notification that you want to create.
cnSubscribers :: Lens' CreateNotification (NonEmpty Subscriber) Source #
A list of subscribers that you want to associate with the notification. Each notification can have one SNS subscriber and up to ten email subscribers.
Destructuring the Response
createNotificationResponse Source #
Creates a value of CreateNotificationResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cnrsResponseStatus
- -- | The response status code.
data CreateNotificationResponse Source #
Response of CreateNotification
See: createNotificationResponse
smart constructor.
Instances
Response Lenses
cnrsResponseStatus :: Lens' CreateNotificationResponse Int Source #
- - | The response status code.