Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
marknet15 committed Feb 4, 2022
1 parent 71b6fca commit 2a20b4d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions plugins/modules/dynamodb_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@
elements: dict
table_class:
description:
- The class of the table
- The class of the table.
- Requires at least botocore version 1.23.18.
choices: ['STANDARD', 'STANDARD_INFREQUENT_ACCESS']
type: str
version_added: 3.1.0
Expand Down Expand Up @@ -212,6 +213,11 @@
returned: success
type: str
sample: ACTIVE
table_class:
description: The current table class.
returned: when state present
type: str
sample: STANDARD_INFREQUENT_ACCESS
'''

try:
Expand Down Expand Up @@ -1020,8 +1026,7 @@ def main():
client = module.client('dynamodb', retry_decorator=retry_decorator)

if module.params.get('table_class'):
if not module.botocore_at_least("1.23.18"):
module.fail_json(msg='botocore version >= 1.23.18 is required setting table_class')
module.require_botocore_at_least('1.23.18', reason='to set table_class')

current_table = get_dynamodb_table()
changed = False
Expand Down

0 comments on commit 2a20b4d

Please sign in to comment.