(aws-events): IApiDestination is missing grantInvokeApiDestination #30386
Labels
@aws-cdk/aws-events
Related to CloudWatch Events
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
The IApiDestination provides currently no grant* method. This makes it harder/more cumbersome to invoke an API Destination from a given construct.
The permission needed to invoke an API Destination:
events:InvokeApiDestination
Use Case
I was building the solution for #29386 and when I wrote the grantPush functionality in there I was missing the
grantInvokeApiDestination
method ofIApiDestination
Proposed Solution
Add method
grantInvokeApiDestination
toIApiDestination
and implement it inApiDestination
.Method signature could look like that:
public grantInvokeApiDestination(grantee: iam.IGrantable): iam.Grant
.It will allow the action
events:InvokeApiDestination
for the grantee.Other Information
No response
Acknowledgements
CDK version used
2.136.0
Environment details (OS name and version, etc.)
windows 11
The text was updated successfully, but these errors were encountered: