From 6adee0cbaf7a1971fff8809cc07dc4b23a08cc2e Mon Sep 17 00:00:00 2001 From: Macwan Nevil Date: Mon, 27 Jul 2020 23:23:15 +0530 Subject: [PATCH] Bugfix: RedrivePolicy Issue SNS (#3186) * Bugfix: S3 time precision issue fixed * Bugfix: S3 time precision issue fixed * s3 timeformat fix * Quickfix S3 timefix * Bugfix: Redrive Policy Allow * Linting Fixed --- moto/sns/models.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/moto/sns/models.py b/moto/sns/models.py index 85196cd8f..76376e58f 100644 --- a/moto/sns/models.py +++ b/moto/sns/models.py @@ -580,7 +580,12 @@ class SNSBackend(BaseBackend): return subscription.attributes def set_subscription_attributes(self, arn, name, value): - if name not in ["RawMessageDelivery", "DeliveryPolicy", "FilterPolicy"]: + if name not in [ + "RawMessageDelivery", + "DeliveryPolicy", + "FilterPolicy", + "RedrivePolicy", + ]: raise SNSInvalidParameter("AttributeName") # TODO: should do validation