Skip to content

Commit bb50c1a

Browse files
Tietewmazyu36mergify[bot]
authored
feat(ses): add support to disable account-level suppression list (#32168)
### Issue # (if applicable) Closes #32149. ### Reason for this change ConfigurationSet allows us to disable account-level suppression list but CDK missed the configuration. ### Description of changes Introduced `disableSuppressionList` property to disable account-level suppression list. ### Description of how you validated changes Added unit tests and integ test. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --------- Co-authored-by: Matsuda <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent 058a0bf commit bb50c1a

12 files changed

+673
-5
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set-override-suppression-list-settings.js.snapshot/ConfigurationSetOverridingSuppressionListSettingsIntegDefaultTestDeployAssert41D23FD8.assets.json

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set-override-suppression-list-settings.js.snapshot/ConfigurationSetOverridingSuppressionListSettingsIntegDefaultTestDeployAssert41D23FD8.template.json

+36
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set-override-suppression-list-settings.js.snapshot/cdk-ses-configuration-set-overriding-suppression-list-integ.assets.json

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"Resources": {
3+
"DisableSuppressionList6B7ABFBF": {
4+
"Type": "AWS::SES::ConfigurationSet",
5+
"Properties": {
6+
"SuppressionOptions": {
7+
"SuppressedReasons": []
8+
}
9+
}
10+
},
11+
"OverrideSuppressionReasonsToBouncesOnly1280FADA": {
12+
"Type": "AWS::SES::ConfigurationSet",
13+
"Properties": {
14+
"SuppressionOptions": {
15+
"SuppressedReasons": [
16+
"BOUNCE"
17+
]
18+
}
19+
}
20+
},
21+
"OverrideSuppressionReasonsToComplaintsOnly8F770ED6": {
22+
"Type": "AWS::SES::ConfigurationSet",
23+
"Properties": {
24+
"SuppressionOptions": {
25+
"SuppressedReasons": [
26+
"COMPLAINT"
27+
]
28+
}
29+
}
30+
},
31+
"OverrideSuppressionReasonsToBouncesAndComplaints27254E32": {
32+
"Type": "AWS::SES::ConfigurationSet",
33+
"Properties": {
34+
"SuppressionOptions": {
35+
"SuppressedReasons": [
36+
"BOUNCE",
37+
"COMPLAINT"
38+
]
39+
}
40+
}
41+
}
42+
},
43+
"Parameters": {
44+
"BootstrapVersion": {
45+
"Type": "AWS::SSM::Parameter::Value<String>",
46+
"Default": "/cdk-bootstrap/hnb659fds/version",
47+
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
48+
}
49+
},
50+
"Rules": {
51+
"CheckBootstrapVersion": {
52+
"Assertions": [
53+
{
54+
"Assert": {
55+
"Fn::Not": [
56+
{
57+
"Fn::Contains": [
58+
[
59+
"1",
60+
"2",
61+
"3",
62+
"4",
63+
"5"
64+
],
65+
{
66+
"Ref": "BootstrapVersion"
67+
}
68+
]
69+
}
70+
]
71+
},
72+
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
73+
}
74+
]
75+
}
76+
}
77+
}

packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set-override-suppression-list-settings.js.snapshot/cdk.out

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set-override-suppression-list-settings.js.snapshot/integ.json

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set-override-suppression-list-settings.js.snapshot/manifest.json

+133
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)