ConfigurationSetEventDestination class

Resource for managing an AWS SESv2 (Simple Email V2) Configuration Set Event Destination.

Example Usage

CloudWatch Destination

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.sesv2.ConfigurationSet("example", {configurationSetName: "example"});
const exampleConfigurationSetEventDestination = new aws.sesv2.ConfigurationSetEventDestination("example", {
    eventDestination: {
        cloudWatchDestination: {
            dimensionConfigurations: [{
                defaultDimensionValue: "example",
                dimensionName: "example",
                dimensionValueSource: "MESSAGE_TAG",
            }],
        },
        enabled: true,
        matchingEventTypes: ["SEND"],
    },
    configurationSetName: example.configurationSetName,
    eventDestinationName: "example",
});
import pulumi
import pulumi_aws as aws

example = aws.sesv2.ConfigurationSet("example", configuration_set_name="example")
example_configuration_set_event_destination = aws.sesv2.ConfigurationSetEventDestination("example",
    event_destination={
        "cloud_watch_destination": {
            "dimension_configurations": [{
                "default_dimension_value": "example",
                "dimension_name": "example",
                "dimension_value_source": "MESSAGE_TAG",
            }],
        },
        "enabled": True,
        "matching_event_types": ["SEND"],
    },
    configuration_set_name=example.configuration_set_name,
    event_destination_name="example")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() =>
{
    var example = new Aws.SesV2.ConfigurationSet("example", new()
    {
        ConfigurationSetName = "example",
    });

    var exampleConfigurationSetEventDestination = new Aws.SesV2.ConfigurationSetEventDestination("example", new()
    {
        EventDestination = new Aws.SesV2.Inputs.ConfigurationSetEventDestinationEventDestinationArgs
        {
            CloudWatchDestination = new Aws.SesV2.Inputs.ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationArgs
            {
                DimensionConfigurations = new[]
                {
                    new Aws.SesV2.Inputs.ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationDimensionConfigurationArgs
                    {
                        DefaultDimensionValue = "example",
                        DimensionName = "example",
                        DimensionValueSource = "MESSAGE_TAG",
                    },
                },
            },
            Enabled = true,
            MatchingEventTypes = new[]
            {
                "SEND",
            },
        },
        ConfigurationSetName = example.ConfigurationSetName,
        EventDestinationName = "example",
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/sesv2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := sesv2.NewConfigurationSet(ctx, "example", &sesv2.ConfigurationSetArgs{
			ConfigurationSetName: pulumi.String("example"),
		})
		if err != nil {
			return err
		}
		_, err = sesv2.NewConfigurationSetEventDestination(ctx, "example", &sesv2.ConfigurationSetEventDestinationArgs{
			EventDestination: &sesv2.ConfigurationSetEventDestinationEventDestinationArgs{
				CloudWatchDestination: &sesv2.ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationArgs{
					DimensionConfigurations: sesv2.ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationDimensionConfigurationArray{
						&sesv2.ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationDimensionConfigurationArgs{
							DefaultDimensionValue: pulumi.String("example"),
							DimensionName:         pulumi.String("example"),
							DimensionValueSource:  pulumi.String("MESSAGE_TAG"),
						},
					},
				},
				Enabled: pulumi.Bool(true),
				MatchingEventTypes: pulumi.StringArray{
					pulumi.String("SEND"),
				},
			},
			ConfigurationSetName: example.ConfigurationSetName,
			EventDestinationName: pulumi.String("example"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
pulumi {
  required_providers {
    aws = {
      source = "pulumi/aws"
    }
  }
}

resource "aws_sesv2_configurationset" "example" {
  configuration_set_name = "example"
}
resource "aws_sesv2_configurationseteventdestination" "example" {
  event_destination = {
    cloud_watch_destination = {
      dimension_configurations = [{
        "defaultDimensionValue" = "example"
        "dimensionName"         = "example"
        "dimensionValueSource"  = "MESSAGE_TAG"
      }]
    }
    enabled              = true
    matching_event_types = ["SEND"]
  }
  configuration_set_name = aws_sesv2_configurationset.example.configuration_set_name
  event_destination_name = "example"
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sesv2.ConfigurationSet;
import com.pulumi.aws.sesv2.ConfigurationSetArgs;
import com.pulumi.aws.sesv2.ConfigurationSetEventDestination;
import com.pulumi.aws.sesv2.ConfigurationSetEventDestinationArgs;
import com.pulumi.aws.sesv2.inputs.ConfigurationSetEventDestinationEventDestinationArgs;
import com.pulumi.aws.sesv2.inputs.ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationArgs;
import com.pulumi.aws.sesv2.inputs.ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationDimensionConfigurationArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new ConfigurationSet("example", ConfigurationSetArgs.builder()
            .configurationSetName("example")
            .build());

        var exampleConfigurationSetEventDestination = new ConfigurationSetEventDestination("exampleConfigurationSetEventDestination", ConfigurationSetEventDestinationArgs.builder()
            .eventDestination(ConfigurationSetEventDestinationEventDestinationArgs.builder()
                .cloudWatchDestination(ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationArgs.builder()
                    .dimensionConfigurations(ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationDimensionConfigurationArgs.builder()
                        .defaultDimensionValue("example")
                        .dimensionName("example")
                        .dimensionValueSource("MESSAGE_TAG")
                        .build())
                    .build())
                .enabled(true)
                .matchingEventTypes("SEND")
                .build())
            .configurationSetName(example.configurationSetName())
            .eventDestinationName("example")
            .build());

    }
}
resources:
  example:
    type: aws:sesv2:ConfigurationSet
    properties:
      configurationSetName: example
  exampleConfigurationSetEventDestination:
    type: aws:sesv2:ConfigurationSetEventDestination
    name: example
    properties:
      eventDestination:
        cloudWatchDestination:
          dimensionConfigurations:
            - defaultDimensionValue: example
              dimensionName: example
              dimensionValueSource: MESSAGE_TAG
        enabled: true
        matchingEventTypes:
          - SEND
      configurationSetName: ${example.configurationSetName}
      eventDestinationName: example

EventBridge Destination

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const _default = aws.cloudwatch.getEventBus({
    name: "default",
});
const example = new aws.sesv2.ConfigurationSetEventDestination("example", {
    eventDestination: {
        eventBridgeDestination: {
            eventBusArn: _default.then(_default => _default.arn),
        },
        enabled: true,
        matchingEventTypes: ["SEND"],
    },
    configurationSetName: exampleAwsSesv2ConfigurationSet.configurationSetName,
    eventDestinationName: "example",
});
import pulumi
import pulumi_aws as aws

default = aws.cloudwatch.get_event_bus(name="default")
example = aws.sesv2.ConfigurationSetEventDestination("example",
    event_destination={
        "event_bridge_destination": {
            "event_bus_arn": default.arn,
        },
        "enabled": True,
        "matching_event_types": ["SEND"],
    },
    configuration_set_name=example_aws_sesv2_configuration_set["configurationSetName"],
    event_destination_name="example")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() =>
{
    var @default = Aws.CloudWatch.GetEventBus.Invoke(new()
    {
        Name = "default",
    });

    var example = new Aws.SesV2.ConfigurationSetEventDestination("example", new()
    {
        EventDestination = new Aws.SesV2.Inputs.ConfigurationSetEventDestinationEventDestinationArgs
        {
            EventBridgeDestination = new Aws.SesV2.Inputs.ConfigurationSetEventDestinationEventDestinationEventBridgeDestinationArgs
            {
                EventBusArn = @default.Apply(@default => @default.Apply(getEventBusResult => getEventBusResult.Arn)),
            },
            Enabled = true,
            MatchingEventTypes = new[]
            {
                "SEND",
            },
        },
        ConfigurationSetName = exampleAwsSesv2ConfigurationSet.ConfigurationSetName,
        EventDestinationName = "example",
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/cloudwatch"
	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/sesv2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := cloudwatch.LookupEventBus(ctx, &cloudwatch.LookupEventBusArgs{
			Name: "default",
		}, nil)
		if err != nil {
			return err
		}
		_, err = sesv2.NewConfigurationSetEventDestination(ctx, "example", &sesv2.ConfigurationSetEventDestinationArgs{
			EventDestination: &sesv2.ConfigurationSetEventDestinationEventDestinationArgs{
				EventBridgeDestination: &sesv2.ConfigurationSetEventDestinationEventDestinationEventBridgeDestinationArgs{
					EventBusArn: pulumi.String(_default.Arn),
				},
				Enabled: pulumi.Bool(true),
				MatchingEventTypes: pulumi.StringArray{
					pulumi.String("SEND"),
				},
			},
			ConfigurationSetName: pulumi.Any(exampleAwsSesv2ConfigurationSet.ConfigurationSetName),
			EventDestinationName: pulumi.String("example"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
pulumi {
  required_providers {
    aws = {
      source = "pulumi/aws"
    }
  }
}

data "aws_cloudwatch_geteventbus" "default" {
  name = "default"
}

resource "aws_sesv2_configurationseteventdestination" "example" {
  event_destination = {
    event_bridge_destination = {
      event_bus_arn = data.aws_cloudwatch_geteventbus.default.arn
    }
    enabled              = true
    matching_event_types = ["SEND"]
  }
  configuration_set_name = exampleAwsSesv2ConfigurationSet.configurationSetName
  event_destination_name = "example"
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.cloudwatch.CloudwatchFunctions;
import com.pulumi.aws.cloudwatch.inputs.GetEventBusArgs;
import com.pulumi.aws.sesv2.ConfigurationSetEventDestination;
import com.pulumi.aws.sesv2.ConfigurationSetEventDestinationArgs;
import com.pulumi.aws.sesv2.inputs.ConfigurationSetEventDestinationEventDestinationArgs;
import com.pulumi.aws.sesv2.inputs.ConfigurationSetEventDestinationEventDestinationEventBridgeDestinationArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var default = CloudwatchFunctions.getEventBus(GetEventBusArgs.builder()
            .name("default")
            .build());

        var example = new ConfigurationSetEventDestination("example", ConfigurationSetEventDestinationArgs.builder()
            .eventDestination(ConfigurationSetEventDestinationEventDestinationArgs.builder()
                .eventBridgeDestination(ConfigurationSetEventDestinationEventDestinationEventBridgeDestinationArgs.builder()
                    .eventBusArn(default_.arn())
                    .build())
                .enabled(true)
                .matchingEventTypes("SEND")
                .build())
            .configurationSetName(exampleAwsSesv2ConfigurationSet.configurationSetName())
            .eventDestinationName("example")
            .build());

    }
}
resources:
  example:
    type: aws:sesv2:ConfigurationSetEventDestination
    properties:
      eventDestination:
        eventBridgeDestination:
          eventBusArn: ${default.arn}
        enabled: true
        matchingEventTypes:
          - SEND
      configurationSetName: ${exampleAwsSesv2ConfigurationSet.configurationSetName}
      eventDestinationName: example
variables:
  default:
    fn::invoke:
      function: aws:cloudwatch:getEventBus
      arguments:
        name: default

Kinesis Firehose Destination

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.sesv2.ConfigurationSet("example", {configurationSetName: "example"});
const exampleConfigurationSetEventDestination = new aws.sesv2.ConfigurationSetEventDestination("example", {
    eventDestination: {
        kinesisFirehoseDestination: {
            deliveryStreamArn: exampleAwsKinesisFirehoseDeliveryStream.arn,
            iamRoleArn: exampleAwsIamRole.arn,
        },
        enabled: true,
        matchingEventTypes: ["SEND"],
    },
    configurationSetName: example.configurationSetName,
    eventDestinationName: "example",
});
import pulumi
import pulumi_aws as aws

example = aws.sesv2.ConfigurationSet("example", configuration_set_name="example")
example_configuration_set_event_destination = aws.sesv2.ConfigurationSetEventDestination("example",
    event_destination={
        "kinesis_firehose_destination": {
            "delivery_stream_arn": example_aws_kinesis_firehose_delivery_stream["arn"],
            "iam_role_arn": example_aws_iam_role["arn"],
        },
        "enabled": True,
        "matching_event_types": ["SEND"],
    },
    configuration_set_name=example.configuration_set_name,
    event_destination_name="example")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() =>
{
    var example = new Aws.SesV2.ConfigurationSet("example", new()
    {
        ConfigurationSetName = "example",
    });

    var exampleConfigurationSetEventDestination = new Aws.SesV2.ConfigurationSetEventDestination("example", new()
    {
        EventDestination = new Aws.SesV2.Inputs.ConfigurationSetEventDestinationEventDestinationArgs
        {
            KinesisFirehoseDestination = new Aws.SesV2.Inputs.ConfigurationSetEventDestinationEventDestinationKinesisFirehoseDestinationArgs
            {
                DeliveryStreamArn = exampleAwsKinesisFirehoseDeliveryStream.Arn,
                IamRoleArn = exampleAwsIamRole.Arn,
            },
            Enabled = true,
            MatchingEventTypes = new[]
            {
                "SEND",
            },
        },
        ConfigurationSetName = example.ConfigurationSetName,
        EventDestinationName = "example",
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/sesv2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := sesv2.NewConfigurationSet(ctx, "example", &sesv2.ConfigurationSetArgs{
			ConfigurationSetName: pulumi.String("example"),
		})
		if err != nil {
			return err
		}
		_, err = sesv2.NewConfigurationSetEventDestination(ctx, "example", &sesv2.ConfigurationSetEventDestinationArgs{
			EventDestination: &sesv2.ConfigurationSetEventDestinationEventDestinationArgs{
				KinesisFirehoseDestination: &sesv2.ConfigurationSetEventDestinationEventDestinationKinesisFirehoseDestinationArgs{
					DeliveryStreamArn: pulumi.Any(exampleAwsKinesisFirehoseDeliveryStream.Arn),
					IamRoleArn:        pulumi.Any(exampleAwsIamRole.Arn),
				},
				Enabled: pulumi.Bool(true),
				MatchingEventTypes: pulumi.StringArray{
					pulumi.String("SEND"),
				},
			},
			ConfigurationSetName: example.ConfigurationSetName,
			EventDestinationName: pulumi.String("example"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
pulumi {
  required_providers {
    aws = {
      source = "pulumi/aws"
    }
  }
}

resource "aws_sesv2_configurationset" "example" {
  configuration_set_name = "example"
}
resource "aws_sesv2_configurationseteventdestination" "example" {
  event_destination = {
    kinesis_firehose_destination = {
      delivery_stream_arn = exampleAwsKinesisFirehoseDeliveryStream.arn
      iam_role_arn        = exampleAwsIamRole.arn
    }
    enabled              = true
    matching_event_types = ["SEND"]
  }
  configuration_set_name = aws_sesv2_configurationset.example.configuration_set_name
  event_destination_name = "example"
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sesv2.ConfigurationSet;
import com.pulumi.aws.sesv2.ConfigurationSetArgs;
import com.pulumi.aws.sesv2.ConfigurationSetEventDestination;
import com.pulumi.aws.sesv2.ConfigurationSetEventDestinationArgs;
import com.pulumi.aws.sesv2.inputs.ConfigurationSetEventDestinationEventDestinationArgs;
import com.pulumi.aws.sesv2.inputs.ConfigurationSetEventDestinationEventDestinationKinesisFirehoseDestinationArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new ConfigurationSet("example", ConfigurationSetArgs.builder()
            .configurationSetName("example")
            .build());

        var exampleConfigurationSetEventDestination = new ConfigurationSetEventDestination("exampleConfigurationSetEventDestination", ConfigurationSetEventDestinationArgs.builder()
            .eventDestination(ConfigurationSetEventDestinationEventDestinationArgs.builder()
                .kinesisFirehoseDestination(ConfigurationSetEventDestinationEventDestinationKinesisFirehoseDestinationArgs.builder()
                    .deliveryStreamArn(exampleAwsKinesisFirehoseDeliveryStream.arn())
                    .iamRoleArn(exampleAwsIamRole.arn())
                    .build())
                .enabled(true)
                .matchingEventTypes("SEND")
                .build())
            .configurationSetName(example.configurationSetName())
            .eventDestinationName("example")
            .build());

    }
}
resources:
  example:
    type: aws:sesv2:ConfigurationSet
    properties:
      configurationSetName: example
  exampleConfigurationSetEventDestination:
    type: aws:sesv2:ConfigurationSetEventDestination
    name: example
    properties:
      eventDestination:
        kinesisFirehoseDestination:
          deliveryStreamArn: ${exampleAwsKinesisFirehoseDeliveryStream.arn}
          iamRoleArn: ${exampleAwsIamRole.arn}
        enabled: true
        matchingEventTypes:
          - SEND
      configurationSetName: ${example.configurationSetName}
      eventDestinationName: example

End User Messaging Destination

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.sesv2.ConfigurationSet("example", {configurationSetName: "example"});
const exampleConfigurationSetEventDestination = new aws.sesv2.ConfigurationSetEventDestination("example", {
    eventDestination: {
        pinpointDestination: {
            applicationArn: exampleAwsPinpointApp.arn,
        },
        enabled: true,
        matchingEventTypes: ["SEND"],
    },
    configurationSetName: example.configurationSetName,
    eventDestinationName: "example",
});
import pulumi
import pulumi_aws as aws

example = aws.sesv2.ConfigurationSet("example", configuration_set_name="example")
example_configuration_set_event_destination = aws.sesv2.ConfigurationSetEventDestination("example",
    event_destination={
        "pinpoint_destination": {
            "application_arn": example_aws_pinpoint_app["arn"],
        },
        "enabled": True,
        "matching_event_types": ["SEND"],
    },
    configuration_set_name=example.configuration_set_name,
    event_destination_name="example")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() =>
{
    var example = new Aws.SesV2.ConfigurationSet("example", new()
    {
        ConfigurationSetName = "example",
    });

    var exampleConfigurationSetEventDestination = new Aws.SesV2.ConfigurationSetEventDestination("example", new()
    {
        EventDestination = new Aws.SesV2.Inputs.ConfigurationSetEventDestinationEventDestinationArgs
        {
            PinpointDestination = new Aws.SesV2.Inputs.ConfigurationSetEventDestinationEventDestinationPinpointDestinationArgs
            {
                ApplicationArn = exampleAwsPinpointApp.Arn,
            },
            Enabled = true,
            MatchingEventTypes = new[]
            {
                "SEND",
            },
        },
        ConfigurationSetName = example.ConfigurationSetName,
        EventDestinationName = "example",
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/sesv2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := sesv2.NewConfigurationSet(ctx, "example", &sesv2.ConfigurationSetArgs{
			ConfigurationSetName: pulumi.String("example"),
		})
		if err != nil {
			return err
		}
		_, err = sesv2.NewConfigurationSetEventDestination(ctx, "example", &sesv2.ConfigurationSetEventDestinationArgs{
			EventDestination: &sesv2.ConfigurationSetEventDestinationEventDestinationArgs{
				PinpointDestination: &sesv2.ConfigurationSetEventDestinationEventDestinationPinpointDestinationArgs{
					ApplicationArn: pulumi.Any(exampleAwsPinpointApp.Arn),
				},
				Enabled: pulumi.Bool(true),
				MatchingEventTypes: pulumi.StringArray{
					pulumi.String("SEND"),
				},
			},
			ConfigurationSetName: example.ConfigurationSetName,
			EventDestinationName: pulumi.String("example"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
pulumi {
  required_providers {
    aws = {
      source = "pulumi/aws"
    }
  }
}

resource "aws_sesv2_configurationset" "example" {
  configuration_set_name = "example"
}
resource "aws_sesv2_configurationseteventdestination" "example" {
  event_destination = {
    pinpoint_destination = {
      application_arn = exampleAwsPinpointApp.arn
    }
    enabled              = true
    matching_event_types = ["SEND"]
  }
  configuration_set_name = aws_sesv2_configurationset.example.configuration_set_name
  event_destination_name = "example"
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sesv2.ConfigurationSet;
import com.pulumi.aws.sesv2.ConfigurationSetArgs;
import com.pulumi.aws.sesv2.ConfigurationSetEventDestination;
import com.pulumi.aws.sesv2.ConfigurationSetEventDestinationArgs;
import com.pulumi.aws.sesv2.inputs.ConfigurationSetEventDestinationEventDestinationArgs;
import com.pulumi.aws.sesv2.inputs.ConfigurationSetEventDestinationEventDestinationPinpointDestinationArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new ConfigurationSet("example", ConfigurationSetArgs.builder()
            .configurationSetName("example")
            .build());

        var exampleConfigurationSetEventDestination = new ConfigurationSetEventDestination("exampleConfigurationSetEventDestination", ConfigurationSetEventDestinationArgs.builder()
            .eventDestination(ConfigurationSetEventDestinationEventDestinationArgs.builder()
                .pinpointDestination(ConfigurationSetEventDestinationEventDestinationPinpointDestinationArgs.builder()
                    .applicationArn(exampleAwsPinpointApp.arn())
                    .build())
                .enabled(true)
                .matchingEventTypes("SEND")
                .build())
            .configurationSetName(example.configurationSetName())
            .eventDestinationName("example")
            .build());

    }
}
resources:
  example:
    type: aws:sesv2:ConfigurationSet
    properties:
      configurationSetName: example
  exampleConfigurationSetEventDestination:
    type: aws:sesv2:ConfigurationSetEventDestination
    name: example
    properties:
      eventDestination:
        pinpointDestination:
          applicationArn: ${exampleAwsPinpointApp.arn}
        enabled: true
        matchingEventTypes:
          - SEND
      configurationSetName: ${example.configurationSetName}
      eventDestinationName: example

SNS Destination

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.sesv2.ConfigurationSet("example", {configurationSetName: "example"});
const exampleConfigurationSetEventDestination = new aws.sesv2.ConfigurationSetEventDestination("example", {
    eventDestination: {
        snsDestination: {
            topicArn: exampleAwsSnsTopic.arn,
        },
        enabled: true,
        matchingEventTypes: ["SEND"],
    },
    configurationSetName: example.configurationSetName,
    eventDestinationName: "example",
});
import pulumi
import pulumi_aws as aws

example = aws.sesv2.ConfigurationSet("example", configuration_set_name="example")
example_configuration_set_event_destination = aws.sesv2.ConfigurationSetEventDestination("example",
    event_destination={
        "sns_destination": {
            "topic_arn": example_aws_sns_topic["arn"],
        },
        "enabled": True,
        "matching_event_types": ["SEND"],
    },
    configuration_set_name=example.configuration_set_name,
    event_destination_name="example")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() =>
{
    var example = new Aws.SesV2.ConfigurationSet("example", new()
    {
        ConfigurationSetName = "example",
    });

    var exampleConfigurationSetEventDestination = new Aws.SesV2.ConfigurationSetEventDestination("example", new()
    {
        EventDestination = new Aws.SesV2.Inputs.ConfigurationSetEventDestinationEventDestinationArgs
        {
            SnsDestination = new Aws.SesV2.Inputs.ConfigurationSetEventDestinationEventDestinationSnsDestinationArgs
            {
                TopicArn = exampleAwsSnsTopic.Arn,
            },
            Enabled = true,
            MatchingEventTypes = new[]
            {
                "SEND",
            },
        },
        ConfigurationSetName = example.ConfigurationSetName,
        EventDestinationName = "example",
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/sesv2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := sesv2.NewConfigurationSet(ctx, "example", &sesv2.ConfigurationSetArgs{
			ConfigurationSetName: pulumi.String("example"),
		})
		if err != nil {
			return err
		}
		_, err = sesv2.NewConfigurationSetEventDestination(ctx, "example", &sesv2.ConfigurationSetEventDestinationArgs{
			EventDestination: &sesv2.ConfigurationSetEventDestinationEventDestinationArgs{
				SnsDestination: &sesv2.ConfigurationSetEventDestinationEventDestinationSnsDestinationArgs{
					TopicArn: pulumi.Any(exampleAwsSnsTopic.Arn),
				},
				Enabled: pulumi.Bool(true),
				MatchingEventTypes: pulumi.StringArray{
					pulumi.String("SEND"),
				},
			},
			ConfigurationSetName: example.ConfigurationSetName,
			EventDestinationName: pulumi.String("example"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
pulumi {
  required_providers {
    aws = {
      source = "pulumi/aws"
    }
  }
}

resource "aws_sesv2_configurationset" "example" {
  configuration_set_name = "example"
}
resource "aws_sesv2_configurationseteventdestination" "example" {
  event_destination = {
    sns_destination = {
      topic_arn = exampleAwsSnsTopic.arn
    }
    enabled              = true
    matching_event_types = ["SEND"]
  }
  configuration_set_name = aws_sesv2_configurationset.example.configuration_set_name
  event_destination_name = "example"
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sesv2.ConfigurationSet;
import com.pulumi.aws.sesv2.ConfigurationSetArgs;
import com.pulumi.aws.sesv2.ConfigurationSetEventDestination;
import com.pulumi.aws.sesv2.ConfigurationSetEventDestinationArgs;
import com.pulumi.aws.sesv2.inputs.ConfigurationSetEventDestinationEventDestinationArgs;
import com.pulumi.aws.sesv2.inputs.ConfigurationSetEventDestinationEventDestinationSnsDestinationArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new ConfigurationSet("example", ConfigurationSetArgs.builder()
            .configurationSetName("example")
            .build());

        var exampleConfigurationSetEventDestination = new ConfigurationSetEventDestination("exampleConfigurationSetEventDestination", ConfigurationSetEventDestinationArgs.builder()
            .eventDestination(ConfigurationSetEventDestinationEventDestinationArgs.builder()
                .snsDestination(ConfigurationSetEventDestinationEventDestinationSnsDestinationArgs.builder()
                    .topicArn(exampleAwsSnsTopic.arn())
                    .build())
                .enabled(true)
                .matchingEventTypes("SEND")
                .build())
            .configurationSetName(example.configurationSetName())
            .eventDestinationName("example")
            .build());

    }
}
resources:
  example:
    type: aws:sesv2:ConfigurationSet
    properties:
      configurationSetName: example
  exampleConfigurationSetEventDestination:
    type: aws:sesv2:ConfigurationSetEventDestination
    name: example
    properties:
      eventDestination:
        snsDestination:
          topicArn: ${exampleAwsSnsTopic.arn}
        enabled: true
        matchingEventTypes:
          - SEND
      configurationSetName: ${example.configurationSetName}
      eventDestinationName: example

Import

Using pulumi import, import SESv2 (Simple Email V2) Configuration Set Event Destination using the id (configuration_set_name|event_destination_name). For example:

$ pulumi import aws:sesv2/configurationSetEventDestination:ConfigurationSetEventDestination example example_configuration_set|example_event_destination

Constructors

ConfigurationSetEventDestination(String name, {ConfigurationSetEventDestinationArgs? args, CustomResourceOptions? options})
Creates a new ConfigurationSetEventDestination. name The Pulumi resource name. args Arguments used to configure this ConfigurationSetEventDestination. The set of arguments for ConfigurationSetEventDestination. options Resource options controlling this resource's behavior.
ConfigurationSetEventDestination.reference(String urn)
Creates a typed reference to an existing ConfigurationSetEventDestination resource.

Properties

childResources → Set<Resource>
finalinherited
completionSources ↔ Map<String, IOutputCompletionSource>
latefinalinherited
configurationSetName ↔ Output<String>
Name of the configuration set.
latefinal
eventDestination ↔ Output<ConfigurationSetEventDestinationEventDestination>
Object that defines the event destination. See eventDestination Block for details.
latefinal
eventDestinationName ↔ Output<String>
Name that identifies the event destination within the configuration set.
latefinal
hashCode → int
The hash code for this object.
no setterinherited
id ↔ Output<String>
getter/setter pairinherited
isCustom → bool
Returns whether this resource is provider-managed.
no setterinherited
isProtected → bool
Returns whether this resource is protected from deletion.
no setterinherited
isRemote → bool
Whether this resource is registered as remote.
no setterinherited
isResourceReference → bool
Whether this instance represents a resource value returned over RPC.
finalinherited
region ↔ Output<String>
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
latefinal
resourceTransforms → List<ResourceTransform>
Inherited/explicit async transforms.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transformations → List<ResourceTransformation>
Inherited/explicit legacy transformations.
no setterinherited
urn ↔ Output<String>
latefinalinherited

Methods

failId(Object error) → void
Completes this resource ID with an error when registration fails.
inherited
failOutputs(Object error) → void
Completes all output properties with error.
inherited
failUrn(Object error) → void
Completes this resource URN with an error when registration fails.
inherited
getProvider(String moduleMember) → ProviderResource?
Returns provider for moduleMember's package, if configured.
inherited
getResourceName() → String
Returns this resource's logical name.
inherited
getResourceType() → String
Returns this resource's Pulumi type token.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerOutput<T>(String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output<T>
Registers a dynamic output property for this resource.
inherited
resolveId(String? value, {required bool isKnown}) → void
Resolves the provider-assigned ID for this resource.
inherited
resolveOutputs(Struct outputs) → void
Resolves all output properties from a monitor response payload.
inherited
resolveUrn(String value) → void
Resolves this resource's URN once assigned by the engine.
inherited
serializeProperties(Map<String, dynamic> properties) → Future<Struct>
Serializes resource properties for RPC transmission.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

get(String name, Input<String> id, {ConfigurationSetEventDestinationState? state, CustomResourceOptions? options}) → ConfigurationSetEventDestination
Gets an existing ConfigurationSetEventDestination resource's state with the given name and id.