does anyone know how `Rule` works in `@aws-cdk/aws...
# help
s
does anyone know how
Rule
works in
@aws-cdk/aws-events
? I created a rule, and then I’m trying to add a target but it doesn’t work: ``````
as usual, the CDK docs are not helpful here
t
I think I have some sample code hang on
I believe the target has to be wrapped in something
s
Copy code
new targets.LambdaFunction(...)
s
oh geez. thank you. that was not obvious at all
t
yeah and cdk doesn't support all target types, forgot which one I needed the other day that it didn't have
Oh setting an api call as a target, which is a great feature but unsupported