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 an Amazon Connect Wisdom assistant.
Synopsis
- data CreateAssistant = CreateAssistant' {}
- newCreateAssistant :: Text -> AssistantType -> CreateAssistant
- createAssistant_clientToken :: Lens' CreateAssistant (Maybe Text)
- createAssistant_description :: Lens' CreateAssistant (Maybe Text)
- createAssistant_serverSideEncryptionConfiguration :: Lens' CreateAssistant (Maybe ServerSideEncryptionConfiguration)
- createAssistant_tags :: Lens' CreateAssistant (Maybe (HashMap Text Text))
- createAssistant_name :: Lens' CreateAssistant Text
- createAssistant_type :: Lens' CreateAssistant AssistantType
- data CreateAssistantResponse = CreateAssistantResponse' {}
- newCreateAssistantResponse :: Int -> CreateAssistantResponse
- createAssistantResponse_assistant :: Lens' CreateAssistantResponse (Maybe AssistantData)
- createAssistantResponse_httpStatus :: Lens' CreateAssistantResponse Int
Creating a Request
data CreateAssistant Source #
See: newCreateAssistant
smart constructor.
CreateAssistant' | |
|
Instances
Create a value of CreateAssistant
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:CreateAssistant'
, createAssistant_clientToken
- A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
$sel:description:CreateAssistant'
, createAssistant_description
- The description of the assistant.
$sel:serverSideEncryptionConfiguration:CreateAssistant'
, createAssistant_serverSideEncryptionConfiguration
- The KMS key used for encryption.
$sel:tags:CreateAssistant'
, createAssistant_tags
- The tags used to organize, track, or control access for this resource.
$sel:name:CreateAssistant'
, createAssistant_name
- The name of the assistant.
$sel:type':CreateAssistant'
, createAssistant_type
- The type of assistant.
Request Lenses
createAssistant_clientToken :: Lens' CreateAssistant (Maybe Text) Source #
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
createAssistant_description :: Lens' CreateAssistant (Maybe Text) Source #
The description of the assistant.
createAssistant_serverSideEncryptionConfiguration :: Lens' CreateAssistant (Maybe ServerSideEncryptionConfiguration) Source #
The KMS key used for encryption.
createAssistant_tags :: Lens' CreateAssistant (Maybe (HashMap Text Text)) Source #
The tags used to organize, track, or control access for this resource.
createAssistant_name :: Lens' CreateAssistant Text Source #
The name of the assistant.
createAssistant_type :: Lens' CreateAssistant AssistantType Source #
The type of assistant.
Destructuring the Response
data CreateAssistantResponse Source #
See: newCreateAssistantResponse
smart constructor.
CreateAssistantResponse' | |
|
Instances
newCreateAssistantResponse Source #
Create a value of CreateAssistantResponse
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:assistant:CreateAssistantResponse'
, createAssistantResponse_assistant
- Information about the assistant.
$sel:httpStatus:CreateAssistantResponse'
, createAssistantResponse_httpStatus
- The response's http status code.
Response Lenses
createAssistantResponse_assistant :: Lens' CreateAssistantResponse (Maybe AssistantData) Source #
Information about the assistant.
createAssistantResponse_httpStatus :: Lens' CreateAssistantResponse Int Source #
The response's http status code.