Skip to main content

EcsTaskRunner

Trait EcsTaskRunner 

Source
pub trait EcsTaskRunner: Send + Sync {
    // Required method
    fn run_task(
        &self,
        account_id: &str,
        cluster: &str,
        task_definition: &str,
        launch_type: Option<&str>,
        count: usize,
    ) -> Result<(), String>;
}
Expand description

Synthesize an ECS RunTask call from outside the ECS crate. Used by EventBridge Scheduler and EventBridge Rules to start tasks without depending directly on fakecloud_ecs.

Required Methods§

Source

fn run_task( &self, account_id: &str, cluster: &str, task_definition: &str, launch_type: Option<&str>, count: usize, ) -> Result<(), String>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§