aws / aws/aws-cdk

(scheduler-targets-alpha): Make the event bus in EventBridgePutEventsEntry optional

Open
#30,205 2 comments 0 reactions 0 assignees View on GitHub
@aws-cdk/aws-scheduler-targets effort/medium feature-request p2
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

### Describe the feature

When creating a `EventBridgePutEvents` target for a `Schedule` the event entry has to be of type `EventBridgePutEventsEntry`. The shape of the interface looks like this:
```
export interface EventBridgePutEventsEntry {
readonly detail: ScheduleTargetInput;
readonly detailType: string;
readonly eventBus: events.IEventBus;
readonly source: string;
}
```

For me as an user it would be good to have the `eventBus` as an optional property. So when the eventBus is not defined, the default event bus is used.

### Use Case

Creating a target without specifying an event bus (just use the default one).

### Proposed Solution

_No response_

### Other Information

_No response_

### Acknowledgements

- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### CDK version used

2.141.0

### Environment details (OS name and version, etc.)

Mac

Contributor guide

Open the contributing guide

Research direction

Start at the EventBridgePutEventsEntry interface and the EventBridgePutEvents scheduler target entry point. Trace how an omitted eventBus is handled when creating the target, then verify that the default EventBridge bus is used while existing explicit-bus behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
cloud
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.