amazonka-budgets-1.6.0: 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.CreateBudget

Contents

Description

Creates a budget and, if included, notifications and subscribers.

Synopsis

Creating a Request

createBudget Source #

Creates a value of CreateBudget with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • cbNotificationsWithSubscribers - A notification that you want to associate with a budget. A budget can have up to five notifications, and each notification can have one SNS subscriber and up to ten email subscribers. If you include notifications and subscribers in your CreateBudget call, AWS creates the notifications and subscribers for you.
  • cbAccountId - The accountId that is associated with the budget.
  • cbBudget - The budget object that you want to create.

data CreateBudget Source #

Request of CreateBudget

See: createBudget smart constructor.

Instances

Eq CreateBudget Source # 
Data CreateBudget Source # 

Methods

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

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

toConstr :: CreateBudget -> Constr #

dataTypeOf :: CreateBudget -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateBudget Source # 
Show CreateBudget Source # 
Generic CreateBudget Source # 

Associated Types

type Rep CreateBudget :: * -> * #

Hashable CreateBudget Source # 
ToJSON CreateBudget Source # 
NFData CreateBudget Source # 

Methods

rnf :: CreateBudget -> () #

AWSRequest CreateBudget Source # 
ToHeaders CreateBudget Source # 
ToPath CreateBudget Source # 
ToQuery CreateBudget Source # 
type Rep CreateBudget Source # 
type Rep CreateBudget = D1 * (MetaData "CreateBudget" "Network.AWS.Budgets.CreateBudget" "amazonka-budgets-1.6.0-14CyUEdTAnlAUnGAOMHs8t" False) (C1 * (MetaCons "CreateBudget'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cbNotificationsWithSubscribers") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [NotificationWithSubscribers]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cbAccountId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_cbBudget") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Budget)))))
type Rs CreateBudget Source # 

Request Lenses

cbNotificationsWithSubscribers :: Lens' CreateBudget [NotificationWithSubscribers] Source #

A notification that you want to associate with a budget. A budget can have up to five notifications, and each notification can have one SNS subscriber and up to ten email subscribers. If you include notifications and subscribers in your CreateBudget call, AWS creates the notifications and subscribers for you.

cbAccountId :: Lens' CreateBudget Text Source #

The accountId that is associated with the budget.

cbBudget :: Lens' CreateBudget Budget Source #

The budget object that you want to create.

Destructuring the Response

createBudgetResponse Source #

Creates a value of CreateBudgetResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateBudgetResponse Source #

Response of CreateBudget

See: createBudgetResponse smart constructor.

Instances

Eq CreateBudgetResponse Source # 
Data CreateBudgetResponse Source # 

Methods

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

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

toConstr :: CreateBudgetResponse -> Constr #

dataTypeOf :: CreateBudgetResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateBudgetResponse Source # 
Show CreateBudgetResponse Source # 
Generic CreateBudgetResponse Source # 
NFData CreateBudgetResponse Source # 

Methods

rnf :: CreateBudgetResponse -> () #

type Rep CreateBudgetResponse Source # 
type Rep CreateBudgetResponse = D1 * (MetaData "CreateBudgetResponse" "Network.AWS.Budgets.CreateBudget" "amazonka-budgets-1.6.0-14CyUEdTAnlAUnGAOMHs8t" True) (C1 * (MetaCons "CreateBudgetResponse'" PrefixI True) (S1 * (MetaSel (Just Symbol "_cbrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int)))

Response Lenses

cbrsResponseStatus :: Lens' CreateBudgetResponse Int Source #

  • - | The response status code.