Package com.hashicorp.cdktf
Class FnGenerated
java.lang.Object
software.amazon.jsii.JsiiObject
com.hashicorp.cdktf.FnGenerated
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
- Direct Known Subclasses:
Fn
@Generated(value="jsii-pacmak/1.93.0 (build 1706ca5)",
date="2024-01-15T15:38:00.990Z")
@Stability(Experimental)
public class FnGenerated
extends software.amazon.jsii.JsiiObject
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFnGenerated(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedFnGenerated(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic Number(experimental)abs} returns the absolute value of the given number.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/absstatic String(experimental)abspath} takes a string containing a filesystem path and converts it to an absolute path.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/abspathstatic IResolvable(experimental)alltrue} returns `true` if all elements in a given collection are `true` or `"true"`.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/alltruestatic IResolvable(experimental)anytrue} returns `true` if any element in a given collection is `true` or `"true"`.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/anytruestatic Stringbase64decode(String str) (experimental)base64decode} takes a string containing a Base64 character sequence and returns the original string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/base64decodestatic Stringbase64encode(String str) (experimental)base64encode} applies Base64 encoding to a string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/base64encodestatic Stringbase64gzip(String str) (experimental)base64gzip} compresses a string with gzip and then encodes the result in Base64 encoding.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/base64gzipstatic Stringbase64sha256(String str) (experimental)base64sha256} computes the SHA256 hash of a given string and encodes it with Base64.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/base64sha256static Stringbase64sha512(String str) (experimental)base64sha512} computes the SHA512 hash of a given string and encodes it with Base64.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/base64sha512static String(experimental)basename} takes a string containing a filesystem path and removes all except the last portion from it.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/basenamestatic IResolvable(experimental)can} evaluates the given expression and returns a boolean value indicating whether the expression produced a result without any errors.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/canstatic Number(experimental)ceil} returns the closest whole number that is greater than or equal to the given value, which may be a fraction.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/ceilstatic String(experimental)chomp} removes newline characters at the end of a string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/chomp(experimental)chunklist} splits a single list into fixed-size chunks, returning a list of lists.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/chunkliststatic String(experimental)cidrhost} calculates a full host IP address for a given host number within a given IP network address prefix.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/cidrhoststatic Stringcidrnetmask(String prefix) (experimental)cidrnetmask} converts an IPv4 address prefix given in CIDR notation into a subnet mask address.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/cidrnetmaskstatic Stringcidrsubnet(String prefix, Number newbits, Number netnum) (experimental)cidrsubnet} calculates a subnet address within given IP network address prefix.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/cidrsubnetcidrsubnets(String prefix, List<? extends Number> newbits) (experimental)cidrsubnets} calculates a sequence of consecutive IP address ranges within a particular CIDR prefix.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/cidrsubnetsstatic Object(experimental)coalesce} takes any number of arguments and returns the first one that isn't null or an empty string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/coalescestatic Objectcoalescelist(List<? extends Object> vals) (experimental)coalescelist} takes any number of list arguments and returns the first one that isn't empty.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/coalescelist(experimental)compact} takes a list of strings and returns a new list with any empty string elements removed.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/compactstatic Object(experimental)concat} takes two or more lists and combines them into a single list.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/concatstatic Object(experimental)contains} determines whether a given list or set contains a given single value as one of its elements.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/containsstatic Object(experimental)csvdecode} decodes a string containing CSV-formatted data and produces a list of maps representing that data.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/csvdecodestatic String(experimental)dirname} takes a string containing a filesystem path and removes the last portion from it.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/dirname(experimental)distinct} takes a list and returns a new list with any duplicate elements removed.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/distinctstatic Object(experimental)try} evaluates all of its argument expressions in turn and returns the result of the first one that does not produce any errors.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/trystatic Object(experimental)element} retrieves a single element from a list.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/elementstatic IResolvable(experimental)endswith} takes two values: a string to check and a suffix string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/endswithstatic String(experimental)file} reads the contents of a file at the given path and returns them as a string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/filestatic Stringfilebase64(String path) (experimental)filebase64} reads the contents of a file at the given path and returns them as a base64-encoded string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/filebase64static Stringfilebase64sha256(String path) (experimental)filebase64sha256} is a variant of `base64sha256` that hashes the contents of a given file rather than a literal string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/filebase64sha256static Stringfilebase64sha512(String path) (experimental)filebase64sha512} is a variant of `base64sha512` that hashes the contents of a given file rather than a literal string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/filebase64sha512static IResolvablefileexists(String path) (experimental)fileexists} determines whether a file exists at a given path.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/fileexistsstatic String(experimental)filemd5} is a variant of `md5` that hashes the contents of a given file rather than a literal string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/filemd5(experimental)fileset} enumerates a set of regular file names given a path and pattern.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/filesetstatic String(experimental)filesha1} is a variant of `sha1` that hashes the contents of a given file rather than a literal string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/filesha1static Stringfilesha256(String path) (experimental)filesha256} is a variant of `sha256` that hashes the contents of a given file rather than a literal string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/filesha256static Stringfilesha512(String path) (experimental)filesha512} is a variant of `sha512` that hashes the contents of a given file rather than a literal string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/filesha512static Object(experimental)flatten} takes a list and replaces any elements that are lists with a flattened sequence of the list contents.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/flattenstatic Number(experimental)floor} returns the closest whole number that is less than or equal to the given value, which may be a fraction.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/floorstatic Object(experimental) Theformat} function produces a string by formatting a number of other values according to a specification string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/formatstatic Stringformatdate(String format, String time) (experimental)formatdate} converts a timestamp into a different time format.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/formatdatestatic Objectformatlist(String format, List<? extends Object> args) (experimental)formatlist} produces a list of strings by formatting a number of other values according to a specification string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/formatliststatic String(experimental)indent} adds a given number of spaces to the beginnings of all but the first line in a given multi-line string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/indentstatic Object(experimental)index} finds the element index for a given value in a list.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/indexstatic Objectjsondecode(String str) (experimental)jsondecode} interprets a given string as JSON, returning a representation of the result of decoding that string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/jsondecodestatic Stringjsonencode(Object val) (experimental)jsonencode} encodes a given value to a string using JSON syntax.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/jsonencodestatic Object(experimental)keys} takes a map and returns a list containing the keys from that map.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/keysstatic Number(experimental)length} determines the length of a given list, map, or string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/lengthstatic Number(experimental)log} returns the logarithm of a given number in a given base.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/logstatic String(experimental)lower} converts all cased letters in the given string to lowercase.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/lowermatchkeys(List<? extends Object> values, List<? extends Object> keys, List<? extends Object> searchset) (experimental)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.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/matchkeysstatic Number(experimental)max} takes one or more numbers and returns the greatest number from the set.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/maxstatic String(experimental)md5} computes the MD5 hash of a given string and encodes it with hexadecimal digits.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/md5static Object(experimental)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.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/mergestatic Number(experimental)min} takes one or more numbers and returns the smallest number from the set.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/minstatic Objectnonsensitive(Object value) (experimental)nonsensitive} takes a sensitive value and returns a copy of that value with the sensitive marking removed, thereby exposing the sensitive value.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/nonsensitivestatic Object(experimental)one} takes a list, set, or tuple value with either zero or one elements.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/onestatic Object(experimental)parseint} parses the given string as a representation of an integer in the specified base and returns the resulting number.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/parseintstatic Stringpathexpand(String path) (experimental)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.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/pathexpandstatic String(experimental)plantimestamp} returns a UTC timestamp string in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, fixed to a constant time representing the time of the plan.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/plantimestampstatic Number(experimental)pow} calculates an exponent, by raising its first argument to the power of the second argument.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/powstatic Object(experimental)regex} applies a [regular expression](https://en.wikipedia.org/wiki/Regular_expression) to a string and returns the matching substrings.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/regex(experimental)regexall} applies a [regular expression](https://en.wikipedia.org/wiki/Regular_expression) to a string and returns a list of all matches.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/regexallstatic String(experimental)replace} searches a given string for another given substring, and replaces each occurrence with a given replacement string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/replacestatic Object(experimental)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.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/reversestatic Stringrsadecrypt(String ciphertext, String privatekey) (experimental)rsadecrypt} decrypts an RSA-encrypted ciphertext, returning the corresponding cleartext.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/rsadecryptstatic Object(experimental)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](/terraform/language/values/variables#suppressing-values-in-cli-output).invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/sensitivesetintersection(List<? extends Object> first_set, List<? extends List<? extends Object>> other_sets) (experimental) Thesetintersection} function takes multiple sets and produces a single set containing only the elements that all of the given sets have in common.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/setintersectionstatic Objectsetproduct(List<? extends Object> sets) (experimental) Thesetproduct} function finds all of the possible combinations of elements from all of the given sets by computing the [Cartesian product](https://en.wikipedia.org/wiki/Cartesian_product).invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/setproductsetsubtract(List<? extends Object> a, List<? extends Object> b) (experimental) Thesetsubtract} function returns a new set containing the elements from the first set that are not present in the second set.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/setsubtract(experimental) Thesetunion} function takes multiple sets and produces a single set containing the elements from all of the given sets.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/setunionstatic String(experimental)sha1} computes the SHA1 hash of a given string and encodes it with hexadecimal digits.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/sha1static String(experimental)sha256} computes the SHA256 hash of a given string and encodes it with hexadecimal digits.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/sha256static String(experimental)sha512} computes the SHA512 hash of a given string and encodes it with hexadecimal digits.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/sha512static Number(experimental)signum} determines the sign of a number, returning a number between -1 and 1 to represent the sign.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/signumstatic Object(experimental)slice} extracts some consecutive elements from within a list.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/slice(experimental)sort} takes a list of strings and returns a new list with those strings sorted lexicographically.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/sort(experimental)split} produces a list by dividing a given string at all occurrences of a given separator.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/splitstatic IResolvablestartswith(String str, String prefix) (experimental)startswith} takes two values: a string to check and a prefix string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/startswithstatic IResolvablestrcontains(String str, String substr) (experimental)strcontains} takes two values: a string to check and an expected substring.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/strcontainsstatic String(experimental)strrev} reverses the characters in a string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/strrevstatic String(experimental)substr} extracts a substring from a given string by offset and (maximum) length.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/substrstatic Object(experimental)sum} takes a list or set of numbers and returns the sum of those numbers.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/sumstatic Objecttemplatefile(String path, Object vars) (experimental)templatefile} reads the file at the given path and renders its content as a template using a supplied set of template variables.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/templatefilestatic Stringtextdecodebase64(String source, String encoding) (experimental)textdecodebase64} function decodes a string that was previously Base64-encoded, and then interprets the result as characters in a specified character encoding.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/textdecodebase64static Stringtextencodebase64(String str, String encoding) (experimental)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.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/textencodebase64static String(experimental)timeadd} adds a duration to a timestamp, returning a new timestamp.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/timeaddstatic Number(experimental)timecmp} compares two timestamps and returns a number that represents the ordering of the instants those timestamps represent.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/timecmpstatic String(experimental)timestamp} returns a UTC timestamp string in [RFC 3339](https://tools.ietf.org/html/rfc3339) format.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/timestampstatic String(experimental)title} converts the first letter of each word in the given string to uppercase.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/titlestatic IResolvable(experimental)tobool} converts its argument to a boolean value.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/tobool(experimental)tolist} converts its argument to a list value.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/toliststatic Object(experimental)tomap} converts its argument to a map value.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/tomapstatic Number(experimental)tonumber} converts its argument to a number value.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/tonumber(experimental)toset} converts its argument to a set value.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/tosetstatic String(experimental)tostring} converts its argument to a string value.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/tostringstatic Object(experimental)transpose} takes a map of lists of strings and swaps the keys and values to produce a new map of lists of strings.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/transposestatic String(experimental)trim} removes the specified set of characters from the start and end of the given string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/trimstatic Stringtrimprefix(String str, String prefix) (experimental)trimprefix} removes the specified prefix from the start of the given string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/trimprefixstatic String(experimental)trimspace} removes any space characters from the start and end of the given string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/trimspacestatic Stringtrimsuffix(String str, String suffix) (experimental)trimsuffix} removes the specified suffix from the end of the given string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/trimsuffixstatic String(experimental)upper} converts all cased letters in the given string to uppercase.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/upperstatic String(experimental)urlencode} applies URL encoding to a given string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/urlencodestatic Stringuuid()(experimental)uuid} generates a unique identifier string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/uuidstatic String(experimental)uuidv5} generates a _name-based_ UUID, as described in [RFC 4122 section 4.3](https://tools.ietf.org/html/rfc4122#section-4.3), also known as a "version 5" UUID.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/uuidv5static Object(experimental)values} takes a map and returns a list containing the values of the elements in that map.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/valuesstatic Objectyamldecode(String src) (experimental)yamldecode} parses a string as a subset of YAML, and produces a representation of its value.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/yamldecodestatic Stringyamlencode(Object value) (experimental)yamlencode} encodes a given value to a string using [YAML 1.2](https://yaml.org/spec/1.2/spec.html) block syntax.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/yamlencodestatic Object(experimental)zipmap} constructs a map from a list of keys and a corresponding list of values.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/zipmapMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
FnGenerated
protected FnGenerated(software.amazon.jsii.JsiiObjectRef objRef) -
FnGenerated
protected FnGenerated(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
FnGenerated
@Stability(Experimental) public FnGenerated()
-
-
Method Details
-
abs
(experimental)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.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/abs- Parameters:
num- This parameter is required.
-
abspath
(experimental)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.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/abspath- Parameters:
path- This parameter is required.
-
alltrue
@Stability(Experimental) @NotNull public static IResolvable alltrue(@NotNull List<? extends Object> list) (experimental)alltrue} returns `true` if all elements in a given collection are `true` or `"true"`. It also returns `true` if the collection is empty.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/alltrue- Parameters:
list- This parameter is required.
-
anytrue
@Stability(Experimental) @NotNull public static IResolvable anytrue(@NotNull List<? extends Object> list) (experimental)anytrue} returns `true` if any element in a given collection is `true` or `"true"`. It also returns `false` if the collection is empty.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/anytrue- Parameters:
list- This parameter is required.
-
base64decode
(experimental)base64decode} takes a string containing a Base64 character sequence and returns the original string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/base64decode- Parameters:
str- This parameter is required.
-
base64encode
(experimental)base64encode} applies Base64 encoding to a string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/base64encode- Parameters:
str- This parameter is required.
-
base64gzip
(experimental)base64gzip} compresses a string with gzip and then encodes the result in Base64 encoding.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/base64gzip- Parameters:
str- This parameter is required.
-
base64sha256
(experimental)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.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/base64sha256- Parameters:
str- This parameter is required.
-
base64sha512
(experimental)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.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/base64sha512- Parameters:
str- This parameter is required.
-
basename
(experimental)basename} takes a string containing a filesystem path and removes all except the last portion from it.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/basename- Parameters:
path- This parameter is required.
-
can
(experimental)can} evaluates the given expression and returns a boolean value indicating whether the expression produced a result without any errors.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/can- Parameters:
expression- This parameter is required.
-
ceil
(experimental)ceil} returns the closest whole number that is greater than or equal to the given value, which may be a fraction.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/ceil- Parameters:
num- This parameter is required.
-
chomp
(experimental)chomp} removes newline characters at the end of a string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/chomp- Parameters:
str- This parameter is required.
-
chunklist
@Stability(Experimental) @NotNull public static List<String> chunklist(@NotNull List<? extends Object> list, @NotNull Number size) (experimental)chunklist} splits a single list into fixed-size chunks, returning a list of lists.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/chunklist- Parameters:
list- This parameter is required.size- This parameter is required.
-
cidrhost
@Stability(Experimental) @NotNull public static String cidrhost(@NotNull String prefix, @NotNull Number hostnum) (experimental)cidrhost} calculates a full host IP address for a given host number within a given IP network address prefix.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/cidrhost- Parameters:
prefix- This parameter is required.hostnum- This parameter is required.
-
cidrnetmask
(experimental)cidrnetmask} converts an IPv4 address prefix given in CIDR notation into a subnet mask address.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/cidrnetmask- Parameters:
prefix- This parameter is required.
-
cidrsubnet
@Stability(Experimental) @NotNull public static String cidrsubnet(@NotNull String prefix, @NotNull Number newbits, @NotNull Number netnum) (experimental)cidrsubnet} calculates a subnet address within given IP network address prefix.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/cidrsubnet- Parameters:
prefix- This parameter is required.newbits- This parameter is required.netnum- This parameter is required.
-
cidrsubnets
@Stability(Experimental) @NotNull public static List<String> cidrsubnets(@NotNull String prefix, @NotNull List<? extends Number> newbits) (experimental)cidrsubnets} calculates a sequence of consecutive IP address ranges within a particular CIDR prefix.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/cidrsubnets- Parameters:
prefix- This parameter is required.newbits- This parameter is required.
-
coalesce
@Stability(Experimental) @NotNull public static Object coalesce(@NotNull List<? extends Object> vals) (experimental)coalesce} takes any number of arguments and returns the first one that isn't null or an empty string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/coalesce- Parameters:
vals- This parameter is required.
-
coalescelist
@Stability(Experimental) @NotNull public static Object coalescelist(@NotNull List<? extends Object> vals) (experimental)coalescelist} takes any number of list arguments and returns the first one that isn't empty.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/coalescelist- Parameters:
vals- This parameter is required.
-
compact
(experimental)compact} takes a list of strings and returns a new list with any empty string elements removed.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/compact- Parameters:
list- This parameter is required.
-
concat
(experimental)concat} takes two or more lists and combines them into a single list.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/concat- Parameters:
seqs- This parameter is required.
-
contains
@Stability(Experimental) @NotNull public static Object contains(@NotNull Object list, @NotNull Object value) (experimental)contains} determines whether a given list or set contains a given single value as one of its elements.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/contains- Parameters:
list- This parameter is required.value- This parameter is required.
-
csvdecode
(experimental)csvdecode} decodes a string containing CSV-formatted data and produces a list of maps representing that data.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/csvdecode- Parameters:
str- This parameter is required.
-
dirname
(experimental)dirname} takes a string containing a filesystem path and removes the last portion from it.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/dirname- Parameters:
path- This parameter is required.
-
distinct
@Stability(Experimental) @NotNull public static List<String> distinct(@NotNull List<? extends Object> list) (experimental)distinct} takes a list and returns a new list with any duplicate elements removed.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/distinct- Parameters:
list- This parameter is required.
-
element
@Stability(Experimental) @NotNull public static Object element(@NotNull Object list, @NotNull Number index) (experimental)element} retrieves a single element from a list.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/element- Parameters:
list- This parameter is required.index- This parameter is required.
-
endswith
@Stability(Experimental) @NotNull public static IResolvable endswith(@NotNull String str, @NotNull String suffix) (experimental)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.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/endswith- Parameters:
str- This parameter is required.suffix- This parameter is required.
-
file
(experimental)file} reads the contents of a file at the given path and returns them as a string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/file- Parameters:
path- This parameter is required.
-
filebase64
(experimental)filebase64} reads the contents of a file at the given path and returns them as a base64-encoded string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/filebase64- Parameters:
path- This parameter is required.
-
filebase64sha256
(experimental)filebase64sha256} is a variant of `base64sha256` that hashes the contents of a given file rather than a literal string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/filebase64sha256- Parameters:
path- This parameter is required.
-
filebase64sha512
(experimental)filebase64sha512} is a variant of `base64sha512` that hashes the contents of a given file rather than a literal string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/filebase64sha512- Parameters:
path- This parameter is required.
-
fileexists
(experimental)fileexists} determines whether a file exists at a given path.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/fileexists- Parameters:
path- This parameter is required.
-
filemd5
(experimental)filemd5} is a variant of `md5` that hashes the contents of a given file rather than a literal string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/filemd5- Parameters:
path- This parameter is required.
-
fileset
@Stability(Experimental) @NotNull public static List<String> fileset(@NotNull String path, @NotNull String pattern) (experimental)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.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/fileset- Parameters:
path- This parameter is required.pattern- This parameter is required.
-
filesha1
(experimental)filesha1} is a variant of `sha1` that hashes the contents of a given file rather than a literal string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/filesha1- Parameters:
path- This parameter is required.
-
filesha256
(experimental)filesha256} is a variant of `sha256` that hashes the contents of a given file rather than a literal string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/filesha256- Parameters:
path- This parameter is required.
-
filesha512
(experimental)filesha512} is a variant of `sha512` that hashes the contents of a given file rather than a literal string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/filesha512- Parameters:
path- This parameter is required.
-
flatten
(experimental)flatten} takes a list and replaces any elements that are lists with a flattened sequence of the list contents.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/flatten- Parameters:
list- This parameter is required.
-
floor
(experimental)floor} returns the closest whole number that is less than or equal to the given value, which may be a fraction.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/floor- Parameters:
num- This parameter is required.
-
format
@Stability(Experimental) @NotNull public static Object format(@NotNull String format, @NotNull List<? extends Object> args) (experimental) Theformat} 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.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/format- Parameters:
format- This parameter is required.args- This parameter is required.
-
formatdate
@Stability(Experimental) @NotNull public static String formatdate(@NotNull String format, @NotNull String time) (experimental)formatdate} converts a timestamp into a different time format.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/formatdate- Parameters:
format- This parameter is required.time- This parameter is required.
-
formatlist
@Stability(Experimental) @NotNull public static Object formatlist(@NotNull String format, @NotNull List<? extends Object> args) (experimental)formatlist} produces a list of strings by formatting a number of other values according to a specification string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/formatlist- Parameters:
format- This parameter is required.args- This parameter is required.
-
indent
@Stability(Experimental) @NotNull public static String indent(@NotNull Number spaces, @NotNull String str) (experimental)indent} adds a given number of spaces to the beginnings of all but the first line in a given multi-line string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/indent- Parameters:
spaces- This parameter is required.str- This parameter is required.
-
index
@Stability(Experimental) @NotNull public static Object index(@NotNull Object list, @NotNull Object value) (experimental)index} finds the element index for a given value in a list.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/index- Parameters:
list- This parameter is required.value- This parameter is required.
-
jsondecode
(experimental)jsondecode} interprets a given string as JSON, returning a representation of the result of decoding that string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/jsondecode- Parameters:
str- This parameter is required.
-
jsonencode
(experimental)jsonencode} encodes a given value to a string using JSON syntax.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/jsonencode- Parameters:
val- This parameter is required.
-
keys
(experimental)keys} takes a map and returns a list containing the keys from that map.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/keys- Parameters:
inputMap- This parameter is required.
-
lengthOf
(experimental)length} determines the length of a given list, map, or string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/length- Parameters:
value- This parameter is required.
-
log
@Stability(Experimental) @NotNull public static Number log(@NotNull Number num, @NotNull Number base) (experimental)log} returns the logarithm of a given number in a given base.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/log- Parameters:
num- This parameter is required.base- This parameter is required.
-
lower
(experimental)lower} converts all cased letters in the given string to lowercase.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/lower- Parameters:
str- This parameter is required.
-
matchkeys
@Stability(Experimental) @NotNull public static List<String> matchkeys(@NotNull List<? extends Object> values, @NotNull List<? extends Object> keys, @NotNull List<? extends Object> searchset) (experimental)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.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/matchkeys- Parameters:
values- This parameter is required.keys- This parameter is required.searchset- This parameter is required.
-
max
(experimental)max} takes one or more numbers and returns the greatest number from the set.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/max- Parameters:
numbers- This parameter is required.
-
md5
(experimental)md5} computes the MD5 hash of a given string and encodes it with hexadecimal digits.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/md5- Parameters:
str- This parameter is required.
-
merge
(experimental)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.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/merge- Parameters:
maps- This parameter is required.
-
min
(experimental)min} takes one or more numbers and returns the smallest number from the set.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/min- Parameters:
numbers- This parameter is required.
-
nonsensitive
(experimental)nonsensitive} takes a sensitive value and returns a copy of that value with the sensitive marking removed, thereby exposing the sensitive value.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/nonsensitive- Parameters:
value- This parameter is required.
-
one
(experimental)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.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/one- Parameters:
list- This parameter is required.
-
parseint
@Stability(Experimental) @NotNull public static Object parseint(@NotNull Object number, @NotNull Number base) (experimental)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.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/parseint- Parameters:
number- This parameter is required.base- This parameter is required.
-
pathexpand
(experimental)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.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/pathexpand- Parameters:
path- This parameter is required.
-
plantimestamp
(experimental)plantimestamp} returns a UTC timestamp string in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, fixed to a constant time representing the time of the plan.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/plantimestamp -
pow
@Stability(Experimental) @NotNull public static Number pow(@NotNull Number num, @NotNull Number power) (experimental)pow} calculates an exponent, by raising its first argument to the power of the second argument.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/pow- Parameters:
num- This parameter is required.power- This parameter is required.
-
regex
@Stability(Experimental) @NotNull public static Object regex(@NotNull String pattern, @NotNull String str) (experimental)regex} applies a [regular expression](https://en.wikipedia.org/wiki/Regular_expression) to a string and returns the matching substrings.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/regex- Parameters:
pattern- This parameter is required.str- This parameter is required.
-
regexall
@Stability(Experimental) @NotNull public static List<String> regexall(@NotNull String pattern, @NotNull String str) (experimental)regexall} applies a [regular expression](https://en.wikipedia.org/wiki/Regular_expression) to a string and returns a list of all matches.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/regexall- Parameters:
pattern- This parameter is required.str- This parameter is required.
-
replace
@Stability(Experimental) @NotNull public static String replace(@NotNull String str, @NotNull String substr, @NotNull String replace) (experimental)replace} searches a given string for another given substring, and replaces each occurrence with a given replacement string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/replace- Parameters:
str- This parameter is required.substr- This parameter is required.replace- This parameter is required.
-
reverse
(experimental)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.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/reverse- Parameters:
list- This parameter is required.
-
rsadecrypt
@Stability(Experimental) @NotNull public static String rsadecrypt(@NotNull String ciphertext, @NotNull String privatekey) (experimental)rsadecrypt} decrypts an RSA-encrypted ciphertext, returning the corresponding cleartext.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/rsadecrypt- Parameters:
ciphertext- This parameter is required.privatekey- This parameter is required.
-
sensitive
(experimental)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](/terraform/language/values/variables#suppressing-values-in-cli-output).invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/sensitive- Parameters:
value- This parameter is required.
-
setintersection
@Stability(Experimental) @NotNull public static List<String> setintersection(@NotNull List<? extends Object> first_set, @NotNull List<? extends List<? extends Object>> other_sets) (experimental) Thesetintersection} 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](https://en.wikipedia.org/wiki/Intersection_\(set_theory\)) of the sets.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/setintersection- Parameters:
first_set- This parameter is required.other_sets- This parameter is required.
-
setproduct
@Stability(Experimental) @NotNull public static Object setproduct(@NotNull List<? extends Object> sets) (experimental) Thesetproduct} function finds all of the possible combinations of elements from all of the given sets by computing the [Cartesian product](https://en.wikipedia.org/wiki/Cartesian_product).invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/setproduct- Parameters:
sets- This parameter is required.
-
setsubtract
@Stability(Experimental) @NotNull public static List<String> setsubtract(@NotNull List<? extends Object> a, @NotNull List<? extends Object> b) (experimental) Thesetsubtract} 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](https://en.wikipedia.org/wiki/Complement_\(set_theory\)#Relative_complement) of the second set.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/setsubtract- Parameters:
a- This parameter is required.b- This parameter is required.
-
setunion
@Stability(Experimental) @NotNull public static List<String> setunion(@NotNull List<? extends Object> first_set, @NotNull List<? extends List<? extends Object>> other_sets) (experimental) Thesetunion} 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](https://en.wikipedia.org/wiki/Union_\(set_theory\)) of the sets.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/setunion- Parameters:
first_set- This parameter is required.other_sets- This parameter is required.
-
sha1
(experimental)sha1} computes the SHA1 hash of a given string and encodes it with hexadecimal digits.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/sha1- Parameters:
str- This parameter is required.
-
sha256
(experimental)sha256} computes the SHA256 hash of a given string and encodes it with hexadecimal digits.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/sha256- Parameters:
str- This parameter is required.
-
sha512
(experimental)sha512} computes the SHA512 hash of a given string and encodes it with hexadecimal digits.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/sha512- Parameters:
str- This parameter is required.
-
signum
(experimental)signum} determines the sign of a number, returning a number between -1 and 1 to represent the sign.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/signum- Parameters:
num- This parameter is required.
-
slice
@Stability(Experimental) @NotNull public static Object slice(@NotNull Object list, @NotNull Number start_index, @NotNull Number end_index) (experimental)slice} extracts some consecutive elements from within a list.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/slice- Parameters:
list- This parameter is required.start_index- This parameter is required.end_index- This parameter is required.
-
sort
(experimental)sort} takes a list of strings and returns a new list with those strings sorted lexicographically.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/sort- Parameters:
list- This parameter is required.
-
split
@Stability(Experimental) @NotNull public static List<String> split(@NotNull String separator, @NotNull String str) (experimental)split} produces a list by dividing a given string at all occurrences of a given separator.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/split- Parameters:
separator- This parameter is required.str- This parameter is required.
-
startswith
@Stability(Experimental) @NotNull public static IResolvable startswith(@NotNull String str, @NotNull String prefix) (experimental)startswith} takes two values: a string to check and a prefix string. The function returns true if the string begins with that exact prefix.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/startswith- Parameters:
str- This parameter is required.prefix- This parameter is required.
-
strcontains
@Stability(Experimental) @NotNull public static IResolvable strcontains(@NotNull String str, @NotNull String substr) (experimental)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.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/strcontains- Parameters:
str- This parameter is required.substr- This parameter is required.
-
strrev
(experimental)strrev} reverses the characters in a string. Note that the characters are treated as _Unicode characters_ (in technical terms, Unicode [grapheme cluster boundaries](https://unicode.org/reports/tr29/#Grapheme_Cluster_Boundaries) are respected).invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/strrev- Parameters:
str- This parameter is required.
-
substr
@Stability(Experimental) @NotNull public static String substr(@NotNull String str, @NotNull Number offset, @NotNull Number length) (experimental)substr} extracts a substring from a given string by offset and (maximum) length.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/substr- Parameters:
str- This parameter is required.offset- This parameter is required.length- This parameter is required.
-
sum
(experimental)sum} takes a list or set of numbers and returns the sum of those numbers.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/sum- Parameters:
list- This parameter is required.
-
templatefile
@Stability(Experimental) @NotNull public static Object templatefile(@NotNull String path, @NotNull Object vars) (experimental)templatefile} reads the file at the given path and renders its content as a template using a supplied set of template variables.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/templatefile- Parameters:
path- This parameter is required.vars- This parameter is required.
-
textdecodebase64
@Stability(Experimental) @NotNull public static String textdecodebase64(@NotNull String source, @NotNull String encoding) (experimental)textdecodebase64} function decodes a string that was previously Base64-encoded, and then interprets the result as characters in a specified character encoding.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/textdecodebase64- Parameters:
source- This parameter is required.encoding- This parameter is required.
-
textencodebase64
@Stability(Experimental) @NotNull public static String textencodebase64(@NotNull String str, @NotNull String encoding) (experimental)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.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/textencodebase64- Parameters:
str- This parameter is required.encoding- This parameter is required.
-
timeadd
@Stability(Experimental) @NotNull public static String timeadd(@NotNull String timestamp, @NotNull String duration) (experimental)timeadd} adds a duration to a timestamp, returning a new timestamp.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/timeadd- Parameters:
timestamp- This parameter is required.duration- This parameter is required.
-
timecmp
@Stability(Experimental) @NotNull public static Number timecmp(@NotNull String timestamp_a, @NotNull String timestamp_b) (experimental)timecmp} compares two timestamps and returns a number that represents the ordering of the instants those timestamps represent.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/timecmp- Parameters:
timestamp_a- This parameter is required.timestamp_b- This parameter is required.
-
timestamp
(experimental)timestamp} returns a UTC timestamp string in [RFC 3339](https://tools.ietf.org/html/rfc3339) format.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/timestamp -
title
(experimental)title} converts the first letter of each word in the given string to uppercase.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/title- Parameters:
str- This parameter is required.
-
tobool
(experimental)tobool} converts its argument to a boolean value.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/tobool- Parameters:
v- This parameter is required.
-
tolist
(experimental)tolist} converts its argument to a list value.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/tolist- Parameters:
v- This parameter is required.
-
tomap
(experimental)tomap} converts its argument to a map value.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/tomap- Parameters:
v- This parameter is required.
-
tonumber
(experimental)tonumber} converts its argument to a number value.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/tonumber- Parameters:
v- This parameter is required.
-
toset
(experimental)toset} converts its argument to a set value.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/toset- Parameters:
v- This parameter is required.
-
tostring
(experimental)tostring} converts its argument to a string value.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/tostring- Parameters:
v- This parameter is required.
-
transpose
(experimental)transpose} takes a map of lists of strings and swaps the keys and values to produce a new map of lists of strings.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/transpose- Parameters:
values- This parameter is required.
-
trim
@Stability(Experimental) @NotNull public static String trim(@NotNull String str, @NotNull String cutset) (experimental)trim} removes the specified set of characters from the start and end of the given string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/trim- Parameters:
str- This parameter is required.cutset- This parameter is required.
-
trimprefix
@Stability(Experimental) @NotNull public static String trimprefix(@NotNull String str, @NotNull String prefix) (experimental)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.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/trimprefix- Parameters:
str- This parameter is required.prefix- This parameter is required.
-
trimspace
(experimental)trimspace} removes any space characters from the start and end of the given string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/trimspace- Parameters:
str- This parameter is required.
-
trimsuffix
@Stability(Experimental) @NotNull public static String trimsuffix(@NotNull String str, @NotNull String suffix) (experimental)trimsuffix} removes the specified suffix from the end of the given string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/trimsuffix- Parameters:
str- This parameter is required.suffix- This parameter is required.
-
doTry
@Stability(Experimental) @NotNull public static Object doTry(@NotNull List<? extends Object> expressions) (experimental)try} evaluates all of its argument expressions in turn and returns the result of the first one that does not produce any errors.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/try- Parameters:
expressions- This parameter is required.
-
upper
(experimental)upper} converts all cased letters in the given string to uppercase.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/upper- Parameters:
str- This parameter is required.
-
urlencode
(experimental)urlencode} applies URL encoding to a given string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/urlencode- Parameters:
str- This parameter is required.
-
uuid
(experimental)uuid} generates a unique identifier string.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/uuid -
uuidv5
@Stability(Experimental) @NotNull public static String uuidv5(@NotNull String namespace, @NotNull String name) (experimental)uuidv5} generates a _name-based_ UUID, as described in [RFC 4122 section 4.3](https://tools.ietf.org/html/rfc4122#section-4.3), also known as a "version 5" UUID.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/uuidv5- Parameters:
namespace- This parameter is required.name- This parameter is required.
-
values
(experimental)values} takes a map and returns a list containing the values of the elements in that map.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/values- Parameters:
mapping- This parameter is required.
-
yamldecode
(experimental)yamldecode} parses a string as a subset of YAML, and produces a representation of its value.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/yamldecode- Parameters:
src- This parameter is required.
-
yamlencode
(experimental)yamlencode} encodes a given value to a string using [YAML 1.2](https://yaml.org/spec/1.2/spec.html) block syntax.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/yamlencode- Parameters:
value- This parameter is required.
-
zipmap
@Stability(Experimental) @NotNull public static Object zipmap(@NotNull List<String> keys, @NotNull Object values) (experimental)zipmap} constructs a map from a list of keys and a corresponding list of values.invalid @link
{@link https://developer.hashicorp.com/terraform/language/functions/zipmap- Parameters:
keys- This parameter is required.values- This parameter is required.
-