Skip to content

CloudFormationClient.update_generated_template

rboto-cloudformation==0.4.0 · Service index · Types

Model summary (excerpt): Updates a generated template. This can be used to change the name, add and remove resources, refresh resources, and change the DeletionPolicy and UpdateReplacePolicy settings. You can check the status of the update to the generated template 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 (
    ResourceDefinition,
    TemplateConfiguration,
    UpdateGeneratedTemplateOutput,
)

Signature

async def update_generated_template(
    *,
    generated_template_name: str,
    new_generated_template_name: str | None = None,
    add_resources: Sequence[ResourceDefinition] | None = None,
    remove_resources: Sequence[str] | None = None,
    refresh_all_resources: bool | None = None,
    template_configuration: TemplateConfiguration | None = None,
) -> UpdateGeneratedTemplateOutput: ...

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 a generated template.
new_generated_template_name No An optional new name to assign to the generated template.
add_resources No An optional list of resources to be added to the generated template.
remove_resources No A list of logical ids for resources to remove from the generated template.
refresh_all_resources No If true , update the resource properties in the generated template with their current live state. This feature is useful when the resource properties in your generated a template does not reflect the live state of the resource properties. This happens when a user update the resource properties after generating a template.
template_configuration No The configuration details of the generated template, including the DeletionPolicy and UpdateReplacePolicy .

Output

UpdateGeneratedTemplateOutput.

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.

ResourceDefinition, TemplateConfiguration, UpdateGeneratedTemplateOutput

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, GeneratedTemplateNotFoundError, LimitExceededError.

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

Service guide · Pinned model