amazonka-budgets-1.6.1: Amazon Budgets SDK.

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

Network.AWS.Budgets.CreateNotification

Contents

Description

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

Synopsis

Creating a Request

createNotification Source #

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 - The accountId 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
Eq CreateNotification Source # 
Instance details

Defined in Network.AWS.Budgets.CreateNotification

Data CreateNotification Source # 
Instance details

Defined in Network.AWS.Budgets.CreateNotification

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateNotification -> c CreateNotification #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateNotification #

toConstr :: CreateNotification -> Constr #

dataTypeOf :: CreateNotification -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateNotification) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateNotification) #

gmapT :: (forall b. Data b => b -> b) -> CreateNotification -> CreateNotification #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateNotification -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateNotification -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateNotification -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateNotification -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateNotification -> m CreateNotification #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateNotification -> m CreateNotification #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateNotification -> m CreateNotification #

Read CreateNotification Source # 
Instance details

Defined in Network.AWS.Budgets.CreateNotification

Show CreateNotification Source # 
Instance details

Defined in Network.AWS.Budgets.CreateNotification

Generic CreateNotification Source # 
Instance details

Defined in Network.AWS.Budgets.CreateNotification

Associated Types

type Rep CreateNotification :: Type -> Type #

Hashable CreateNotification Source # 
Instance details

Defined in Network.AWS.Budgets.CreateNotification

ToJSON CreateNotification Source # 
Instance details

Defined in Network.AWS.Budgets.CreateNotification

AWSRequest CreateNotification Source # 
Instance details

Defined in Network.AWS.Budgets.CreateNotification

Associated Types

type Rs CreateNotification :: Type #

ToHeaders CreateNotification Source # 
Instance details

Defined in Network.AWS.Budgets.CreateNotification

ToPath CreateNotification Source # 
Instance details

Defined in Network.AWS.Budgets.CreateNotification

ToQuery CreateNotification Source # 
Instance details

Defined in Network.AWS.Budgets.CreateNotification

NFData CreateNotification Source # 
Instance details

Defined in Network.AWS.Budgets.CreateNotification

Methods

rnf :: CreateNotification -> () #

type Rep CreateNotification Source # 
Instance details

Defined in Network.AWS.Budgets.CreateNotification

type Rep CreateNotification = D1 (MetaData "CreateNotification" "Network.AWS.Budgets.CreateNotification" "amazonka-budgets-1.6.1-EaVNVCh4SNz6bhjSdjYIRa" False) (C1 (MetaCons "CreateNotification'" PrefixI True) ((S1 (MetaSel (Just "_cnAccountId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_cnBudgetName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_cnNotification") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Notification) :*: S1 (MetaSel (Just "_cnSubscribers") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (List1 Subscriber)))))
type Rs CreateNotification Source # 
Instance details

Defined in Network.AWS.Budgets.CreateNotification

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:

data CreateNotificationResponse Source #

Response of CreateNotification

See: createNotificationResponse smart constructor.

Instances
Eq CreateNotificationResponse Source # 
Instance details

Defined in Network.AWS.Budgets.CreateNotification

Data CreateNotificationResponse Source # 
Instance details

Defined in Network.AWS.Budgets.CreateNotification

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateNotificationResponse -> c CreateNotificationResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateNotificationResponse #

toConstr :: CreateNotificationResponse -> Constr #

dataTypeOf :: CreateNotificationResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateNotificationResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateNotificationResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateNotificationResponse -> CreateNotificationResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateNotificationResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateNotificationResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateNotificationResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateNotificationResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateNotificationResponse -> m CreateNotificationResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateNotificationResponse -> m CreateNotificationResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateNotificationResponse -> m CreateNotificationResponse #

Read CreateNotificationResponse Source # 
Instance details

Defined in Network.AWS.Budgets.CreateNotification

Show CreateNotificationResponse Source # 
Instance details

Defined in Network.AWS.Budgets.CreateNotification

Generic CreateNotificationResponse Source # 
Instance details

Defined in Network.AWS.Budgets.CreateNotification

Associated Types

type Rep CreateNotificationResponse :: Type -> Type #

NFData CreateNotificationResponse Source # 
Instance details

Defined in Network.AWS.Budgets.CreateNotification

type Rep CreateNotificationResponse Source # 
Instance details

Defined in Network.AWS.Budgets.CreateNotification

type Rep CreateNotificationResponse = D1 (MetaData "CreateNotificationResponse" "Network.AWS.Budgets.CreateNotification" "amazonka-budgets-1.6.1-EaVNVCh4SNz6bhjSdjYIRa" True) (C1 (MetaCons "CreateNotificationResponse'" PrefixI True) (S1 (MetaSel (Just "_cnrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses