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.DescribeSessions

Description

Retrieves a list of all active sessions (both connected and disconnected) or terminated sessions from the past 30 days.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeSessions Source #

See: newDescribeSessions smart constructor.

Constructors

DescribeSessions' 

Fields

  • filters :: Maybe (NonEmpty SessionFilter)

    One or more filters to limit the type of sessions returned by the request.

  • nextToken :: Maybe Text

    The token for the next set of items to return. (You received this token from a previous call.)

  • maxResults :: Maybe Natural

    The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

  • state :: SessionState

    The session status to retrieve a list of sessions for. For example, "Active".

Instances

Instances details
Eq DescribeSessions Source # 
Instance details

Defined in Amazonka.SSM.DescribeSessions

Read DescribeSessions Source # 
Instance details

Defined in Amazonka.SSM.DescribeSessions

Show DescribeSessions Source # 
Instance details

Defined in Amazonka.SSM.DescribeSessions

Generic DescribeSessions Source # 
Instance details

Defined in Amazonka.SSM.DescribeSessions

Associated Types

type Rep DescribeSessions :: Type -> Type #

NFData DescribeSessions Source # 
Instance details

Defined in Amazonka.SSM.DescribeSessions

Methods

rnf :: DescribeSessions -> () #

Hashable DescribeSessions Source # 
Instance details

Defined in Amazonka.SSM.DescribeSessions

ToJSON DescribeSessions Source # 
Instance details

Defined in Amazonka.SSM.DescribeSessions

AWSPager DescribeSessions Source # 
Instance details

Defined in Amazonka.SSM.DescribeSessions

AWSRequest DescribeSessions Source # 
Instance details

Defined in Amazonka.SSM.DescribeSessions

Associated Types

type AWSResponse DescribeSessions #

ToHeaders DescribeSessions Source # 
Instance details

Defined in Amazonka.SSM.DescribeSessions

ToPath DescribeSessions Source # 
Instance details

Defined in Amazonka.SSM.DescribeSessions

ToQuery DescribeSessions Source # 
Instance details

Defined in Amazonka.SSM.DescribeSessions

type Rep DescribeSessions Source # 
Instance details

Defined in Amazonka.SSM.DescribeSessions

type Rep DescribeSessions = D1 ('MetaData "DescribeSessions" "Amazonka.SSM.DescribeSessions" "libZSservicesZSamazonka-ssmZSamazonka-ssm" 'False) (C1 ('MetaCons "DescribeSessions'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty SessionFilter))) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SessionState))))
type AWSResponse DescribeSessions Source # 
Instance details

Defined in Amazonka.SSM.DescribeSessions

newDescribeSessions Source #

Create a value of DescribeSessions 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:filters:DescribeSessions', describeSessions_filters - One or more filters to limit the type of sessions returned by the request.

$sel:nextToken:DescribeSessions', describeSessions_nextToken - The token for the next set of items to return. (You received this token from a previous call.)

$sel:maxResults:DescribeSessions', describeSessions_maxResults - The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

$sel:state:DescribeSessions', describeSessions_state - The session status to retrieve a list of sessions for. For example, "Active".

Request Lenses

describeSessions_filters :: Lens' DescribeSessions (Maybe (NonEmpty SessionFilter)) Source #

One or more filters to limit the type of sessions returned by the request.

describeSessions_nextToken :: Lens' DescribeSessions (Maybe Text) Source #

The token for the next set of items to return. (You received this token from a previous call.)

describeSessions_maxResults :: Lens' DescribeSessions (Maybe Natural) Source #

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

describeSessions_state :: Lens' DescribeSessions SessionState Source #

The session status to retrieve a list of sessions for. For example, "Active".

Destructuring the Response

data DescribeSessionsResponse Source #

See: newDescribeSessionsResponse smart constructor.

Constructors

DescribeSessionsResponse' 

Fields

Instances

Instances details
Eq DescribeSessionsResponse Source # 
Instance details

Defined in Amazonka.SSM.DescribeSessions

Read DescribeSessionsResponse Source # 
Instance details

Defined in Amazonka.SSM.DescribeSessions

Show DescribeSessionsResponse Source # 
Instance details

Defined in Amazonka.SSM.DescribeSessions

Generic DescribeSessionsResponse Source # 
Instance details

Defined in Amazonka.SSM.DescribeSessions

Associated Types

type Rep DescribeSessionsResponse :: Type -> Type #

NFData DescribeSessionsResponse Source # 
Instance details

Defined in Amazonka.SSM.DescribeSessions

type Rep DescribeSessionsResponse Source # 
Instance details

Defined in Amazonka.SSM.DescribeSessions

type Rep DescribeSessionsResponse = D1 ('MetaData "DescribeSessionsResponse" "Amazonka.SSM.DescribeSessions" "libZSservicesZSamazonka-ssmZSamazonka-ssm" 'False) (C1 ('MetaCons "DescribeSessionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "sessions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Session])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeSessionsResponse Source #

Create a value of DescribeSessionsResponse 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:nextToken:DescribeSessions', describeSessionsResponse_nextToken - The token for the next set of items to return. (You received this token from a previous call.)

$sel:sessions:DescribeSessionsResponse', describeSessionsResponse_sessions - A list of sessions meeting the request parameters.

$sel:httpStatus:DescribeSessionsResponse', describeSessionsResponse_httpStatus - The response's http status code.

Response Lenses

describeSessionsResponse_nextToken :: Lens' DescribeSessionsResponse (Maybe Text) Source #

The token for the next set of items to return. (You received this token from a previous call.)

describeSessionsResponse_sessions :: Lens' DescribeSessionsResponse (Maybe [Session]) Source #

A list of sessions meeting the request parameters.