-
Notifications
You must be signed in to change notification settings - Fork 4k
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
CDK v2 - Go: Cannot use Fn If in allowed by Cloudformation way #14342
Comments
Hi @xrn - You will need to convert LambdaTriggers: awscdk.Token_asAny(awscdk.Fn_ConditionIf("Condition",
&awscognito.UserPoolTriggers{
PostAuthentication: lambdaFn,
},
&awscognito.UserPoolTriggers{},
)), Can you check if that works? |
Hi @nija-at, thanks for answer
Still do not work because Token_AsAny returns |
I believe this is a Go question targeted to the jsii repo. Closing this as a dupe. |
|
I have code like
Which from perspective Cloudfroamtion should work - I can create if statement for the whole object. But Fn_ConditionIf returns type ICfnConditionExpression and I am expecting &awscognito.UserPoolTriggers
Reproduction Steps
Code attached
What did you expect to happen?
If statement should be allowed
What actually happened?
If statement could not be used here because of type
Environment
The text was updated successfully, but these errors were encountered: