Documentation
¶
Index ¶
- func IsInterpolation(value string) bool
- func RemoveId(value string) string
- func RemoveInterpolation(value string) string
- func WriteActionProperties(block *hclwrite.Block, stepName string, actionName string, ...)
- func WriteLifecycleAllAttribute(block *hclwrite.Block)
- func WriteLifecycleAttribute(block *hclwrite.Block, attributes string)
- func WriteLifecyclePostCondition(block *hclwrite.Block, errorMessage string, condition string)
- func WriteUnquotedAttribute(block *hclwrite.Block, attrName string, attrValue string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInterpolation ¶
func RemoveInterpolation ¶
RemoveInterpolation removes the Terraform 0.x style interpolations to produce a Terraform 1.x style "naked" reference.
func WriteActionProperties ¶
func WriteActionProperties(block *hclwrite.Block, stepName string, actionName string, properties map[string]string)
WriteActionProperties is used to pretty print the properties of an action, writing a multiline map for the properties, and extracting JSON blobs as maps for easy reading.
func WriteLifecycleAllAttribute ¶
WriteLifecycleAllAttribute writes a lifecycle block with ignore_changes set to all
func WriteLifecycleAttribute ¶ added in v0.1.690
WriteLifecycleAttribute writes a lifecycle block with ignore_changes set to the supplied list
func WriteLifecyclePostCondition ¶ added in v0.1.467
WriteLifecyclePostCondition writes a lifecycle block with a postcondition
func WriteUnquotedAttribute ¶
WriteUnquotedAttribute uses the example from https://github.com/hashicorp/hcl/issues/442 to add an unquoted attribute to a block
Types ¶
This section is empty.