From e47061c07115cb6d44bb2b6daba9f981d4d0c4cf Mon Sep 17 00:00:00 2001 From: Pat Myron Date: Tue, 1 Aug 2023 14:43:17 -0400 Subject: [PATCH] RetainExceptOnCreate DeletionPolicy (#2834) https://aws.amazon.com/about-aws/whats-new/2023/07/aws-cloudformation-deletion-policies-dev-test-cycle/ --- src/cfnlint/rules/resources/DeletionPolicy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cfnlint/rules/resources/DeletionPolicy.py b/src/cfnlint/rules/resources/DeletionPolicy.py index d8d69df683..26bc3afb60 100644 --- a/src/cfnlint/rules/resources/DeletionPolicy.py +++ b/src/cfnlint/rules/resources/DeletionPolicy.py @@ -19,7 +19,7 @@ def check_value(self, key, path, res_type): """Check resource names for DeletionPolicy""" matches = [] - valid_values = ["Delete", "Retain", "Snapshot"] + valid_values = ["Delete", "Retain", "RetainExceptOnCreate", "Snapshot"] supported_functions = ["Fn::FindInMap", "Fn::If", "Ref"]