-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[aws-events] Support AWS::Event::Archive #11531
[aws-events] Support AWS::Event::Archive #11531
Comments
We could also add an archive method on the const eventBus = new events.EventBus(this, 'MyEventBus', { eventBusName: 'my-event-bus' });
eventBus.archive({
description?: string, // Should have a generated default
retention: cdk.Duration.days(10), // Should have a default retention
eventPattern: { /* JSON */ },
}); |
Add the possibility to archive events from an Event Bus. It's also possible to archive specific events by passing an event patterns. See the [following blogpost](https://aws.amazon.com/blogs/aws/new-archive-and-replay-events-with-amazon-eventbridge/) for more information about event archiving and replay. Archiving should be possible from an imported EventBus. closes #11531 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
The package https://github.com/aws/aws-cdk/tree/master/packages/%40aws-cdk/aws-events does not have Archive which was recently added.
Use Case
The resources are
Proposed Solution
I propose implementing constructs for the aforementioned resources. The implemented construct would look like:
Meanwhile, there's a workaround using
cdk.CfnResource
as the CDK documentation suggestsOther
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: