Skip to main content

contact_references

Creates, updates, deletes, gets or lists a contact_references resource.

Overview

Namecontact_references
TypeResource
Idaws.connect.contact_references

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
attachmentobjectInformation about the reference when the referenceType is ATTACHMENT. Otherwise, null.
dateobjectInformation about a reference when the referenceType is DATE. Otherwise, null.
emailobjectInformation about a reference when the referenceType is EMAIL. Otherwise, null.
email_messageobjectInformation about the reference when the referenceType is EMAIL_MESSAGE. Otherwise, null.
email_message_plain_textobjectInformation about the reference when the referenceType is EMAIL_MESSAGE. Otherwise, null.
email_message_plain_text_redactedobjectInformation about the reference when the referenceType is EMAIL_MESSAGE. Otherwise, null.
email_message_redactedobjectInformation about the reference when the referenceType is EMAIL_MESSAGE. Otherwise, null.
numberobjectInformation about a reference when the referenceType is NUMBER. Otherwise, null.
stringobjectInformation about a reference when the referenceType is STRING. Otherwise, null.
urlobjectInformation about the reference when the referenceType is URL. Otherwise, null.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_contact_referencesselectinstance_id, contact_id, referenceTypes, regionnextTokenThis API is in preview release for Connect Customer and is subject to change. For the specified referenceTypes, returns a list of references associated with the contact. References are links to documents that are related to a contact, such as emails, attachments, or URLs.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
contact_idstringThe identifier of the initial contact.
instance_idstringThe identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
referenceTypesarrayThe type of reference.
regionstringAWS region (default: us-east-1)
nextTokenstringThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. This is not expected to be set, because the value returned in the previous response is always null.

SELECT examples

This API is in preview release for Connect Customer and is subject to change. For the specified referenceTypes, returns a list of references associated with the contact. References are links to documents that are related to a contact, such as emails, attachments, or URLs.

SELECT
attachment,
date,
email,
email_message,
email_message_plain_text,
email_message_plain_text_redacted,
email_message_redacted,
number,
string,
url
FROM aws.connect.contact_references
WHERE instance_id = '{{ instance_id }}' -- required
AND contact_id = '{{ contact_id }}' -- required
AND referenceTypes = '{{ referenceTypes }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
;