Documentation ¶
Overview ¶
Package tag defines one of the ways of filtering, it's an abstraction of Key/Value wich each specific Terraform Provider implements differently, by just having different names (tags, labels, metadata).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNameFromTag ¶
func GetNameFromTag(key string, srd *schema.ResourceData, fallback string) string
GetNameFromTag returns the 'tags.Name' from the src or the fallback if it's not defined. Also validates that the 'tags.Name' and fallback are valid, if not it generates a random one
func GetOtherTags ¶ added in v0.7.3
GetOtherTags used to check other possible tag attributes on resources
Types ¶
type Tag ¶
Tag it's an easy representation of a ec2.Filter for tags
func (Tag) ToEC2Filter ¶
ToEC2Filter transforms the Tag to a ec2.Filter to use on AWS filters
func (Tag) ToNeptuneFilter ¶ added in v0.7.1
ToNeptuneFilter transforms the Tag to a Neptune.Filter to use on AWS filters
func (Tag) ToRDSFilter ¶ added in v0.7.1
ToRDSFilter transforms the Tag to a rds.Filter to use on AWS filters