Skip to main content

Initializers

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.NewFnGenerated() FnGenerated
NameTypeDescription

Static Functions

NameDescription
Absabs returns the absolute value of the given number. In other words, if the number is zero or positive then it is returned as-is, but if it is negative then it is multiplied by -1 to make it positive before returning it.
Abspathabspath takes a string containing a filesystem path and converts it to an absolute path. That is, if the path is not absolute, it will be joined with the current working directory.
Alltruealltrue returns true if all elements in a given collection are true or "true". It also returns true if the collection is empty.
Anytrueanytrue returns true if any element in a given collection is true or "true". It also returns false if the collection is empty.
Base64decodebase64decode takes a string containing a Base64 character sequence and returns the original string.
Base64encodebase64encode applies Base64 encoding to a string.
Base64gzipbase64gzip compresses a string with gzip and then encodes the result in Base64 encoding.
Base64sha256base64sha256 computes the SHA256 hash of a given string and encodes it with Base64. This is not equivalent to base64encode(sha256("test")) since sha256() returns hexadecimal representation.
Base64sha512base64sha512 computes the SHA512 hash of a given string and encodes it with Base64. This is not equivalent to base64encode(sha512("test")) since sha512() returns hexadecimal representation.
Basenamebasename takes a string containing a filesystem path and removes all except the last portion from it.
Cancan evaluates the given expression and returns a boolean value indicating whether the expression produced a result without any errors.
Ceilceil returns the closest whole number that is greater than or equal to the given value, which may be a fraction.
Chompchomp removes newline characters at the end of a string.
Chunklistchunklist splits a single list into fixed-size chunks, returning a list of lists.
Cidrhostcidrhost calculates a full host IP address for a given host number within a given IP network address prefix.
Cidrnetmaskcidrnetmask converts an IPv4 address prefix given in CIDR notation into a subnet mask address.
Cidrsubnetcidrsubnet calculates a subnet address within given IP network address prefix.
Cidrsubnetscidrsubnets calculates a sequence of consecutive IP address ranges within a particular CIDR prefix.
Coalescecoalesce takes any number of arguments and returns the first one that isn’t null or an empty string.
Coalescelistcoalescelist takes any number of list arguments and returns the first one that isn’t empty.
Compactcompact takes a list of strings and returns a new list with any empty string elements removed.
Concatconcat takes two or more lists and combines them into a single list.
Containscontains determines whether a given list or set contains a given single value as one of its elements.
Csvdecodecsvdecode decodes a string containing CSV-formatted data and produces a list of maps representing that data.
Dirnamedirname takes a string containing a filesystem path and removes the last portion from it.
Distinctdistinct takes a list and returns a new list with any duplicate elements removed.
Elementelement retrieves a single element from a list.
Endswithendswith takes two values: a string to check and a suffix string. The function returns true if the first string ends with that exact suffix.
Filefile reads the contents of a file at the given path and returns them as a string.
Filebase64filebase64 reads the contents of a file at the given path and returns them as a base64-encoded string.
Filebase64sha256filebase64sha256 is a variant of base64sha256 that hashes the contents of a given file rather than a literal string.
Filebase64sha512filebase64sha512 is a variant of base64sha512 that hashes the contents of a given file rather than a literal string.
Fileexistsfileexists determines whether a file exists at a given path.
Filemd5filemd5 is a variant of md5 that hashes the contents of a given file rather than a literal string.
Filesetfileset enumerates a set of regular file names given a path and pattern. The path is automatically removed from the resulting set of file names and any result still containing path separators always returns forward slash (/) as the path separator for cross-system compatibility.
Filesha1filesha1 is a variant of sha1 that hashes the contents of a given file rather than a literal string.
Filesha256filesha256 is a variant of sha256 that hashes the contents of a given file rather than a literal string.
Filesha512filesha512 is a variant of sha512 that hashes the contents of a given file rather than a literal string.
Flattenflatten takes a list and replaces any elements that are lists with a flattened sequence of the list contents.
Floorfloor returns the closest whole number that is less than or equal to the given value, which may be a fraction.
FormatThe format function produces a string by formatting a number of other values according to a specification string. It is similar to the printf function in C, and other similar functions in other programming languages.
Formatdateformatdate converts a timestamp into a different time format.
Formatlistformatlist produces a list of strings by formatting a number of other values according to a specification string.
Indentindent adds a given number of spaces to the beginnings of all but the first line in a given multi-line string.
Indexindex finds the element index for a given value in a list.
Jsondecodejsondecode interprets a given string as JSON, returning a representation of the result of decoding that string.
Jsonencodejsonencode encodes a given value to a string using JSON syntax.
Keyskeys takes a map and returns a list containing the keys from that map.
LengthOflength determines the length of a given list, map, or string.
Loglog returns the logarithm of a given number in a given base.
Lowerlower converts all cased letters in the given string to lowercase.
Matchkeysmatchkeys constructs a new list by taking a subset of elements from one list whose indexes match the corresponding indexes of values in another list.
Maxmax takes one or more numbers and returns the greatest number from the set.
Md5md5 computes the MD5 hash of a given string and encodes it with hexadecimal digits.
Mergemerge takes an arbitrary number of maps or objects, and returns a single map or object that contains a merged set of elements from all arguments.
Minmin takes one or more numbers and returns the smallest number from the set.
Nonsensitivenonsensitive takes a sensitive value and returns a copy of that value with the sensitive marking removed, thereby exposing the sensitive value.
Oneone takes a list, set, or tuple value with either zero or one elements. If the collection is empty, one returns null. Otherwise, one returns the first element. If there are two or more elements then one will return an error.
Parseintparseint parses the given string as a representation of an integer in the specified base and returns the resulting number. The base must be between 2 and 62 inclusive.
Pathexpandpathexpand takes a filesystem path that might begin with a ~ segment, and if so it replaces that segment with the current user’s home directory path.
Plantimestampplantimestamp returns a UTC timestamp string in RFC 3339 format, fixed to a constant time representing the time of the plan.
Powpow calculates an exponent, by raising its first argument to the power of the second argument.
Regexregex applies a regular expression to a string and returns the matching substrings.
Regexallregexall applies a regular expression to a string and returns a list of all matches.
Replacereplace searches a given string for another given substring, and replaces each occurrence with a given replacement string.
Reversereverse takes a sequence and produces a new sequence of the same length with all of the same elements as the given sequence but in reverse order.
Rsadecryptrsadecrypt decrypts an RSA-encrypted ciphertext, returning the corresponding cleartext.
Sensitivesensitive takes any value and returns a copy of it marked so that Terraform will treat it as sensitive, with the same meaning and behavior as for sensitive input variables.
SetintersectionThe setintersection function takes multiple sets and produces a single set containing only the elements that all of the given sets have in common. In other words, it computes the intersection of the sets.
SetproductThe setproduct function finds all of the possible combinations of elements from all of the given sets by computing the Cartesian product.
SetsubtractThe setsubtract function returns a new set containing the elements from the first set that are not present in the second set. In other words, it computes the relative complement of the second set.
SetunionThe setunion function takes multiple sets and produces a single set containing the elements from all of the given sets. In other words, it computes the union of the sets.
Sha1sha1 computes the SHA1 hash of a given string and encodes it with hexadecimal digits.
Sha256sha256 computes the SHA256 hash of a given string and encodes it with hexadecimal digits.
Sha512sha512 computes the SHA512 hash of a given string and encodes it with hexadecimal digits.
Signumsignum determines the sign of a number, returning a number between -1 and 1 to represent the sign.
Sliceslice extracts some consecutive elements from within a list.
Sortsort takes a list of strings and returns a new list with those strings sorted lexicographically.
Splitsplit produces a list by dividing a given string at all occurrences of a given separator.
Startswithstartswith takes two values: a string to check and a prefix string. The function returns true if the string begins with that exact prefix.
Strcontainsstrcontains takes two values: a string to check and an expected substring. The function returns true if the string has the substring contained within it.
Strrevstrrev reverses the characters in a string. Note that the characters are treated as Unicode characters (in technical terms, Unicode grapheme cluster boundaries are respected).
Substrsubstr extracts a substring from a given string by offset and (maximum) length.
Sumsum takes a list or set of numbers and returns the sum of those numbers.
Templatefiletemplatefile reads the file at the given path and renders its content as a template using a supplied set of template variables.
Textdecodebase64textdecodebase64 function decodes a string that was previously Base64-encoded, and then interprets the result as characters in a specified character encoding.
Textencodebase64textencodebase64 encodes the unicode characters in a given string using a specified character encoding, returning the result base64 encoded because Terraform language strings are always sequences of unicode characters.
Timeaddtimeadd adds a duration to a timestamp, returning a new timestamp.
Timecmptimecmp compares two timestamps and returns a number that represents the ordering of the instants those timestamps represent.
Timestamptimestamp returns a UTC timestamp string in RFC 3339 format.
Titletitle converts the first letter of each word in the given string to uppercase.
Tobooltobool converts its argument to a boolean value.
Tolisttolist converts its argument to a list value.
Tomaptomap converts its argument to a map value.
Tonumbertonumber converts its argument to a number value.
Tosettoset converts its argument to a set value.
Tostringtostring converts its argument to a string value.
Transposetranspose takes a map of lists of strings and swaps the keys and values to produce a new map of lists of strings.
Trimtrim removes the specified set of characters from the start and end of the given string.
Trimprefixtrimprefix removes the specified prefix from the start of the given string. If the string does not start with the prefix, the string is returned unchanged.
Trimspacetrimspace removes any space characters from the start and end of the given string.
Trimsuffixtrimsuffix removes the specified suffix from the end of the given string.
Trytry evaluates all of its argument expressions in turn and returns the result of the first one that does not produce any errors.
Upperupper converts all cased letters in the given string to uppercase.
Urlencodeurlencode applies URL encoding to a given string.
Uuiduuid generates a unique identifier string.
Uuidv5uuidv5 generates a name-based UUID, as described in RFC 4122 section 4.3, also known as a “version 5” UUID.
Valuesvalues takes a map and returns a list containing the values of the elements in that map.
Yamldecodeyamldecode parses a string as a subset of YAML, and produces a representation of its value.
Yamlencodeyamlencode encodes a given value to a string using YAML 1.2 block syntax.
Zipmapzipmap constructs a map from a list of keys and a corresponding list of values.

