| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CloudFormation.EstimateTemplateCost
Description
Returns the estimated monthly cost of a template. The return value is an Amazon Web Services Simple Monthly Calculator URL with a query string that describes the resources required to run the template.
Synopsis
- data EstimateTemplateCost = EstimateTemplateCost' {
- parameters :: Maybe [Parameter]
- templateBody :: Maybe Text
- templateURL :: Maybe Text
- newEstimateTemplateCost :: EstimateTemplateCost
- estimateTemplateCost_parameters :: Lens' EstimateTemplateCost (Maybe [Parameter])
- estimateTemplateCost_templateBody :: Lens' EstimateTemplateCost (Maybe Text)
- estimateTemplateCost_templateURL :: Lens' EstimateTemplateCost (Maybe Text)
- data EstimateTemplateCostResponse = EstimateTemplateCostResponse' {
- url :: Maybe Text
- httpStatus :: Int
- newEstimateTemplateCostResponse :: Int -> EstimateTemplateCostResponse
- estimateTemplateCostResponse_url :: Lens' EstimateTemplateCostResponse (Maybe Text)
- estimateTemplateCostResponse_httpStatus :: Lens' EstimateTemplateCostResponse Int
Creating a Request
data EstimateTemplateCost Source #
The input for an EstimateTemplateCost action.
See: newEstimateTemplateCost smart constructor.
Constructors
| EstimateTemplateCost' | |
Fields
| |
Instances
newEstimateTemplateCost :: EstimateTemplateCost Source #
Create a value of EstimateTemplateCost with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
EstimateTemplateCost, estimateTemplateCost_parameters - A list of Parameter structures that specify input parameters.
EstimateTemplateCost, estimateTemplateCost_templateBody - 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 CloudFormation User Guide.)
Conditional: You must pass TemplateBody or TemplateURL. If both are
passed, only TemplateBody is used.
$sel:templateURL:EstimateTemplateCost', estimateTemplateCost_templateURL - Location of file containing the template body. The URL must point to a
template that's located in an Amazon S3 bucket or a Systems Manager
document. For more information, go to
Template Anatomy
in the CloudFormation User Guide.
Conditional: You must pass TemplateURL or TemplateBody. If both are
passed, only TemplateBody is used.
Request Lenses
estimateTemplateCost_parameters :: Lens' EstimateTemplateCost (Maybe [Parameter]) Source #
A list of Parameter structures that specify input parameters.
estimateTemplateCost_templateBody :: 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 CloudFormation User Guide.)
Conditional: You must pass TemplateBody or TemplateURL. If both are
passed, only TemplateBody is used.
estimateTemplateCost_templateURL :: Lens' EstimateTemplateCost (Maybe Text) Source #
Location of file containing the template body. The URL must point to a template that's located in an Amazon S3 bucket or a Systems Manager document. For more information, go to Template Anatomy in the CloudFormation User Guide.
Conditional: You must pass TemplateURL or TemplateBody. If both are
passed, only TemplateBody is used.
Destructuring the Response
data EstimateTemplateCostResponse Source #
The output for a EstimateTemplateCost action.
See: newEstimateTemplateCostResponse smart constructor.
Constructors
| EstimateTemplateCostResponse' | |
Fields
| |
Instances
newEstimateTemplateCostResponse Source #
Create a value of EstimateTemplateCostResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:url:EstimateTemplateCostResponse', estimateTemplateCostResponse_url - An Amazon Web Services Simple Monthly Calculator URL with a query string
that describes the resources required to run the template.
$sel:httpStatus:EstimateTemplateCostResponse', estimateTemplateCostResponse_httpStatus - The response's http status code.
Response Lenses
estimateTemplateCostResponse_url :: Lens' EstimateTemplateCostResponse (Maybe Text) Source #
An Amazon Web Services Simple Monthly Calculator URL with a query string that describes the resources required to run the template.
estimateTemplateCostResponse_httpStatus :: Lens' EstimateTemplateCostResponse Int Source #
The response's http status code.