airflow.providers.amazon.aws.utils.tags
¶
Module Contents¶
Functions¶
|
If given a dictionary, formats it as an array of objects with a key and a value field to be passed to boto |
- airflow.providers.amazon.aws.utils.tags.format_tags(source, *, key_label='Key', value_label='Value')[source]¶
If given a dictionary, formats it as an array of objects with a key and a value field to be passed to boto calls that expect this format. Else, assumes that it’s already in the right format and returns it as is. We do not validate the format here since it’s done by boto anyway, and the error would not be clearer if thrown from here.