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 #

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 #

Request of UpdateBudget

See: updateBudget smart constructor.

Instances

Eq UpdateBudget # 
Data UpdateBudget # 

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

Associated Types

type Rep UpdateBudget :: * -> * #

Hashable UpdateBudget # 
ToJSON UpdateBudget # 
NFData UpdateBudget # 

Methods

rnf :: UpdateBudget -> () #

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

Request Lenses

ubAccountId :: Lens' UpdateBudget Text #

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

ubNewBudget :: Lens' UpdateBudget Budget #

The budget that you want to update your budget to.

Destructuring the Response

updateBudgetResponse #

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 #

Response of UpdateBudget

See: updateBudgetResponse smart constructor.

Instances

Eq UpdateBudgetResponse # 
Data UpdateBudgetResponse # 

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

Methods

rnf :: UpdateBudgetResponse -> () #

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

Response Lenses

ubrsResponseStatus :: Lens' UpdateBudgetResponse Int #

  • - | The response status code.