-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
events.Rule has no way to access the rule name #3809
Comments
You can use Would you normally use |
Yes, correct. Here is an example: With the CDK, we can't just reference the rule object, as it throws the error (invoked through Python):
|
@rix0rrr what do you think? Should I close this one and open a new one for the missing ref? |
@jeshan This issue should be fine to use to track the fix! 😸 |
`ruleName` was missing. Add it. Fixes #3809.
`ruleName` was missing. Add it. Fixes #3809.
Hi,
Looking at the Tokens doc page:
https://docs.aws.amazon.com/cdk/latest/guide/tokens.html?shortFooter=true
It's unclear how we could manipulate a property to be used in another resource.
For example, a cloudwatch events rule returns the
ruleArn
property.However, I need the rule name property instead (which is not available in the rule object).
I tried to get the name as a sbustring from the arn in Python syntax like this:
The last statement does not work since the arn actually looks something like
${Token[TOKEN.219]}
at runtime.I'm thinking that maybe I should be using Token/Lazy/Produce here but I can't figure it out.
The text was updated successfully, but these errors were encountered: