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 { Lazy } from 'cdktn'

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 { Lazy } from 'cdktn'

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

producerRequired

The lazy producer.

optionsOptional

Options.

listValue

import { Lazy } from 'cdktn'

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

producerRequired

The producer.

optionsOptional

Options.

numberValue

import { Lazy } from 'cdktn'

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

producerRequired

The producer.

stringValue

import { Lazy } from 'cdktn'

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

producerRequired

The producer.

optionsOptional

Options.