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 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.
CreateNotification' | |
|
Instances
newCreateNotification Source #
:: 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.
$sel:budgetName:CreateNotification'
, createNotification_budgetName
- The name of the budget that you want AWS to notify you about. Budget
names must be unique within an account.
$sel:notification:CreateNotification'
, createNotification_notification
- The notification that you want to create.
$sel:subscribers: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 AWS 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.
CreateNotificationResponse' | |
|
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.