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 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.
CreateAssistantAssociation' | |
|
Instances
newCreateAssistantAssociation Source #
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.
$sel:tags:CreateAssistantAssociation'
, createAssistantAssociation_tags
- The tags used to organize, track, or control access for this resource.
$sel:assistantId: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.
$sel:associationType: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.
CreateAssistantAssociationResponse' | |
|
Instances
Eq CreateAssistantAssociationResponse Source # | |
Read CreateAssistantAssociationResponse Source # | |
Show CreateAssistantAssociationResponse Source # | |
Generic CreateAssistantAssociationResponse Source # | |
NFData CreateAssistantAssociationResponse Source # | |
Defined in Amazonka.Wisdom.CreateAssistantAssociation rnf :: CreateAssistantAssociationResponse -> () # | |
type Rep CreateAssistantAssociationResponse Source # | |
Defined in Amazonka.Wisdom.CreateAssistantAssociation type Rep CreateAssistantAssociationResponse = D1 ('MetaData "CreateAssistantAssociationResponse" "Amazonka.Wisdom.CreateAssistantAssociation" "libZSservicesZSamazonka-wisdomZSamazonka-wisdom" 'False) (C1 ('MetaCons "CreateAssistantAssociationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "assistantAssociation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AssistantAssociationData)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreateAssistantAssociationResponse Source #
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.