pub struct SsmService { /* private fields */ }Implementations§
Source§impl SsmService
impl SsmService
pub fn new(state: SharedSsmState) -> Self
pub fn with_secretsmanager(self, sm_state: SharedSecretsManagerState) -> Self
pub fn with_snapshot_store(self, store: Arc<dyn SnapshotStore>) -> Self
pub fn with_kms_hook(self, hook: Arc<dyn KmsHook>) -> Self
Sourcepub fn set_command_status(
&self,
account_id: &str,
command_id: &str,
status: &str,
) -> bool
pub fn set_command_status( &self, account_id: &str, command_id: &str, status: &str, ) -> bool
Admin: force a SendCommand result to a specific terminal status
(e.g. “Failed”, “Cancelled”, “TimedOut”). Used by tests to
simulate command failures without waiting on a real SSM agent.
All invocations on the command move to the same status so
GetCommandInvocation reflects the override on the next read.
Returns true when the command was found and updated.
Sourcepub fn fail_command_invocation(
&self,
account_id: &str,
command_id: &str,
instance_id: Option<&str>,
status_details: Option<&str>,
standard_error_content: Option<&str>,
) -> usize
pub fn fail_command_invocation( &self, account_id: &str, command_id: &str, instance_id: Option<&str>, status_details: Option<&str>, standard_error_content: Option<&str>, ) -> usize
Admin: force a single invocation (or all if instance_id is
None) to Failed with optional friendlier status_details
and standard_error_content overrides. Mirrors what a real SSM
agent would report when a runShellScript step exits non-zero.
Returns the number of invocations that were updated.
Sourcepub fn parameter_policy_events(
&self,
account_id: &str,
) -> Vec<ParameterPolicyEvent>
pub fn parameter_policy_events( &self, account_id: &str, ) -> Vec<ParameterPolicyEvent>
Admin: read out the parameter-policy event log for the given account. Used by tests to verify that Expiration deletions and notification windows actually fired without standing up an EventBridge target. Reads also tick the lazy policy evaluator so callers don’t have to issue a Get* call first.
Sourcepub fn clear_parameter_policy_events(&self, account_id: &str)
pub fn clear_parameter_policy_events(&self, account_id: &str)
Admin: drop the recorded parameter-policy event log for the given account. Tests use this to reset between assertions.
Sourcepub fn inject_session(
&self,
account_id: &str,
target: &str,
status: Option<&str>,
owner: Option<&str>,
reason: Option<&str>,
session_id: Option<&str>,
) -> String
pub fn inject_session( &self, account_id: &str, target: &str, status: Option<&str>, owner: Option<&str>, reason: Option<&str>, session_id: Option<&str>, ) -> String
Admin: inject a fake SSM session record so DescribeSessions /
TerminateSession round-trip without going through StartSession (which
returns the Smithy-declared TargetNotConnected unless
FAKECLOUD_SSM_SESSION_ECHO=1). The injected
session is otherwise indistinguishable from one created by StartSession
in echo mode. Returns the assigned SessionId.
Trait Implementations§
Source§impl AwsService for SsmService
impl AwsService for SsmService
Source§fn service_name(&self) -> &str
fn service_name(&self) -> &str
Source§fn handle<'life0, 'async_trait>(
&'life0 self,
req: 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,
req: AwsRequest,
) -> Pin<Box<dyn Future<Output = Result<AwsResponse, AwsServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn supported_actions(&self) -> &[&str]
fn supported_actions(&self) -> &[&str]
Source§fn iam_enforceable(&self) -> bool
fn iam_enforceable(&self) -> bool
FAKECLOUD_IAM=soft|strict). Read moreSource§fn iam_action_for(&self, _request: &AwsRequest) -> Option<IamAction>
fn iam_action_for(&self, _request: &AwsRequest) -> Option<IamAction>
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>>
resource_arn. Read morex-amz-tagging, TagResource). Read more