[v2] Add tagging support for the s3 mb command#10114
Conversation
| bucket_config = {} | ||
| bucket_tags = self._create_bucket_tags(parsed_args) | ||
|
|
||
| # Only set LocationConstraint when the region name is not us-east-1. |
There was a problem hiding this comment.
Tiny nit: double space in "when the region name" on this comment.
There was a problem hiding this comment.
Looks good otherwise! Approving 🏆
There was a problem hiding this comment.
Good catch, revised.
kdaily
left a comment
There was a problem hiding this comment.
Question: If the flag can only hold one tag, and you can specify it multiple times, then why is the name the plural tags instead of tag?
Do you have a strong preference for the singular form? I'm open to feedback on this. My reason for choosing plural is because the flag forms a list of tags (i.e. argparse represents the flag as a list). It may be a bit weird for it to be named |
|
Fair enough, not that strongly. However, the proposed syntax does deviate from other existing commands besides |
When thinking about this earlier, I found that --tags (plural) is overwhelmingly the convention across the CLI, though I don't feel too strongly about either in this case. |
|
Can you add a changelog entry and a new example of using it? |
I've added both in latest revision. |
Issues:
Description of changes:
aws s3 mbcommand.aws s3 mbcommand example using the new flag.Description of test:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.