Abs

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Abs(num *f64) *f64
abs returns the absolute value of the given number. In other words, if the number is zero or positive then it is returned as-is, but if it is negative then it is multiplied by -1 to make it positive before returning it.

numRequired

  • Type: *f64

Abspath

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Abspath(path *string) *string
abspath takes a string containing a filesystem path and converts it to an absolute path. That is, if the path is not absolute, it will be joined with the current working directory.

pathRequired

  • Type: *string

Alltrue

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Alltrue(list *[]interface{}) IResolvable
alltrue returns true if all elements in a given collection are true or "true". It also returns true if the collection is empty.

listRequired

  • Type: *[]interface{}

Anytrue

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Anytrue(list *[]interface{}) IResolvable
anytrue returns true if any element in a given collection is true or "true". It also returns false if the collection is empty.

listRequired

  • Type: *[]interface{}

Base64decode

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Base64decode(str *string) *string
base64decode takes a string containing a Base64 character sequence and returns the original string.

strRequired

  • Type: *string

Base64encode

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Base64encode(str *string) *string
base64encode applies Base64 encoding to a string.

strRequired

  • Type: *string

Base64gzip

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Base64gzip(str *string) *string
base64gzip compresses a string with gzip and then encodes the result in Base64 encoding.

strRequired

  • Type: *string

