start_email_contact
async
¶
start_email_contact(
instance_id: InstanceId,
from_email_address: EmailAddressInfo,
destination_email_address: EmailAddress,
email_message: InboundEmailContent,
*,
config_overrides: Optional[AsyncConnectClientConfig] = 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/async_connect.py
23729 23730 23731 23732 23733 23734 23735 23736 23737 23738 23739 23740 23741 23742 23743 23744 23745 23746 23747 23748 23749 23750 23751 23752 23753 23754 23755 23756 23757 23758 23759 23760 23761 23762 23763 23764 23765 23766 23767 23768 23769 23770 23771 23772 23773 23774 23775 23776 23777 23778 23779 23780 23781 23782 23783 23784 23785 23786 23787 23788 23789 23790 23791 23792 23793 23794 23795 23796 23797 23798 23799 23800 23801 23802 23803 23804 23805 23806 23807 23808 23809 23810 23811 23812 23813 23814 23815 23816 23817 23818 23819 23820 23821 23822 23823 23824 23825 23826 23827 23828 23829 23830 23831 23832 23833 23834 23835 23836 23837 23838 23839 23840 23841 23842 23843 23844 23845 23846 23847 23848 23849 | |