Skip to main content
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.

Initializers

import io.cdktn.cdktn.Lazy;

new Lazy();
NameTypeDescription

Static Functions

NameDescription
anyValueProduces a lazy token from an untyped value.
listValueReturns a list-ified token for a lazy value.
numberValueReturns a numberified token for a lazy value.
stringValueReturns a stringified token for a lazy value.

anyValue

import io.cdktn.cdktn.Lazy;

Lazy.anyValue(IAnyProducer producer),Lazy.anyValue(IAnyProducer producer, LazyAnyValueOptions options)
Produces a lazy token from an untyped value.

producerRequired

The lazy producer.

optionsOptional

Options.

listValue

import io.cdktn.cdktn.Lazy;

Lazy.listValue(IListProducer producer),Lazy.listValue(IListProducer producer, LazyListValueOptions options)
Returns a list-ified token for a lazy value.

producerRequired

The producer.

optionsOptional

Options.

numberValue

import io.cdktn.cdktn.Lazy;

Lazy.numberValue(INumberProducer producer)
Returns a numberified token for a lazy value.

producerRequired

The producer.

stringValue

import io.cdktn.cdktn.Lazy;

Lazy.stringValue(IStringProducer producer),Lazy.stringValue(IStringProducer producer, LazyStringValueOptions options)
Returns a stringified token for a lazy value.

producerRequired

The producer.

optionsOptional

Options.