Struct aws_sdk_ssm::operation::start_session::StartSessionInput
source · #[non_exhaustive]pub struct StartSessionInput {
pub target: Option<String>,
pub document_name: Option<String>,
pub reason: Option<String>,
pub parameters: Option<HashMap<String, Vec<String>>>,
}
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.target: Option<String>
The managed node to connect to for the session.
document_name: Option<String>
The name of the SSM document you want to use to define the type of session, input parameters, or preferences for the session. For example, SSM-SessionManagerRunShell
. You can call the GetDocument
API to verify the document exists before attempting to start a session. If no document name is provided, a shell to the managed node is launched by default. For more information, see Start a session in the Amazon Web Services Systems Manager User Guide.
reason: Option<String>
The reason for connecting to the instance. This value is included in the details for the Amazon CloudWatch Events event created when you start the session.
parameters: Option<HashMap<String, Vec<String>>>
The values you want to specify for the parameters defined in the Session document.
Implementations§
source§impl StartSessionInput
impl StartSessionInput
sourcepub fn document_name(&self) -> Option<&str>
pub fn document_name(&self) -> Option<&str>
The name of the SSM document you want to use to define the type of session, input parameters, or preferences for the session. For example, SSM-SessionManagerRunShell
. You can call the GetDocument
API to verify the document exists before attempting to start a session. If no document name is provided, a shell to the managed node is launched by default. For more information, see Start a session in the Amazon Web Services Systems Manager User Guide.
source§impl StartSessionInput
impl StartSessionInput
sourcepub fn builder() -> StartSessionInputBuilder
pub fn builder() -> StartSessionInputBuilder
Creates a new builder-style object to manufacture StartSessionInput
.
Trait Implementations§
source§impl Clone for StartSessionInput
impl Clone for StartSessionInput
source§fn clone(&self) -> StartSessionInput
fn clone(&self) -> StartSessionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StartSessionInput
impl Debug for StartSessionInput
source§impl PartialEq for StartSessionInput
impl PartialEq for StartSessionInput
source§fn eq(&self, other: &StartSessionInput) -> bool
fn eq(&self, other: &StartSessionInput) -> bool
self
and other
values to be equal, and is used
by ==
.