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

This API is in preview release for Amazon Connect and is subject to change.

*

Adds or updates user-defined contact information associated with the specified contact. At least one field to be * updated must be present in the request.

* *

You can add or update user-defined contact information for both ongoing and completed contacts.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ConnectClient, UpdateContactCommand } from "@aws-sdk/client-connect"; // ES Modules import * // const { ConnectClient, UpdateContactCommand } = 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 = { // UpdateContactRequest * InstanceId: "STRING_VALUE", // required * ContactId: "STRING_VALUE", // required * Name: "STRING_VALUE", * Description: "STRING_VALUE", * References: { // ContactReferences * "": { // Reference * Value: "STRING_VALUE", * Type: "URL" || "ATTACHMENT" || "CONTACT_ANALYSIS" || "NUMBER" || "STRING" || "DATE" || "EMAIL" || "EMAIL_MESSAGE" || "EMAIL_MESSAGE_PLAIN_TEXT" || "EMAIL_MESSAGE_PLAIN_TEXT_REDACTED" || "EMAIL_MESSAGE_REDACTED", // required * Status: "AVAILABLE" || "DELETED" || "APPROVED" || "REJECTED" || "PROCESSING" || "FAILED", * Arn: "STRING_VALUE", * StatusReason: "STRING_VALUE", * }, * }, * SegmentAttributes: { // SegmentAttributes * "": { // SegmentAttributeValue * ValueString: "STRING_VALUE", * ValueMap: { // SegmentAttributeValueMap * "": { * ValueString: "STRING_VALUE", * ValueMap: { * "": "", * }, * ValueInteger: Number("int"), * ValueList: [ // SegmentAttributeValueList * "", * ], * ValueArn: "STRING_VALUE", * }, * }, * ValueInteger: Number("int"), * ValueList: [ * "", * ], * ValueArn: "STRING_VALUE", * }, * }, * QueueInfo: { // QueueInfoInput * Id: "STRING_VALUE", * }, * UserInfo: { // UserInfo * UserId: "STRING_VALUE", * }, * CustomerEndpoint: { // Endpoint * Type: "TELEPHONE_NUMBER" || "VOIP" || "CONTACT_FLOW" || "CONNECT_PHONENUMBER_ARN" || "EMAIL_ADDRESS", * Address: "STRING_VALUE", * }, * SystemEndpoint: { * Type: "TELEPHONE_NUMBER" || "VOIP" || "CONTACT_FLOW" || "CONNECT_PHONENUMBER_ARN" || "EMAIL_ADDRESS", * Address: "STRING_VALUE", * }, * }; * const command = new UpdateContactCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param UpdateContactCommandInput - {@link UpdateContactCommandInput} * @returns {@link UpdateContactCommandOutput} * @see {@link UpdateContactCommandInput} for command's `input` shape. * @see {@link UpdateContactCommandOutput} 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 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 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 UpdateContactCommand extends UpdateContactCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateContactRequest; output: {}; }; sdk: { input: UpdateContactCommandInput; output: UpdateContactCommandOutput; }; }; }