Class Fn

java.lang.Object
software.amazon.jsii.JsiiObject
com.hashicorp.cdktf.FnGenerated
com.hashicorp.cdktf.Fn
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.93.0 (build 1706ca5)", date="2024-01-15T15:38:00.989Z") @Stability(Experimental) public class Fn extends FnGenerated
  • Constructor Details

    • Fn

      protected Fn(software.amazon.jsii.JsiiObjectRef objRef)
    • Fn

      protected Fn(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • Fn

      @Stability(Experimental) public Fn()
  • Method Details

    • bcrypt

      @Stability(Experimental) @NotNull public static String bcrypt(@NotNull String str, @Nullable Number cost)
      (experimental)
      invalid @link
      {@link /terraform/docs/language/functions/bcrypt.html
      bcrypt} computes a hash of the given string using the Blowfish cipher, returning a string in [the _Modular Crypt Format_](https://passlib.readthedocs.io/en/stable/modular_crypt_format.html) usually expected in the shadow password file on many Unix systems.

      Parameters:
      str - This parameter is required.
      cost -
    • bcrypt

      @Stability(Experimental) @NotNull public static String bcrypt(@NotNull String str)
      (experimental)
      invalid @link
      {@link /terraform/docs/language/functions/bcrypt.html
      bcrypt} computes a hash of the given string using the Blowfish cipher, returning a string in [the _Modular Crypt Format_](https://passlib.readthedocs.io/en/stable/modular_crypt_format.html) usually expected in the shadow password file on many Unix systems.

      Parameters:
      str - This parameter is required.
    • conditional

      @Stability(Experimental) @NotNull public static Object conditional(@NotNull Object condition, @NotNull Object trueValue, @NotNull Object falseValue)
      (experimental)
      invalid @link
      {@link https://developer.hashicorp.com/terraform/language/expressions/conditionals
      } A conditional expression uses the value of a boolean expression to select one of two values.

      Parameters:
      condition - This parameter is required.
      trueValue - This parameter is required.
      falseValue - This parameter is required.
    • join

      @Stability(Experimental) @NotNull public static String join(@NotNull String separator, @NotNull List<String> list)
      (experimental)
      invalid @link
      {@link /terraform/docs/language/functions/join.html
      join} produces a string by concatenating together all elements of a given list of strings with the given delimiter.

      Parameters:
      separator - This parameter is required.
      list - This parameter is required.
    • lookup

      @Stability(Experimental) @NotNull public static Object lookup(@NotNull Object inputMap, @NotNull String key, @Nullable Object defaultValue)
      (experimental)
      invalid @link
      {@link /terraform/docs/language/functions/lookup.html
      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.

      Parameters:
      inputMap - This parameter is required.
      key - This parameter is required.
      defaultValue -
    • lookup

      @Stability(Experimental) @NotNull public static Object lookup(@NotNull Object inputMap, @NotNull String key)
      (experimental)
      invalid @link
      {@link /terraform/docs/language/functions/lookup.html
      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.

      Parameters:
      inputMap - This parameter is required.
      key - This parameter is required.
    • lookupNested

      @Stability(Experimental) @NotNull public static Object lookupNested(@NotNull Object inputMap, @NotNull List<? extends Object> path)
      (experimental) 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"]

      Parameters:
      inputMap - This parameter is required.
      path - This parameter is required.
    • range

      @Stability(Experimental) @NotNull public static List<String> range(@NotNull Number start, @NotNull Number limit, @Nullable Number step)
      (experimental)
      invalid @link
      {@link /terraform/docs/language/functions/range.html
      range} generates a list of numbers using a start value, a limit value, and a step value.

      Parameters:
      start - This parameter is required.
      limit - This parameter is required.
      step -
    • range

      @Stability(Experimental) @NotNull public static List<String> range(@NotNull Number start, @NotNull Number limit)
      (experimental)
      invalid @link
      {@link /terraform/docs/language/functions/range.html
      range} generates a list of numbers using a start value, a limit value, and a step value.

      Parameters:
      start - This parameter is required.
      limit - This parameter is required.
    • rawString

      @Stability(Experimental) @NotNull public static String rawString(@NotNull String str)
      (experimental) 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).

      Parameters:
      str - This parameter is required.