setIdentityHeadersInNotificationsEnabled
abstract suspend fun setIdentityHeadersInNotificationsEnabled(input: SetIdentityHeadersInNotificationsEnabledRequest): 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.
Samples
fun main() {
//sampleStart
// The following example configures Amazon SES to include the original email headers in the Amazon SNS
// bounce notifications for an identity
sesClient.setIdentityHeadersInNotificationsEnabled {
identity = "user@example.com"
notificationType = NotificationType.fromValue("Bounce")
enabled = true
}
//sampleEnd
}