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 |
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
- data CreateSession = CreateSession' {
- clientToken :: Maybe Text
- description :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- assistantId :: Text
- name :: Text
- newCreateSession :: Text -> Text -> CreateSession
- createSession_clientToken :: Lens' CreateSession (Maybe Text)
- createSession_description :: Lens' CreateSession (Maybe Text)
- createSession_tags :: Lens' CreateSession (Maybe (HashMap Text Text))
- createSession_assistantId :: Lens' CreateSession Text
- createSession_name :: Lens' CreateSession Text
- data CreateSessionResponse = CreateSessionResponse' {
- session :: Maybe SessionData
- httpStatus :: Int
- newCreateSessionResponse :: Int -> CreateSessionResponse
- createSessionResponse_session :: Lens' CreateSessionResponse (Maybe SessionData)
- createSessionResponse_httpStatus :: Lens' CreateSessionResponse Int
Creating a Request
data CreateSession Source #
See: newCreateSession
smart constructor.
CreateSession' | |
|
Instances
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_description :: Lens' CreateSession (Maybe Text) Source #
The description.
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.
CreateSessionResponse' | |
|
Instances
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
createSessionResponse_session :: Lens' CreateSessionResponse (Maybe SessionData) Source #
The session.
createSessionResponse_httpStatus :: Lens' CreateSessionResponse Int Source #
The response's http status code.