Merge pull request #1439 from anderson-dan-w/redrive-policy

Redrive policy
This commit is contained in:
Steve Pulec 2018-03-06 22:22:49 -05:00 committed by GitHub
commit 8b3743fa9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 0 deletions

View file

@ -166,6 +166,7 @@ class Queue(BaseModel):
'MessageRetentionPeriod',
'QueueArn',
'ReceiveMessageWaitTimeSeconds',
'RedrivePolicy',
'VisibilityTimeout',
'WaitTimeSeconds']
ALLOWED_PERMISSIONS = ('*', 'ChangeMessageVisibility', 'DeleteMessage', 'GetQueueAttributes',
@ -285,6 +286,8 @@ class Queue(BaseModel):
attr = getattr(self, camelcase_to_underscores(attribute))
if isinstance(attr, bool):
attr = str(attr).lower()
elif attribute == 'RedrivePolicy':
attr = json.dumps(attr)
result[attribute] = attr
return result