Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
EstimateTemplateCost' | |
|
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:
$sel:parameters:EstimateTemplateCost'
, estimateTemplateCost_parameters
- A list of Parameter
structures that specify input parameters.
$sel:templateBody: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 is 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 is 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.
EstimateTemplateCostResponse' | |
|
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.