Base64sha256

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Base64sha256(str *string) *string
base64sha256 computes the SHA256 hash of a given string and encodes it with Base64. This is not equivalent to base64encode(sha256("test")) since sha256() returns hexadecimal representation.

strRequired

  • Type: *string

Base64sha512

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Base64sha512(str *string) *string
base64sha512 computes the SHA512 hash of a given string and encodes it with Base64. This is not equivalent to base64encode(sha512("test")) since sha512() returns hexadecimal representation.

strRequired

  • Type: *string

Basename

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Basename(path *string) *string
basename takes a string containing a filesystem path and removes all except the last portion from it.

pathRequired

  • Type: *string

Can

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Can(expression interface{}) IResolvable
can evaluates the given expression and returns a boolean value indicating whether the expression produced a result without any errors.

expressionRequired

  • Type: interface{}

Ceil

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Ceil(num *f64) *f64
ceil returns the closest whole number that is greater than or equal to the given value, which may be a fraction.

numRequired

  • Type: *f64

Chomp

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Chomp(str *string) *string
chomp removes newline characters at the end of a string.

strRequired

  • Type: *string

Chunklist

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Chunklist(list *[]interface{}, size *f64) *[]*string
chunklist splits a single list into fixed-size chunks, returning a list of lists.

listRequired

  • Type: *[]interface{}

