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 { UpdateContactAttributesRequest, UpdateContactAttributesResponse } from "../models/models_3"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link UpdateContactAttributesCommand}. */ export interface UpdateContactAttributesCommandInput extends UpdateContactAttributesRequest { } /** * @public * * The output of {@link UpdateContactAttributesCommand}. */ export interface UpdateContactAttributesCommandOutput extends UpdateContactAttributesResponse, __MetadataBearer { } declare const UpdateContactAttributesCommand_base: { new (input: UpdateContactAttributesCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: UpdateContactAttributesCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Creates or updates user-defined contact * attributes associated with the specified contact.

*

You can create or update user-defined attributes for both ongoing and completed contacts. For example, while the * call is active, you can update the customer's name or the reason the customer called. You can add notes about steps * that the agent took during the call that display to the next agent that takes the call. You can also update * attributes for a contact using data from your CRM application and save the data with the contact in Amazon Connect. You could also flag calls for additional analysis, such as legal review or to identify abusive callers.

*

Contact attributes are available in Amazon Connect for 24 months, and are then deleted. For information * about contact record retention and the maximum size of the contact record attributes section, see Feature * specifications in the Amazon Connect Administrator Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ConnectClient, UpdateContactAttributesCommand } from "@aws-sdk/client-connect"; // ES Modules import * // const { ConnectClient, UpdateContactAttributesCommand } = 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 = { // UpdateContactAttributesRequest * InitialContactId: "STRING_VALUE", // required * InstanceId: "STRING_VALUE", // required * Attributes: { // Attributes // required * "": "STRING_VALUE", * }, * }; * const command = new UpdateContactAttributesCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param UpdateContactAttributesCommandInput - {@link UpdateContactAttributesCommandInput} * @returns {@link UpdateContactAttributesCommandOutput} * @see {@link UpdateContactAttributesCommandInput} for command's `input` shape. * @see {@link UpdateContactAttributesCommandOutput} for command's `response` shape. * @see {@link ConnectClientResolvedConfig | config} for ConnectClient's `config` shape. * * @throws {@link InternalServiceException} (server fault) *

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

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

This exception occurs when an API request is made to a non-active region in an Amazon Connect instance configured with Amazon Connect Global Resiliency. For example, if the active region is US West (Oregon) and a request is made to US East (N. Virginia), the exception will be returned.

* * @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 ConnectServiceException} *

Base exception class for all service exceptions from Connect service.

* * * @public */ export declare class UpdateContactAttributesCommand extends UpdateContactAttributesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateContactAttributesRequest; output: {}; }; sdk: { input: UpdateContactAttributesCommandInput; output: UpdateContactAttributesCommandOutput; }; }; }