Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(code): make CfnResource#_toCloudFormation null-safe
The `CfnResource#_toCloudFormation` method creates a `PostResolveToken` with a post-processor that was not ready to handle the absence of `Properties` on the resolved value. It is however possible that `Properties` are missing when an object is created with the default configuration (e.g: by `new sqs.CfnQueue(this, 'Queue');`). This change makes the post-processor function correctly handle `undefined` in this case. Related #3093
- Loading branch information