Struct aws_sdk_ssm::model::Session
source · [−]#[non_exhaustive]pub struct Session {
pub session_id: Option<String>,
pub target: Option<String>,
pub status: Option<SessionStatus>,
pub start_date: Option<DateTime>,
pub end_date: Option<DateTime>,
pub document_name: Option<String>,
pub owner: Option<String>,
pub reason: Option<String>,
pub details: Option<String>,
pub output_url: Option<SessionManagerOutputUrl>,
pub max_session_duration: Option<String>,
}
Expand description
Information about a Session Manager connection to a managed node.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.session_id: Option<String>
The ID of the session.
target: Option<String>
The managed node that the Session Manager session connected to.
status: Option<SessionStatus>
The status of the session. For example, "Connected" or "Terminated".
start_date: Option<DateTime>
The date and time, in ISO-8601 Extended format, when the session began.
end_date: Option<DateTime>
The date and time, in ISO-8601 Extended format, when the session was terminated.
document_name: Option<String>
The name of the Session Manager SSM document used to define the parameters and plugin settings for the session. For example, SSM-SessionManagerRunShell
.
owner: Option<String>
The ID of the Amazon Web Services user account that started the session.
reason: Option<String>
The reason for connecting to the instance.
details: Option<String>
Reserved for future use.
output_url: Option<SessionManagerOutputUrl>
Reserved for future use.
max_session_duration: Option<String>
The maximum duration of a session before it terminates.
Implementations
sourceimpl Session
impl Session
sourcepub fn session_id(&self) -> Option<&str>
pub fn session_id(&self) -> Option<&str>
The ID of the session.
sourcepub fn target(&self) -> Option<&str>
pub fn target(&self) -> Option<&str>
The managed node that the Session Manager session connected to.
sourcepub fn status(&self) -> Option<&SessionStatus>
pub fn status(&self) -> Option<&SessionStatus>
The status of the session. For example, "Connected" or "Terminated".
sourcepub fn start_date(&self) -> Option<&DateTime>
pub fn start_date(&self) -> Option<&DateTime>
The date and time, in ISO-8601 Extended format, when the session began.
sourcepub fn end_date(&self) -> Option<&DateTime>
pub fn end_date(&self) -> Option<&DateTime>
The date and time, in ISO-8601 Extended format, when the session was terminated.
sourcepub fn document_name(&self) -> Option<&str>
pub fn document_name(&self) -> Option<&str>
The name of the Session Manager SSM document used to define the parameters and plugin settings for the session. For example, SSM-SessionManagerRunShell
.
sourcepub fn owner(&self) -> Option<&str>
pub fn owner(&self) -> Option<&str>
The ID of the Amazon Web Services user account that started the session.
sourcepub fn output_url(&self) -> Option<&SessionManagerOutputUrl>
pub fn output_url(&self) -> Option<&SessionManagerOutputUrl>
Reserved for future use.
sourcepub fn max_session_duration(&self) -> Option<&str>
pub fn max_session_duration(&self) -> Option<&str>
The maximum duration of a session before it terminates.
Trait Implementations
impl StructuralPartialEq for Session
Auto Trait Implementations
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more