Skip to content

Commit

Permalink
Tagging fragment - Move simplest cases over to the docs fragment. (an…
Browse files Browse the repository at this point in the history
…sible-collections#1199)

Tagging fragment - dynamodb_table - Move over to the docs fragment.

SUMMARY
The dynamodb tests are slow enough to cause test timeouts when combined with too many other changed, split this off.
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
dynamodb_table
ADDITIONAL INFORMATION
The change itself was approved on ansible-collections#1182
  • Loading branch information
tremble authored Jun 2, 2022
1 parent edc393e commit 934e330
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/1199).
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 934e330

Please sign in to comment.