Skip to main content

data_table_values

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

Overview

Namedata_table_values
TypeResource
Idaws.connect.data_table_values

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
attribute_idstringThe summary's attribute ID.
attribute_namestringThe summary's attribute name. (pattern: <code>^[\p{L}\p{Z}\p{N}-_.:=@'|]+$</code>)
last_modified_regionstringThe summary's last modified region. (pattern: <code>[a-z]{2}(-[a-z]+){1,2}(-[0-9])?</code>)
last_modified_timestring (date-time)The summary's last modified time.
lock_versionobjectThe summary's lock version.
primary_valuesarrayThe summary's primary values.
record_idstringThe summary's record ID.
valuestringThe summary's value.
value_typestringThe summary's value type. (TEXT, NUMBER, BOOLEAN, TEXT_LIST, NUMBER_LIST)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_data_table_valuesselectinstance_id, data_table_id, regionnextToken, maxResultsLists values stored in a data table with optional filtering by record IDs or primary attribute values. Returns the raw stored values along with metadata such as lock versions and modification timestamps.
evaluate_data_table_valuesexecinstance_id, data_table_id, regionnextToken, maxResultsEvaluates values at the time of the request and returns them. It considers the request's timezone or the table's timezone, in that order, when accessing time based tables. When a value is accessed, the accessor's identity and the time of access are saved alongside the value to help identify values that are actively in use. The term "Batch" is not included in the operation name since it does not meet all the criteria for a batch operation as specified in Batch Operations: Amazon Web Services API Standards.

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
data_table_idstringThe unique identifier for the data table. Must also accept the table ARN with or without a version alias.
instance_idstringThe unique identifier for the Amazon Connect instance.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of data table values to return in one page of results.
nextTokenstringSpecify the pagination token from a previous request to retrieve the next page of results.

SELECT examples

Lists values stored in a data table with optional filtering by record IDs or primary attribute values. Returns the raw stored values along with metadata such as lock versions and modification timestamps.

SELECT
attribute_id,
attribute_name,
last_modified_region,
last_modified_time,
lock_version,
primary_values,
record_id,
value,
value_type
FROM aws.connect.data_table_values
WHERE instance_id = '{{ instance_id }}' -- required
AND data_table_id = '{{ data_table_id }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;

Lifecycle Methods

Evaluates values at the time of the request and returns them. It considers the request's timezone or the table's timezone, in that order, when accessing time based tables. When a value is accessed, the accessor's identity and the time of access are saved alongside the value to help identify values that are actively in use. The term "Batch" is not included in the operation name since it does not meet all the criteria for a batch operation as specified in Batch Operations: Amazon Web Services API Standards.

EXEC aws.connect.data_table_values.evaluate_data_table_values
@instance_id='{{ instance_id }}' --required,
@data_table_id='{{ data_table_id }}' --required,
@region='{{ region }}' --required,
@nextToken='{{ nextToken }}',
@maxResults='{{ maxResults }}'
@@json=
'{
"Values": "{{ Values }}",
"TimeZone": "{{ TimeZone }}"
}'
;