# LazyListValueOptions

Options for creating a lazy list token.

Used as argument in: [Lazy.list](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Lazy.html#list), [Lazy.uncachedList](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Lazy.html#uncachedlist)

- Source: [`core/lib/lazy.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/core/lib/lazy.ts#L101)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const lazyListValueOptions: cdk.LazyListValueOptions = {
  displayHint: 'displayHint',
  omitEmpty: false,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk

lazy_list_value_options = cdk.LazyListValueOptions(
    display_hint="displayHint",
    omit_empty=False
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;

LazyListValueOptions lazyListValueOptions = LazyListValueOptions.builder()
        .displayHint("displayHint")
        .omitEmpty(false)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;

var lazyListValueOptions = new LazyListValueOptions {
    DisplayHint = "displayHint",
    OmitEmpty = false
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import cdk "github.com/aws/aws-cdk-go/awscdk"

lazyListValueOptions := &LazyListValueOptions{
	DisplayHint: jsii.String("displayHint"),
	OmitEmpty: jsii.Boolean(false),
}
```

## Properties

- `displayHint`: string — Use the given name as a display hint.

  **Default:** No hint

- `omitEmpty`: boolean = false — If the produced list is empty, return 'undefined' instead.