sizeRequired

  • Type: *f64

Cidrhost

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Cidrhost(prefix *string, hostnum *f64) *string
cidrhost calculates a full host IP address for a given host number within a given IP network address prefix.

prefixRequired

  • Type: *string

hostnumRequired

  • Type: *f64

Cidrnetmask

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Cidrnetmask(prefix *string) *string
cidrnetmask converts an IPv4 address prefix given in CIDR notation into a subnet mask address.

prefixRequired

  • Type: *string

Cidrsubnet

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Cidrsubnet(prefix *string, newbits *f64, netnum *f64) *string
cidrsubnet calculates a subnet address within given IP network address prefix.

prefixRequired

  • Type: *string

newbitsRequired

  • Type: *f64

netnumRequired

  • Type: *f64

Cidrsubnets

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Cidrsubnets(prefix *string, newbits *[]*f64) *[]*string
cidrsubnets calculates a sequence of consecutive IP address ranges within a particular CIDR prefix.

prefixRequired

  • Type: *string

newbitsRequired

  • Type: *[]*f64

Coalesce

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Coalesce(vals *[]interface{}) interface{}
coalesce takes any number of arguments and returns the first one that isn’t null or an empty string.

valsRequired

  • Type: *[]interface{}

Coalescelist

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Coalescelist(vals *[]interface{}) interface{}
coalescelist takes any number of list arguments and returns the first one that isn’t empty.

valsRequired

  • Type: *[]interface{}

Compact

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Compact(list *[]*string) *[]*string
compact takes a list of strings and returns a new list with any empty string elements removed.

listRequired

  • Type: *[]*string

Concat

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Concat(seqs *[]interface{}) interface{}
concat takes two or more lists and combines them into a single list.

seqsRequired

  • Type: *[]interface{}

Contains

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Contains(list interface{}, value interface{}) interface{}
contains determines whether a given list or set contains a given single value as one of its elements.

listRequired

  • Type: interface{}

valueRequired

  • Type: interface{}

Csvdecode

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Csvdecode(str *string) interface{}
csvdecode decodes a string containing CSV-formatted data and produces a list of maps representing that data.

strRequired

  • Type: *string

Dirname

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Dirname(path *string) *string
dirname takes a string containing a filesystem path and removes the last portion from it.

pathRequired

  • Type: *string

Distinct

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Distinct(list *[]interface{}) *[]*string
distinct takes a list and returns a new list with any duplicate elements removed.

listRequired

  • Type: *[]interface{}

Element

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Element(list interface{}, index *f64) interface{}
element retrieves a single element from a list.

listRequired

  • Type: interface{}

indexRequired

  • Type: *f64

Endswith

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Endswith(str *string, suffix *string) IResolvable
endswith takes two values: a string to check and a suffix string. The function returns true if the first string ends with that exact suffix.

strRequired

  • Type: *string

suffixRequired

  • Type: *string

File

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_File(path *string) *string
file reads the contents of a file at the given path and returns them as a string.

