Documentation
¶
Index ¶
- func EncodeTerraformVariable(secretVariableResource terraform.TerraformVariable) *hclwrite.Block
- 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 WriteImportComments(baseUrl string, resourceType string, tfResourceType string, ...) []*hclwrite.Token
- func WriteLifecycleAllAttribute(block *hclwrite.Block) *hclwrite.Block
- func WriteLifecycleAttribute(block *hclwrite.Block, attributes string) *hclwrite.Block
- func WriteLifecyclePostCondition(block *hclwrite.Block, errorMessage string, condition string)
- func WriteLifecyclePreventDestroyAttribute(block *hclwrite.Block)
- func WriteStepProperties(propertyName string, block *hclwrite.Block, properties map[string]string)
- func WriteUnquotedAttribute(block *hclwrite.Block, attrName string, attrValue string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeTerraformVariable ¶ added in v0.1.818
func EncodeTerraformVariable(secretVariableResource terraform.TerraformVariable) *hclwrite.Block
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 WriteImportComments ¶ added in v0.1.819
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 WriteLifecyclePreventDestroyAttribute ¶ added in v0.1.940
WriteLifecyclePreventDestroyAttribute writes a lifecycle block with prevent_destroy set to true
func WriteStepProperties ¶ added in v0.1.1566
WriteStepProperties is used to pretty print the properties of a v1 step, writing a multiline map for the properties, and extracting JSON blobs as maps for easy reading.
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.