pub struct EcsService { /* private fields */ }Implementations§
Source§impl EcsService
impl EcsService
Sourcepub fn run_task_external(
&self,
account_id: &str,
cluster: &str,
task_definition: &str,
launch_type: Option<&str>,
count: usize,
) -> Result<(), String>
pub fn run_task_external( &self, account_id: &str, cluster: &str, task_definition: &str, launch_type: Option<&str>, count: usize, ) -> Result<(), String>
Spawn a task from a cross-service caller (EventBridge Scheduler /
EventBridge Rules) without going through the AwsRequest dispatch
path. Builds the JSON body and reuses Self::run_task so all
the existing validation / runtime spawn logic runs identically.
Returns Err with a human-readable message on validation failures —
the caller decides whether to surface the failure (e.g. DLQ).
pub fn run_task( &self, request: &AwsRequest, ) -> Result<AwsResponse, AwsServiceError>
Source§impl EcsService
impl EcsService
pub fn new(state: SharedEcsState) -> Self
pub fn with_snapshot_store(self, store: Arc<dyn SnapshotStore>) -> Self
pub fn with_runtime(self, runtime: Arc<EcsRuntime>) -> Self
pub fn with_role_trust_validator( self, validator: Arc<dyn RoleTrustValidator>, ) -> Self
pub fn state_handle(&self) -> &SharedEcsState
Trait Implementations§
Source§impl AwsService for EcsService
impl AwsService for EcsService
Source§fn service_name(&self) -> &str
fn service_name(&self) -> &str
The AWS service identifier (e.g., “sqs”, “sns”, “sts”, “events”, “ssm”).
Source§fn handle<'life0, 'async_trait>(
&'life0 self,
request: AwsRequest,
) -> Pin<Box<dyn Future<Output = Result<AwsResponse, AwsServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle<'life0, 'async_trait>(
&'life0 self,
request: AwsRequest,
) -> Pin<Box<dyn Future<Output = Result<AwsResponse, AwsServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handle an incoming request.
Source§fn supported_actions(&self) -> &[&str]
fn supported_actions(&self) -> &[&str]
List of actions this service supports (for introspection).
Source§fn iam_enforceable(&self) -> bool
fn iam_enforceable(&self) -> bool
Whether this service participates in opt-in IAM enforcement
(
FAKECLOUD_IAM=soft|strict). Read moreSource§fn iam_action_for(&self, _request: &AwsRequest) -> Option<IamAction>
fn iam_action_for(&self, _request: &AwsRequest) -> Option<IamAction>
Derive the IAM action + resource ARN for an incoming request. Read more
Source§fn iam_condition_keys_for(
&self,
_request: &AwsRequest,
_action: &IamAction,
) -> BTreeMap<String, Vec<String>>
fn iam_condition_keys_for( &self, _request: &AwsRequest, _action: &IamAction, ) -> BTreeMap<String, Vec<String>>
Derive service-specific IAM condition keys for an incoming request. Read more
Return the tags on the resource identified by
resource_arn. Read moreExtract tags being sent in the request (e.g. on CreateQueue,
PutObject with
x-amz-tagging, TagResource). Read moreAuto Trait Implementations§
impl Freeze for EcsService
impl !RefUnwindSafe for EcsService
impl Send for EcsService
impl Sync for EcsService
impl Unpin for EcsService
impl UnsafeUnpin for EcsService
impl !UnwindSafe for EcsService
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more