pathRequired

  • Type: *string

Filebase64

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Filebase64(path *string) *string
filebase64 reads the contents of a file at the given path and returns them as a base64-encoded string.

pathRequired

  • Type: *string

Filebase64sha256

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Filebase64sha256(path *string) *string
filebase64sha256 is a variant of base64sha256 that hashes the contents of a given file rather than a literal string.

pathRequired

  • Type: *string

Filebase64sha512

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Filebase64sha512(path *string) *string
filebase64sha512 is a variant of base64sha512 that hashes the contents of a given file rather than a literal string.

pathRequired

  • Type: *string

Fileexists

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Fileexists(path *string) IResolvable
fileexists determines whether a file exists at a given path.

pathRequired

  • Type: *string

Filemd5

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Filemd5(path *string) *string
filemd5 is a variant of md5 that hashes the contents of a given file rather than a literal string.

pathRequired

  • Type: *string

Fileset

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Fileset(path *string, pattern *string) *[]*string
fileset enumerates a set of regular file names given a path and pattern. The path is automatically removed from the resulting set of file names and any result still containing path separators always returns forward slash (/) as the path separator for cross-system compatibility.

pathRequired

  • Type: *string

patternRequired

  • Type: *string

Filesha1

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Filesha1(path *string) *string
filesha1 is a variant of sha1 that hashes the contents of a given file rather than a literal string.

pathRequired

  • Type: *string

Filesha256

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Filesha256(path *string) *string
filesha256 is a variant of sha256 that hashes the contents of a given file rather than a literal string.

pathRequired

  • Type: *string

Filesha512

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Filesha512(path *string) *string
filesha512 is a variant of sha512 that hashes the contents of a given file rather than a literal string.

pathRequired

  • Type: *string

Flatten

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Flatten(list interface{}) interface{}
flatten takes a list and replaces any elements that are lists with a flattened sequence of the list contents.

listRequired

  • Type: interface{}

Floor

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Floor(num *f64) *f64
floor returns the closest whole number that is less than or equal to the given value, which may be a fraction.

numRequired

  • Type: *f64

Format

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Format(format *string, args *[]interface{}) interface{}
The format function produces a string by formatting a number of other values according to a specification string. It is similar to the printf function in C, and other similar functions in other programming languages.

formatRequired

  • Type: *string

argsRequired

  • Type: *[]interface{}

Formatdate

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Formatdate(format *string, time *string) *string
formatdate converts a timestamp into a different time format.

formatRequired

  • Type: *string

timeRequired

  • Type: *string

Formatlist

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Formatlist(format *string, args *[]interface{}) interface{}
formatlist produces a list of strings by formatting a number of other values according to a specification string.

formatRequired

  • Type: *string

argsRequired

  • Type: *[]interface{}

Indent

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Indent(spaces *f64, str *string) *string
indent adds a given number of spaces to the beginnings of all but the first line in a given multi-line string.

spacesRequired

  • Type: *f64

strRequired

  • Type: *string

Index

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Index(list interface{}, value interface{}) interface{}
index finds the element index for a given value in a list.

listRequired

  • Type: interface{}

valueRequired

  • Type: interface{}

Jsondecode

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Jsondecode(str *string) interface{}
jsondecode interprets a given string as JSON, returning a representation of the result of decoding that string.

strRequired

  • Type: *string

Jsonencode

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Jsonencode(val interface{}) *string
jsonencode encodes a given value to a string using JSON syntax.

valRequired

  • Type: interface{}

Keys

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Keys(inputMap interface{}) interface{}
keys takes a map and returns a list containing the keys from that map.

inputMapRequired

  • Type: interface{}

LengthOf

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_LengthOf(value interface{}) *f64
length determines the length of a given list, map, or string.

valueRequired

  • Type: interface{}

Log

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Log(num *f64, base *f64) *f64
log returns the logarithm of a given number in a given base.

numRequired

  • Type: *f64

baseRequired

  • Type: *f64

Lower

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Lower(str *string) *string
lower converts all cased letters in the given string to lowercase.

