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 #

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 #

Request of CreateBudget

See: createBudget smart constructor.

Instances

Eq CreateBudget # 
Data CreateBudget # 

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 # 
Show CreateBudget # 
Generic CreateBudget # 

Associated Types

type Rep CreateBudget :: * -> * #

Hashable CreateBudget # 
ToJSON CreateBudget # 
NFData CreateBudget # 

Methods

rnf :: CreateBudget -> () #

AWSRequest CreateBudget # 
ToHeaders CreateBudget # 
ToPath CreateBudget # 
ToQuery CreateBudget # 
type Rep CreateBudget # 
type Rep CreateBudget = D1 * (MetaData "CreateBudget" "Network.AWS.Budgets.CreateBudget" "amazonka-budgets-1.6.0-5YIhfJ7TuLi7CQTig8El9z" 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 # 

Request Lenses

cbNotificationsWithSubscribers :: Lens' CreateBudget [NotificationWithSubscribers] #

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 #

The accountId that is associated with the budget.

cbBudget :: Lens' CreateBudget Budget #

The budget object that you want to create.

Destructuring the Response

createBudgetResponse #

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 #

Response of CreateBudget

See: createBudgetResponse smart constructor.

Instances

Eq CreateBudgetResponse # 
Data CreateBudgetResponse # 

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 # 
Show CreateBudgetResponse # 
Generic CreateBudgetResponse # 
NFData CreateBudgetResponse # 

Methods

rnf :: CreateBudgetResponse -> () #

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

Response Lenses

cbrsResponseStatus :: Lens' CreateBudgetResponse Int #

  • - | The response status code.