#[non_exhaustive]pub struct StartSessionInputBuilder { /* private fields */ }
Expand description
A builder for StartSessionInput
.
Implementations§
source§impl StartSessionInputBuilder
impl StartSessionInputBuilder
sourcepub fn target(self, input: impl Into<String>) -> Self
pub fn target(self, input: impl Into<String>) -> Self
The managed node to connect to for the session.
This field is required.sourcepub fn set_target(self, input: Option<String>) -> Self
pub fn set_target(self, input: Option<String>) -> Self
The managed node to connect to for the session.
sourcepub fn get_target(&self) -> &Option<String>
pub fn get_target(&self) -> &Option<String>
The managed node to connect to for the session.
sourcepub fn document_name(self, input: impl Into<String>) -> Self
pub fn document_name(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_document_name(self, input: Option<String>) -> Self
pub fn set_document_name(self, input: Option<String>) -> Self
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.
sourcepub fn get_document_name(&self) -> &Option<String>
pub fn get_document_name(&self) -> &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.
sourcepub fn reason(self, input: impl Into<String>) -> Self
pub fn reason(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_reason(self, input: Option<String>) -> Self
pub fn set_reason(self, input: Option<String>) -> Self
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.
sourcepub fn get_reason(&self) -> &Option<String>
pub fn get_reason(&self) -> &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.
sourcepub fn parameters(self, k: impl Into<String>, v: Vec<String>) -> Self
pub fn parameters(self, k: impl Into<String>, v: Vec<String>) -> Self
Adds a key-value pair to parameters
.
To override the contents of this collection use set_parameters
.
The values you want to specify for the parameters defined in the Session document.
sourcepub fn set_parameters(self, input: Option<HashMap<String, Vec<String>>>) -> Self
pub fn set_parameters(self, input: Option<HashMap<String, Vec<String>>>) -> Self
The values you want to specify for the parameters defined in the Session document.
sourcepub fn get_parameters(&self) -> &Option<HashMap<String, Vec<String>>>
pub fn get_parameters(&self) -> &Option<HashMap<String, Vec<String>>>
The values you want to specify for the parameters defined in the Session document.
sourcepub fn build(self) -> Result<StartSessionInput, BuildError>
pub fn build(self) -> Result<StartSessionInput, BuildError>
Consumes the builder and constructs a StartSessionInput
.
source§impl StartSessionInputBuilder
impl StartSessionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<StartSessionOutput, SdkError<StartSessionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<StartSessionOutput, SdkError<StartSessionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for StartSessionInputBuilder
impl Clone for StartSessionInputBuilder
source§fn clone(&self) -> StartSessionInputBuilder
fn clone(&self) -> StartSessionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StartSessionInputBuilder
impl Debug for StartSessionInputBuilder
source§impl Default for StartSessionInputBuilder
impl Default for StartSessionInputBuilder
source§fn default() -> StartSessionInputBuilder
fn default() -> StartSessionInputBuilder
source§impl PartialEq for StartSessionInputBuilder
impl PartialEq for StartSessionInputBuilder
source§fn eq(&self, other: &StartSessionInputBuilder) -> bool
fn eq(&self, other: &StartSessionInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.