amazonka-cloudformation-1.6.0: Amazon CloudFormation 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.CloudFormation.EstimateTemplateCost

Contents

Description

Returns the estimated monthly cost of a template. The return value is an AWS Simple Monthly Calculator URL with a query string that describes the resources required to run the template.

Synopsis

Creating a Request

estimateTemplateCost :: EstimateTemplateCost Source #

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

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

  • etcParameters - A list of Parameter structures that specify input parameters.
  • etcTemplateBody - Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. (For more information, go to Template Anatomy in the AWS CloudFormation User Guide.) Conditional: You must pass TemplateBody or TemplateURL . If both are passed, only TemplateBody is used.
  • etcTemplateURL - Location of file containing the template body. The URL must point to a template that is located in an Amazon S3 bucket. For more information, go to Template Anatomy in the AWS CloudFormation User Guide. Conditional: You must pass TemplateURL or TemplateBody . If both are passed, only TemplateBody is used.

data EstimateTemplateCost Source #

The input for an EstimateTemplateCost action.

See: estimateTemplateCost smart constructor.

Instances

Eq EstimateTemplateCost Source # 
Data EstimateTemplateCost Source # 

Methods

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

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

toConstr :: EstimateTemplateCost -> Constr #

dataTypeOf :: EstimateTemplateCost -> DataType #

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

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

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

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

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

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

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

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

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

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

Read EstimateTemplateCost Source # 
Show EstimateTemplateCost Source # 
Generic EstimateTemplateCost Source # 
Hashable EstimateTemplateCost Source # 
NFData EstimateTemplateCost Source # 

Methods

rnf :: EstimateTemplateCost -> () #

AWSRequest EstimateTemplateCost Source # 
ToHeaders EstimateTemplateCost Source # 
ToPath EstimateTemplateCost Source # 
ToQuery EstimateTemplateCost Source # 
type Rep EstimateTemplateCost Source # 
type Rep EstimateTemplateCost = D1 * (MetaData "EstimateTemplateCost" "Network.AWS.CloudFormation.EstimateTemplateCost" "amazonka-cloudformation-1.6.0-E2GV66prdF5G8DMBRBifWM" False) (C1 * (MetaCons "EstimateTemplateCost'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_etcParameters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Parameter]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_etcTemplateBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_etcTemplateURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))))
type Rs EstimateTemplateCost Source # 

Request Lenses

etcParameters :: Lens' EstimateTemplateCost [Parameter] Source #

A list of Parameter structures that specify input parameters.

etcTemplateBody :: Lens' EstimateTemplateCost (Maybe Text) Source #

Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. (For more information, go to Template Anatomy in the AWS CloudFormation User Guide.) Conditional: You must pass TemplateBody or TemplateURL . If both are passed, only TemplateBody is used.

etcTemplateURL :: Lens' EstimateTemplateCost (Maybe Text) Source #

Location of file containing the template body. The URL must point to a template that is located in an Amazon S3 bucket. For more information, go to Template Anatomy in the AWS CloudFormation User Guide. Conditional: You must pass TemplateURL or TemplateBody . If both are passed, only TemplateBody is used.

Destructuring the Response

estimateTemplateCostResponse Source #

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

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

  • etcrsURL - An AWS Simple Monthly Calculator URL with a query string that describes the resources required to run the template.
  • etcrsResponseStatus - -- | The response status code.

data EstimateTemplateCostResponse Source #

The output for a EstimateTemplateCost action.

See: estimateTemplateCostResponse smart constructor.

Instances

Eq EstimateTemplateCostResponse Source # 
Data EstimateTemplateCostResponse Source # 

Methods

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

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

toConstr :: EstimateTemplateCostResponse -> Constr #

dataTypeOf :: EstimateTemplateCostResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read EstimateTemplateCostResponse Source # 
Show EstimateTemplateCostResponse Source # 
Generic EstimateTemplateCostResponse Source # 
NFData EstimateTemplateCostResponse Source # 
type Rep EstimateTemplateCostResponse Source # 
type Rep EstimateTemplateCostResponse = D1 * (MetaData "EstimateTemplateCostResponse" "Network.AWS.CloudFormation.EstimateTemplateCost" "amazonka-cloudformation-1.6.0-E2GV66prdF5G8DMBRBifWM" False) (C1 * (MetaCons "EstimateTemplateCostResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_etcrsURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_etcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

etcrsURL :: Lens' EstimateTemplateCostResponse (Maybe Text) Source #

An AWS Simple Monthly Calculator URL with a query string that describes the resources required to run the template.