send_outbound_email
async
¶
send_outbound_email(
instance_id: InstanceId,
from_email_address: EmailAddressInfo,
destination_email_address: EmailAddressInfo,
email_message: OutboundEmailContent,
traffic_type: TrafficType,
*,
config_overrides: Optional[AsyncConnectClientConfig] = 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/async_connect.py
22943 22944 22945 22946 22947 22948 22949 22950 22951 22952 22953 22954 22955 22956 22957 22958 22959 22960 22961 22962 22963 22964 22965 22966 22967 22968 22969 22970 22971 22972 22973 22974 22975 22976 22977 22978 22979 22980 22981 22982 22983 22984 22985 22986 22987 22988 22989 22990 22991 22992 22993 22994 22995 22996 22997 22998 22999 23000 23001 23002 23003 23004 23005 23006 23007 23008 23009 23010 23011 23012 23013 23014 23015 23016 23017 23018 23019 23020 23021 23022 23023 23024 23025 23026 23027 23028 23029 23030 23031 23032 | |