CloudFormationClient.estimate_template_cost
rboto-cloudformation==0.4.0 · Service index · Types
Model summary (excerpt): 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.
Install and imports
from rboto import CloudFormationClient
from collections.abc import Sequence
from rboto_cloudformation.types import (
EstimateTemplateCostOutput,
Parameter,
)
Signature
async def estimate_template_cost(
*,
template_body: str | None = None,
template_url: str | None = None,
parameters: Sequence[Parameter] | None = None,
) -> EstimateTemplateCostOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
template_body |
No | Structure that contains the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. Conditional: You must pass TemplateBody or TemplateURL . If both are passed, only TemplateBody is used. |
template_url |
No | The URL of a file that contains the template body. The URL must point to a template that's located in an Amazon S3 bucket or a Systems Manager document. The location for an Amazon S3 bucket must start with https:// . URLs from S3 static websites are not supported. Conditional: You must pass TemplateURL or TemplateBody . If both are passed, only TemplateBody is used. |
parameters |
No | A list of Parameter structures that specify input parameters. |
Output
EstimateTemplateCostOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
url |
str | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
EstimateTemplateCostOutput, Parameter
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
No modeled service errors for this operation.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.