Show / Hide Table of Contents

Class EventDestination

Provides an SES event destination

Example Usage

CloudWatch Destination

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var cloudwatch = new Aws.Ses.EventDestination("cloudwatch", new Aws.Ses.EventDestinationArgs
    {
        CloudwatchDestinations = 
        {
            new Aws.Ses.Inputs.EventDestinationCloudwatchDestinationArgs
            {
                DefaultValue = "default",
                DimensionName = "dimension",
                ValueSource = "emailHeader",
            },
        },
        ConfigurationSetName = aws_ses_configuration_set.Example.Name,
        Enabled = true,
        MatchingTypes = 
        {
            "bounce",
            "send",
        },
    });
}

}

Kinesis Destination

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var kinesis = new Aws.Ses.EventDestination("kinesis", new Aws.Ses.EventDestinationArgs
    {
        ConfigurationSetName = aws_ses_configuration_set.Example.Name,
        Enabled = true,
        KinesisDestination = new Aws.Ses.Inputs.EventDestinationKinesisDestinationArgs
        {
            RoleArn = aws_iam_role.Example.Arn,
            StreamArn = aws_kinesis_firehose_delivery_stream.Example.Arn,
        },
        MatchingTypes = 
        {
            "bounce",
            "send",
        },
    });
}

}

SNS Destination

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var sns = new Aws.Ses.EventDestination("sns", new Aws.Ses.EventDestinationArgs
    {
        ConfigurationSetName = aws_ses_configuration_set.Example.Name,
        Enabled = true,
        MatchingTypes = 
        {
            "bounce",
            "send",
        },
        SnsDestination = new Aws.Ses.Inputs.EventDestinationSnsDestinationArgs
        {
            TopicArn = aws_sns_topic.Example.Arn,
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
EventDestination
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Ses
Assembly: Pulumi.Aws.dll
Syntax
public class EventDestination : CustomResource

Constructors

View Source

EventDestination(String, EventDestinationArgs, CustomResourceOptions)

Create a EventDestination resource with the given unique name, arguments, and options.

Declaration
public EventDestination(string name, EventDestinationArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

EventDestinationArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

CloudwatchDestinations

CloudWatch destination for the events

Declaration
public Output<ImmutableArray<EventDestinationCloudwatchDestination>> CloudwatchDestinations { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<EventDestinationCloudwatchDestination>>
View Source

ConfigurationSetName

The name of the configuration set

Declaration
public Output<string> ConfigurationSetName { get; }
Property Value
Type Description
Output<System.String>
View Source

Enabled

If true, the event destination will be enabled

Declaration
public Output<bool?> Enabled { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

KinesisDestination

Send the events to a kinesis firehose destination

Declaration
public Output<EventDestinationKinesisDestination> KinesisDestination { get; }
Property Value
Type Description
Output<EventDestinationKinesisDestination>
View Source

MatchingTypes

A list of matching types. May be any of &quot;send&quot;, &quot;reject&quot;, &quot;bounce&quot;, &quot;complaint&quot;, &quot;delivery&quot;, &quot;open&quot;, &quot;click&quot;, or &quot;renderingFailure&quot;.

Declaration
public Output<ImmutableArray<string>> MatchingTypes { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

Name

The name of the event destination

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

SnsDestination

Send the events to an SNS Topic destination

Declaration
public Output<EventDestinationSnsDestination> SnsDestination { get; }
Property Value
Type Description
Output<EventDestinationSnsDestination>

Methods

View Source

Get(String, Input<String>, EventDestinationState, CustomResourceOptions)

Get an existing EventDestination resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static EventDestination Get(string name, Input<string> id, EventDestinationState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

EventDestinationState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
EventDestination
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.