Methods

stdlib_aws_straighten_tagsΒΆ

stdlib_aws_straighten_tags(h:Hash)

Convert "Tags" array in the given AWS resource (typically returned by AWS CLI) into Hash.
Source: stdlib.ngs:3466

Example

t = {"Tags": [{"Key": "k", "Value": "v"},{"Key": "k2", "Value": "v2"}]}  # Not very convenient, is it?
t.stdlib_aws_straighten_tags()
t  # {Tags={k=v, k2=v2}}