libZSservicesZSamazonka-ssmZSamazonka-ssm
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.SSM.ResumeSession

Description

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

Creating a Request

data ResumeSession Source #

See: newResumeSession smart constructor.

Constructors

ResumeSession' 

Fields

Instances

Instances details
Eq ResumeSession Source # 
Instance details

Defined in Amazonka.SSM.ResumeSession

Read ResumeSession Source # 
Instance details

Defined in Amazonka.SSM.ResumeSession

Show ResumeSession Source # 
Instance details

Defined in Amazonka.SSM.ResumeSession

Generic ResumeSession Source # 
Instance details

Defined in Amazonka.SSM.ResumeSession

Associated Types

type Rep ResumeSession :: Type -> Type #

NFData ResumeSession Source # 
Instance details

Defined in Amazonka.SSM.ResumeSession

Methods

rnf :: ResumeSession -> () #

Hashable ResumeSession Source # 
Instance details

Defined in Amazonka.SSM.ResumeSession

ToJSON ResumeSession Source # 
Instance details

Defined in Amazonka.SSM.ResumeSession

AWSRequest ResumeSession Source # 
Instance details

Defined in Amazonka.SSM.ResumeSession

Associated Types

type AWSResponse ResumeSession #

ToHeaders ResumeSession Source # 
Instance details

Defined in Amazonka.SSM.ResumeSession

ToPath ResumeSession Source # 
Instance details

Defined in Amazonka.SSM.ResumeSession

ToQuery ResumeSession Source # 
Instance details

Defined in Amazonka.SSM.ResumeSession

type Rep ResumeSession Source # 
Instance details

Defined in Amazonka.SSM.ResumeSession

type Rep ResumeSession = D1 ('MetaData "ResumeSession" "Amazonka.SSM.ResumeSession" "libZSservicesZSamazonka-ssmZSamazonka-ssm" 'False) (C1 ('MetaCons "ResumeSession'" 'PrefixI 'True) (S1 ('MetaSel ('Just "sessionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse ResumeSession Source # 
Instance details

Defined in Amazonka.SSM.ResumeSession

newResumeSession Source #

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.

Constructors

ResumeSessionResponse' 

Fields

  • streamUrl :: Maybe Text

    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.

  • tokenValue :: Maybe Text

    An encrypted token value containing session and caller information. Used to authenticate the connection to the instance.

  • sessionId :: Maybe Text

    The ID of the session.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ResumeSessionResponse Source # 
Instance details

Defined in Amazonka.SSM.ResumeSession

Read ResumeSessionResponse Source # 
Instance details

Defined in Amazonka.SSM.ResumeSession

Show ResumeSessionResponse Source # 
Instance details

Defined in Amazonka.SSM.ResumeSession

Generic ResumeSessionResponse Source # 
Instance details

Defined in Amazonka.SSM.ResumeSession

Associated Types

type Rep ResumeSessionResponse :: Type -> Type #

NFData ResumeSessionResponse Source # 
Instance details

Defined in Amazonka.SSM.ResumeSession

Methods

rnf :: ResumeSessionResponse -> () #

type Rep ResumeSessionResponse Source # 
Instance details

Defined in Amazonka.SSM.ResumeSession

type Rep ResumeSessionResponse = D1 ('MetaData "ResumeSessionResponse" "Amazonka.SSM.ResumeSession" "libZSservicesZSamazonka-ssmZSamazonka-ssm" 'False) (C1 ('MetaCons "ResumeSessionResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "streamUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tokenValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "sessionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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.