libZSservicesZSamazonka-wisdomZSamazonka-wisdom
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.Wisdom.CreateSession

Description

Creates a session. A session is a contextual container used for generating recommendations. Amazon Connect creates a new Wisdom session for each contact on which Wisdom is enabled.

Synopsis

Creating a Request

data CreateSession Source #

See: newCreateSession smart constructor.

Constructors

CreateSession' 

Fields

Instances

Instances details
Eq CreateSession Source # 
Instance details

Defined in Amazonka.Wisdom.CreateSession

Read CreateSession Source # 
Instance details

Defined in Amazonka.Wisdom.CreateSession

Show CreateSession Source # 
Instance details

Defined in Amazonka.Wisdom.CreateSession

Generic CreateSession Source # 
Instance details

Defined in Amazonka.Wisdom.CreateSession

Associated Types

type Rep CreateSession :: Type -> Type #

NFData CreateSession Source # 
Instance details

Defined in Amazonka.Wisdom.CreateSession

Methods

rnf :: CreateSession -> () #

Hashable CreateSession Source # 
Instance details

Defined in Amazonka.Wisdom.CreateSession

ToJSON CreateSession Source # 
Instance details

Defined in Amazonka.Wisdom.CreateSession

AWSRequest CreateSession Source # 
Instance details

Defined in Amazonka.Wisdom.CreateSession

Associated Types

type AWSResponse CreateSession #

ToHeaders CreateSession Source # 
Instance details

Defined in Amazonka.Wisdom.CreateSession

ToPath CreateSession Source # 
Instance details

Defined in Amazonka.Wisdom.CreateSession

ToQuery CreateSession Source # 
Instance details

Defined in Amazonka.Wisdom.CreateSession

type Rep CreateSession Source # 
Instance details

Defined in Amazonka.Wisdom.CreateSession

type Rep CreateSession = D1 ('MetaData "CreateSession" "Amazonka.Wisdom.CreateSession" "libZSservicesZSamazonka-wisdomZSamazonka-wisdom" 'False) (C1 ('MetaCons "CreateSession'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "assistantId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse CreateSession Source # 
Instance details

Defined in Amazonka.Wisdom.CreateSession

newCreateSession Source #

Create a value of CreateSession 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:clientToken:CreateSession', createSession_clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

$sel:description:CreateSession', createSession_description - The description.

$sel:tags:CreateSession', createSession_tags - The tags used to organize, track, or control access for this resource.

$sel:assistantId:CreateSession', createSession_assistantId - The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

$sel:name:CreateSession', createSession_name - The name of the session.

Request Lenses

createSession_clientToken :: Lens' CreateSession (Maybe Text) Source #

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

createSession_tags :: Lens' CreateSession (Maybe (HashMap Text Text)) Source #

The tags used to organize, track, or control access for this resource.

createSession_assistantId :: Lens' CreateSession Text Source #

The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

createSession_name :: Lens' CreateSession Text Source #

The name of the session.

Destructuring the Response

data CreateSessionResponse Source #

See: newCreateSessionResponse smart constructor.

Constructors

CreateSessionResponse' 

Fields

Instances

Instances details
Eq CreateSessionResponse Source # 
Instance details

Defined in Amazonka.Wisdom.CreateSession

Read CreateSessionResponse Source # 
Instance details

Defined in Amazonka.Wisdom.CreateSession

Show CreateSessionResponse Source # 
Instance details

Defined in Amazonka.Wisdom.CreateSession

Generic CreateSessionResponse Source # 
Instance details

Defined in Amazonka.Wisdom.CreateSession

Associated Types

type Rep CreateSessionResponse :: Type -> Type #

NFData CreateSessionResponse Source # 
Instance details

Defined in Amazonka.Wisdom.CreateSession

Methods

rnf :: CreateSessionResponse -> () #

type Rep CreateSessionResponse Source # 
Instance details

Defined in Amazonka.Wisdom.CreateSession

type Rep CreateSessionResponse = D1 ('MetaData "CreateSessionResponse" "Amazonka.Wisdom.CreateSession" "libZSservicesZSamazonka-wisdomZSamazonka-wisdom" 'False) (C1 ('MetaCons "CreateSessionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "session") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SessionData)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateSessionResponse Source #

Create a value of CreateSessionResponse 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:session:CreateSessionResponse', createSessionResponse_session - The session.

$sel:httpStatus:CreateSessionResponse', createSessionResponse_httpStatus - The response's http status code.

Response Lenses