Skip to main content

Initializers

using Io.Cdktn;

new Fn();
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.
Bcryptbcrypt computes a hash of the given string using the Blowfish cipher, returning a string in the Modular Crypt Format usually expected in the shadow password file on many Unix systems.
Conditionalhttps://developer.hashicorp.com/terraform/language/expressions/conditionals A conditional expression uses the value of a boolean expression to select one of two values.
Joinjoin produces a string by concatenating together all elements of a given list of strings with the given delimiter.
Lookuplookup retrieves the value of a single element from a map, given its key. If the given key does not exist, the given default value is returned instead.
LookupNestedreturns a property access expression that accesses the property at the given path in the given inputMap.
Rangerange generates a list of numbers using a start value, a limit value, and a step value.
RawStringUse this function to wrap a string and escape it properly for the use in Terraform This is only needed in certain scenarios (e.g., if you have unescaped double quotes in the string).

Abs

using Io.Cdktn;

Fn.Abs(double Num);
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: double

Abspath

using Io.Cdktn;

Fn.Abspath(string Path);
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

using Io.Cdktn;

Fn.Alltrue(object[] List);
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: object[]

Anytrue

using Io.Cdktn;

Fn.Anytrue(object[] List);
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: object[]

Base64decode

using Io.Cdktn;

Fn.Base64decode(string Str);
base64decode takes a string containing a Base64 character sequence and returns the original string.

StrRequired

  • Type: string

Base64encode

using Io.Cdktn;

Fn.Base64encode(string Str);
base64encode applies Base64 encoding to a string.

StrRequired

  • Type: string

Base64gzip

using Io.Cdktn;

Fn.Base64gzip(string Str);
base64gzip compresses a string with gzip and then encodes the result in Base64 encoding.

StrRequired

  • Type: string

Base64sha256

using Io.Cdktn;

Fn.Base64sha256(string Str);
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

using Io.Cdktn;

Fn.Base64sha512(string Str);
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

using Io.Cdktn;

Fn.Basename(string Path);
basename takes a string containing a filesystem path and removes all except the last portion from it.

PathRequired

  • Type: string

Can

using Io.Cdktn;

Fn.Can(object Expression);
can evaluates the given expression and returns a boolean value indicating whether the expression produced a result without any errors.

ExpressionRequired

  • Type: object

Ceil

using Io.Cdktn;

Fn.Ceil(double Num);
ceil returns the closest whole number that is greater than or equal to the given value, which may be a fraction.

NumRequired

  • Type: double

Chomp

using Io.Cdktn;

Fn.Chomp(string Str);
chomp removes newline characters at the end of a string.

StrRequired

  • Type: string

Chunklist

using Io.Cdktn;

Fn.Chunklist(object[] List, double Size);
chunklist splits a single list into fixed-size chunks, returning a list of lists.

ListRequired

  • Type: object[]

SizeRequired

  • Type: double

Cidrhost

using Io.Cdktn;

Fn.Cidrhost(string Prefix, double Hostnum);
cidrhost calculates a full host IP address for a given host number within a given IP network address prefix.

PrefixRequired

  • Type: string

HostnumRequired

  • Type: double

Cidrnetmask

using Io.Cdktn;

Fn.Cidrnetmask(string Prefix);
cidrnetmask converts an IPv4 address prefix given in CIDR notation into a subnet mask address.

PrefixRequired

  • Type: string

Cidrsubnet

using Io.Cdktn;

Fn.Cidrsubnet(string Prefix, double Newbits, double Netnum);
cidrsubnet calculates a subnet address within given IP network address prefix.

PrefixRequired

  • Type: string

NewbitsRequired

  • Type: double

NetnumRequired

  • Type: double

Cidrsubnets

using Io.Cdktn;

Fn.Cidrsubnets(string Prefix, double[] Newbits);
cidrsubnets calculates a sequence of consecutive IP address ranges within a particular CIDR prefix.

PrefixRequired

  • Type: string

NewbitsRequired

  • Type: double[]

Coalesce

using Io.Cdktn;

Fn.Coalesce(object[] Vals);
coalesce takes any number of arguments and returns the first one that isn’t null or an empty string.

ValsRequired

  • Type: object[]

Coalescelist

using Io.Cdktn;

Fn.Coalescelist(object[] Vals);
coalescelist takes any number of list arguments and returns the first one that isn’t empty.

