| 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.CreateAssistantAssociation
Description
Creates an association between an Amazon Connect Wisdom assistant and another resource. Currently, the only supported association is with a knowledge base. An assistant can have only a single association.
Synopsis
- data CreateAssistantAssociation = CreateAssistantAssociation' {}
- newCreateAssistantAssociation :: Text -> AssistantAssociationInputData -> AssociationType -> CreateAssistantAssociation
- createAssistantAssociation_clientToken :: Lens' CreateAssistantAssociation (Maybe Text)
- createAssistantAssociation_tags :: Lens' CreateAssistantAssociation (Maybe (HashMap Text Text))
- createAssistantAssociation_assistantId :: Lens' CreateAssistantAssociation Text
- createAssistantAssociation_association :: Lens' CreateAssistantAssociation AssistantAssociationInputData
- createAssistantAssociation_associationType :: Lens' CreateAssistantAssociation AssociationType
- data CreateAssistantAssociationResponse = CreateAssistantAssociationResponse' {}
- newCreateAssistantAssociationResponse :: Int -> CreateAssistantAssociationResponse
- createAssistantAssociationResponse_assistantAssociation :: Lens' CreateAssistantAssociationResponse (Maybe AssistantAssociationData)
- createAssistantAssociationResponse_httpStatus :: Lens' CreateAssistantAssociationResponse Int
Creating a Request
data CreateAssistantAssociation Source #
See: newCreateAssistantAssociation smart constructor.
Constructors
| CreateAssistantAssociation' | |
Fields
| |
Instances
newCreateAssistantAssociation Source #
Arguments
| :: Text | |
| -> AssistantAssociationInputData | |
| -> AssociationType | |
| -> CreateAssistantAssociation |
Create a value of CreateAssistantAssociation 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:CreateAssistantAssociation', createAssistantAssociation_clientToken - A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
CreateAssistantAssociation, createAssistantAssociation_tags - The tags used to organize, track, or control access for this resource.
CreateAssistantAssociation, createAssistantAssociation_assistantId - The identifier of the Wisdom assistant. Can be either the ID or the ARN.
URLs cannot contain the ARN.
$sel:association:CreateAssistantAssociation', createAssistantAssociation_association - The identifier of the associated resource.
CreateAssistantAssociation, createAssistantAssociation_associationType - The type of association.
Request Lenses
createAssistantAssociation_clientToken :: Lens' CreateAssistantAssociation (Maybe Text) Source #
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
createAssistantAssociation_tags :: Lens' CreateAssistantAssociation (Maybe (HashMap Text Text)) Source #
The tags used to organize, track, or control access for this resource.
createAssistantAssociation_assistantId :: Lens' CreateAssistantAssociation Text Source #
The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
createAssistantAssociation_association :: Lens' CreateAssistantAssociation AssistantAssociationInputData Source #
The identifier of the associated resource.
createAssistantAssociation_associationType :: Lens' CreateAssistantAssociation AssociationType Source #
The type of association.
Destructuring the Response
data CreateAssistantAssociationResponse Source #
See: newCreateAssistantAssociationResponse smart constructor.
Constructors
| CreateAssistantAssociationResponse' | |
Fields
| |
Instances
newCreateAssistantAssociationResponse Source #
Arguments
| :: Int | |
| -> CreateAssistantAssociationResponse |
Create a value of CreateAssistantAssociationResponse 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:assistantAssociation:CreateAssistantAssociationResponse', createAssistantAssociationResponse_assistantAssociation - The assistant association.
$sel:httpStatus:CreateAssistantAssociationResponse', createAssistantAssociationResponse_httpStatus - The response's http status code.
Response Lenses
createAssistantAssociationResponse_assistantAssociation :: Lens' CreateAssistantAssociationResponse (Maybe AssistantAssociationData) Source #
The assistant association.
createAssistantAssociationResponse_httpStatus :: Lens' CreateAssistantAssociationResponse Int Source #
The response's http status code.