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
23968 23969 23970 23971 23972 23973 23974 23975 23976 23977 23978 23979 23980 23981 23982 23983 23984 23985 23986 23987 23988 23989 23990 23991 23992 23993 23994 23995 23996 23997 23998 23999 24000 24001 24002 24003 24004 24005 24006 24007 24008 24009 24010 24011 24012 24013 24014 24015 24016 24017 24018 24019 24020 24021 24022 24023 24024 24025 24026 24027 24028 24029 24030 24031 24032 24033 24034 24035 24036 24037 24038 24039 24040 24041 24042 24043 24044 24045 24046 24047 24048 24049 24050 24051 24052 24053 24054 24055 24056 24057 24058 24059 24060 24061 24062 24063 24064 24065 24066 24067 24068 24069 24070 24071 24072 24073 24074 24075 24076 24077 24078 24079 24080 24081 24082 24083 24084 24085 24086 24087 24088 | |