strRequired

  • Type: *string

Matchkeys

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Matchkeys(values *[]interface{}, keys *[]interface{}, searchset *[]interface{}) *[]*string
matchkeys constructs a new list by taking a subset of elements from one list whose indexes match the corresponding indexes of values in another list.

valuesRequired

  • Type: *[]interface{}

keysRequired

  • Type: *[]interface{}

searchsetRequired

  • Type: *[]interface{}

Max

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Max(numbers *[]*f64) *f64
max takes one or more numbers and returns the greatest number from the set.

numbersRequired

  • Type: *[]*f64

Md5

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Md5(str *string) *string
md5 computes the MD5 hash of a given string and encodes it with hexadecimal digits.

strRequired

  • Type: *string

Merge

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Merge(maps *[]interface{}) interface{}
merge takes an arbitrary number of maps or objects, and returns a single map or object that contains a merged set of elements from all arguments.

mapsRequired

  • Type: *[]interface{}

Min

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Min(numbers *[]*f64) *f64
min takes one or more numbers and returns the smallest number from the set.

numbersRequired

  • Type: *[]*f64

Nonsensitive

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Nonsensitive(value interface{}) interface{}
nonsensitive takes a sensitive value and returns a copy of that value with the sensitive marking removed, thereby exposing the sensitive value.

valueRequired

  • Type: interface{}

One

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_One(list interface{}) interface{}
one takes a list, set, or tuple value with either zero or one elements. If the collection is empty, one returns null. Otherwise, one returns the first element. If there are two or more elements then one will return an error.

listRequired

  • Type: interface{}

Parseint

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Parseint(number interface{}, base *f64) interface{}
parseint parses the given string as a representation of an integer in the specified base and returns the resulting number. The base must be between 2 and 62 inclusive.

numberRequired

  • Type: interface{}

baseRequired

  • Type: *f64

Pathexpand

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Pathexpand(path *string) *string
pathexpand takes a filesystem path that might begin with a ~ segment, and if so it replaces that segment with the current user’s home directory path.

pathRequired

  • Type: *string

Plantimestamp

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Plantimestamp() *string
plantimestamp returns a UTC timestamp string in RFC 3339 format, fixed to a constant time representing the time of the plan.

Pow

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Pow(num *f64, power *f64) *f64
pow calculates an exponent, by raising its first argument to the power of the second argument.

numRequired

  • Type: *f64

powerRequired

  • Type: *f64

Regex

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Regex(pattern *string, str *string) interface{}
regex applies a regular expression to a string and returns the matching substrings.

patternRequired

  • Type: *string

strRequired

  • Type: *string

Regexall

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Regexall(pattern *string, str *string) *[]*string
regexall applies a regular expression to a string and returns a list of all matches.

patternRequired

  • Type: *string

strRequired

  • Type: *string

Replace

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Replace(str *string, substr *string, replace *string) *string
replace searches a given string for another given substring, and replaces each occurrence with a given replacement string.

strRequired

  • Type: *string

substrRequired

  • Type: *string

replaceRequired

  • Type: *string

Reverse

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Reverse(list interface{}) interface{}
reverse takes a sequence and produces a new sequence of the same length with all of the same elements as the given sequence but in reverse order.

listRequired

  • Type: interface{}

Rsadecrypt

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Rsadecrypt(ciphertext *string, privatekey *string) *string
rsadecrypt decrypts an RSA-encrypted ciphertext, returning the corresponding cleartext.

ciphertextRequired

  • Type: *string

privatekeyRequired

  • Type: *string

Sensitive

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Sensitive(value interface{}) interface{}
sensitive takes any value and returns a copy of it marked so that Terraform will treat it as sensitive, with the same meaning and behavior as for sensitive input variables.

valueRequired

  • Type: interface{}

Setintersection

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Setintersection(first_set *[]interface{}, other_sets *[]*[]interface{}) *[]*string
The setintersection function takes multiple sets and produces a single set containing only the elements that all of the given sets have in common. In other words, it computes the intersection of the sets.

