aws.sesv2.ConfigurationSetEventDestination
Explore with Pulumi AI
Resource for managing an AWS SESv2 (Simple Email V2) Configuration Set Event Destination.
Example Usage
Cloud Watch Destination
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var exampleConfigurationSet = new Aws.SesV2.ConfigurationSet("exampleConfigurationSet", new()
{
ConfigurationSetName = "example",
});
var exampleConfigurationSetEventDestination = new Aws.SesV2.ConfigurationSetEventDestination("exampleConfigurationSetEventDestination", new()
{
ConfigurationSetName = exampleConfigurationSet.ConfigurationSetName,
EventDestinationName = "example",
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",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/sesv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleConfigurationSet, err := sesv2.NewConfigurationSet(ctx, "exampleConfigurationSet", &sesv2.ConfigurationSetArgs{
ConfigurationSetName: pulumi.String("example"),
})
if err != nil {
return err
}
_, err = sesv2.NewConfigurationSetEventDestination(ctx, "exampleConfigurationSetEventDestination", &sesv2.ConfigurationSetEventDestinationArgs{
ConfigurationSetName: exampleConfigurationSet.ConfigurationSetName,
EventDestinationName: pulumi.String("example"),
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"),
},
},
})
if err != nil {
return err
}
return nil
})
}
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 java.util.List;
import java.util.ArrayList;
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 exampleConfigurationSet = new ConfigurationSet("exampleConfigurationSet", ConfigurationSetArgs.builder()
.configurationSetName("example")
.build());
var exampleConfigurationSetEventDestination = new ConfigurationSetEventDestination("exampleConfigurationSetEventDestination", ConfigurationSetEventDestinationArgs.builder()
.configurationSetName(exampleConfigurationSet.configurationSetName())
.eventDestinationName("example")
.eventDestination(ConfigurationSetEventDestinationEventDestinationArgs.builder()
.cloudWatchDestination(ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationArgs.builder()
.dimensionConfigurations(ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationDimensionConfigurationArgs.builder()
.defaultDimensionValue("example")
.dimensionName("example")
.dimensionValueSource("MESSAGE_TAG")
.build())
.build())
.enabled(true)
.matchingEventTypes("SEND")
.build())
.build());
}
}
import pulumi
import pulumi_aws as aws
example_configuration_set = aws.sesv2.ConfigurationSet("exampleConfigurationSet", configuration_set_name="example")
example_configuration_set_event_destination = aws.sesv2.ConfigurationSetEventDestination("exampleConfigurationSetEventDestination",
configuration_set_name=example_configuration_set.configuration_set_name,
event_destination_name="example",
event_destination=aws.sesv2.ConfigurationSetEventDestinationEventDestinationArgs(
cloud_watch_destination=aws.sesv2.ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationArgs(
dimension_configurations=[aws.sesv2.ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationDimensionConfigurationArgs(
default_dimension_value="example",
dimension_name="example",
dimension_value_source="MESSAGE_TAG",
)],
),
enabled=True,
matching_event_types=["SEND"],
))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const exampleConfigurationSet = new aws.sesv2.ConfigurationSet("exampleConfigurationSet", {configurationSetName: "example"});
const exampleConfigurationSetEventDestination = new aws.sesv2.ConfigurationSetEventDestination("exampleConfigurationSetEventDestination", {
configurationSetName: exampleConfigurationSet.configurationSetName,
eventDestinationName: "example",
eventDestination: {
cloudWatchDestination: {
dimensionConfigurations: [{
defaultDimensionValue: "example",
dimensionName: "example",
dimensionValueSource: "MESSAGE_TAG",
}],
},
enabled: true,
matchingEventTypes: ["SEND"],
},
});
resources:
exampleConfigurationSet:
type: aws:sesv2:ConfigurationSet
properties:
configurationSetName: example
exampleConfigurationSetEventDestination:
type: aws:sesv2:ConfigurationSetEventDestination
properties:
configurationSetName: ${exampleConfigurationSet.configurationSetName}
eventDestinationName: example
eventDestination:
cloudWatchDestination:
dimensionConfigurations:
- defaultDimensionValue: example
dimensionName: example
dimensionValueSource: MESSAGE_TAG
enabled: true
matchingEventTypes:
- SEND
Kinesis Firehose Destination
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var exampleConfigurationSet = new Aws.SesV2.ConfigurationSet("exampleConfigurationSet", new()
{
ConfigurationSetName = "example",
});
var exampleConfigurationSetEventDestination = new Aws.SesV2.ConfigurationSetEventDestination("exampleConfigurationSetEventDestination", new()
{
ConfigurationSetName = exampleConfigurationSet.ConfigurationSetName,
EventDestinationName = "example",
EventDestination = new Aws.SesV2.Inputs.ConfigurationSetEventDestinationEventDestinationArgs
{
KinesisFirehoseDestination = new Aws.SesV2.Inputs.ConfigurationSetEventDestinationEventDestinationKinesisFirehoseDestinationArgs
{
DeliveryStreamArn = aws_kinesis_firehose_delivery_stream.Example.Arn,
IamRoleArn = aws_iam_role.Example.Arn,
},
Enabled = true,
MatchingEventTypes = new[]
{
"SEND",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/sesv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleConfigurationSet, err := sesv2.NewConfigurationSet(ctx, "exampleConfigurationSet", &sesv2.ConfigurationSetArgs{
ConfigurationSetName: pulumi.String("example"),
})
if err != nil {
return err
}
_, err = sesv2.NewConfigurationSetEventDestination(ctx, "exampleConfigurationSetEventDestination", &sesv2.ConfigurationSetEventDestinationArgs{
ConfigurationSetName: exampleConfigurationSet.ConfigurationSetName,
EventDestinationName: pulumi.String("example"),
EventDestination: &sesv2.ConfigurationSetEventDestinationEventDestinationArgs{
KinesisFirehoseDestination: &sesv2.ConfigurationSetEventDestinationEventDestinationKinesisFirehoseDestinationArgs{
DeliveryStreamArn: pulumi.Any(aws_kinesis_firehose_delivery_stream.Example.Arn),
IamRoleArn: pulumi.Any(aws_iam_role.Example.Arn),
},
Enabled: pulumi.Bool(true),
MatchingEventTypes: pulumi.StringArray{
pulumi.String("SEND"),
},
},
})
if err != nil {
return err
}
return nil
})
}
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.List;
import java.util.ArrayList;
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 exampleConfigurationSet = new ConfigurationSet("exampleConfigurationSet", ConfigurationSetArgs.builder()
.configurationSetName("example")
.build());
var exampleConfigurationSetEventDestination = new ConfigurationSetEventDestination("exampleConfigurationSetEventDestination", ConfigurationSetEventDestinationArgs.builder()
.configurationSetName(exampleConfigurationSet.configurationSetName())
.eventDestinationName("example")
.eventDestination(ConfigurationSetEventDestinationEventDestinationArgs.builder()
.kinesisFirehoseDestination(ConfigurationSetEventDestinationEventDestinationKinesisFirehoseDestinationArgs.builder()
.deliveryStreamArn(aws_kinesis_firehose_delivery_stream.example().arn())
.iamRoleArn(aws_iam_role.example().arn())
.build())
.enabled(true)
.matchingEventTypes("SEND")
.build())
.build());
}
}
import pulumi
import pulumi_aws as aws
example_configuration_set = aws.sesv2.ConfigurationSet("exampleConfigurationSet", configuration_set_name="example")
example_configuration_set_event_destination = aws.sesv2.ConfigurationSetEventDestination("exampleConfigurationSetEventDestination",
configuration_set_name=example_configuration_set.configuration_set_name,
event_destination_name="example",
event_destination=aws.sesv2.ConfigurationSetEventDestinationEventDestinationArgs(
kinesis_firehose_destination=aws.sesv2.ConfigurationSetEventDestinationEventDestinationKinesisFirehoseDestinationArgs(
delivery_stream_arn=aws_kinesis_firehose_delivery_stream["example"]["arn"],
iam_role_arn=aws_iam_role["example"]["arn"],
),
enabled=True,
matching_event_types=["SEND"],
))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const exampleConfigurationSet = new aws.sesv2.ConfigurationSet("exampleConfigurationSet", {configurationSetName: "example"});
const exampleConfigurationSetEventDestination = new aws.sesv2.ConfigurationSetEventDestination("exampleConfigurationSetEventDestination", {
configurationSetName: exampleConfigurationSet.configurationSetName,
eventDestinationName: "example",
eventDestination: {
kinesisFirehoseDestination: {
deliveryStreamArn: aws_kinesis_firehose_delivery_stream.example.arn,
iamRoleArn: aws_iam_role.example.arn,
},
enabled: true,
matchingEventTypes: ["SEND"],
},
});
resources:
exampleConfigurationSet:
type: aws:sesv2:ConfigurationSet
properties:
configurationSetName: example
exampleConfigurationSetEventDestination:
type: aws:sesv2:ConfigurationSetEventDestination
properties:
configurationSetName: ${exampleConfigurationSet.configurationSetName}
eventDestinationName: example
eventDestination:
kinesisFirehoseDestination:
deliveryStreamArn: ${aws_kinesis_firehose_delivery_stream.example.arn}
iamRoleArn: ${aws_iam_role.example.arn}
enabled: true
matchingEventTypes:
- SEND
Pinpoint Destination
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var exampleConfigurationSet = new Aws.SesV2.ConfigurationSet("exampleConfigurationSet", new()
{
ConfigurationSetName = "example",
});
var exampleConfigurationSetEventDestination = new Aws.SesV2.ConfigurationSetEventDestination("exampleConfigurationSetEventDestination", new()
{
ConfigurationSetName = exampleConfigurationSet.ConfigurationSetName,
EventDestinationName = "example",
EventDestination = new Aws.SesV2.Inputs.ConfigurationSetEventDestinationEventDestinationArgs
{
PinpointDestination = new Aws.SesV2.Inputs.ConfigurationSetEventDestinationEventDestinationPinpointDestinationArgs
{
ApplicationArn = aws_pinpoint_app.Example.Arn,
},
Enabled = true,
MatchingEventTypes = new[]
{
"SEND",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/sesv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleConfigurationSet, err := sesv2.NewConfigurationSet(ctx, "exampleConfigurationSet", &sesv2.ConfigurationSetArgs{
ConfigurationSetName: pulumi.String("example"),
})
if err != nil {
return err
}
_, err = sesv2.NewConfigurationSetEventDestination(ctx, "exampleConfigurationSetEventDestination", &sesv2.ConfigurationSetEventDestinationArgs{
ConfigurationSetName: exampleConfigurationSet.ConfigurationSetName,
EventDestinationName: pulumi.String("example"),
EventDestination: &sesv2.ConfigurationSetEventDestinationEventDestinationArgs{
PinpointDestination: &sesv2.ConfigurationSetEventDestinationEventDestinationPinpointDestinationArgs{
ApplicationArn: pulumi.Any(aws_pinpoint_app.Example.Arn),
},
Enabled: pulumi.Bool(true),
MatchingEventTypes: pulumi.StringArray{
pulumi.String("SEND"),
},
},
})
if err != nil {
return err
}
return nil
})
}
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.List;
import java.util.ArrayList;
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 exampleConfigurationSet = new ConfigurationSet("exampleConfigurationSet", ConfigurationSetArgs.builder()
.configurationSetName("example")
.build());
var exampleConfigurationSetEventDestination = new ConfigurationSetEventDestination("exampleConfigurationSetEventDestination", ConfigurationSetEventDestinationArgs.builder()
.configurationSetName(exampleConfigurationSet.configurationSetName())
.eventDestinationName("example")
.eventDestination(ConfigurationSetEventDestinationEventDestinationArgs.builder()
.pinpointDestination(ConfigurationSetEventDestinationEventDestinationPinpointDestinationArgs.builder()
.applicationArn(aws_pinpoint_app.example().arn())
.build())
.enabled(true)
.matchingEventTypes("SEND")
.build())
.build());
}
}
import pulumi
import pulumi_aws as aws
example_configuration_set = aws.sesv2.ConfigurationSet("exampleConfigurationSet", configuration_set_name="example")
example_configuration_set_event_destination = aws.sesv2.ConfigurationSetEventDestination("exampleConfigurationSetEventDestination",
configuration_set_name=example_configuration_set.configuration_set_name,
event_destination_name="example",
event_destination=aws.sesv2.ConfigurationSetEventDestinationEventDestinationArgs(
pinpoint_destination=aws.sesv2.ConfigurationSetEventDestinationEventDestinationPinpointDestinationArgs(
application_arn=aws_pinpoint_app["example"]["arn"],
),
enabled=True,
matching_event_types=["SEND"],
))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const exampleConfigurationSet = new aws.sesv2.ConfigurationSet("exampleConfigurationSet", {configurationSetName: "example"});
const exampleConfigurationSetEventDestination = new aws.sesv2.ConfigurationSetEventDestination("exampleConfigurationSetEventDestination", {
configurationSetName: exampleConfigurationSet.configurationSetName,
eventDestinationName: "example",
eventDestination: {
pinpointDestination: {
applicationArn: aws_pinpoint_app.example.arn,
},
enabled: true,
matchingEventTypes: ["SEND"],
},
});
resources:
exampleConfigurationSet:
type: aws:sesv2:ConfigurationSet
properties:
configurationSetName: example
exampleConfigurationSetEventDestination:
type: aws:sesv2:ConfigurationSetEventDestination
properties:
configurationSetName: ${exampleConfigurationSet.configurationSetName}
eventDestinationName: example
eventDestination:
pinpointDestination:
applicationArn: ${aws_pinpoint_app.example.arn}
enabled: true
matchingEventTypes:
- SEND
SNS Destination
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var exampleConfigurationSet = new Aws.SesV2.ConfigurationSet("exampleConfigurationSet", new()
{
ConfigurationSetName = "example",
});
var exampleConfigurationSetEventDestination = new Aws.SesV2.ConfigurationSetEventDestination("exampleConfigurationSetEventDestination", new()
{
ConfigurationSetName = exampleConfigurationSet.ConfigurationSetName,
EventDestinationName = "example",
EventDestination = new Aws.SesV2.Inputs.ConfigurationSetEventDestinationEventDestinationArgs
{
SnsDestination = new Aws.SesV2.Inputs.ConfigurationSetEventDestinationEventDestinationSnsDestinationArgs
{
TopicArn = aws_sns_topic.Example.Arn,
},
Enabled = true,
MatchingEventTypes = new[]
{
"SEND",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/sesv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleConfigurationSet, err := sesv2.NewConfigurationSet(ctx, "exampleConfigurationSet", &sesv2.ConfigurationSetArgs{
ConfigurationSetName: pulumi.String("example"),
})
if err != nil {
return err
}
_, err = sesv2.NewConfigurationSetEventDestination(ctx, "exampleConfigurationSetEventDestination", &sesv2.ConfigurationSetEventDestinationArgs{
ConfigurationSetName: exampleConfigurationSet.ConfigurationSetName,
EventDestinationName: pulumi.String("example"),
EventDestination: &sesv2.ConfigurationSetEventDestinationEventDestinationArgs{
SnsDestination: &sesv2.ConfigurationSetEventDestinationEventDestinationSnsDestinationArgs{
TopicArn: pulumi.Any(aws_sns_topic.Example.Arn),
},
Enabled: pulumi.Bool(true),
MatchingEventTypes: pulumi.StringArray{
pulumi.String("SEND"),
},
},
})
if err != nil {
return err
}
return nil
})
}
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.List;
import java.util.ArrayList;
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 exampleConfigurationSet = new ConfigurationSet("exampleConfigurationSet", ConfigurationSetArgs.builder()
.configurationSetName("example")
.build());
var exampleConfigurationSetEventDestination = new ConfigurationSetEventDestination("exampleConfigurationSetEventDestination", ConfigurationSetEventDestinationArgs.builder()
.configurationSetName(exampleConfigurationSet.configurationSetName())
.eventDestinationName("example")
.eventDestination(ConfigurationSetEventDestinationEventDestinationArgs.builder()
.snsDestination(ConfigurationSetEventDestinationEventDestinationSnsDestinationArgs.builder()
.topicArn(aws_sns_topic.example().arn())
.build())
.enabled(true)
.matchingEventTypes("SEND")
.build())
.build());
}
}
import pulumi
import pulumi_aws as aws
example_configuration_set = aws.sesv2.ConfigurationSet("exampleConfigurationSet", configuration_set_name="example")
example_configuration_set_event_destination = aws.sesv2.ConfigurationSetEventDestination("exampleConfigurationSetEventDestination",
configuration_set_name=example_configuration_set.configuration_set_name,
event_destination_name="example",
event_destination=aws.sesv2.ConfigurationSetEventDestinationEventDestinationArgs(
sns_destination=aws.sesv2.ConfigurationSetEventDestinationEventDestinationSnsDestinationArgs(
topic_arn=aws_sns_topic["example"]["arn"],
),
enabled=True,
matching_event_types=["SEND"],
))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const exampleConfigurationSet = new aws.sesv2.ConfigurationSet("exampleConfigurationSet", {configurationSetName: "example"});
const exampleConfigurationSetEventDestination = new aws.sesv2.ConfigurationSetEventDestination("exampleConfigurationSetEventDestination", {
configurationSetName: exampleConfigurationSet.configurationSetName,
eventDestinationName: "example",
eventDestination: {
snsDestination: {
topicArn: aws_sns_topic.example.arn,
},
enabled: true,
matchingEventTypes: ["SEND"],
},
});
resources:
exampleConfigurationSet:
type: aws:sesv2:ConfigurationSet
properties:
configurationSetName: example
exampleConfigurationSetEventDestination:
type: aws:sesv2:ConfigurationSetEventDestination
properties:
configurationSetName: ${exampleConfigurationSet.configurationSetName}
eventDestinationName: example
eventDestination:
snsDestination:
topicArn: ${aws_sns_topic.example.arn}
enabled: true
matchingEventTypes:
- SEND
Create ConfigurationSetEventDestination Resource
new ConfigurationSetEventDestination(name: string, args: ConfigurationSetEventDestinationArgs, opts?: CustomResourceOptions);
@overload
def ConfigurationSetEventDestination(resource_name: str,
opts: Optional[ResourceOptions] = None,
configuration_set_name: Optional[str] = None,
event_destination: Optional[ConfigurationSetEventDestinationEventDestinationArgs] = None,
event_destination_name: Optional[str] = None)
@overload
def ConfigurationSetEventDestination(resource_name: str,
args: ConfigurationSetEventDestinationArgs,
opts: Optional[ResourceOptions] = None)
func NewConfigurationSetEventDestination(ctx *Context, name string, args ConfigurationSetEventDestinationArgs, opts ...ResourceOption) (*ConfigurationSetEventDestination, error)
public ConfigurationSetEventDestination(string name, ConfigurationSetEventDestinationArgs args, CustomResourceOptions? opts = null)
public ConfigurationSetEventDestination(String name, ConfigurationSetEventDestinationArgs args)
public ConfigurationSetEventDestination(String name, ConfigurationSetEventDestinationArgs args, CustomResourceOptions options)
type: aws:sesv2:ConfigurationSetEventDestination
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConfigurationSetEventDestinationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ConfigurationSetEventDestinationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ConfigurationSetEventDestinationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConfigurationSetEventDestinationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConfigurationSetEventDestinationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ConfigurationSetEventDestination Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ConfigurationSetEventDestination resource accepts the following input properties:
- Configuration
Set stringName The name of the configuration set.
- Event
Destination ConfigurationSet Event Destination Event Destination Args A name that identifies the event destination within the configuration set.
- Event
Destination stringName An object that defines the event destination. See event_destination below.
- Configuration
Set stringName The name of the configuration set.
- Event
Destination ConfigurationSet Event Destination Event Destination Args A name that identifies the event destination within the configuration set.
- Event
Destination stringName An object that defines the event destination. See event_destination below.
- configuration
Set StringName The name of the configuration set.
- event
Destination ConfigurationSet Event Destination Event Destination Args A name that identifies the event destination within the configuration set.
- event
Destination StringName An object that defines the event destination. See event_destination below.
- configuration
Set stringName The name of the configuration set.
- event
Destination ConfigurationSet Event Destination Event Destination Args A name that identifies the event destination within the configuration set.
- event
Destination stringName An object that defines the event destination. See event_destination below.
- configuration_
set_ strname The name of the configuration set.
- event_
destination ConfigurationSet Event Destination Event Destination Args A name that identifies the event destination within the configuration set.
- event_
destination_ strname An object that defines the event destination. See event_destination below.
- configuration
Set StringName The name of the configuration set.
- event
Destination Property Map A name that identifies the event destination within the configuration set.
- event
Destination StringName An object that defines the event destination. See event_destination below.
Outputs
All input properties are implicitly available as output properties. Additionally, the ConfigurationSetEventDestination resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing ConfigurationSetEventDestination Resource
Get an existing ConfigurationSetEventDestination resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ConfigurationSetEventDestinationState, opts?: CustomResourceOptions): ConfigurationSetEventDestination
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
configuration_set_name: Optional[str] = None,
event_destination: Optional[ConfigurationSetEventDestinationEventDestinationArgs] = None,
event_destination_name: Optional[str] = None) -> ConfigurationSetEventDestination
func GetConfigurationSetEventDestination(ctx *Context, name string, id IDInput, state *ConfigurationSetEventDestinationState, opts ...ResourceOption) (*ConfigurationSetEventDestination, error)
public static ConfigurationSetEventDestination Get(string name, Input<string> id, ConfigurationSetEventDestinationState? state, CustomResourceOptions? opts = null)
public static ConfigurationSetEventDestination get(String name, Output<String> id, ConfigurationSetEventDestinationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Configuration
Set stringName The name of the configuration set.
- Event
Destination ConfigurationSet Event Destination Event Destination Args A name that identifies the event destination within the configuration set.
- Event
Destination stringName An object that defines the event destination. See event_destination below.
- Configuration
Set stringName The name of the configuration set.
- Event
Destination ConfigurationSet Event Destination Event Destination Args A name that identifies the event destination within the configuration set.
- Event
Destination stringName An object that defines the event destination. See event_destination below.
- configuration
Set StringName The name of the configuration set.
- event
Destination ConfigurationSet Event Destination Event Destination Args A name that identifies the event destination within the configuration set.
- event
Destination StringName An object that defines the event destination. See event_destination below.
- configuration
Set stringName The name of the configuration set.
- event
Destination ConfigurationSet Event Destination Event Destination Args A name that identifies the event destination within the configuration set.
- event
Destination stringName An object that defines the event destination. See event_destination below.
- configuration_
set_ strname The name of the configuration set.
- event_
destination ConfigurationSet Event Destination Event Destination Args A name that identifies the event destination within the configuration set.
- event_
destination_ strname An object that defines the event destination. See event_destination below.
- configuration
Set StringName The name of the configuration set.
- event
Destination Property Map A name that identifies the event destination within the configuration set.
- event
Destination StringName An object that defines the event destination. See event_destination below.
Supporting Types
ConfigurationSetEventDestinationEventDestination
- Matching
Event List<string>Types An array that specifies which events the Amazon SES API v2 should send to the destinations. Valid values:
SEND
,REJECT
,BOUNCE
,COMPLAINT
,DELIVERY
,OPEN
,CLICK
,RENDERING_FAILURE
,DELIVERY_DELAY
,SUBSCRIPTION
.- Cloud
Watch ConfigurationDestination Set Event Destination Event Destination Cloud Watch Destination An object that defines an Amazon CloudWatch destination for email events. See cloud_watch_destination below
- Enabled bool
When the event destination is enabled, the specified event types are sent to the destinations. Default:
false
.- Kinesis
Firehose ConfigurationDestination Set Event Destination Event Destination Kinesis Firehose Destination An object that defines an Amazon Kinesis Data Firehose destination for email events. See kinesis_firehose_destination below.
- Pinpoint
Destination ConfigurationSet Event Destination Event Destination Pinpoint Destination An object that defines an Amazon Pinpoint project destination for email events. See pinpoint_destination below.
- Sns
Destination ConfigurationSet Event Destination Event Destination Sns Destination An object that defines an Amazon SNS destination for email events. See sns_destination below.
- Matching
Event []stringTypes An array that specifies which events the Amazon SES API v2 should send to the destinations. Valid values:
SEND
,REJECT
,BOUNCE
,COMPLAINT
,DELIVERY
,OPEN
,CLICK
,RENDERING_FAILURE
,DELIVERY_DELAY
,SUBSCRIPTION
.- Cloud
Watch ConfigurationDestination Set Event Destination Event Destination Cloud Watch Destination An object that defines an Amazon CloudWatch destination for email events. See cloud_watch_destination below
- Enabled bool
When the event destination is enabled, the specified event types are sent to the destinations. Default:
false
.- Kinesis
Firehose ConfigurationDestination Set Event Destination Event Destination Kinesis Firehose Destination An object that defines an Amazon Kinesis Data Firehose destination for email events. See kinesis_firehose_destination below.
- Pinpoint
Destination ConfigurationSet Event Destination Event Destination Pinpoint Destination An object that defines an Amazon Pinpoint project destination for email events. See pinpoint_destination below.
- Sns
Destination ConfigurationSet Event Destination Event Destination Sns Destination An object that defines an Amazon SNS destination for email events. See sns_destination below.
- matching
Event List<String>Types An array that specifies which events the Amazon SES API v2 should send to the destinations. Valid values:
SEND
,REJECT
,BOUNCE
,COMPLAINT
,DELIVERY
,OPEN
,CLICK
,RENDERING_FAILURE
,DELIVERY_DELAY
,SUBSCRIPTION
.- cloud
Watch ConfigurationDestination Set Event Destination Event Destination Cloud Watch Destination An object that defines an Amazon CloudWatch destination for email events. See cloud_watch_destination below
- enabled Boolean
When the event destination is enabled, the specified event types are sent to the destinations. Default:
false
.- kinesis
Firehose ConfigurationDestination Set Event Destination Event Destination Kinesis Firehose Destination An object that defines an Amazon Kinesis Data Firehose destination for email events. See kinesis_firehose_destination below.
- pinpoint
Destination ConfigurationSet Event Destination Event Destination Pinpoint Destination An object that defines an Amazon Pinpoint project destination for email events. See pinpoint_destination below.
- sns
Destination ConfigurationSet Event Destination Event Destination Sns Destination An object that defines an Amazon SNS destination for email events. See sns_destination below.
- matching
Event string[]Types An array that specifies which events the Amazon SES API v2 should send to the destinations. Valid values:
SEND
,REJECT
,BOUNCE
,COMPLAINT
,DELIVERY
,OPEN
,CLICK
,RENDERING_FAILURE
,DELIVERY_DELAY
,SUBSCRIPTION
.- cloud
Watch ConfigurationDestination Set Event Destination Event Destination Cloud Watch Destination An object that defines an Amazon CloudWatch destination for email events. See cloud_watch_destination below
- enabled boolean
When the event destination is enabled, the specified event types are sent to the destinations. Default:
false
.- kinesis
Firehose ConfigurationDestination Set Event Destination Event Destination Kinesis Firehose Destination An object that defines an Amazon Kinesis Data Firehose destination for email events. See kinesis_firehose_destination below.
- pinpoint
Destination ConfigurationSet Event Destination Event Destination Pinpoint Destination An object that defines an Amazon Pinpoint project destination for email events. See pinpoint_destination below.
- sns
Destination ConfigurationSet Event Destination Event Destination Sns Destination An object that defines an Amazon SNS destination for email events. See sns_destination below.
- matching_
event_ Sequence[str]types An array that specifies which events the Amazon SES API v2 should send to the destinations. Valid values:
SEND
,REJECT
,BOUNCE
,COMPLAINT
,DELIVERY
,OPEN
,CLICK
,RENDERING_FAILURE
,DELIVERY_DELAY
,SUBSCRIPTION
.- cloud_
watch_ Configurationdestination Set Event Destination Event Destination Cloud Watch Destination An object that defines an Amazon CloudWatch destination for email events. See cloud_watch_destination below
- enabled bool
When the event destination is enabled, the specified event types are sent to the destinations. Default:
false
.- kinesis_
firehose_ Configurationdestination Set Event Destination Event Destination Kinesis Firehose Destination An object that defines an Amazon Kinesis Data Firehose destination for email events. See kinesis_firehose_destination below.
- pinpoint_
destination ConfigurationSet Event Destination Event Destination Pinpoint Destination An object that defines an Amazon Pinpoint project destination for email events. See pinpoint_destination below.
- sns_
destination ConfigurationSet Event Destination Event Destination Sns Destination An object that defines an Amazon SNS destination for email events. See sns_destination below.
- matching
Event List<String>Types An array that specifies which events the Amazon SES API v2 should send to the destinations. Valid values:
SEND
,REJECT
,BOUNCE
,COMPLAINT
,DELIVERY
,OPEN
,CLICK
,RENDERING_FAILURE
,DELIVERY_DELAY
,SUBSCRIPTION
.- cloud
Watch Property MapDestination An object that defines an Amazon CloudWatch destination for email events. See cloud_watch_destination below
- enabled Boolean
When the event destination is enabled, the specified event types are sent to the destinations. Default:
false
.- kinesis
Firehose Property MapDestination An object that defines an Amazon Kinesis Data Firehose destination for email events. See kinesis_firehose_destination below.
- pinpoint
Destination Property Map An object that defines an Amazon Pinpoint project destination for email events. See pinpoint_destination below.
- sns
Destination Property Map An object that defines an Amazon SNS destination for email events. See sns_destination below.
ConfigurationSetEventDestinationEventDestinationCloudWatchDestination
- Dimension
Configurations List<ConfigurationSet Event Destination Event Destination Cloud Watch Destination Dimension Configuration> An array of objects that define the dimensions to use when you send email events to Amazon CloudWatch. See dimension_configuration below.
- Dimension
Configurations []ConfigurationSet Event Destination Event Destination Cloud Watch Destination Dimension Configuration An array of objects that define the dimensions to use when you send email events to Amazon CloudWatch. See dimension_configuration below.
- dimension
Configurations List<ConfigurationSet Event Destination Event Destination Cloud Watch Destination Dimension Configuration> An array of objects that define the dimensions to use when you send email events to Amazon CloudWatch. See dimension_configuration below.
- dimension
Configurations ConfigurationSet Event Destination Event Destination Cloud Watch Destination Dimension Configuration[] An array of objects that define the dimensions to use when you send email events to Amazon CloudWatch. See dimension_configuration below.
- dimension_
configurations Sequence[ConfigurationSet Event Destination Event Destination Cloud Watch Destination Dimension Configuration] An array of objects that define the dimensions to use when you send email events to Amazon CloudWatch. See dimension_configuration below.
- dimension
Configurations List<Property Map> An array of objects that define the dimensions to use when you send email events to Amazon CloudWatch. See dimension_configuration below.
ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationDimensionConfiguration
- Default
Dimension stringValue The default value of the dimension that is published to Amazon CloudWatch if you don't provide the value of the dimension when you send an email. (
dimension_name
- (Required) The name of an Amazon CloudWatch dimension associated with an email sending metric.- Dimension
Name string - Dimension
Value stringSource The location where the Amazon SES API v2 finds the value of a dimension to publish to Amazon CloudWatch. Valid values:
MESSAGE_TAG
,EMAIL_HEADER
,LINK_TAG
.
- Default
Dimension stringValue The default value of the dimension that is published to Amazon CloudWatch if you don't provide the value of the dimension when you send an email. (
dimension_name
- (Required) The name of an Amazon CloudWatch dimension associated with an email sending metric.- Dimension
Name string - Dimension
Value stringSource The location where the Amazon SES API v2 finds the value of a dimension to publish to Amazon CloudWatch. Valid values:
MESSAGE_TAG
,EMAIL_HEADER
,LINK_TAG
.
- default
Dimension StringValue The default value of the dimension that is published to Amazon CloudWatch if you don't provide the value of the dimension when you send an email. (
dimension_name
- (Required) The name of an Amazon CloudWatch dimension associated with an email sending metric.- dimension
Name String - dimension
Value StringSource The location where the Amazon SES API v2 finds the value of a dimension to publish to Amazon CloudWatch. Valid values:
MESSAGE_TAG
,EMAIL_HEADER
,LINK_TAG
.
- default
Dimension stringValue The default value of the dimension that is published to Amazon CloudWatch if you don't provide the value of the dimension when you send an email. (
dimension_name
- (Required) The name of an Amazon CloudWatch dimension associated with an email sending metric.- dimension
Name string - dimension
Value stringSource The location where the Amazon SES API v2 finds the value of a dimension to publish to Amazon CloudWatch. Valid values:
MESSAGE_TAG
,EMAIL_HEADER
,LINK_TAG
.
- default_
dimension_ strvalue The default value of the dimension that is published to Amazon CloudWatch if you don't provide the value of the dimension when you send an email. (
dimension_name
- (Required) The name of an Amazon CloudWatch dimension associated with an email sending metric.- dimension_
name str - dimension_
value_ strsource The location where the Amazon SES API v2 finds the value of a dimension to publish to Amazon CloudWatch. Valid values:
MESSAGE_TAG
,EMAIL_HEADER
,LINK_TAG
.
- default
Dimension StringValue The default value of the dimension that is published to Amazon CloudWatch if you don't provide the value of the dimension when you send an email. (
dimension_name
- (Required) The name of an Amazon CloudWatch dimension associated with an email sending metric.- dimension
Name String - dimension
Value StringSource The location where the Amazon SES API v2 finds the value of a dimension to publish to Amazon CloudWatch. Valid values:
MESSAGE_TAG
,EMAIL_HEADER
,LINK_TAG
.
ConfigurationSetEventDestinationEventDestinationKinesisFirehoseDestination
- Delivery
Stream stringArn The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose stream that the Amazon SES API v2 sends email events to.
- Iam
Role stringArn The Amazon Resource Name (ARN) of the IAM role that the Amazon SES API v2 uses to send email events to the Amazon Kinesis Data Firehose stream.
- Delivery
Stream stringArn The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose stream that the Amazon SES API v2 sends email events to.
- Iam
Role stringArn The Amazon Resource Name (ARN) of the IAM role that the Amazon SES API v2 uses to send email events to the Amazon Kinesis Data Firehose stream.
- delivery
Stream StringArn The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose stream that the Amazon SES API v2 sends email events to.
- iam
Role StringArn The Amazon Resource Name (ARN) of the IAM role that the Amazon SES API v2 uses to send email events to the Amazon Kinesis Data Firehose stream.
- delivery
Stream stringArn The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose stream that the Amazon SES API v2 sends email events to.
- iam
Role stringArn The Amazon Resource Name (ARN) of the IAM role that the Amazon SES API v2 uses to send email events to the Amazon Kinesis Data Firehose stream.
- delivery_
stream_ strarn The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose stream that the Amazon SES API v2 sends email events to.
- iam_
role_ strarn The Amazon Resource Name (ARN) of the IAM role that the Amazon SES API v2 uses to send email events to the Amazon Kinesis Data Firehose stream.
- delivery
Stream StringArn The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose stream that the Amazon SES API v2 sends email events to.
- iam
Role StringArn The Amazon Resource Name (ARN) of the IAM role that the Amazon SES API v2 uses to send email events to the Amazon Kinesis Data Firehose stream.
ConfigurationSetEventDestinationEventDestinationPinpointDestination
- Application
Arn string
- Application
Arn string
- application
Arn String
- application
Arn string
- application_
arn str
- application
Arn String
ConfigurationSetEventDestinationEventDestinationSnsDestination
- Topic
Arn string The Amazon Resource Name (ARN) of the Amazon SNS topic to publish email events to.
- Topic
Arn string The Amazon Resource Name (ARN) of the Amazon SNS topic to publish email events to.
- topic
Arn String The Amazon Resource Name (ARN) of the Amazon SNS topic to publish email events to.
- topic
Arn string The Amazon Resource Name (ARN) of the Amazon SNS topic to publish email events to.
- topic_
arn str The Amazon Resource Name (ARN) of the Amazon SNS topic to publish email events to.
- topic
Arn String The Amazon Resource Name (ARN) of the Amazon SNS topic to publish email events to.
Import
SESv2 (Simple Email V2) Configuration Set Event Destination can be imported using the id
(configuration_set_name|event_destination_name
), e.g.,
$ pulumi import aws:sesv2/configurationSetEventDestination:ConfigurationSetEventDestination example example_configuration_set|example_event_destination
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.