set_identity_headers_in_notifications_enabled
async
¶
set_identity_headers_in_notifications_enabled(
identity: Identity,
notification_type: NotificationType,
enabled: Enabled,
*,
config_overrides: Optional[AsyncSESClientConfig] = None,
) -> SetIdentityHeadersInNotificationsEnabledResponse
Given an identity (an email address or a domain), sets whether Amazon SES includes the original email headers in the Amazon Simple Notification Service (Amazon SNS) notifications of a specified type.
You can execute this operation no more than once per second.
For more information about using notifications with Amazon SES, see the Amazon SES Developer Guide.
Parameters:
-
identity(Identity) –The identity for which to enable or disable headers in notifications. Examples:
[email protected],example.com. -
notification_type(NotificationType) –The notification type for which to enable or disable headers in notifications.
-
enabled(Enabled) –Sets whether Amazon SES includes the original email headers in Amazon SNS notifications of the specified notification type. A value of
truespecifies that Amazon SES includes headers in notifications, and a value offalsespecifies that Amazon SES does not include headers in notifications.This value can only be set when
NotificationTypeis already set to use a particular Amazon SNS topic.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
SetIdentityHeadersInNotificationsEnabled The following example configures Amazon SES to include the original email headers in the Amazon SNS bounce notifications for an identity:
>>> await client.set_identity_headers_in_notifications_enabled(identity='[email protected]', notification_type='Bounce', enabled=True)
Source code in docs_src/capo_ses/_services/async_ses.py
|