first_setRequired

  • Type: *[]interface{}

other_setsRequired

  • Type: [][]interface{}

Setproduct

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Setproduct(sets *[]interface{}) interface{}
The setproduct function finds all of the possible combinations of elements from all of the given sets by computing the Cartesian product.

setsRequired

  • Type: *[]interface{}

Setsubtract

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Setsubtract(a *[]interface{}, b *[]interface{}) *[]*string
The setsubtract function returns a new set containing the elements from the first set that are not present in the second set. In other words, it computes the relative complement of the second set.

aRequired

  • Type: *[]interface{}

bRequired

  • Type: *[]interface{}

Setunion

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Setunion(first_set *[]interface{}, other_sets *[]*[]interface{}) *[]*string
The setunion function takes multiple sets and produces a single set containing the elements from all of the given sets. In other words, it computes the union of the sets.

first_setRequired

  • Type: *[]interface{}

other_setsRequired

  • Type: [][]interface{}

Sha1

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Sha1(str *string) *string
sha1 computes the SHA1 hash of a given string and encodes it with hexadecimal digits.

strRequired

  • Type: *string

Sha256

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Sha256(str *string) *string
sha256 computes the SHA256 hash of a given string and encodes it with hexadecimal digits.

strRequired

  • Type: *string

Sha512

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Sha512(str *string) *string
sha512 computes the SHA512 hash of a given string and encodes it with hexadecimal digits.

strRequired

  • Type: *string

Signum

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Signum(num *f64) *f64
signum determines the sign of a number, returning a number between -1 and 1 to represent the sign.

numRequired

  • Type: *f64

Slice

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Slice(list interface{}, start_index *f64, end_index *f64) interface{}
slice extracts some consecutive elements from within a list.

listRequired

  • Type: interface{}

start_indexRequired

  • Type: *f64

end_indexRequired

  • Type: *f64

Sort

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Sort(list *[]*string) *[]*string
sort takes a list of strings and returns a new list with those strings sorted lexicographically.

listRequired

  • Type: *[]*string

Split

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Split(separator *string, str *string) *[]*string
split produces a list by dividing a given string at all occurrences of a given separator.

separatorRequired

  • Type: *string

strRequired

  • Type: *string

Startswith

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Startswith(str *string, prefix *string) IResolvable
startswith takes two values: a string to check and a prefix string. The function returns true if the string begins with that exact prefix.

strRequired

  • Type: *string

prefixRequired

  • Type: *string

Strcontains

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Strcontains(str *string, substr *string) IResolvable
strcontains takes two values: a string to check and an expected substring. The function returns true if the string has the substring contained within it.

strRequired

  • Type: *string

substrRequired

  • Type: *string

Strrev

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Strrev(str *string) *string
strrev reverses the characters in a string. Note that the characters are treated as Unicode characters (in technical terms, Unicode grapheme cluster boundaries are respected).

strRequired

  • Type: *string

Substr

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Substr(str *string, offset *f64, length *f64) *string
substr extracts a substring from a given string by offset and (maximum) length.

strRequired

  • Type: *string

offsetRequired

  • Type: *f64

lengthRequired

  • Type: *f64

Sum

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Sum(list interface{}) interface{}
sum takes a list or set of numbers and returns the sum of those numbers.

listRequired

  • Type: interface{}

Templatefile

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Templatefile(path *string, vars interface{}) interface{}
templatefile reads the file at the given path and renders its content as a template using a supplied set of template variables.

pathRequired

  • Type: *string

varsRequired

  • Type: interface{}

Textdecodebase64

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Textdecodebase64(source *string, encoding *string) *string
textdecodebase64 function decodes a string that was previously Base64-encoded, and then interprets the result as characters in a specified character encoding.

sourceRequired

  • Type: *string

encodingRequired

  • Type: *string

Textencodebase64

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Textencodebase64(str *string, encoding *string) *string
textencodebase64 encodes the unicode characters in a given string using a specified character encoding, returning the result base64 encoded because Terraform language strings are always sequences of unicode characters.

