package
1.19.0
Repository: https://github.com/akamai/cli-terraform.git
Documentation: pkg.go.dev

# Functions

CheckFiles verifies if all given files doesn't exist in filesystem.
CreateTFFilename creates full tf file path.
DecorateWithMultilineHandlingFunctions adds necessary functions to escape multiline fields in exported terraform files.
Escape is correcting values stored in terraform fields by escaping special characters.
EscapeName takes a string and makes it suitable for a tf resource instance name USAGE EXAMPLE: resource "akamai_appsec_waf_mode" "{{ escapename $policyName }}" {.
EscapeQuotedStringLit returns escaped terraform string literal https://www.terraform.io/docs/language/expressions/strings.html#escape-sequences This function is based on https://github.com/hashicorp/hcl/blob/c7ee8b78101c33b4dfed2641d78cf5e9651eabb8/hclwrite/generate.go#L207-L246.
Float64Ptr returns the address of the float64.
GetEOT generates unique delimiter word for heredoc, by default it is EOT.
Int64Ptr returns the address of the int64.
IntPtr returns the address of the int.
IsMultiline returns true if the input string contains at least one new line character.
NoNewlineAtTheEnd returns true if there is no new line character at the end of the string.
RemoveLastNewline removes the new line character if this is the last character in the string.
StringPtr returns the address of the string.
TerraformName is used to convert rule name into valid name of the exported data source Current implementation is not covering all the cases defined in the terraform specification https://github.com/hashicorp/hcl/blob/main/hclsyntax/spec.md#identifiers and http://unicode.org/reports/tr31/ , but only a reasonable subset.
ToJSON returns a JSON representation of the given object USAGE EXAMPLE: "bypassNetworkLists": {{ tojson .BypassNetworkLists }},.
ToList returns a list as a comma delimited string USAGE EXAMPLE: security_policy_ids = [ {{ tolist .Siem.FirewallPolicyIds }} ].
ToSnakeCase returns name using snake case notation - SomeName -> some_name.

# Variables

PolicyAsHCL means that content of the policy will be generated using HCL instead of JSON file.