Class Lazy

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

@Generated(value="jsii-pacmak/1.95.0 (build f1ff514)", date="2024-04-15T08:11:31.992Z") @Stability(Experimental) public class Lazy extends software.amazon.jsii.JsiiObject
(experimental) Lazily produce a value.

Can be used to return a string, list or numeric value whose actual value will only be calculated later, during synthesis.

  • Constructor Details

    • Lazy

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

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

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

    • anyValue

      @Stability(Experimental) @NotNull public static IResolvable anyValue(@NotNull IAnyProducer producer, @Nullable LazyAnyValueOptions options)
      (experimental) Produces a lazy token from an untyped value.

      Parameters:
      producer - The lazy producer. This parameter is required.
      options - Options.
    • anyValue

      @Stability(Experimental) @NotNull public static IResolvable anyValue(@NotNull IAnyProducer producer)
      (experimental) Produces a lazy token from an untyped value.

      Parameters:
      producer - The lazy producer. This parameter is required.
    • listValue

      @Stability(Experimental) @NotNull public static List<String> listValue(@NotNull IListProducer producer, @Nullable LazyListValueOptions options)
      (experimental) Returns a list-ified token for a lazy value.

      Parameters:
      producer - The producer. This parameter is required.
      options - Options.
    • listValue

      @Stability(Experimental) @NotNull public static List<String> listValue(@NotNull IListProducer producer)
      (experimental) Returns a list-ified token for a lazy value.

      Parameters:
      producer - The producer. This parameter is required.
    • numberValue

      @Stability(Experimental) @NotNull public static Number numberValue(@NotNull INumberProducer producer)
      (experimental) Returns a numberified token for a lazy value.

      Parameters:
      producer - The producer. This parameter is required.
    • stringValue

      @Stability(Experimental) @NotNull public static String stringValue(@NotNull IStringProducer producer, @Nullable LazyStringValueOptions options)
      (experimental) Returns a stringified token for a lazy value.

      Parameters:
      producer - The producer. This parameter is required.
      options - Options.
    • stringValue

      @Stability(Experimental) @NotNull public static String stringValue(@NotNull IStringProducer producer)
      (experimental) Returns a stringified token for a lazy value.

      Parameters:
      producer - The producer. This parameter is required.