Skip to content

TemplateConfiguration

Source code in docs_src/capo_cloudformation/types/template_configuration.py
class TemplateConfiguration(TypedDict, closed=True):
    deletion_policy: NotRequired[
        "capo_cloudformation.types.generated_template_deletion_policy.GeneratedTemplateDeletionPolicy"
    ]
    """<p>The <code>DeletionPolicy</code> assigned to resources in the generated template. Supported values are:</p> <ul> <li> <p> <code>DELETE</code> - delete all resources when the stack is deleted.</p> </li> <li> <p> <code>RETAIN</code> - retain all resources when the stack is deleted.</p> </li> </ul> <p>For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html">DeletionPolicy attribute</a> in the <i>CloudFormation User Guide</i>.</p>"""
    update_replace_policy: NotRequired[
        "capo_cloudformation.types.generated_template_update_replace_policy.GeneratedTemplateUpdateReplacePolicy"
    ]
    """<p>The <code>UpdateReplacePolicy</code> assigned to resources in the generated template. Supported values are:</p> <ul> <li> <p> <code>DELETE</code> - delete all resources when the resource is replaced during an update operation.</p> </li> <li> <p> <code>RETAIN</code> - retain all resources when the resource is replaced during an update operation.</p> </li> </ul> <p>For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatereplacepolicy.html">UpdateReplacePolicy attribute</a> in the <i>CloudFormation User Guide</i>.</p>"""

deletion_policy instance-attribute

deletion_policy: NotRequired[GeneratedTemplateDeletionPolicy]

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 instance-attribute

update_replace_policy: NotRequired[GeneratedTemplateUpdateReplacePolicy]

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.