strRequired

  • Type: *string

encodingRequired

  • Type: *string

Timeadd

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Timeadd(timestamp *string, duration *string) *string
timeadd adds a duration to a timestamp, returning a new timestamp.

timestampRequired

  • Type: *string

durationRequired

  • Type: *string

Timecmp

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Timecmp(timestamp_a *string, timestamp_b *string) *f64
timecmp compares two timestamps and returns a number that represents the ordering of the instants those timestamps represent.

timestamp_aRequired

  • Type: *string

timestamp_bRequired

  • Type: *string

Timestamp

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Timestamp() *string
timestamp returns a UTC timestamp string in RFC 3339 format.

Title

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Title(str *string) *string
title converts the first letter of each word in the given string to uppercase.

strRequired

  • Type: *string

Tobool

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Tobool(v interface{}) IResolvable
tobool converts its argument to a boolean value.

vRequired

  • Type: interface{}

Tolist

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Tolist(v interface{}) *[]*string
tolist converts its argument to a list value.

vRequired

  • Type: interface{}

Tomap

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Tomap(v interface{}) interface{}
tomap converts its argument to a map value.

vRequired

  • Type: interface{}

Tonumber

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Tonumber(v interface{}) *f64
tonumber converts its argument to a number value.

vRequired

  • Type: interface{}

Toset

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Toset(v interface{}) *[]*string
toset converts its argument to a set value.

vRequired

  • Type: interface{}

Tostring

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Tostring(v interface{}) *string
tostring converts its argument to a string value.

vRequired

  • Type: interface{}

Transpose

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Transpose(values interface{}) interface{}
transpose takes a map of lists of strings and swaps the keys and values to produce a new map of lists of strings.

valuesRequired

  • Type: interface{}

Trim

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Trim(str *string, cutset *string) *string
trim removes the specified set of characters from the start and end of the given string.

strRequired

  • Type: *string

cutsetRequired

  • Type: *string

Trimprefix

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Trimprefix(str *string, prefix *string) *string
trimprefix removes the specified prefix from the start of the given string. If the string does not start with the prefix, the string is returned unchanged.

strRequired

  • Type: *string

prefixRequired

  • Type: *string

Trimspace

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Trimspace(str *string) *string
trimspace removes any space characters from the start and end of the given string.

strRequired

  • Type: *string

Trimsuffix

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Trimsuffix(str *string, suffix *string) *string
trimsuffix removes the specified suffix from the end of the given string.

strRequired

  • Type: *string

suffixRequired

  • Type: *string

Try

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Try(expressions *[]interface{}) interface{}
try evaluates all of its argument expressions in turn and returns the result of the first one that does not produce any errors.

expressionsRequired

  • Type: *[]interface{}

Upper

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Upper(str *string) *string
upper converts all cased letters in the given string to uppercase.

strRequired

  • Type: *string

Urlencode

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Urlencode(str *string) *string
urlencode applies URL encoding to a given string.

strRequired

  • Type: *string

Uuid

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Uuid() *string
uuid generates a unique identifier string.

Uuidv5

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Uuidv5(namespace *string, name *string) *string
uuidv5 generates a name-based UUID, as described in RFC 4122 section 4.3, also known as a “version 5” UUID.

namespaceRequired

  • Type: *string

nameRequired

  • Type: *string

Values

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Values(mapping interface{}) interface{}
values takes a map and returns a list containing the values of the elements in that map.

mappingRequired

  • Type: interface{}

Yamldecode

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Yamldecode(src *string) interface{}
yamldecode parses a string as a subset of YAML, and produces a representation of its value.

srcRequired

  • Type: *string

Yamlencode

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Yamlencode(value interface{}) *string
yamlencode encodes a given value to a string using YAML 1.2 block syntax.

valueRequired

  • Type: interface{}

Zipmap

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.FnGenerated_Zipmap(keys *[]*string, values interface{}) interface{}
zipmap constructs a map from a list of keys and a corresponding list of values.

keysRequired

  • Type: *[]*string

valuesRequired

  • Type: interface{}