Skip to content

Commit

Permalink
Tagging fragment - Move simplest cases over to the docs fragment. (#1200
Browse files Browse the repository at this point in the history
)

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

SUMMARY
The rds_instance_snapshot 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
rds_instance_snapshot
ADDITIONAL INFORMATION
The change itself was approved on #1182
  • Loading branch information
tremble authored Jun 2, 2022
1 parent 934e330 commit 9ca5540
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/1200-tagging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- rds_instance_snapshot - ``resource_tags`` has been added as an alias for the ``tags`` parameter (https://github.com/ansible-collections/community.aws/pull/1200).
27 changes: 9 additions & 18 deletions plugins/modules/rds_instance_snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
version_added: 1.0.0
short_description: Manage Amazon RDS instance snapshots
description:
- Creates or deletes RDS snapshots.
- Creates or deletes RDS snapshots.
options:
state:
description:
Expand Down Expand Up @@ -68,24 +68,15 @@
- how long before wait gives up, in seconds.
default: 300
type: int
tags:
description:
- tags dict to apply to a snapshot.
type: dict
purge_tags:
description:
- whether to remove tags not present in the I(tags) parameter.
default: True
type: bool
author:
- "Will Thames (@willthames)"
- "Michael De La Rue (@mikedlr)"
- "Alina Buzachis (@alinabuzachis)"
- "Joseph Torcasso (@jatorcasso)"
- "Will Thames (@willthames)"
- "Michael De La Rue (@mikedlr)"
- "Alina Buzachis (@alinabuzachis)"
- "Joseph Torcasso (@jatorcasso)"
extends_documentation_fragment:
- amazon.aws.aws
- amazon.aws.ec2
- amazon.aws.aws
- amazon.aws.ec2
- amazon.aws.tags
'''

EXAMPLES = r'''
Expand Down Expand Up @@ -359,7 +350,7 @@ def main():
source_db_snapshot_identifier=dict(aliases=['source_id', 'source_snapshot_id']),
wait=dict(type='bool', default=False),
wait_timeout=dict(type='int', default=300),
tags=dict(type='dict'),
tags=dict(type='dict', aliases=['resource_tags']),
purge_tags=dict(type='bool', default=True),
copy_tags=dict(type='bool', default=False),
source_region=dict(type='str'),
Expand Down

0 comments on commit 9ca5540

Please sign in to comment.