Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Reconnects a session to an instance after it has been disconnected. Connections can be resumed for disconnected sessions, but not terminated sessions.
This command is primarily for use by client machines to automatically reconnect during intermittent network issues. It isn't intended for any other use.
Synopsis
- data ResumeSession = ResumeSession' {}
- newResumeSession :: Text -> ResumeSession
- resumeSession_sessionId :: Lens' ResumeSession Text
- data ResumeSessionResponse = ResumeSessionResponse' {}
- newResumeSessionResponse :: Int -> ResumeSessionResponse
- resumeSessionResponse_streamUrl :: Lens' ResumeSessionResponse (Maybe Text)
- resumeSessionResponse_tokenValue :: Lens' ResumeSessionResponse (Maybe Text)
- resumeSessionResponse_sessionId :: Lens' ResumeSessionResponse (Maybe Text)
- resumeSessionResponse_httpStatus :: Lens' ResumeSessionResponse Int
Creating a Request
data ResumeSession Source #
See: newResumeSession
smart constructor.
Instances
Create a value of ResumeSession
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:sessionId:ResumeSession'
, resumeSession_sessionId
- The ID of the disconnected session to resume.
Request Lenses
resumeSession_sessionId :: Lens' ResumeSession Text Source #
The ID of the disconnected session to resume.
Destructuring the Response
data ResumeSessionResponse Source #
See: newResumeSessionResponse
smart constructor.
ResumeSessionResponse' | |
|
Instances
newResumeSessionResponse Source #
Create a value of ResumeSessionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:streamUrl:ResumeSessionResponse'
, resumeSessionResponse_streamUrl
- A URL back to SSM Agent on the instance that the Session Manager client
uses to send commands and receive output from the instance. Format:
wss://ssmmessages.region.amazonaws.com/v1/data-channel/session-id?stream=(input|output)
.
region represents the Region identifier for an Amazon Web Services
Region supported by Amazon Web Services Systems Manager, such as
us-east-2
for the US East (Ohio) Region. For a list of supported
region values, see the Region column in
Systems Manager service endpoints
in the Amazon Web Services General Reference.
session-id represents the ID of a Session Manager session, such as
1a2b3c4dEXAMPLE
.
$sel:tokenValue:ResumeSessionResponse'
, resumeSessionResponse_tokenValue
- An encrypted token value containing session and caller information. Used
to authenticate the connection to the instance.
$sel:sessionId:ResumeSession'
, resumeSessionResponse_sessionId
- The ID of the session.
$sel:httpStatus:ResumeSessionResponse'
, resumeSessionResponse_httpStatus
- The response's http status code.
Response Lenses
resumeSessionResponse_streamUrl :: Lens' ResumeSessionResponse (Maybe Text) Source #
A URL back to SSM Agent on the instance that the Session Manager client
uses to send commands and receive output from the instance. Format:
wss://ssmmessages.region.amazonaws.com/v1/data-channel/session-id?stream=(input|output)
.
region represents the Region identifier for an Amazon Web Services
Region supported by Amazon Web Services Systems Manager, such as
us-east-2
for the US East (Ohio) Region. For a list of supported
region values, see the Region column in
Systems Manager service endpoints
in the Amazon Web Services General Reference.
session-id represents the ID of a Session Manager session, such as
1a2b3c4dEXAMPLE
.
resumeSessionResponse_tokenValue :: Lens' ResumeSessionResponse (Maybe Text) Source #
An encrypted token value containing session and caller information. Used to authenticate the connection to the instance.
resumeSessionResponse_sessionId :: Lens' ResumeSessionResponse (Maybe Text) Source #
The ID of the session.
resumeSessionResponse_httpStatus :: Lens' ResumeSessionResponse Int Source #
The response's http status code.