send_outbound_email
¶
send_outbound_email(
instance_id: InstanceId,
from_email_address: EmailAddressInfo,
destination_email_address: EmailAddressInfo,
email_message: OutboundEmailContent,
traffic_type: TrafficType,
*,
config_overrides: Optional[ConnectClientConfig] = None,
additional_recipients: Optional[OutboundAdditionalRecipients] = None,
source_campaign: Optional[SourceCampaign] = None,
client_token: Optional[ClientToken] = None,
) -> SendOutboundEmailResponse
Send outbound email for outbound campaigns. For more information about outbound campaigns, see Set up Connect Customer outbound campaigns.
Only the Connect Customer outbound campaigns service principal is allowed to assume a role in your account and call this API.
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 to be used for sending email.
-
destination_email_address(EmailAddressInfo) –The email address to send the email to.
-
additional_recipients(Optional[OutboundAdditionalRecipients], default:None) –The additional recipients address of the email in CC.
-
email_message(OutboundEmailContent) –The email message body to be sent to the newly created email.
-
traffic_type(TrafficType) –Denotes the class of traffic.
Only the CAMPAIGN traffic type is supported.
-
source_campaign(Optional[SourceCampaign], default:None) –A Campaign object need for Campaign traffic type.
-
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
22638 22639 22640 22641 22642 22643 22644 22645 22646 22647 22648 22649 22650 22651 22652 22653 22654 22655 22656 22657 22658 22659 22660 22661 22662 22663 22664 22665 22666 22667 22668 22669 22670 22671 22672 22673 22674 22675 22676 22677 22678 22679 22680 22681 22682 22683 22684 22685 22686 22687 22688 22689 22690 22691 22692 22693 22694 22695 22696 22697 22698 22699 22700 22701 22702 22703 22704 22705 22706 22707 22708 22709 22710 22711 22712 22713 22714 22715 22716 22717 22718 22719 22720 22721 22722 22723 22724 22725 22726 | |