From b351af59d8d46b9be783cae5eaa7ed72149b17c3 Mon Sep 17 00:00:00 2001 From: Mark Chappell Date: Sat, 4 Jun 2022 17:39:27 +0200 Subject: [PATCH] Tagging fragment - Move simplest cases over to the docs fragment. (#1198) Tagging fragment - networkfirewall - Move over to the docs fragment SUMMARY The networkfirewall tests are slow enough to be flakey, split this off. ISSUE TYPE Feature Pull Request COMPONENT NAME networkfirewall ADDITIONAL INFORMATION The change itself was approved on #1182 --- plugins/modules/networkfirewall.py | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/plugins/modules/networkfirewall.py b/plugins/modules/networkfirewall.py index fefb565fef5..9e9b02d0edc 100644 --- a/plugins/modules/networkfirewall.py +++ b/plugins/modules/networkfirewall.py @@ -40,14 +40,6 @@ - A description for the firewall. required: false type: str - tags: - description: - - A dictionary representing the tags associated with the firewall. - - 'For example C({"Example Tag": "some example value"})' - - Unless I(purge_tags=False) all other tags will be removed from the - firewall. - type: dict - required: false delete_protection: description: - When I(delete_protection=True), the firewall is protected from deletion. @@ -69,14 +61,6 @@ - Defaults to C(false) when not provided on creation. type: bool required: false - purge_tags: - description: - - If I(purge_tags=true) and I(tags) is defined existing tags will be - purged from the resource to match exactly what is defined by the - I(tags) parameter. - type: bool - required: false - default: True wait: description: - On creation, whether to wait for the firewall to reach the C(READY) @@ -117,10 +101,12 @@ required: false aliases: ['firewall_policy_arn'] -author: Mark Chappell (@tremble) +author: + - Mark Chappell (@tremble) extends_documentation_fragment: - amazon.aws.aws - amazon.aws.ec2 + - amazon.aws.tags ''' EXAMPLES = ''' @@ -296,7 +282,7 @@ def main(): arn=dict(type='str', required=False, aliases=['firewall_arn']), state=dict(type='str', required=False, default='present', choices=['present', 'absent']), description=dict(type='str', required=False), - tags=dict(type='dict', required=False), + tags=dict(type='dict', required=False, aliases=['resource_tags']), purge_tags=dict(type='bool', required=False, default=True), wait=dict(type='bool', required=False, default=True), wait_timeout=dict(type='int', required=False),