Skip to content

CloudFormationClient.create_generated_template

rboto-cloudformation==0.4.0 · Service index · Types

Model summary (excerpt): Creates a template from existing resources that are not already managed with CloudFormation. You can check the status of the template generation using the DescribeGeneratedTemplate API action.

Install and imports

python -m pip install "rboto[cloudformation]==0.4.0"
from rboto import CloudFormationClient
from collections.abc import Sequence
from rboto_cloudformation.types import (
    CreateGeneratedTemplateOutput,
    ResourceDefinition,
    TemplateConfiguration,
)

Signature

async def create_generated_template(
    *,
    generated_template_name: str,
    resources: Sequence[ResourceDefinition] | None = None,
    stack_name: str | None = None,
    template_configuration: TemplateConfiguration | None = None,
) -> CreateGeneratedTemplateOutput: ...

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 assigned to the generated template.
resources No An optional list of resources to be included in the generated template. If no resources are specified,the template will be created without any resources. Resources can be added to the template using the UpdateGeneratedTemplate API action.
stack_name No An optional name or ARN of a stack to use as the base stack for the generated template.
template_configuration No The configuration details of the generated template, including the DeletionPolicy and UpdateReplacePolicy .

Output

CreateGeneratedTemplateOutput.

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
generated_template_id 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.

CreateGeneratedTemplateOutput, ResourceDefinition, TemplateConfiguration

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:

AlreadyExistsError, ConcurrentResourcesLimitExceededError, LimitExceededError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model