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.UpdateBudget

Contents

Description

Updates a budget. You can change every part of a budget except for the budgetName and the calculatedSpend . When a budget is modified, the calculatedSpend drops to zero until AWS has new usage data to use for forecasting.

Synopsis

Creating a Request

updateBudget Source #

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

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

  • ubAccountId - The accountId that is associated with the budget that you want to update.
  • ubNewBudget - The budget that you want to update your budget to.

data UpdateBudget Source #

Request of UpdateBudget

See: updateBudget smart constructor.

Instances

Eq UpdateBudget Source # 
Data UpdateBudget Source # 

Methods

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

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

toConstr :: UpdateBudget -> Constr #

dataTypeOf :: UpdateBudget -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateBudget Source # 
Show UpdateBudget Source # 
Generic UpdateBudget Source # 

Associated Types

type Rep UpdateBudget :: * -> * #

Hashable UpdateBudget Source # 
ToJSON UpdateBudget Source # 
NFData UpdateBudget Source # 

Methods

rnf :: UpdateBudget -> () #

AWSRequest UpdateBudget Source # 
ToHeaders UpdateBudget Source # 
ToPath UpdateBudget Source # 
ToQuery UpdateBudget Source # 
type Rep UpdateBudget Source # 
type Rep UpdateBudget = D1 * (MetaData "UpdateBudget" "Network.AWS.Budgets.UpdateBudget" "amazonka-budgets-1.6.0-14CyUEdTAnlAUnGAOMHs8t" False) (C1 * (MetaCons "UpdateBudget'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_ubAccountId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_ubNewBudget") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Budget))))
type Rs UpdateBudget Source # 

Request Lenses

ubAccountId :: Lens' UpdateBudget Text Source #

The accountId that is associated with the budget that you want to update.

ubNewBudget :: Lens' UpdateBudget Budget Source #

The budget that you want to update your budget to.

Destructuring the Response

updateBudgetResponse Source #

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

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

data UpdateBudgetResponse Source #

Response of UpdateBudget

See: updateBudgetResponse smart constructor.

Instances

Eq UpdateBudgetResponse Source # 
Data UpdateBudgetResponse Source # 

Methods

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

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

toConstr :: UpdateBudgetResponse -> Constr #

dataTypeOf :: UpdateBudgetResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateBudgetResponse Source # 
Show UpdateBudgetResponse Source # 
Generic UpdateBudgetResponse Source # 
NFData UpdateBudgetResponse Source # 

Methods

rnf :: UpdateBudgetResponse -> () #

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

Response Lenses

ubrsResponseStatus :: Lens' UpdateBudgetResponse Int Source #

  • - | The response status code.