From 9563679e04ac158e894c6c91d2d8a652d573ea1c Mon Sep 17 00:00:00 2001 From: Mark Chappell Date: Wed, 1 Jun 2022 15:03:38 +0200 Subject: [PATCH] Tagging fragment - Move simplest cases over to the docs fragment. (#1182) Tagging fragment - Move simplest cases over to the docs fragment. Depends-On: ansible-collections/amazon.aws#844 SUMMARY Migrate simplest cases over to the new docs fragment and add resource_tags as an alias to tags. ISSUE TYPE Docs Pull Request Feature Pull Request COMPONENT NAME changelogs/fragments/1182-tagging.yml plugins/modules/aws_glue_job.py plugins/modules/aws_msk_cluster.py plugins/modules/aws_secret.py plugins/modules/aws_step_functions_state_machine.py plugins/modules/dynamodb_table.py plugins/modules/ec2_eip.py plugins/modules/ec2_transit_gateway_vpc_attachment.py plugins/modules/ec2_vpc_peer.py plugins/modules/elb_application_lb.py plugins/modules/elb_network_lb.py plugins/modules/iam_role.py plugins/modules/iam_user.py plugins/modules/networkfirewall.py plugins/modules/networkfirewall_policy.py plugins/modules/networkfirewall_rule_group.py plugins/modules/rds_cluster.py plugins/modules/rds_instance.py plugins/modules/rds_instance_snapshot.py plugins/modules/rds_option_group.py plugins/modules/rds_subnet_group.py plugins/modules/redshift.py ADDITIONAL INFORMATION Reviewed-by: Alina Buzachis This commit was initially merged in https://github.com/ansible-collections/community.aws See: https://github.com/ansible-collections/community.aws/commit/b11ffaed2b3450f6fee9721878090da404401021 --- .../ec2_transit_gateway_vpc_attachment.py | 22 ++++--------------- 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/plugins/modules/ec2_transit_gateway_vpc_attachment.py b/plugins/modules/ec2_transit_gateway_vpc_attachment.py index 13518fdbe2a..7f2fc2988ba 100644 --- a/plugins/modules/ec2_transit_gateway_vpc_attachment.py +++ b/plugins/modules/ec2_transit_gateway_vpc_attachment.py @@ -81,22 +81,6 @@ for the life of a flow to send traffic to. type: bool required: false - tags: - description: - - A dictionary representing the tags associated with the Transit Gateway - attachment. - - 'For example C({"Example Tag": "some example value"})' - - Unless I(purge_tags=False) all other tags will be removed from the - attachment. - type: dict - required: false - purge_tags: - description: - - If I(purge_tags=true), existing tags will be purged from the resource - to match exactly what is defined by I(tags) parameter. - type: bool - required: false - default: true wait: description: - Whether to wait for the Transit Gateway attachment to reach the @@ -111,10 +95,12 @@ - Defaults to 600 seconds. type: int required: false -author: "Mark Chappell (@tremble)" +author: + - "Mark Chappell (@tremble)" extends_documentation_fragment: - amazon.aws.aws - amazon.aws.ec2 + - amazon.aws.tags ''' EXAMPLES = ''' @@ -246,7 +232,7 @@ def main(): name=dict(type='str', required=False), subnets=dict(type='list', elements='str', required=False), purge_subnets=dict(type='bool', required=False, default=True), - tags=dict(type='dict', required=False), + tags=dict(type='dict', required=False, aliases=['resource_tags']), purge_tags=dict(type='bool', required=False, default=True), appliance_mode_support=dict(type='bool', required=False), dns_support=dict(type='bool', required=False),