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§
Provided Methods§
Sourcefn put_event_to_account(
&self,
source: &str,
detail_type: &str,
detail: &str,
event_bus_name: &str,
_target_account_id: &str,
)
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".