Skip to main content

evaluation_forms

Creates, updates, deletes or gets an evaluation_form resource or lists evaluation_forms in a region

Overview

Nameevaluation_forms
TypeResource
DescriptionCreates an evaluation form for the specified CON instance.
Idawscc.connect.evaluation_forms

Fields

NameDatatypeDescription
scoring_strategyobjectA scoring strategy of the evaluation form.
statusstring
The status of the evaluation form.Allowed values: DRAFT | ACTIVE
auto_evaluation_configurationobject
descriptionstring
The description of the evaluation form.Length Constraints: Minimum length of 0. Maximum length of 1024.
instance_arnstringThe identifier of the Amazon Connect instance.
titlestringA title of the evaluation form.
itemsarray
Items that are part of the evaluation form. The total number of sections and questions must not exceed 100 each. Questions must be contained in a section.Minimum size: 1
Maximum size: 100
evaluation_form_arnstring
tagsarrayThe tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
regionstringAWS region.

For more information, see AWS::Connect::EvaluationForm.

Methods

NameResourceAccessible byRequired Params
create_resourceevaluation_formsINSERTTitle, InstanceArn, Items, Status, region
delete_resourceevaluation_formsDELETEIdentifier, region
update_resourceevaluation_formsUPDATEIdentifier, PatchDocument, region
list_resourcesevaluation_forms_list_onlySELECTregion
get_resourceevaluation_formsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual evaluation_form.

SELECT
region,
scoring_strategy,
status,
auto_evaluation_configuration,
description,
instance_arn,
title,
items,
evaluation_form_arn,
tags
FROM awscc.connect.evaluation_forms
WHERE
region = '{{ region }}' AND
Identifier = '{{ evaluation_form_arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new evaluation_form resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.connect.evaluation_forms (
Status,
InstanceArn,
Title,
Items,
region
)
SELECT
'{{ status }}',
'{{ instance_arn }}',
'{{ title }}',
'{{ items }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

Use the following StackQL query and manifest file to update a evaluation_form resource, using stack-deploy.

/*+ update */
UPDATE awscc.connect.evaluation_forms
SET PatchDocument = string('{{ {
"ScoringStrategy": scoring_strategy,
"Status": status,
"AutoEvaluationConfiguration": auto_evaluation_configuration,
"Description": description,
"InstanceArn": instance_arn,
"Title": title,
"Items": items,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ evaluation_form_arn }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.connect.evaluation_forms
WHERE
Identifier = '{{ evaluation_form_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

To operate on the evaluation_forms resource, the following permissions are required:

connect:DescribeEvaluationForm,
connect:ListEvaluationFormVersions