Skip to content

CloudFormation  >  Structures  >  TemplateConfiguration

TemplateConfiguration

Structure Class

TemplateConfiguration dataclass

Bases: _SerdeShape

The configuration details of a generated template.

Attributes

deletion_policy class-attribute instance-attribute
deletion_policy: str | None = ...

The DeletionPolicy assigned to resources in the generated template. Supported values are:

  • DELETE - delete all resources when the stack is deleted.

  • RETAIN - retain all resources when the stack is deleted.

For more information, see DeletionPolicy attribute in the CloudFormation User Guide.

update_replace_policy class-attribute instance-attribute
update_replace_policy: str | None = ...

The UpdateReplacePolicy assigned to resources in the generated template. Supported values are:

  • DELETE - delete all resources when the resource is replaced during an update operation.

  • RETAIN - retain all resources when the resource is replaced during an update operation.

For more information, see UpdateReplacePolicy attribute in the CloudFormation User Guide.