Skip to main content

test_sets

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

Overview

Nametest_sets
TypeResource
Idaws.lexv2_models.test_sets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_date_timestring (date-time)The creation date and time for the test set data.
descriptionstringThe description of the test set.
last_updated_date_timestring (date-time)The date and time for the last update of the test set data.
modalitystringIndicates whether the test set is audio or text data. (Text, Audio)
num_turnsintegerThe total number of agent and user turn in the test set.
role_arnstringThe roleARN used for any operation in the test set to access resources in the Amazon Web Services account. (pattern: <code>^arn:aws:iam::[0-9]{12}:role/.*$</code>)
statusstringThe status of the test set. (Importing, PendingAnnotation, Deleting, ValidationError, Ready)
storage_locationobjectThe Amazon S3 storage location for the test set data.
test_set_idstringThe test set Id for the test set response. (pattern: <code>^[0-9a-zA-Z]+$</code>)
test_set_namestringThe test set name of the test set. (pattern: <code>^([0-9a-zA-Z][_-]?){1,100}$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_test_setselecttest_set_id, regionGets metadata information about the test set.
list_test_setsselectregionThe list of the test sets
update_test_setupdatetest_set_id, region, testSetNameThe action to update the test set.
delete_test_setdeletetest_set_id, regionThe action to delete the selected test set.
start_test_executionexectest_set_id, region, target, apiModeThe action to start test set execution.
start_test_set_generationexecregion, testSetName, storageLocation, generationDataSource, roleArnThe action to start the generation of test set.

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
regionstringAWS region (default: us-east-1)
test_set_idstringThe test set Id for the test set execution.

SELECT examples

Gets metadata information about the test set.

SELECT
creation_date_time,
description,
last_updated_date_time,
modality,
num_turns,
role_arn,
status,
storage_location,
test_set_id,
test_set_name
FROM aws.lexv2_models.test_sets
WHERE test_set_id = '{{ test_set_id }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

The action to update the test set.

UPDATE aws.lexv2_models.test_sets
SET
testSetName = '{{ testSetName }}',
description = '{{ description }}'
WHERE
test_set_id = '{{ test_set_id }}' --required
AND region = '{{ region }}' --required
AND testSetName = '{{ testSetName }}' --required
RETURNING
creation_date_time,
description,
last_updated_date_time,
modality,
num_turns,
role_arn,
status,
storage_location,
test_set_id,
test_set_name;

DELETE examples

The action to delete the selected test set.

DELETE FROM aws.lexv2_models.test_sets
WHERE test_set_id = '{{ test_set_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

The action to start test set execution.

EXEC aws.lexv2_models.test_sets.start_test_execution
@test_set_id='{{ test_set_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"target": "{{ target }}",
"apiMode": "{{ apiMode }}",
"testExecutionModality": "{{ testExecutionModality }}"
}'
;