> ## Documentation Index
> Fetch the complete documentation index at: https://cdktn.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Go: Lazy

> CDKTN Core API Reference for Lazy in Go.

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 <a name="Initializers" id="cdktn.Lazy.Initializer" />

```go theme={null}
import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.NewLazy() Lazy
```

| **Name** | **Type** | **Description** |
| -------- | -------- | --------------- |

***

## Static Functions <a name="Static Functions" id="Static Functions" />

| **Name**                                                       | **Description**                               |
| -------------------------------------------------------------- | --------------------------------------------- |
| <code><a href="#cdktn.Lazy.anyValue">AnyValue</a></code>       | Produces a lazy token from an untyped value.  |
| <code><a href="#cdktn.Lazy.listValue">ListValue</a></code>     | Returns a list-ified token for a lazy value.  |
| <code><a href="#cdktn.Lazy.numberValue">NumberValue</a></code> | Returns a numberified token for a lazy value. |
| <code><a href="#cdktn.Lazy.stringValue">StringValue</a></code> | Returns a stringified token for a lazy value. |

***

### `AnyValue` <a name="AnyValue" id="cdktn.Lazy.anyValue" />

```go theme={null}
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.

#### `producer`<sup>Required</sup> <a name="producer" id="cdktn.Lazy.anyValue.parameter.producer" />

* *Type:* <a href="#cdktn.IAnyProducer">IAnyProducer</a>

The lazy producer.

***

#### `options`<sup>Optional</sup> <a name="options" id="cdktn.Lazy.anyValue.parameter.options" />

* *Type:* <a href="#cdktn.LazyAnyValueOptions">LazyAnyValueOptions</a>

Options.

***

### `ListValue` <a name="ListValue" id="cdktn.Lazy.listValue" />

```go theme={null}
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.

#### `producer`<sup>Required</sup> <a name="producer" id="cdktn.Lazy.listValue.parameter.producer" />

* *Type:* <a href="#cdktn.IListProducer">IListProducer</a>

The producer.

***

#### `options`<sup>Optional</sup> <a name="options" id="cdktn.Lazy.listValue.parameter.options" />

* *Type:* <a href="#cdktn.LazyListValueOptions">LazyListValueOptions</a>

Options.

***

### `NumberValue` <a name="NumberValue" id="cdktn.Lazy.numberValue" />

```go theme={null}
import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.Lazy_NumberValue(producer INumberProducer) *f64
```

Returns a numberified token for a lazy value.

#### `producer`<sup>Required</sup> <a name="producer" id="cdktn.Lazy.numberValue.parameter.producer" />

* *Type:* <a href="#cdktn.INumberProducer">INumberProducer</a>

The producer.

***

### `StringValue` <a name="StringValue" id="cdktn.Lazy.stringValue" />

```go theme={null}
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.

#### `producer`<sup>Required</sup> <a name="producer" id="cdktn.Lazy.stringValue.parameter.producer" />

* *Type:* <a href="#cdktn.IStringProducer">IStringProducer</a>

The producer.

***

#### `options`<sup>Optional</sup> <a name="options" id="cdktn.Lazy.stringValue.parameter.options" />

* *Type:* <a href="#cdktn.LazyStringValueOptions">LazyStringValueOptions</a>

Options.

***
