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.