ValsRequired

  • Type: object[]

Compact

using Io.Cdktn;

Fn.Compact(string[] List);
compact takes a list of strings and returns a new list with any empty string elements removed.

ListRequired

  • Type: string[]

Concat

using Io.Cdktn;

Fn.Concat(object[] Seqs);
concat takes two or more lists and combines them into a single list.

SeqsRequired

  • Type: object[]

Contains

using Io.Cdktn;

Fn.Contains(object List, object Value);
contains determines whether a given list or set contains a given single value as one of its elements.

ListRequired

  • Type: object

ValueRequired

  • Type: object

Csvdecode

using Io.Cdktn;

Fn.Csvdecode(string Str);
csvdecode decodes a string containing CSV-formatted data and produces a list of maps representing that data.

StrRequired

  • Type: string

Dirname

using Io.Cdktn;

Fn.Dirname(string Path);
dirname takes a string containing a filesystem path and removes the last portion from it.

PathRequired

  • Type: string

Distinct

using Io.Cdktn;

Fn.Distinct(object[] List);
distinct takes a list and returns a new list with any duplicate elements removed.

ListRequired

  • Type: object[]

Element

using Io.Cdktn;

Fn.Element(object List, double Index);
element retrieves a single element from a list.

ListRequired

  • Type: object

IndexRequired

  • Type: double

Endswith

using Io.Cdktn;

Fn.Endswith(string Str, string Suffix);
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

using Io.Cdktn;

Fn.File(string Path);
file reads the contents of a file at the given path and returns them as a string.

PathRequired

  • Type: string

Filebase64

using Io.Cdktn;

Fn.Filebase64(string Path);
filebase64 reads the contents of a file at the given path and returns them as a base64-encoded string.

PathRequired

  • Type: string

Filebase64sha256

using Io.Cdktn;

Fn.Filebase64sha256(string Path);
filebase64sha256 is a variant of base64sha256 that hashes the contents of a given file rather than a literal string.

PathRequired

  • Type: string

Filebase64sha512

using Io.Cdktn;

Fn.Filebase64sha512(string Path);
filebase64sha512 is a variant of base64sha512 that hashes the contents of a given file rather than a literal string.

PathRequired

  • Type: string

Fileexists

using Io.Cdktn;

Fn.Fileexists(string Path);
fileexists determines whether a file exists at a given path.

PathRequired

  • Type: string

Filemd5

using Io.Cdktn;

Fn.Filemd5(string Path);
filemd5 is a variant of md5 that hashes the contents of a given file rather than a literal string.

PathRequired

  • Type: string

Fileset

using Io.Cdktn;

Fn.Fileset(string Path, string Pattern);
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

using Io.Cdktn;

Fn.Filesha1(string Path);
filesha1 is a variant of sha1 that hashes the contents of a given file rather than a literal string.

PathRequired

  • Type: string

Filesha256

using Io.Cdktn;

Fn.Filesha256(string Path);
filesha256 is a variant of sha256 that hashes the contents of a given file rather than a literal string.

PathRequired

  • Type: string

Filesha512

using Io.Cdktn;

Fn.Filesha512(string Path);
filesha512 is a variant of sha512 that hashes the contents of a given file rather than a literal string.

PathRequired

  • Type: string

Flatten

using Io.Cdktn;

Fn.Flatten(object List);
flatten takes a list and replaces any elements that are lists with a flattened sequence of the list contents.

ListRequired

  • Type: object

Floor

using Io.Cdktn;

Fn.Floor(double Num);
floor returns the closest whole number that is less than or equal to the given value, which may be a fraction.

NumRequired

  • Type: double

Format

using Io.Cdktn;

Fn.Format(string Format, object[] Args);
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: object[]

Formatdate

using Io.Cdktn;

Fn.Formatdate(string Format, string Time);
formatdate converts a timestamp into a different time format.

FormatRequired

  • Type: string

TimeRequired

  • Type: string

Formatlist

using Io.Cdktn;

Fn.Formatlist(string Format, object[] Args);
formatlist produces a list of strings by formatting a number of other values according to a specification string.

FormatRequired

  • Type: string

ArgsRequired

  • Type: object[]

Indent

using Io.Cdktn;

Fn.Indent(double Spaces, string Str);
indent adds a given number of spaces to the beginnings of all but the first line in a given multi-line string.

SpacesRequired

  • Type: double

StrRequired

  • Type: string

