Skip to content

Very minor question about tags. #569

@ryanpeach

Description

@ryanpeach

I've seen this in a lot of aws documentation, and maybe you just want compatibility or something, but I'd just like to ask.

Why do we tag this way:

tags=[{'Key': 'example', 'Value': 'True'}, ...]

Instead of the much more pythonic and intuitive:

tags={'example': 'True'}

These could easily be supported with the following transformation:

if isinstance(tags, dict):
    tags=[{'Key': str(k), 'Value': str(v)} for k, v in tags.items()]

Sorry if this has been brought up before, feel free to close.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions