tagger

troposphere_mate.core.tagger.get_tag_property_name_mapper()[source]

Note

fetch all AWS Object that has .Tags property.

troposphere_mate.core.tagger.get_tags_attr(resource)[source]

Quickly find the property name for tags using Cache.

Return type:str
exception troposphere_mate.core.tagger.ResourceDoesnotSupportTagsError[source]

A custom error class to indicate that an AWS resource doesn’t support tag.

troposphere_mate.core.tagger.update_tags_for_resource(resource, tags_dct, overwrite=False)[source]

apply tags to an aws resource. you can toggle on and off the tag value overwrites.

Parameters:tags_dct (Dict[str, Union[str,Callable]]) – value could be a string, cloudformation intrinsic function or a callable function that take only one argument which is the current resource, and returns a tag value.
troposphere_mate.core.tagger.update_tags_for_template(tpl, tags_dct, overwrite=False)[source]