Struct aws_sdk_ssm::types::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 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§
source§impl 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 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 Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more