Skip to content

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

@daschaa

Description

@daschaa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-scheduler-targetsRelated to targets of the AWS Scheduler serviceeffort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions