Skip to main content

data_table_primary_values

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

Overview​

Namedata_table_primary_values
TypeResource
Idaws.connect.data_table_primary_values

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
last_modified_regionstringThe value's last modified region. (pattern: <code>[a-z]{2}(-[a-z]+){1,2}(-[0-9])?</code>)
last_modified_timestring (date-time)The value's last modified time.
primary_valuesarrayThe value's primary values.
record_idstringThe value's record ID.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_data_table_primary_valuesselectinstance_id, data_table_id, regionnextToken, maxResultsLists all primary value combinations for a given data table. Returns the unique combinations of primary attribute values that identify records in the table. Up to 100 records are returned per request.
update_data_table_primary_valuesupdateinstance_id, data_table_id, region, PrimaryValues, NewPrimaryValues, LockVersionUpdates the primary values for a record. This operation affects all existing values that are currently associated to the record and its primary values. Users that have restrictions on attributes and/or primary values are not authorized to use this endpoint. The combination of new primary values must be unique within the table.

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. If the version is provided as part of the identifier or ARN, the version must be one of the two available system managed aliases, $SAVED or $LATEST.
instance_idstringThe unique identifier for the Amazon Connect instance.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of data table primary 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 all primary value combinations for a given data table. Returns the unique combinations of primary attribute values that identify records in the table. Up to 100 records are returned per request.

SELECT
last_modified_region,
last_modified_time,
primary_values,
record_id
FROM aws.connect.data_table_primary_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 }}'
;

UPDATE examples​

Updates the primary values for a record. This operation affects all existing values that are currently associated to the record and its primary values. Users that have restrictions on attributes and/or primary values are not authorized to use this endpoint. The combination of new primary values must be unique within the table.

UPDATE aws.connect.data_table_primary_values
SET
PrimaryValues = '{{ PrimaryValues }}',
NewPrimaryValues = '{{ NewPrimaryValues }}',
LockVersion = '{{ LockVersion }}'
WHERE
instance_id = '{{ instance_id }}' --required
AND data_table_id = '{{ data_table_id }}' --required
AND region = '{{ region }}' --required
AND PrimaryValues = '{{ PrimaryValues }}' --required
AND NewPrimaryValues = '{{ NewPrimaryValues }}' --required
AND LockVersion = '{{ LockVersion }}' --required
RETURNING
lock_version;