import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient"; import type { UpdateDataTablePrimaryValuesRequest, UpdateDataTablePrimaryValuesResponse } from "../models/models_3"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link UpdateDataTablePrimaryValuesCommand}. */ export interface UpdateDataTablePrimaryValuesCommandInput extends UpdateDataTablePrimaryValuesRequest { } /** * @public * * The output of {@link UpdateDataTablePrimaryValuesCommand}. */ export interface UpdateDataTablePrimaryValuesCommandOutput extends UpdateDataTablePrimaryValuesResponse, __MetadataBearer { } declare const UpdateDataTablePrimaryValuesCommand_base: { new (input: UpdateDataTablePrimaryValuesCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: UpdateDataTablePrimaryValuesCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

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.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ConnectClient, UpdateDataTablePrimaryValuesCommand } from "@aws-sdk/client-connect"; // ES Modules import * // const { ConnectClient, UpdateDataTablePrimaryValuesCommand } = require("@aws-sdk/client-connect"); // CommonJS import * // import type { ConnectClientConfig } from "@aws-sdk/client-connect"; * const config = {}; // type is ConnectClientConfig * const client = new ConnectClient(config); * const input = { // UpdateDataTablePrimaryValuesRequest * InstanceId: "STRING_VALUE", // required * DataTableId: "STRING_VALUE", // required * PrimaryValues: [ // PrimaryValuesSet // required * { // PrimaryValue * AttributeName: "STRING_VALUE", // required * Value: "STRING_VALUE", // required * }, * ], * NewPrimaryValues: [ // required * { * AttributeName: "STRING_VALUE", // required * Value: "STRING_VALUE", // required * }, * ], * LockVersion: { // DataTableLockVersion * DataTable: "STRING_VALUE", * Attribute: "STRING_VALUE", * PrimaryValues: "STRING_VALUE", * Value: "STRING_VALUE", * }, * }; * const command = new UpdateDataTablePrimaryValuesCommand(input); * const response = await client.send(command); * // { // UpdateDataTablePrimaryValuesResponse * // LockVersion: { // DataTableLockVersion * // DataTable: "STRING_VALUE", * // Attribute: "STRING_VALUE", * // PrimaryValues: "STRING_VALUE", * // Value: "STRING_VALUE", * // }, * // }; * * ``` * * @param UpdateDataTablePrimaryValuesCommandInput - {@link UpdateDataTablePrimaryValuesCommandInput} * @returns {@link UpdateDataTablePrimaryValuesCommandOutput} * @see {@link UpdateDataTablePrimaryValuesCommandInput} for command's `input` shape. * @see {@link UpdateDataTablePrimaryValuesCommandOutput} for command's `response` shape. * @see {@link ConnectClientResolvedConfig | config} for ConnectClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient permissions to perform this action.

* * @throws {@link ConflictException} (client fault) *

Operation cannot be performed at this time as there is a conflict with another operation or contact * state.

* * @throws {@link InternalServiceException} (server fault) *

Request processing failed because of an error or failure with the service.

* * @throws {@link InvalidParameterException} (client fault) *

One or more of the specified parameters are not valid.

* * @throws {@link InvalidRequestException} (client fault) *

The request is not valid.

* * @throws {@link ResourceNotFoundException} (client fault) *

The specified resource was not found.

* * @throws {@link ThrottlingException} (client fault) *

The throttling limit has been exceeded.

* * @throws {@link ConnectServiceException} *

Base exception class for all service exceptions from Connect service.

* * * @public */ export declare class UpdateDataTablePrimaryValuesCommand extends UpdateDataTablePrimaryValuesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateDataTablePrimaryValuesRequest; output: UpdateDataTablePrimaryValuesResponse; }; sdk: { input: UpdateDataTablePrimaryValuesCommandInput; output: UpdateDataTablePrimaryValuesCommandOutput; }; }; }