From f8b97dc3996a3e3bc6e767af03bed243409c1b21 Mon Sep 17 00:00:00 2001 From: Kevin DeJong Date: Fri, 3 May 2024 12:16:58 -0700 Subject: [PATCH] Fix issue in I3013 with multiple resources (#3212) --- .../RetentionPeriodOnResourceTypesWithAutoExpiringContent.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cfnlint/rules/resources/RetentionPeriodOnResourceTypesWithAutoExpiringContent.py b/src/cfnlint/rules/resources/RetentionPeriodOnResourceTypesWithAutoExpiringContent.py index bb237393a3..14916afd3e 100644 --- a/src/cfnlint/rules/resources/RetentionPeriodOnResourceTypesWithAutoExpiringContent.py +++ b/src/cfnlint/rules/resources/RetentionPeriodOnResourceTypesWithAutoExpiringContent.py @@ -43,6 +43,7 @@ def __init__(self) -> None: filename="backupretentionperiod.json", ), ) + self._rds_schema = self._schema self._properties: Dict[str, List[Dict[str, str]]] = { "AWS::Kinesis::Stream": [ { @@ -118,5 +119,7 @@ def validate(self, validator, keywords, instance, schema): required.append(property) self._schema = {"required": required} + else: + self._schema = self._rds_schema return super().validate(validator, keywords, instance, schema)