delete tags when their resource is deleted
This commit is contained in:
parent
414f8086b0
commit
c95254a284
3 changed files with 21 additions and 1 deletions
|
|
@ -12,6 +12,9 @@ class TaggingService:
|
|||
result.append({self.keyName: k, self.valueName: v})
|
||||
return {self.tagName: result}
|
||||
|
||||
def delete_all_tags_for_resource(self, arn):
|
||||
del self.tags[arn]
|
||||
|
||||
def tag_resource(self, arn, tags):
|
||||
if arn not in self.tags:
|
||||
self.tags[arn] = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue