@Stability(value=Stable)
public static interface CfnConfigurationSetEventDestination.EventDestinationProperty
extends software.amazon.jsii.JsiiSerializable
When you create or update an event destination, you must provide one, and only one, destination. The destination can be Amazon CloudWatch, Amazon Kinesis Firehose or Amazon Simple Notification Service (Amazon SNS).
Event destinations are associated with configuration sets, which enable you to publish email sending events to Amazon CloudWatch, Amazon Kinesis Firehose, or Amazon Simple Notification Service (Amazon SNS). For information about using configuration sets, see the Amazon SES Developer Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ses.*;
EventDestinationProperty eventDestinationProperty = EventDestinationProperty.builder()
.matchingEventTypes(List.of("matchingEventTypes"))
// the properties below are optional
.cloudWatchDestination(CloudWatchDestinationProperty.builder()
.dimensionConfigurations(List.of(DimensionConfigurationProperty.builder()
.defaultDimensionValue("defaultDimensionValue")
.dimensionName("dimensionName")
.dimensionValueSource("dimensionValueSource")
.build()))
.build())
.enabled(false)
.kinesisFirehoseDestination(KinesisFirehoseDestinationProperty.builder()
.deliveryStreamArn("deliveryStreamArn")
.iamRoleArn("iamRoleArn")
.build())
.name("name")
.snsDestination(SnsDestinationProperty.builder()
.topicArn("topicArn")
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnConfigurationSetEventDestination.EventDestinationProperty.Builder
|
static class |
CfnConfigurationSetEventDestination.EventDestinationProperty.Jsii$Proxy
An implementation for
CfnConfigurationSetEventDestination.EventDestinationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnConfigurationSetEventDestination.EventDestinationProperty.Builder |
builder() |
default Object |
getCloudWatchDestination()
An object that contains the names, default values, and sources of the dimensions associated with an Amazon CloudWatch event destination.
|
default Object |
getEnabled()
Sets whether Amazon SES publishes events to this destination when you send an email with the associated configuration set.
|
default Object |
getKinesisFirehoseDestination()
An object that contains the delivery stream ARN and the IAM role ARN associated with an Amazon Kinesis Firehose event destination.
|
List<String> |
getMatchingEventTypes()
The type of email sending events to publish to the event destination.
|
default String |
getName()
The name of the event destination.
|
default Object |
getSnsDestination()
`CfnConfigurationSetEventDestination.EventDestinationProperty.SnsDestination`.
|
@Stability(value=Stable) @NotNull List<String> getMatchingEventTypes()
send - The call was successful and Amazon SES is attempting to deliver the email.reject - Amazon SES determined that the email contained a virus and rejected it.bounce - The recipient's mail server permanently rejected the email. This corresponds to a hard bounce.complaint - The recipient marked the email as spam.delivery - Amazon SES successfully delivered the email to the recipient's mail server.open - The recipient received the email and opened it in their email client.click - The recipient clicked one or more links in the email.renderingFailure - Amazon SES did not send the email because of a template rendering issue.@Stability(value=Stable) @Nullable default Object getCloudWatchDestination()
@Stability(value=Stable) @Nullable default Object getEnabled()
Set to true to enable publishing to this destination; set to false to prevent publishing to this destination. The default value is false .
@Stability(value=Stable) @Nullable default Object getKinesisFirehoseDestination()
@Stability(value=Stable) @Nullable default String getName()
@Stability(value=Stable) @Nullable default Object getSnsDestination()
@Stability(value=Stable) static CfnConfigurationSetEventDestination.EventDestinationProperty.Builder builder()
Copyright © 2022. All rights reserved.