Skip to main content

EventBridgeDelivery

Trait EventBridgeDelivery 

Source
pub trait EventBridgeDelivery: Send + Sync {
    // Required method
    fn put_event(
        &self,
        source: &str,
        detail_type: &str,
        detail: &str,
        event_bus_name: &str,
    );

    // Provided method
    fn put_event_to_account(
        &self,
        source: &str,
        detail_type: &str,
        detail: &str,
        event_bus_name: &str,
        _target_account_id: &str,
    ) { ... }
}
Expand description

Trait for putting events onto an EventBridge bus from cross-service integrations.

Required Methods§

Source

fn put_event( &self, source: &str, detail_type: &str, detail: &str, event_bus_name: &str, )

Put an event onto the specified event bus in the default account. The implementation should handle rule matching and target delivery.

Provided Methods§

Source

fn put_event_to_account( &self, source: &str, detail_type: &str, detail: &str, event_bus_name: &str, _target_account_id: &str, )

Put an event onto the specified event bus owned by target_account_id. Used for cross-account delivery where the source service (e.g. Scheduler) has a target ARN containing the destination account. The default impl falls back to the default-account put_event for backwards compat — real implementations should override and route to the target account’s state.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§