-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Revisit tokens APIs #1933
Copy link
Copy link
Closed
Labels
@aws-cdk/coreRelated to core CDK functionalityRelated to core CDK functionality
Description
Tokens are a queer beast. We should look into their APIs and make sure they are not easy to abuse.
Thoughts:
Token.unresolvedinstead ofcdk.unresolve- Hide
resolveso that it doesn't appear in public API - Factory methods for specific use cases instead of
new Token. For exampleToken.lazy(() => ) - Tokens are conceptually coupled to synthesis and now also must be anchored by a construct scope ("lazy" means - resolve during synthesis), maybe we can simply move all token facilities to
Construct.node
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/coreRelated to core CDK functionalityRelated to core CDK functionality