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
23176 23177 23178 23179 23180 23181 23182 23183 23184 23185 23186 23187 23188 23189 23190 23191 23192 23193 23194 23195 23196 23197 23198 23199 23200 23201 23202 23203 23204 23205 23206 23207 23208 23209 23210 23211 23212 23213 23214 23215 23216 23217 23218 23219 23220 23221 23222 23223 23224 23225 23226 23227 23228 23229 23230 23231 23232 23233 23234 23235 23236 23237 23238 23239 23240 23241 23242 23243 23244 23245 23246 23247 23248 23249 23250 23251 23252 23253 23254 23255 23256 23257 23258 23259 23260 23261 23262 23263 23264 23265 | |