Class CfnConfigurationSetEventDestination

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.pinpointemail.CfnConfigurationSetEventDestination
All Implemented Interfaces:
IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:20.614Z") @Stability(Stable) public class CfnConfigurationSetEventDestination extends CfnResource implements IInspectable
Create an event destination.

In Amazon Pinpoint, events include message sends, deliveries, opens, clicks, bounces, and complaints. Event destinations are places that you can send information about these events to. For example, you can send event data to Amazon SNS to receive notifications when you receive bounces or complaints, or you can use Amazon Kinesis Data Firehose to stream data to Amazon S3 for long-term storage.

A single configuration set can include more than one event destination.

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.pinpointemail.*;
 CfnConfigurationSetEventDestination cfnConfigurationSetEventDestination = CfnConfigurationSetEventDestination.Builder.create(this, "MyCfnConfigurationSetEventDestination")
         .configurationSetName("configurationSetName")
         .eventDestinationName("eventDestinationName")
         // the properties below are optional
         .eventDestination(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())
                 .pinpointDestination(PinpointDestinationProperty.builder()
                         .applicationArn("applicationArn")
                         .build())
                 .snsDestination(SnsDestinationProperty.builder()
                         .topicArn("topicArn")
                         .build())
                 .build())
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnConfigurationSetEventDestination

      protected CfnConfigurationSetEventDestination(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnConfigurationSetEventDestination

      protected CfnConfigurationSetEventDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnConfigurationSetEventDestination

      @Stability(Stable) public CfnConfigurationSetEventDestination(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnConfigurationSetEventDestinationProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrId

      @Stability(Stable) @NotNull public String getAttrId()
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getConfigurationSetName

      @Stability(Stable) @NotNull public String getConfigurationSetName()
      The name of the configuration set that contains the event destination that you want to modify.
    • setConfigurationSetName

      @Stability(Stable) public void setConfigurationSetName(@NotNull String value)
      The name of the configuration set that contains the event destination that you want to modify.
    • getEventDestinationName

      @Stability(Stable) @NotNull public String getEventDestinationName()
      The name of the event destination that you want to modify.
    • setEventDestinationName

      @Stability(Stable) public void setEventDestinationName(@NotNull String value)
      The name of the event destination that you want to modify.
    • getEventDestination

      @Stability(Stable) @Nullable public Object getEventDestination()
      An object that defines the event destination.
    • setEventDestination

      @Stability(Stable) public void setEventDestination(@Nullable IResolvable value)
      An object that defines the event destination.
    • setEventDestination

      @Stability(Stable) public void setEventDestination(@Nullable CfnConfigurationSetEventDestination.EventDestinationProperty value)
      An object that defines the event destination.