pub struct SsmClient<'a> { /* private fields */ }Implementations§
Source§impl SsmClient<'_>
impl SsmClient<'_>
Sourcepub async fn set_command_status(
&self,
command_id: &str,
req: &SetSsmCommandStatusRequest,
) -> Result<SetSsmCommandStatusResponse, Error>
pub async fn set_command_status( &self, command_id: &str, req: &SetSsmCommandStatusRequest, ) -> Result<SetSsmCommandStatusResponse, Error>
Force a specific SSM command’s status. Useful for driving the
Pending/InProgress/Success lifecycle synchronously in tests.
Sourcepub async fn fail_command(
&self,
command_id: &str,
req: Option<&FailSsmCommandRequest>,
) -> Result<FailSsmCommandResponse, Error>
pub async fn fail_command( &self, command_id: &str, req: Option<&FailSsmCommandRequest>, ) -> Result<FailSsmCommandResponse, Error>
Flip a command’s invocations to Failed. req is optional; when
None, the server uses default values (all invocations, default
account, generic “Failed” status detail).
Sourcepub async fn parameter_policy_events(
&self,
account_id: Option<&str>,
) -> Result<SsmParameterPolicyEventsResponse, Error>
pub async fn parameter_policy_events( &self, account_id: Option<&str>, ) -> Result<SsmParameterPolicyEventsResponse, Error>
List recorded parameter-policy events for an account. Pass None
to use the server’s default account.
Sourcepub async fn inject_session(
&self,
req: &InjectSsmSessionRequest,
) -> Result<InjectSsmSessionResponse, Error>
pub async fn inject_session( &self, req: &InjectSsmSessionRequest, ) -> Result<InjectSsmSessionResponse, Error>
Inject a fake SSM session record so tests can exercise
DescribeSessions/TerminateSession without going through
StartSession.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SsmClient<'a>
impl<'a> !UnwindSafe for SsmClient<'a>
impl<'a> Freeze for SsmClient<'a>
impl<'a> Send for SsmClient<'a>
impl<'a> Sync for SsmClient<'a>
impl<'a> Unpin for SsmClient<'a>
impl<'a> UnsafeUnpin for SsmClient<'a>
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