Index

using Io.Cdktn;

Fn.Index(object List, object Value);
index finds the element index for a given value in a list.

ListRequired

  • Type: object

ValueRequired

  • Type: object

Jsondecode

using Io.Cdktn;

Fn.Jsondecode(string Str);
jsondecode interprets a given string as JSON, returning a representation of the result of decoding that string.

StrRequired

  • Type: string

Jsonencode

using Io.Cdktn;

Fn.Jsonencode(object Val);
jsonencode encodes a given value to a string using JSON syntax.

ValRequired

  • Type: object

Keys

using Io.Cdktn;

Fn.Keys(object InputMap);
keys takes a map and returns a list containing the keys from that map.

InputMapRequired

  • Type: object

LengthOf

using Io.Cdktn;

Fn.LengthOf(object Value);
length determines the length of a given list, map, or string.

ValueRequired

  • Type: object

Log

using Io.Cdktn;

Fn.Log(double Num, double Base);
log returns the logarithm of a given number in a given base.

NumRequired

  • Type: double

BaseRequired

  • Type: double

Lower

using Io.Cdktn;

Fn.Lower(string Str);
lower converts all cased letters in the given string to lowercase.

StrRequired

  • Type: string

Matchkeys

using Io.Cdktn;

Fn.Matchkeys(object[] Values, object[] Keys, object[] Searchset);
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: object[]

KeysRequired

  • Type: object[]

SearchsetRequired

  • Type: object[]

Max

using Io.Cdktn;

Fn.Max(double[] Numbers);
max takes one or more numbers and returns the greatest number from the set.

NumbersRequired

  • Type: double[]

Md5

using Io.Cdktn;

Fn.Md5(string Str);
md5 computes the MD5 hash of a given string and encodes it with hexadecimal digits.

StrRequired

  • Type: string

Merge

using Io.Cdktn;

Fn.Merge(object[] Maps);
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: object[]

Min

using Io.Cdktn;

Fn.Min(double[] Numbers);
min takes one or more numbers and returns the smallest number from the set.

NumbersRequired

  • Type: double[]

Nonsensitive

using Io.Cdktn;

Fn.Nonsensitive(object Value);
nonsensitive takes a sensitive value and returns a copy of that value with the sensitive marking removed, thereby exposing the sensitive value.

ValueRequired

  • Type: object

One

using Io.Cdktn;

Fn.One(object List);
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: object

Parseint

using Io.Cdktn;

Fn.Parseint(object Number, double Base);
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: object

BaseRequired

  • Type: double

Pathexpand

using Io.Cdktn;

Fn.Pathexpand(string Path);
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

using Io.Cdktn;

Fn.Plantimestamp();
plantimestamp returns a UTC timestamp string in RFC 3339 format, fixed to a constant time representing the time of the plan.

Pow

using Io.Cdktn;

Fn.Pow(double Num, double Power);
pow calculates an exponent, by raising its first argument to the power of the second argument.

NumRequired

  • Type: double

PowerRequired

  • Type: double

Regex

using Io.Cdktn;

Fn.Regex(string Pattern, string Str);
regex applies a regular expression to a string and returns the matching substrings.

PatternRequired

  • Type: string

StrRequired

  • Type: string

Regexall

using Io.Cdktn;

Fn.Regexall(string Pattern, string Str);
regexall applies a regular expression to a string and returns a list of all matches.

PatternRequired

  • Type: string

StrRequired

  • Type: string

Replace

using Io.Cdktn;

Fn.Replace(string Str, string Substr, string Replace);
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

using Io.Cdktn;

Fn.Reverse(object List);
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: object

Rsadecrypt

using Io.Cdktn;

Fn.Rsadecrypt(string Ciphertext, string Privatekey);
rsadecrypt decrypts an RSA-encrypted ciphertext, returning the corresponding cleartext.

CiphertextRequired

  • Type: string

PrivatekeyRequired

  • Type: string

Sensitive

using Io.Cdktn;

Fn.Sensitive(object Value);
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: object

Setintersection

using Io.Cdktn;

Fn.Setintersection(object[] FirstSet, object[][] OtherSets);
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.

FirstSetRequired

  • Type: object[]

OtherSetsRequired

  • Type: object[][]

Setproduct

using Io.Cdktn;

Fn.Setproduct(object[] Sets);
The setproduct function finds all of the possible combinations of elements from all of the given sets by computing the Cartesian product.

