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
@@ -1,6 +1,7 @@
import { App, Duration, Stack, StackProps } from 'aws-cdk-lib';
import * as integ from '@aws-cdk/integ-tests-alpha';
import { Construct } from 'constructs';
import * as events from 'aws-cdk-lib/aws-events';
import * as ses from 'aws-cdk-lib/aws-ses';
import * as sns from 'aws-cdk-lib/aws-sns';

Expand All @@ -25,6 +26,12 @@ class TestStack extends Stack {
defaultValue: 'no_domain',
}]),
});

const bus = events.EventBus.fromEventBusName(this, 'EventBus', 'default');

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

Expand Down
Loading
Loading