CloudFormationClient.get_generated_template
rboto-cloudformation==0.4.0 · Service index · Types
Model summary (excerpt): Retrieves a generated template. If the template is in an InProgress or Pending status then the template returned will be the template when the template was last in a Complete status. If the template has not yet been in a Complete status then an empty template will be returned.
Install and imports
from rboto import CloudFormationClient
from rboto_cloudformation.types import (
GetGeneratedTemplateOutput,
TemplateFormat,
)
Signature
async def get_generated_template(
*,
generated_template_name: str,
format: TemplateFormat | None = None,
) -> GetGeneratedTemplateOutput: ...
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) |
|---|---|---|
generated_template_name |
Yes | The name or Amazon Resource Name (ARN) of the generated template. The format is arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id} . For example, arn:aws:cloudformation: us-east-1 : 123456789012 :generatedtemplate/ 2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc . |
format |
No | The language to use to retrieve for the generated template. Supported values are: JSON YAML |
Output
GetGeneratedTemplateOutput.
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 |
|---|---|---|---|
status |
GeneratedTemplateStatusOutput | None |
Always present | GeneratedTemplateStatusOutput |
template_body |
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
GetGeneratedTemplateOutput, TemplateFormat
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
Import from rboto_cloudformation.exceptions:
GeneratedTemplateNotFoundError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.