Skip to content

Commit

Permalink
feat(ses): add support to disable account-level suppression list (#32168
Browse files Browse the repository at this point in the history
)

### 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>
  • Loading branch information
3 people authored Dec 4, 2024
1 parent 058a0bf commit bb50c1a
Show file tree
Hide file tree
Showing 12 changed files with 673 additions and 5 deletions.

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
@@ -0,0 +1,77 @@
{
"Resources": {
"DisableSuppressionList6B7ABFBF": {
"Type": "AWS::SES::ConfigurationSet",
"Properties": {
"SuppressionOptions": {
"SuppressedReasons": []
}
}
},
"OverrideSuppressionReasonsToBouncesOnly1280FADA": {
"Type": "AWS::SES::ConfigurationSet",
"Properties": {
"SuppressionOptions": {
"SuppressedReasons": [
"BOUNCE"
]
}
}
},
"OverrideSuppressionReasonsToComplaintsOnly8F770ED6": {
"Type": "AWS::SES::ConfigurationSet",
"Properties": {
"SuppressionOptions": {
"SuppressedReasons": [
"COMPLAINT"
]
}
}
},
"OverrideSuppressionReasonsToBouncesAndComplaints27254E32": {
"Type": "AWS::SES::ConfigurationSet",
"Properties": {
"SuppressionOptions": {
"SuppressedReasons": [
"BOUNCE",
"COMPLAINT"
]
}
}
}
},
"Parameters": {
"BootstrapVersion": {
"Type": "AWS::SSM::Parameter::Value<String>",
"Default": "/cdk-bootstrap/hnb659fds/version",
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
}
},
"Rules": {
"CheckBootstrapVersion": {
"Assertions": [
{
"Assert": {
"Fn::Not": [
{
"Fn::Contains": [
[
"1",
"2",
"3",
"4",
"5"
],
{
"Ref": "BootstrapVersion"
}
]
}
]
},
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
}
]
}
}
}

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.

Loading

0 comments on commit bb50c1a

Please sign in to comment.