Skip to main content

contact_evaluations

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

Overview

Namecontact_evaluations
TypeResource
Idaws.connect.contact_evaluations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
evaluationobjectInformation about the evaluation form completed for a specific contact.
evaluation_formobjectInformation about the evaluation form.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_contact_evaluationselectinstance_id, evaluation_id, regionDescribes a contact evaluation in the specified Connect Customer instance.
list_contact_evaluationsselectinstance_id, contactId, regionnextTokenLists contact evaluations in the specified Connect Customer instance.
search_contact_evaluationsselectregionSearches contact evaluations in an Connect Customer instance, with optional filtering. Use cases Following are common uses cases for this API: Find contact evaluations by using specific search criteria. Find contact evaluations that are tagged with a specific set of tags. Important things to know A Search operation, unlike a List operation, takes time to index changes to resource (create, update or delete). If you don't see updated information for recently changed contact evaluations, try calling the API again in a few seconds. Endpoints: See Connect Customer endpoints and quotas.
update_contact_evaluationupdateinstance_id, evaluation_id, regionUpdates details about a contact evaluation in the specified Connect Customer instance. A contact evaluation must be in draft state. Answers included in the request are merged with existing answers for the given evaluation. An answer or note can be deleted by passing an empty object ({}) to the question identifier.
delete_contact_evaluationdeleteinstance_id, evaluation_id, regionDeletes a contact evaluation in the specified Connect Customer instance.

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
contactIdstringThe identifier of the contact in this instance of Connect Customer.
evaluation_idstringA unique identifier for the contact evaluation.
instance_idstringThe identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
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

Describes a contact evaluation in the specified Connect Customer instance.

SELECT
evaluation,
evaluation_form
FROM aws.connect.contact_evaluations
WHERE instance_id = '{{ instance_id }}' -- required
AND evaluation_id = '{{ evaluation_id }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Updates details about a contact evaluation in the specified Connect Customer instance. A contact evaluation must be in draft state. Answers included in the request are merged with existing answers for the given evaluation. An answer or note can be deleted by passing an empty object ({}) to the question identifier.

UPDATE aws.connect.contact_evaluations
SET
Answers = '{{ Answers }}',
Notes = '{{ Notes }}',
UpdatedBy = '{{ UpdatedBy }}'
WHERE
instance_id = '{{ instance_id }}' --required
AND evaluation_id = '{{ evaluation_id }}' --required
AND region = '{{ region }}' --required
RETURNING
evaluation_arn,
evaluation_id;

DELETE examples

Deletes a contact evaluation in the specified Connect Customer instance.

DELETE FROM aws.connect.contact_evaluations
WHERE instance_id = '{{ instance_id }}' --required
AND evaluation_id = '{{ evaluation_id }}' --required
AND region = '{{ region }}' --required
;