amazonka-pinpoint-2.0: Amazon Pinpoint SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Pinpoint.Types.Session

Description

 
Synopsis

Documentation

data Session Source #

Provides information about a session.

See: newSession smart constructor.

Constructors

Session' 

Fields

Instances

Instances details
ToJSON Session Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.Session

Generic Session Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.Session

Associated Types

type Rep Session :: Type -> Type #

Methods

from :: Session -> Rep Session x #

to :: Rep Session x -> Session #

Read Session Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.Session

Show Session Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.Session

NFData Session Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.Session

Methods

rnf :: Session -> () #

Eq Session Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.Session

Methods

(==) :: Session -> Session -> Bool #

(/=) :: Session -> Session -> Bool #

Hashable Session Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.Session

Methods

hashWithSalt :: Int -> Session -> Int #

hash :: Session -> Int #

type Rep Session Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.Session

type Rep Session = D1 ('MetaData "Session" "Amazonka.Pinpoint.Types.Session" "amazonka-pinpoint-2.0-GBFs9S7wa7bFiDe66NqAzt" 'False) (C1 ('MetaCons "Session'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "stopTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "startTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newSession Source #

Create a value of Session 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:duration:Session', session_duration - The duration of the session, in milliseconds.

$sel:stopTimestamp:Session', session_stopTimestamp - The date and time when the session ended.

$sel:startTimestamp:Session', session_startTimestamp - The date and time when the session began.

$sel:id:Session', session_id - The unique identifier for the session.

session_duration :: Lens' Session (Maybe Int) Source #

The duration of the session, in milliseconds.

session_stopTimestamp :: Lens' Session (Maybe Text) Source #

The date and time when the session ended.

session_startTimestamp :: Lens' Session Text Source #

The date and time when the session began.

session_id :: Lens' Session Text Source #

The unique identifier for the session.