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 |
This API is in preview release for Amazon Connect and is subject to change.
Adds or updates user-defined contact information associated with the specified contact. At least one field to be updated must be present in the request.
You can add or update user-defined contact information for both ongoing and completed contacts.
Synopsis
- data UpdateContact = UpdateContact' {
- description :: Maybe Text
- name :: Maybe Text
- references :: Maybe (HashMap Text Reference)
- instanceId :: Text
- contactId :: Text
- newUpdateContact :: Text -> Text -> UpdateContact
- updateContact_description :: Lens' UpdateContact (Maybe Text)
- updateContact_name :: Lens' UpdateContact (Maybe Text)
- updateContact_references :: Lens' UpdateContact (Maybe (HashMap Text Reference))
- updateContact_instanceId :: Lens' UpdateContact Text
- updateContact_contactId :: Lens' UpdateContact Text
- data UpdateContactResponse = UpdateContactResponse' {
- httpStatus :: Int
- newUpdateContactResponse :: Int -> UpdateContactResponse
- updateContactResponse_httpStatus :: Lens' UpdateContactResponse Int
Creating a Request
data UpdateContact Source #
See: newUpdateContact
smart constructor.
UpdateContact' | |
|
Instances
Create a value of UpdateContact
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:
UpdateContact
, updateContact_description
- The description of the contact.
UpdateContact
, updateContact_name
- The name of the contact.
UpdateContact
, updateContact_references
- Well-formed data on contact, shown to agents on Contact Control Panel
(CCP).
UpdateContact
, updateContact_instanceId
- The identifier of the Amazon Connect instance. You can find the
instanceId in the ARN of the instance.
UpdateContact
, updateContact_contactId
- The identifier of the contact. This is the identifier of the contact
associated with the first interaction with your contact center.
Request Lenses
updateContact_description :: Lens' UpdateContact (Maybe Text) Source #
The description of the contact.
updateContact_name :: Lens' UpdateContact (Maybe Text) Source #
The name of the contact.
updateContact_references :: Lens' UpdateContact (Maybe (HashMap Text Reference)) Source #
Well-formed data on contact, shown to agents on Contact Control Panel (CCP).
updateContact_instanceId :: Lens' UpdateContact Text Source #
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
updateContact_contactId :: Lens' UpdateContact Text Source #
The identifier of the contact. This is the identifier of the contact associated with the first interaction with your contact center.
Destructuring the Response
data UpdateContactResponse Source #
See: newUpdateContactResponse
smart constructor.
UpdateContactResponse' | |
|
Instances
newUpdateContactResponse Source #
Create a value of UpdateContactResponse
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:httpStatus:UpdateContactResponse'
, updateContactResponse_httpStatus
- The response's http status code.
Response Lenses
updateContactResponse_httpStatus :: Lens' UpdateContactResponse Int Source #
The response's http status code.