Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ses): configurationset support default event bus and firehose as destination #33093

Merged
merged 14 commits into from
Feb 19, 2025
Merged

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,51 @@
}
}
},
"ConfigurationSetEventBridgeABB541C9": {
"Type": "AWS::SES::ConfigurationSetEventDestination",
"Properties": {
"ConfigurationSetName": {
"Ref": "ConfigurationSet3DD38186"
},
"EventDestination": {
"Enabled": true,
"EventBridgeDestination": {
"EventBusArn": {
"Fn::Join": [
"",
[
"arn:",
{
"Ref": "AWS::Partition"
},
":events:",
{
"Ref": "AWS::Region"
},
":",
{
"Ref": "AWS::AccountId"
},
":event-bus/default"
]
]
}
},
"MatchingEventTypes": [
"send",
"reject",
"bounce",
"complaint",
"delivery",
"open",
"click",
"renderingFailure",
"deliveryDelay",
"subscription"
]
}
}
},
"TopicBFC7AF6E": {
"Type": "AWS::SNS::Topic"
},
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ class TestStack extends Stack {
defaultValue: 'no_domain',
}]),
});

configurationSet.addEventDestination('EventBridge', {
destination: ses.EventDestination.defaultEventBus(),
});
}
}

Expand Down
9 changes: 9 additions & 0 deletions packages/aws-cdk-lib/aws-ses/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,15 @@ myConfigurationSet.addEventDestination('ToSns', {
})
```

For EventBridge, only default EventBus can be used:
```ts
declare const myConfigurationSet: ses.ConfigurationSet;

myConfigurationSet.addEventDestination('ToDefaultEventBus', {
destination: ses.EventDestination.defaultEventBus(),
})
```

### Override account-level suppression list settings

You can customize account-level suppression list separately for different configuration sets by overriding it
Expand Down
Loading