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 "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.NewLazy() 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 "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.Lazy_AnyValue(producer IAnyProducer, options LazyAnyValueOptions) IResolvable
Produces a lazy token from an untyped value.

producerRequired

The lazy producer.

optionsOptional

Options.

ListValue

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.Lazy_ListValue(producer IListProducer, options LazyListValueOptions) *[]*string
Returns a list-ified token for a lazy value.

producerRequired

The producer.

optionsOptional

Options.

NumberValue

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.Lazy_NumberValue(producer INumberProducer) *f64
Returns a numberified token for a lazy value.

producerRequired

The producer.

StringValue

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.Lazy_StringValue(producer IStringProducer, options LazyStringValueOptions) *string
Returns a stringified token for a lazy value.

producerRequired

The producer.

optionsOptional

Options.