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,
},
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Ses
Assembly: Pulumi.Aws.dll
Syntax
public class EventDestination : CustomResource
Constructors
View SourceEventDestination(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 SourceCloudwatchDestinations
CloudWatch destination for the events
Declaration
public Output<ImmutableArray<EventDestinationCloudwatchDestination>> CloudwatchDestinations { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<EventDestinationCloudwatchDestination>> |
ConfigurationSetName
The name of the configuration set
Declaration
public Output<string> ConfigurationSetName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Enabled
If true, the event destination will be enabled
Declaration
public Output<bool?> Enabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
KinesisDestination
Send the events to a kinesis firehose destination
Declaration
public Output<EventDestinationKinesisDestination> KinesisDestination { get; }
Property Value
| Type | Description |
|---|---|
| Output<EventDestinationKinesisDestination> |
MatchingTypes
A list of matching types. May be any of "send", "reject", "bounce", "complaint", "delivery", "open", "click", or "renderingFailure".
Declaration
public Output<ImmutableArray<string>> MatchingTypes { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Name
The name of the event destination
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SnsDestination
Send the events to an SNS Topic destination
Declaration
public Output<EventDestinationSnsDestination> SnsDestination { get; }
Property Value
| Type | Description |
|---|---|
| Output<EventDestinationSnsDestination> |
Methods
View SourceGet(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 |