Values_0.CreateContactRequestSourceOnly the VOICE, EMAIL, and TASK channels are supported. For VOICE: The supported initiation method is TRANSFER. The contacts created with this initiation method have a subtype connect:ExternalAudio. For EMAIL: The supported initiation methods are OUTBOUND, AGENT_REPLY, and FLOW. For TASK: The supported initiation method is API. Contacts created with this API have a sub-type of connect:ExternalTask. Creates a new VOICE, EMAIL, or TASK contact. After a contact is created, you can move it to the desired state by using the InitiateAs parameter. While you can use API to create task contacts that are in the COMPLETED state, you must contact Amazon Web Services Support before using it for bulk import use cases. Bulk import causes your requests to be throttled or fail if your CreateContact limits aren't high enough.
type nonrec t = {instanceId : InstanceId.t;The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
*)clientToken : ClientToken.t option;A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
*)attributes : Attributes.t option;A custom key-value pair using an attribute map. The attributes are standard Amazon Connect attributes, and can be accessed in flows just like any other contact attributes. There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can include only alphanumeric, dash, and underscore characters.
*)references : ContactReferences.t option;A formatted URL that is shown to an agent in the Contact Control Panel (CCP). Tasks can have the following reference types at the time of creation: URL | NUMBER | STRING | DATE | EMAIL | ATTACHMENT.
*)channel : Channel.t;The channel for the contact. The CHAT channel is not supported. The following information is incorrect. We're working to correct it.
*)initiationMethod : ContactInitiationMethod.t;Indicates how the contact was initiated. CreateContact only supports the following initiation methods. Valid values by channel are: For VOICE: TRANSFER and the subtype connect:ExternalAudio For EMAIL: OUTBOUND | AGENT_REPLY | FLOW For TASK: API The other channels listed below are incorrect. We're working to correct this information.
*)expiryDurationInMinutes : ExpiryDurationInMinutes.t option;Number of minutes the contact will be active for before expiring
*)userInfo : UserInfo.t option;User details for the contact UserInfo is required when creating an EMAIL contact with OUTBOUND and AGENT_REPLY contact initiation methods.
*)initiateAs : InitiateAs.t option;Initial state of the contact when it's created. Only TASK channel contacts can be initiated with COMPLETED state.
*)name : Name.t option;The name of a the contact.
*)description : Description.t option;A description of the contact.
*)segmentAttributes : SegmentAttributes.t option;A set of system defined key-value pairs stored on individual contact segments (unique contact ID) using an attribute map. The attributes are standard Amazon Connect attributes. They can be accessed in flows. Attribute keys can include only alphanumeric, -, and _. This field can be used to set Segment Contact Expiry as a duration in minutes. To set contact expiry, a ValueMap must be specified containing the integer number of minutes the contact will be active for before expiring, with SegmentAttributes like { "connect:ContactExpiry": {"ValueMap" : { "ExpiryDuration": { "ValueInteger": 135}}}}.
*)previousContactId : ContactId.t option;The ID of the previous contact when creating a transfer contact. This value can be provided only for external audio contacts. For more information, see Integrate Amazon Connect Contact Lens with external voice systems in the Amazon Connect Administrator Guide.
*)}val make :
?clientToken:??? ->
?relatedContactId:??? ->
?attributes:??? ->
?references:??? ->
?expiryDurationInMinutes:??? ->
?userInfo:??? ->
?initiateAs:??? ->
?name:??? ->
?description:??? ->
?segmentAttributes:??? ->
?previousContactId:??? ->
instanceId:InstanceId.t ->
channel:Channel.t ->
initiationMethod:ContactInitiationMethod.t ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Enum of string
| `Integer of ExpiryDurationInMinutes.t
| `Map of
([> `String of AttributeName.t ] * Awso.Botodata.value) list
| `String of InstanceId.t
| `Structure of (string * [> `String of AgentResourceId.t ]) list ])
list ]