From 9c8774bdc86ae73da8a438515cc0a559ee47a482 Mon Sep 17 00:00:00 2001 From: Aditya Putta Date: Tue, 11 Feb 2025 17:20:19 -0600 Subject: [PATCH] Update api_gateway.py Update API Gateway tags with purge option - Set specific tags - Enabled tag purging to remove unspecified tags --- plugins/modules/api_gateway.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugins/modules/api_gateway.py b/plugins/modules/api_gateway.py index af443238738..3bdb03e223c 100644 --- a/plugins/modules/api_gateway.py +++ b/plugins/modules/api_gateway.py @@ -165,6 +165,16 @@ automation: ansible lookup: tags state: absent + +- name: Update API Gateway tags with purge_tags + community.aws.api_gateway: + api_id: "abc123def456" + name: "my-api" + state: present + purge_tags: true + tags: + Environment: Production + Project: WebServices """ RETURN = r"""