| 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.CreateNotification
Description
Creates a notification. You must create the budget before you create the associated notification.
Synopsis
- data CreateNotification = CreateNotification' {}
- newCreateNotification :: Text -> Text -> Notification -> NonEmpty Subscriber -> CreateNotification
- createNotification_accountId :: Lens' CreateNotification Text
- createNotification_budgetName :: Lens' CreateNotification Text
- createNotification_notification :: Lens' CreateNotification Notification
- createNotification_subscribers :: Lens' CreateNotification (NonEmpty Subscriber)
- data CreateNotificationResponse = CreateNotificationResponse' {
- httpStatus :: Int
- newCreateNotificationResponse :: Int -> CreateNotificationResponse
- createNotificationResponse_httpStatus :: Lens' CreateNotificationResponse Int
Creating a Request
data CreateNotification Source #
Request of CreateNotification
See: newCreateNotification smart constructor.
Constructors
| CreateNotification' | |
Fields
| |
Instances
newCreateNotification Source #
Arguments
| :: Text | |
| -> Text | |
| -> Notification | |
| -> NonEmpty Subscriber | |
| -> CreateNotification |
Create a value of CreateNotification 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:CreateNotification', createNotification_accountId - The accountId that is associated with the budget that you want to
create a notification for.
CreateNotification, createNotification_budgetName - The name of the budget that you want Amazon Web Services to notify you
about. Budget names must be unique within an account.
CreateNotification, createNotification_notification - The notification that you want to create.
CreateNotification, createNotification_subscribers - A list of subscribers that you want to associate with the notification.
Each notification can have one SNS subscriber and up to 10 email
subscribers.
Request Lenses
createNotification_accountId :: Lens' CreateNotification Text Source #
The accountId that is associated with the budget that you want to
create a notification for.
createNotification_budgetName :: Lens' CreateNotification Text Source #
The name of the budget that you want Amazon Web Services to notify you about. Budget names must be unique within an account.
createNotification_notification :: Lens' CreateNotification Notification Source #
The notification that you want to create.
createNotification_subscribers :: 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 10 email subscribers.
Destructuring the Response
data CreateNotificationResponse Source #
Response of CreateNotification
See: newCreateNotificationResponse smart constructor.
Constructors
| CreateNotificationResponse' | |
Fields
| |
Instances
newCreateNotificationResponse Source #
Create a value of CreateNotificationResponse 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:CreateNotificationResponse', createNotificationResponse_httpStatus - The response's http status code.
Response Lenses
createNotificationResponse_httpStatus :: Lens' CreateNotificationResponse Int Source #
The response's http status code.