| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
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
- 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.
Constructors
| CreateSession' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> CreateSession |
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.
CreateSession, createSession_description - The description.
CreateSession, createSession_tags - The tags used to organize, track, or control access for this resource.
CreateSession, createSession_assistantId - The identifier of the Wisdom assistant. Can be either the ID or the ARN.
URLs cannot contain the ARN.
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.
Constructors
| CreateSessionResponse' | |
Fields
| |
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.