libZSservicesZSamazonka-budgetsZSamazonka-budgets
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Budgets.CreateNotification

Description

Creates a notification. You must create the budget before you create the associated notification.

Synopsis

Creating a Request

data CreateNotification Source #

Request of CreateNotification

See: newCreateNotification smart constructor.

Constructors

CreateNotification' 

Fields

  • accountId :: Text

    The accountId that is associated with the budget that you want to create a notification for.

  • budgetName :: Text

    The name of the budget that you want AWS to notify you about. Budget names must be unique within an account.

  • notification :: Notification

    The notification that you want to create.

  • subscribers :: NonEmpty Subscriber

    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.

Instances

Instances details
Eq CreateNotification Source # 
Instance details

Defined in Amazonka.Budgets.CreateNotification

Show CreateNotification Source # 
Instance details

Defined in Amazonka.Budgets.CreateNotification

Generic CreateNotification Source # 
Instance details

Defined in Amazonka.Budgets.CreateNotification

Associated Types

type Rep CreateNotification :: Type -> Type #

NFData CreateNotification Source # 
Instance details

Defined in Amazonka.Budgets.CreateNotification

Methods

rnf :: CreateNotification -> () #

Hashable CreateNotification Source # 
Instance details

Defined in Amazonka.Budgets.CreateNotification

ToJSON CreateNotification Source # 
Instance details

Defined in Amazonka.Budgets.CreateNotification

AWSRequest CreateNotification Source # 
Instance details

Defined in Amazonka.Budgets.CreateNotification

Associated Types

type AWSResponse CreateNotification #

ToHeaders CreateNotification Source # 
Instance details

Defined in Amazonka.Budgets.CreateNotification

ToPath CreateNotification Source # 
Instance details

Defined in Amazonka.Budgets.CreateNotification

ToQuery CreateNotification Source # 
Instance details

Defined in Amazonka.Budgets.CreateNotification

type Rep CreateNotification Source # 
Instance details

Defined in Amazonka.Budgets.CreateNotification

type Rep CreateNotification = D1 ('MetaData "CreateNotification" "Amazonka.Budgets.CreateNotification" "libZSservicesZSamazonka-budgetsZSamazonka-budgets" 'False) (C1 ('MetaCons "CreateNotification'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "accountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "budgetName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "notification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Notification) :*: S1 ('MetaSel ('Just "subscribers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Subscriber)))))
type AWSResponse CreateNotification Source # 
Instance details

Defined in Amazonka.Budgets.CreateNotification

newCreateNotification Source #

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.

Constructors

CreateNotificationResponse' 

Fields

Instances

Instances details
Eq CreateNotificationResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateNotification

Read CreateNotificationResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateNotification

Show CreateNotificationResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateNotification

Generic CreateNotificationResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateNotification

Associated Types

type Rep CreateNotificationResponse :: Type -> Type #

NFData CreateNotificationResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateNotification

type Rep CreateNotificationResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateNotification

type Rep CreateNotificationResponse = D1 ('MetaData "CreateNotificationResponse" "Amazonka.Budgets.CreateNotification" "libZSservicesZSamazonka-budgetsZSamazonka-budgets" 'False) (C1 ('MetaCons "CreateNotificationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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