Skip to content

Change the usage of tokens for lazy evaluation #736

@eladb

Description

@eladb

Instead of new Token(() => value), since the use case for using lazy evaluation is only for synthesis, maybe what we can do is actually provide a method in Construct, which will also give us the ability to associate the token with the construct:

new QueueResource(this, 'Resource', {
  visibilityTimeout: this.lazyEval(() => 122)
});

See #712 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions