start_email_contact
¶
start_email_contact(
instance_id: InstanceId,
from_email_address: EmailAddressInfo,
destination_email_address: EmailAddress,
email_message: InboundEmailContent,
*,
config_overrides: Optional[ConnectClientConfig] = None,
description: Optional[Description] = None,
references: Optional[ContactReferences] = None,
name: Optional[Name] = None,
additional_recipients: Optional[InboundAdditionalRecipients] = None,
attachments: Optional[EmailAttachments] = None,
contact_flow_id: Optional[ContactFlowId] = None,
related_contact_id: Optional[ContactId] = None,
attributes: Optional[Attributes] = None,
segment_attributes: Optional[SegmentAttributes] = None,
client_token: Optional[ClientToken] = None,
) -> StartEmailContactResponse
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.
Parameters:
-
instance_id(InstanceId) –The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
from_email_address(EmailAddressInfo) –The email address of the customer.
-
destination_email_address(EmailAddress) –The email address associated with the Connect Customer instance.
-
description(Optional[Description], default:None) –A description of the email contact.
-
references(Optional[ContactReferences], default:None) –A formatted URL that is shown to an agent in the Contact Control Panel (CCP). Emails can have the following reference types at the time of creation:
URL|NUMBER|STRING|DATE.EMAIL|EMAIL_MESSAGE|ATTACHMENTare not a supported reference type during email creation. -
name(Optional[Name], default:None) –The name of a email that is shown to an agent in the Contact Control Panel (CCP).
-
email_message(InboundEmailContent) –The email message body to be sent to the newly created email.
-
additional_recipients(Optional[InboundAdditionalRecipients], default:None) –The additional recipients address of the email.
-
attachments(Optional[EmailAttachments], default:None) –List of S3 presigned URLs of email attachments and their file name.
-
contact_flow_id(Optional[ContactFlowId], default:None) –The identifier of the flow for initiating the emails. To see the ContactFlowId in the Connect Customer admin website, on the navigation menu go to Routing, Flows. Choose the flow. On the flow page, under the name of the flow, choose Show additional flow information. The ContactFlowId is the last part of the ARN, shown here in bold:
arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/contact-flow/846ec553-a005-41c0-8341-xxxxxxxxxxxx
-
related_contact_id(Optional[ContactId], default:None) –The contactId that is related to this contact. Linking emails together by using
RelatedContactIDcopies over contact attributes from the related email contact to the new email contact. All updates to user-defined attributes in the new email contact are limited to the individual contact ID. There are no limits to the number of contacts that can be linked by usingRelatedContactId. -
attributes(Optional[Attributes], default:None) –A custom key-value pair using an attribute map. The attributes are standard Connect Customer attributes, and can be accessed in flows just like any other contact attributes.
There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can include only alphanumeric, dash, and underscore characters.
-
segment_attributes(Optional[SegmentAttributes], default:None) –A set of system defined key-value pairs stored on individual contact segments using an attribute map. The attributes are standard Connect Customer attributes. They can be accessed in flows.
Attribute keys can include only alphanumeric, -, and _.
This field can be used to show channel subtype, such as
connect:Guide.To set contact expiry, a
ValueMapmust be specified containing the integer number of minutes the contact will be active for before expiring, withSegmentAttributeslike {"connect:ContactExpiry": {"ValueMap" : { "ExpiryDuration": { "ValueInteger":135}}}}. -
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
IdempotencyException–An entity with the same name already exists.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidRequestException–The request is not valid.
-
ResourceNotFoundException–The specified resource was not found.
-
ServiceQuotaExceededException–The service quota has been exceeded.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/connect.py
23414 23415 23416 23417 23418 23419 23420 23421 23422 23423 23424 23425 23426 23427 23428 23429 23430 23431 23432 23433 23434 23435 23436 23437 23438 23439 23440 23441 23442 23443 23444 23445 23446 23447 23448 23449 23450 23451 23452 23453 23454 23455 23456 23457 23458 23459 23460 23461 23462 23463 23464 23465 23466 23467 23468 23469 23470 23471 23472 23473 23474 23475 23476 23477 23478 23479 23480 23481 23482 23483 23484 23485 23486 23487 23488 23489 23490 23491 23492 23493 23494 23495 23496 23497 23498 23499 23500 23501 23502 23503 23504 23505 23506 23507 23508 23509 23510 23511 23512 23513 23514 23515 23516 23517 23518 23519 23520 23521 23522 23523 23524 23525 23526 23527 23528 23529 23530 23531 23532 23533 | |