#[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
impl StructuralPartialEq for StartSessionInputBuilder
Auto Trait Implementations§
impl Freeze for StartSessionInputBuilder
impl RefUnwindSafe for StartSessionInputBuilder
impl Send for StartSessionInputBuilder
impl Sync for StartSessionInputBuilder
impl Unpin for StartSessionInputBuilder
impl UnwindSafe for StartSessionInputBuilder
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