Skip to content

Commit

Permalink
Tagging fragment - Move simplest cases over to the docs fragment.
Browse files Browse the repository at this point in the history
  • Loading branch information
tremble committed Jun 2, 2022
1 parent 8a5ed47 commit c83314d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/1199-tagging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- dynamodb_table - ``resource_tags`` has been added as an alias for the ``tags`` parameter (https://github.com/ansible-collections/community.aws/pull/1182).
21 changes: 6 additions & 15 deletions plugins/modules/dynamodb_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
- Create or delete AWS Dynamo DB tables.
- Can update the provisioned throughput on existing tables.
- Returns the status of the specified table.
author: Alan Loi (@loia)
author:
- Alan Loi (@loia)
options:
state:
description:
Expand Down Expand Up @@ -128,16 +129,6 @@
choices: ['STANDARD', 'STANDARD_INFREQUENT_ACCESS']
type: str
version_added: 3.1.0
tags:
description:
- A hash/dictionary of tags to add to the new instance or for starting/stopping instance by tag.
- 'For example: C({"key":"value"}) or C({"key":"value","key2":"value2"})'
type: dict
purge_tags:
description:
- Remove tags not listed in I(tags).
default: True
type: bool
wait_timeout:
description:
- How long (in seconds) to wait for creation / update / deletion to complete.
Expand All @@ -151,9 +142,9 @@
default: True
type: bool
extends_documentation_fragment:
- amazon.aws.aws
- amazon.aws.ec2
- amazon.aws.aws
- amazon.aws.ec2
- amazon.aws.tags
'''

EXAMPLES = r'''
Expand Down Expand Up @@ -1042,7 +1033,7 @@ def main():
write_capacity=dict(type='int'),
indexes=dict(default=[], type='list', elements='dict', options=index_options),
table_class=dict(type='str', choices=['STANDARD', 'STANDARD_INFREQUENT_ACCESS']),
tags=dict(type='dict'),
tags=dict(type='dict', aliases=['resource_tags']),
purge_tags=dict(type='bool', default=True),
wait=dict(type='bool', default=True),
wait_timeout=dict(default=300, type='int', aliases=['wait_for_active_timeout']),
Expand Down

0 comments on commit c83314d

Please sign in to comment.