amazonka-cloudformation-1.4.5: Amazon CloudFormation SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@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 #

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 #

The input for an EstimateTemplateCost action.

See: estimateTemplateCost smart constructor.

Instances

Eq EstimateTemplateCost # 
Data EstimateTemplateCost # 

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

Methods

rnf :: EstimateTemplateCost -> () #

AWSRequest EstimateTemplateCost # 
ToQuery EstimateTemplateCost # 
ToPath EstimateTemplateCost # 
ToHeaders EstimateTemplateCost # 
type Rep EstimateTemplateCost # 
type Rep EstimateTemplateCost = D1 (MetaData "EstimateTemplateCost" "Network.AWS.CloudFormation.EstimateTemplateCost" "amazonka-cloudformation-1.4.5-GkPqDOYcHIlLStUFA5eeUs" 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 # 

Request Lenses

etcParameters :: Lens' EstimateTemplateCost [Parameter] #

A list of Parameter structures that specify input parameters.

etcTemplateBody :: Lens' EstimateTemplateCost (Maybe Text) #

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) #

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 #

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 #

The output for a EstimateTemplateCost action.

See: estimateTemplateCostResponse smart constructor.

Instances

Eq EstimateTemplateCostResponse # 
Data EstimateTemplateCostResponse # 

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 # 
Show EstimateTemplateCostResponse # 
Generic EstimateTemplateCostResponse # 
NFData EstimateTemplateCostResponse # 
type Rep EstimateTemplateCostResponse # 
type Rep EstimateTemplateCostResponse = D1 (MetaData "EstimateTemplateCostResponse" "Network.AWS.CloudFormation.EstimateTemplateCost" "amazonka-cloudformation-1.4.5-GkPqDOYcHIlLStUFA5eeUs" False) (C1 (MetaCons "EstimateTemplateCostResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_etcrsURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_etcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

etcrsURL :: Lens' EstimateTemplateCostResponse (Maybe Text) #

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