aws-cdk-lib.LazyAnyValueOptions

interface LazyAnyValueOptions

LanguageType name
.NETAmazon.CDK.LazyAnyValueOptions
Gogithub.com/aws/aws-cdk-go/awscdk/v2#LazyAnyValueOptions
Javasoftware.amazon.awscdk.LazyAnyValueOptions
Pythonaws_cdk.LazyAnyValueOptions
TypeScript (source)aws-cdk-lib » LazyAnyValueOptions

Options for creating lazy untyped tokens.

Example

// 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 lazyAnyValueOptions: cdk.LazyAnyValueOptions = {
  displayHint: 'displayHint',
  omitEmptyArray: false,
};

Properties

NameTypeDescription
displayHint?stringUse the given name as a display hint.
omitEmptyArray?booleanIf the produced value is an array and it is empty, return 'undefined' instead.

displayHint?

Type: string (optional, default: No hint)

Use the given name as a display hint.


omitEmptyArray?

Type: boolean (optional, default: false)

If the produced value is an array and it is empty, return 'undefined' instead.