Struct aws_sdk_ssm::client::fluent_builders::StartSession
source · [−]pub struct StartSession<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to StartSession
.
Initiates a connection to a target (for example, a managed node) for a Session Manager session. Returns a URL and token that can be used to open a WebSocket connection for sending input and receiving outputs.
Amazon Web Services CLI usage: start-session
is an interactive command that requires the Session Manager plugin to be installed on the client machine making the call. For information, see Install the Session Manager plugin for the Amazon Web Services CLI in the Amazon Web Services Systems Manager User Guide.
Amazon Web Services Tools for PowerShell usage: Start-SSMSession isn't currently supported by Amazon Web Services Tools for PowerShell on Windows local machines.
Implementations
impl<C, M, R> StartSession<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> StartSession<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<StartSessionOutput, SdkError<StartSessionError>> where
R::Policy: SmithyRetryPolicy<StartSessionInputOperationOutputAlias, StartSessionOutput, StartSessionError, StartSessionInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<StartSessionOutput, SdkError<StartSessionError>> where
R::Policy: SmithyRetryPolicy<StartSessionInputOperationOutputAlias, StartSessionOutput, StartSessionError, StartSessionInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The managed node to connect to for the session.
The managed node to connect to for the session.
The name of the SSM document to define the parameters and plugin settings 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.
The name of the SSM document to define the parameters and plugin settings 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.
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.
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.
Adds a key-value pair to Parameters
.
To override the contents of this collection use set_parameters
.
Reserved for future use.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for StartSession<C, M, R>
impl<C, M, R> Unpin for StartSession<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for StartSession<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more