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

Creates an inbound email contact and initiates a flow to start the email contact for the customer. Response of * this API provides the ContactId of the email contact created.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ConnectClient, StartEmailContactCommand } from "@aws-sdk/client-connect"; // ES Modules import * // const { ConnectClient, StartEmailContactCommand } = 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 = { // StartEmailContactRequest * InstanceId: "STRING_VALUE", // required * FromEmailAddress: { // EmailAddressInfo * EmailAddress: "STRING_VALUE", // required * DisplayName: "STRING_VALUE", * }, * DestinationEmailAddress: "STRING_VALUE", // required * 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", * }, * }, * Name: "STRING_VALUE", * EmailMessage: { // InboundEmailContent * MessageSourceType: "RAW", // required * RawMessage: { // InboundRawMessage * Subject: "STRING_VALUE", // required * Body: "STRING_VALUE", // required * ContentType: "STRING_VALUE", // required * Headers: { // EmailHeaders * "": "STRING_VALUE", * }, * }, * }, * AdditionalRecipients: { // InboundAdditionalRecipients * ToAddresses: [ // EmailAddressRecipientList * { * EmailAddress: "STRING_VALUE", // required * DisplayName: "STRING_VALUE", * }, * ], * CcAddresses: [ * { * EmailAddress: "STRING_VALUE", // required * DisplayName: "STRING_VALUE", * }, * ], * }, * Attachments: [ // EmailAttachments * { // EmailAttachment * FileName: "STRING_VALUE", // required * S3Url: "STRING_VALUE", // required * }, * ], * ContactFlowId: "STRING_VALUE", * RelatedContactId: "STRING_VALUE", * Attributes: { // Attributes * "": "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", * }, * }, * ClientToken: "STRING_VALUE", * }; * const command = new StartEmailContactCommand(input); * const response = await client.send(command); * // { // StartEmailContactResponse * // ContactId: "STRING_VALUE", * // }; * * ``` * * @param StartEmailContactCommandInput - {@link StartEmailContactCommandInput} * @returns {@link StartEmailContactCommandOutput} * @see {@link StartEmailContactCommandInput} for command's `input` shape. * @see {@link StartEmailContactCommandOutput} 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 IdempotencyException} (client fault) *

An entity with the same name already exists.

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

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

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

The request is not valid.

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

The specified resource was not found.

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

The service quota has been exceeded.

* * @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 StartEmailContactCommand extends StartEmailContactCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: StartEmailContactRequest; output: StartEmailContactResponse; }; sdk: { input: StartEmailContactCommandInput; output: StartEmailContactCommandOutput; }; }; }