How to auto generate a required attribute value while creating an L2 construct #27738
Unanswered
clementallen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am looking to implement a Level 2 Construct for a Kinesis Stream Consumer, and am a bit stuck generating a value for the
consumerName
property if it is not provided during instantiation.What is the typical approach used when an attribute is required, but Cloudformation doesn't handle the automatic generation?
I am playing around with using
consumerName: this.physicalName
, but suspect I need to auto generate the physical name if a custom name isn't provided to the construct.Docs: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-streamconsumer.html#cfn-kinesis-streamconsumer-consumername
Beta Was this translation helpful? Give feedback.
All reactions