Skip to content

Update Data Table Primary Values

connect_update_data_table_primary_values R Documentation

Updates the primary values for a record

Description

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.

Usage

connect_update_data_table_primary_values(InstanceId, DataTableId,
  PrimaryValues, NewPrimaryValues, LockVersion)

Arguments

InstanceId

[required] The unique identifier for the Amazon Connect instance.

DataTableId

[required] The 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.

PrimaryValues

[required] The current primary values for the record. Required and must include values for all primary attributes. Fails if the table has primary attributes and some primary values are omitted.

NewPrimaryValues

[required] The new primary values for the record. Required and must include values for all primary attributes. The combination must be unique within the table.

LockVersion

[required] The lock version information required for optimistic locking to prevent concurrent modifications.

Value

A list with the following syntax:

list(
  LockVersion = list(
    DataTable = "string",
    Attribute = "string",
    PrimaryValues = "string",
    Value = "string"
  )
)

Request syntax

svc$update_data_table_primary_values(
  InstanceId = "string",
  DataTableId = "string",
  PrimaryValues = list(
    list(
      AttributeName = "string",
      Value = "string"
    )
  ),
  NewPrimaryValues = list(
    list(
      AttributeName = "string",
      Value = "string"
    )
  ),
  LockVersion = list(
    DataTable = "string",
    Attribute = "string",
    PrimaryValues = "string",
    Value = "string"
  )
)