SetsRequired

  • Type: object[]

Setsubtract

using Io.Cdktn;

Fn.Setsubtract(object[] A, object[] B);
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: object[]

BRequired

  • Type: object[]

Setunion

using Io.Cdktn;

Fn.Setunion(object[] FirstSet, object[][] OtherSets);
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.

FirstSetRequired

  • Type: object[]

OtherSetsRequired

  • Type: object[][]

Sha1

using Io.Cdktn;

Fn.Sha1(string Str);
sha1 computes the SHA1 hash of a given string and encodes it with hexadecimal digits.

StrRequired

  • Type: string

Sha256

using Io.Cdktn;

Fn.Sha256(string Str);
sha256 computes the SHA256 hash of a given string and encodes it with hexadecimal digits.

StrRequired

  • Type: string

Sha512

using Io.Cdktn;

Fn.Sha512(string Str);
sha512 computes the SHA512 hash of a given string and encodes it with hexadecimal digits.

StrRequired

  • Type: string

Signum

using Io.Cdktn;

Fn.Signum(double Num);
signum determines the sign of a number, returning a number between -1 and 1 to represent the sign.

NumRequired

  • Type: double

Slice

using Io.Cdktn;

Fn.Slice(object List, double StartIndex, double EndIndex);
slice extracts some consecutive elements from within a list.

ListRequired

  • Type: object

StartIndexRequired

  • Type: double

EndIndexRequired

  • Type: double

Sort

using Io.Cdktn;

Fn.Sort(string[] List);
sort takes a list of strings and returns a new list with those strings sorted lexicographically.

ListRequired

  • Type: string[]

Split

using Io.Cdktn;

Fn.Split(string Separator, string Str);
split produces a list by dividing a given string at all occurrences of a given separator.

SeparatorRequired

  • Type: string

StrRequired

  • Type: string

Startswith

using Io.Cdktn;

Fn.Startswith(string Str, string Prefix);
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

using Io.Cdktn;

Fn.Strcontains(string Str, string Substr);
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

using Io.Cdktn;

Fn.Strrev(string Str);
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

using Io.Cdktn;

Fn.Substr(string Str, double Offset, double Length);
substr extracts a substring from a given string by offset and (maximum) length.

StrRequired

  • Type: string

OffsetRequired

  • Type: double

LengthRequired

  • Type: double

Sum

using Io.Cdktn;

Fn.Sum(object List);
sum takes a list or set of numbers and returns the sum of those numbers.

ListRequired

  • Type: object

Templatefile

using Io.Cdktn;

Fn.Templatefile(string Path, object Vars);
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: object

Textdecodebase64

using Io.Cdktn;

Fn.Textdecodebase64(string Source, string Encoding);
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

using Io.Cdktn;

Fn.Textencodebase64(string Str, string Encoding);
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

using Io.Cdktn;

Fn.Timeadd(string Timestamp, string Duration);
timeadd adds a duration to a timestamp, returning a new timestamp.

TimestampRequired

  • Type: string

DurationRequired

  • Type: string

Timecmp

using Io.Cdktn;

Fn.Timecmp(string TimestampA, string TimestampB);
timecmp compares two timestamps and returns a number that represents the ordering of the instants those timestamps represent.

TimestampARequired

  • Type: string

TimestampBRequired

  • Type: string

Timestamp

using Io.Cdktn;

Fn.Timestamp();
timestamp returns a UTC timestamp string in RFC 3339 format.

Title

using Io.Cdktn;

Fn.Title(string Str);
title converts the first letter of each word in the given string to uppercase.

StrRequired

  • Type: string

Tobool

using Io.Cdktn;

Fn.Tobool(object V);
tobool converts its argument to a boolean value.

VRequired

  • Type: object

Tolist

using Io.Cdktn;

Fn.Tolist(object V);
tolist converts its argument to a list value.

VRequired

  • Type: object

Tomap

using Io.Cdktn;

Fn.Tomap(object V);
tomap converts its argument to a map value.

VRequired

  • Type: object

Tonumber

using Io.Cdktn;

Fn.Tonumber(object V);
tonumber converts its argument to a number value.

VRequired

  • Type: object

Toset

using Io.Cdktn;

Fn.Toset(object V);
toset converts its argument to a set value.

VRequired

  • Type: object

Tostring

using Io.Cdktn;

