Skip to content

Commit bfa0f15

Browse files
authored
feat(sns): support high throughput mode for FIFO topics (#33056)
### Issue # (if applicable) N/A ### Reason for this change Amazon SNS now supports high throughput mode. Ref: [high-throughput mode for Amazon SNS FIFO Topics](https://aws.amazon.com/about-aws/whats-new/2025/01/high-throughput-mode-amazon-sns-fifo-topics) ### Description of changes Add `fifoThroughputScope` property. ### Describe any new or updated permissions being added Nothing ### Description of how you validated changes Add unit tests and an 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*
1 parent 111ffc2 commit bfa0f15

12 files changed

+524
-0
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo-throughput-scope.js.snapshot/cdk.out

Lines changed: 1 addition & 0 deletions
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-sns/test/integ.sns-fifo-throughput-scope.js.snapshot/integ.json

Lines changed: 12 additions & 0 deletions
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-sns/test/integ.sns-fifo-throughput-scope.js.snapshot/manifest.json

Lines changed: 119 additions & 0 deletions
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-sns/test/integ.sns-fifo-throughput-scope.js.snapshot/sns-fifo-throughput-scope.assets.json

Lines changed: 19 additions & 0 deletions
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,54 @@
1+
{
2+
"Resources": {
3+
"MessageGroupScopeTopicAB4E2D6F": {
4+
"Type": "AWS::SNS::Topic",
5+
"Properties": {
6+
"FifoThroughputScope": "MessageGroup",
7+
"FifoTopic": true,
8+
"TopicName": "snsfifothroughputscope-MessageGroupScopeTopic-52DE3DD3.fifo"
9+
}
10+
},
11+
"TopicScopeTopic8DEBB616": {
12+
"Type": "AWS::SNS::Topic",
13+
"Properties": {
14+
"FifoThroughputScope": "Topic",
15+
"FifoTopic": true,
16+
"TopicName": "snsfifothroughputscope-TopicScopeTopic-92BBF542.fifo"
17+
}
18+
}
19+
},
20+
"Parameters": {
21+
"BootstrapVersion": {
22+
"Type": "AWS::SSM::Parameter::Value<String>",
23+
"Default": "/cdk-bootstrap/hnb659fds/version",
24+
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
25+
}
26+
},
27+
"Rules": {
28+
"CheckBootstrapVersion": {
29+
"Assertions": [
30+
{
31+
"Assert": {
32+
"Fn::Not": [
33+
{
34+
"Fn::Contains": [
35+
[
36+
"1",
37+
"2",
38+
"3",
39+
"4",
40+
"5"
41+
],
42+
{
43+
"Ref": "BootstrapVersion"
44+
}
45+
]
46+
}
47+
]
48+
},
49+
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
50+
}
51+
]
52+
}
53+
}
54+
}

packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo-throughput-scope.js.snapshot/snsfifothroughputscopetestDefaultTestDeployAssertBAF90E92.assets.json

Lines changed: 19 additions & 0 deletions
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-sns/test/integ.sns-fifo-throughput-scope.js.snapshot/snsfifothroughputscopetestDefaultTestDeployAssertBAF90E92.template.json

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)