Fn.Tostring(object V);
tostring converts its argument to a string value.

VRequired

  • Type: object

Transpose

using Io.Cdktn;

Fn.Transpose(object Values);
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: object

Trim

using Io.Cdktn;

Fn.Trim(string Str, string Cutset);
trim removes the specified set of characters from the start and end of the given string.

StrRequired

  • Type: string

CutsetRequired

  • Type: string

Trimprefix

using Io.Cdktn;

Fn.Trimprefix(string Str, string Prefix);
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

using Io.Cdktn;

Fn.Trimspace(string Str);
trimspace removes any space characters from the start and end of the given string.

StrRequired

  • Type: string

Trimsuffix

using Io.Cdktn;

Fn.Trimsuffix(string Str, string Suffix);
trimsuffix removes the specified suffix from the end of the given string.

StrRequired

  • Type: string

SuffixRequired

  • Type: string

Try

using Io.Cdktn;

Fn.Try(object[] Expressions);
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: object[]

Upper

using Io.Cdktn;

Fn.Upper(string Str);
upper converts all cased letters in the given string to uppercase.

StrRequired

  • Type: string

Urlencode

using Io.Cdktn;

Fn.Urlencode(string Str);
urlencode applies URL encoding to a given string.

StrRequired

  • Type: string

Uuid

using Io.Cdktn;

Fn.Uuid();
uuid generates a unique identifier string.

Uuidv5

using Io.Cdktn;

Fn.Uuidv5(string Namespace, string Name);
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

using Io.Cdktn;

Fn.Values(object Mapping);
values takes a map and returns a list containing the values of the elements in that map.

MappingRequired

  • Type: object

Yamldecode

using Io.Cdktn;

Fn.Yamldecode(string Src);
yamldecode parses a string as a subset of YAML, and produces a representation of its value.

SrcRequired

  • Type: string

Yamlencode

using Io.Cdktn;

Fn.Yamlencode(object Value);
yamlencode encodes a given value to a string using YAML 1.2 block syntax.

ValueRequired

  • Type: object

Zipmap

using Io.Cdktn;

Fn.Zipmap(string[] Keys, object Values);
zipmap constructs a map from a list of keys and a corresponding list of values.

KeysRequired

  • Type: string[]

ValuesRequired

  • Type: object

Bcrypt

using Io.Cdktn;

Fn.Bcrypt(string Str, double Cost = null);
bcrypt computes a hash of the given string using the Blowfish cipher, returning a string in the Modular Crypt Format usually expected in the shadow password file on many Unix systems.

StrRequired

  • Type: string

CostOptional

  • Type: double

Conditional

using Io.Cdktn;

Fn.Conditional(object Condition, object TrueValue, object FalseValue);
https://developer.hashicorp.com/terraform/language/expressions/conditionals A conditional expression uses the value of a boolean expression to select one of two values.

ConditionRequired

  • Type: object

TrueValueRequired

  • Type: object

FalseValueRequired

  • Type: object

Join

using Io.Cdktn;

Fn.Join(string Separator, string[] List);
join produces a string by concatenating together all elements of a given list of strings with the given delimiter.

SeparatorRequired

  • Type: string

ListRequired

  • Type: string[]

Lookup

using Io.Cdktn;

Fn.Lookup(object InputMap, string Key, object DefaultValue = null);
lookup retrieves the value of a single element from a map, given its key. If the given key does not exist, the given default value is returned instead.

InputMapRequired

  • Type: object

KeyRequired

  • Type: string

DefaultValueOptional

  • Type: object

LookupNested

using Io.Cdktn;

Fn.LookupNested(object InputMap, object[] Path);
returns a property access expression that accesses the property at the given path in the given inputMap. For example lookupNested(x, [“a”, “b”, “c”]) will return a Terraform expression like x[“a”][“b”][“c”]

InputMapRequired

  • Type: object

PathRequired

  • Type: object[]

Range

using Io.Cdktn;

Fn.Range(double Start, double Limit, double Step = null);
range generates a list of numbers using a start value, a limit value, and a step value.

StartRequired

  • Type: double

LimitRequired

  • Type: double

StepOptional

  • Type: double

RawString

using Io.Cdktn;

Fn.RawString(string Str);
Use this function to wrap a string and escape it properly for the use in Terraform This is only needed in certain scenarios (e.g., if you have unescaped double quotes in the string).

StrRequired

  • Type: string