@aws-solutions-constructs/aws-eventbridge-sns 2.51.0 → 2.52.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/.eslintignore +2 -0
  2. package/.jsii +49 -4
  3. package/integ.config.json +7 -0
  4. package/lib/index.js +1 -1
  5. package/package.json +9 -8
  6. package/test/integ.evtsns-exist-bus.js +5 -2
  7. package/test/integ.evtsns-exist-bus.js.snapshot/cdk.out +1 -0
  8. package/test/integ.evtsns-exist-bus.js.snapshot/evtsns-exist-bus.assets.json +19 -0
  9. package/test/integ.evtsns-exist-bus.js.snapshot/evtsns-exist-bus.template.json +241 -0
  10. package/test/integ.evtsns-exist-bus.js.snapshot/evtsnsexistbusIntegDefaultTestDeployAssertBEE4D9E5.assets.json +19 -0
  11. package/test/integ.evtsns-exist-bus.js.snapshot/evtsnsexistbusIntegDefaultTestDeployAssertBEE4D9E5.template.json +36 -0
  12. package/test/integ.evtsns-exist-bus.js.snapshot/integ.json +12 -0
  13. package/test/integ.evtsns-exist-bus.js.snapshot/manifest.json +137 -0
  14. package/test/integ.evtsns-exist-bus.js.snapshot/tree.json +402 -0
  15. package/test/integ.evtsns-long-stack-name.js +5 -2
  16. package/test/integ.evtsns-long-stack-name.js.snapshot/cdk.out +1 -0
  17. package/test/integ.evtsns-long-stack-name.js.snapshot/evtsnslongstacknameThisIsTheLongestNameForAStackItMustBeGreaCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLongerEB7CA918.assets.json +19 -0
  18. package/test/integ.evtsns-long-stack-name.js.snapshot/evtsnslongstacknameThisIsTheLongestNameForAStackItMustBeGreaCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLongerEB7CA918.template.json +418 -0
  19. package/test/integ.evtsns-long-stack-name.js.snapshot/evtsnslongstacknameThisIsTheLongestNameForAStackItMustBeGreaustAboutDoItNoItMustBeABitLongerIntegDefaultTestDeployAssertF2297F22.assets.json +19 -0
  20. package/test/integ.evtsns-long-stack-name.js.snapshot/evtsnslongstacknameThisIsTheLongestNameForAStackItMustBeGreaustAboutDoItNoItMustBeABitLongerIntegDefaultTestDeployAssertF2297F22.template.json +36 -0
  21. package/test/integ.evtsns-long-stack-name.js.snapshot/integ.json +12 -0
  22. package/test/integ.evtsns-long-stack-name.js.snapshot/manifest.json +155 -0
  23. package/test/integ.evtsns-long-stack-name.js.snapshot/tree.json +641 -0
  24. package/test/integ.evtsns-new-bus.js +5 -2
  25. package/test/integ.evtsns-new-bus.js.snapshot/cdk.out +1 -0
  26. package/test/integ.evtsns-new-bus.js.snapshot/evtsns-new-bus.assets.json +19 -0
  27. package/test/integ.evtsns-new-bus.js.snapshot/evtsns-new-bus.template.json +241 -0
  28. package/test/integ.evtsns-new-bus.js.snapshot/evtsnsnewbusIntegDefaultTestDeployAssert766E599E.assets.json +19 -0
  29. package/test/integ.evtsns-new-bus.js.snapshot/evtsnsnewbusIntegDefaultTestDeployAssert766E599E.template.json +36 -0
  30. package/test/integ.evtsns-new-bus.js.snapshot/integ.json +12 -0
  31. package/test/integ.evtsns-new-bus.js.snapshot/manifest.json +137 -0
  32. package/test/integ.evtsns-new-bus.js.snapshot/tree.json +402 -0
  33. package/test/integ.evtsns-no-arg.js +5 -2
  34. package/test/integ.evtsns-no-arg.js.snapshot/cdk.out +1 -0
  35. package/test/integ.evtsns-no-arg.js.snapshot/evtsns-no-arg.assets.json +19 -0
  36. package/test/integ.evtsns-no-arg.js.snapshot/evtsns-no-arg.template.json +228 -0
  37. package/test/integ.evtsns-no-arg.js.snapshot/evtsnsnoargIntegDefaultTestDeployAssertB64352AF.assets.json +19 -0
  38. package/test/integ.evtsns-no-arg.js.snapshot/evtsnsnoargIntegDefaultTestDeployAssertB64352AF.template.json +36 -0
  39. package/test/integ.evtsns-no-arg.js.snapshot/integ.json +12 -0
  40. package/test/integ.evtsns-no-arg.js.snapshot/manifest.json +131 -0
  41. package/test/integ.evtsns-no-arg.js.snapshot/tree.json +371 -0
  42. package/test/integ.evtsns-second-long-stack-name.js +5 -2
  43. package/test/integ.evtsns-second-long-stack-name.js.snapshot/cdk.out +1 -0
  44. package/test/integ.evtsns-second-long-stack-name.js.snapshot/evtsnssecondlongstacknameThisIsTheLongestNameForAStackItMustAboutDoItNoItMustBeABitLessShortIntegDefaultTestDeployAssert9A452C2E.assets.json +19 -0
  45. package/test/integ.evtsns-second-long-stack-name.js.snapshot/evtsnssecondlongstacknameThisIsTheLongestNameForAStackItMustAboutDoItNoItMustBeABitLessShortIntegDefaultTestDeployAssert9A452C2E.template.json +36 -0
  46. package/test/integ.evtsns-second-long-stack-name.js.snapshot/evtsnssecondlongstacknameThisIsTheLongestNameForAStackItMustractersLongAndThisShouldJustAboutDoItNoItMustBeABitLessShort71F0A431.assets.json +19 -0
  47. package/test/integ.evtsns-second-long-stack-name.js.snapshot/evtsnssecondlongstacknameThisIsTheLongestNameForAStackItMustractersLongAndThisShouldJustAboutDoItNoItMustBeABitLessShort71F0A431.template.json +418 -0
  48. package/test/integ.evtsns-second-long-stack-name.js.snapshot/integ.json +12 -0
  49. package/test/integ.evtsns-second-long-stack-name.js.snapshot/manifest.json +155 -0
  50. package/test/integ.evtsns-second-long-stack-name.js.snapshot/tree.json +641 -0
  51. package/test/integ.evtsns-exist-bus.expected.json +0 -241
  52. package/test/integ.evtsns-long-stack-name.expected.json +0 -418
  53. package/test/integ.evtsns-new-bus.expected.json +0 -241
  54. package/test/integ.evtsns-no-arg.expected.json +0 -228
  55. package/test/integ.evtsns-second-long-stack-name.expected.json +0 -418
@@ -1,241 +0,0 @@
1
- {
2
- "Resources": {
3
- "testconstructEncryptionKey6153B053": {
4
- "Type": "AWS::KMS::Key",
5
- "Properties": {
6
- "EnableKeyRotation": true,
7
- "KeyPolicy": {
8
- "Statement": [
9
- {
10
- "Action": "kms:*",
11
- "Effect": "Allow",
12
- "Principal": {
13
- "AWS": {
14
- "Fn::Join": [
15
- "",
16
- [
17
- "arn:",
18
- {
19
- "Ref": "AWS::Partition"
20
- },
21
- ":iam::",
22
- {
23
- "Ref": "AWS::AccountId"
24
- },
25
- ":root"
26
- ]
27
- ]
28
- }
29
- },
30
- "Resource": "*"
31
- },
32
- {
33
- "Action": [
34
- "kms:Decrypt",
35
- "kms:Encrypt",
36
- "kms:ReEncrypt*",
37
- "kms:GenerateDataKey*"
38
- ],
39
- "Effect": "Allow",
40
- "Principal": {
41
- "Service": "events.amazonaws.com"
42
- },
43
- "Resource": "*"
44
- }
45
- ],
46
- "Version": "2012-10-17"
47
- }
48
- },
49
- "UpdateReplacePolicy": "Retain",
50
- "DeletionPolicy": "Retain"
51
- },
52
- "testconstructSnsTopic44188529": {
53
- "Type": "AWS::SNS::Topic",
54
- "Properties": {
55
- "KmsMasterKeyId": {
56
- "Fn::GetAtt": [
57
- "testconstructEncryptionKey6153B053",
58
- "Arn"
59
- ]
60
- }
61
- }
62
- },
63
- "testconstructSnsTopicPolicy72FFD530": {
64
- "Type": "AWS::SNS::TopicPolicy",
65
- "Properties": {
66
- "PolicyDocument": {
67
- "Statement": [
68
- {
69
- "Action": [
70
- "SNS:Publish",
71
- "SNS:RemovePermission",
72
- "SNS:SetTopicAttributes",
73
- "SNS:DeleteTopic",
74
- "SNS:ListSubscriptionsByTopic",
75
- "SNS:GetTopicAttributes",
76
- "SNS:Receive",
77
- "SNS:AddPermission",
78
- "SNS:Subscribe"
79
- ],
80
- "Condition": {
81
- "StringEquals": {
82
- "AWS:SourceOwner": {
83
- "Ref": "AWS::AccountId"
84
- }
85
- }
86
- },
87
- "Effect": "Allow",
88
- "Principal": {
89
- "AWS": {
90
- "Fn::Join": [
91
- "",
92
- [
93
- "arn:",
94
- {
95
- "Ref": "AWS::Partition"
96
- },
97
- ":iam::",
98
- {
99
- "Ref": "AWS::AccountId"
100
- },
101
- ":root"
102
- ]
103
- ]
104
- }
105
- },
106
- "Resource": {
107
- "Ref": "testconstructSnsTopic44188529"
108
- },
109
- "Sid": "TopicOwnerOnlyAccess"
110
- },
111
- {
112
- "Action": [
113
- "SNS:Publish",
114
- "SNS:RemovePermission",
115
- "SNS:SetTopicAttributes",
116
- "SNS:DeleteTopic",
117
- "SNS:ListSubscriptionsByTopic",
118
- "SNS:GetTopicAttributes",
119
- "SNS:Receive",
120
- "SNS:AddPermission",
121
- "SNS:Subscribe"
122
- ],
123
- "Condition": {
124
- "Bool": {
125
- "aws:SecureTransport": "false"
126
- }
127
- },
128
- "Effect": "Deny",
129
- "Principal": {
130
- "AWS": "*"
131
- },
132
- "Resource": {
133
- "Ref": "testconstructSnsTopic44188529"
134
- },
135
- "Sid": "HttpsOnly"
136
- },
137
- {
138
- "Action": "sns:Publish",
139
- "Effect": "Allow",
140
- "Principal": {
141
- "Service": "events.amazonaws.com"
142
- },
143
- "Resource": {
144
- "Ref": "testconstructSnsTopic44188529"
145
- },
146
- "Sid": "2"
147
- }
148
- ],
149
- "Version": "2012-10-17"
150
- },
151
- "Topics": [
152
- {
153
- "Ref": "testconstructSnsTopic44188529"
154
- }
155
- ]
156
- }
157
- },
158
- "testconstructCustomEventBusFBDE2130": {
159
- "Type": "AWS::Events::EventBus",
160
- "Properties": {
161
- "Name": "evtsnsnewbustestconstructCustomEventBus56EA651C"
162
- }
163
- },
164
- "testconstructEventsRule145DBA20": {
165
- "Type": "AWS::Events::Rule",
166
- "Properties": {
167
- "EventBusName": {
168
- "Ref": "testconstructCustomEventBusFBDE2130"
169
- },
170
- "EventPattern": {
171
- "source": [
172
- "solutionsconstructs"
173
- ]
174
- },
175
- "State": "ENABLED",
176
- "Targets": [
177
- {
178
- "Arn": {
179
- "Ref": "testconstructSnsTopic44188529"
180
- },
181
- "Id": {
182
- "Fn::Join": [
183
- "",
184
- [
185
- "evtsns-new-butest-construct-",
186
- {
187
- "Fn::Select": [
188
- 2,
189
- {
190
- "Fn::Split": [
191
- "/",
192
- {
193
- "Ref": "AWS::StackId"
194
- }
195
- ]
196
- }
197
- ]
198
- }
199
- ]
200
- ]
201
- }
202
- }
203
- ]
204
- }
205
- }
206
- },
207
- "Parameters": {
208
- "BootstrapVersion": {
209
- "Type": "AWS::SSM::Parameter::Value<String>",
210
- "Default": "/cdk-bootstrap/hnb659fds/version",
211
- "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
212
- }
213
- },
214
- "Rules": {
215
- "CheckBootstrapVersion": {
216
- "Assertions": [
217
- {
218
- "Assert": {
219
- "Fn::Not": [
220
- {
221
- "Fn::Contains": [
222
- [
223
- "1",
224
- "2",
225
- "3",
226
- "4",
227
- "5"
228
- ],
229
- {
230
- "Ref": "BootstrapVersion"
231
- }
232
- ]
233
- }
234
- ]
235
- },
236
- "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
237
- }
238
- ]
239
- }
240
- }
241
- }
@@ -1,228 +0,0 @@
1
- {
2
- "Resources": {
3
- "testconstructEncryptionKey6153B053": {
4
- "Type": "AWS::KMS::Key",
5
- "Properties": {
6
- "EnableKeyRotation": true,
7
- "KeyPolicy": {
8
- "Statement": [
9
- {
10
- "Action": "kms:*",
11
- "Effect": "Allow",
12
- "Principal": {
13
- "AWS": {
14
- "Fn::Join": [
15
- "",
16
- [
17
- "arn:",
18
- {
19
- "Ref": "AWS::Partition"
20
- },
21
- ":iam::",
22
- {
23
- "Ref": "AWS::AccountId"
24
- },
25
- ":root"
26
- ]
27
- ]
28
- }
29
- },
30
- "Resource": "*"
31
- },
32
- {
33
- "Action": [
34
- "kms:Decrypt",
35
- "kms:Encrypt",
36
- "kms:ReEncrypt*",
37
- "kms:GenerateDataKey*"
38
- ],
39
- "Effect": "Allow",
40
- "Principal": {
41
- "Service": "events.amazonaws.com"
42
- },
43
- "Resource": "*"
44
- }
45
- ],
46
- "Version": "2012-10-17"
47
- }
48
- },
49
- "UpdateReplacePolicy": "Retain",
50
- "DeletionPolicy": "Retain"
51
- },
52
- "testconstructSnsTopic44188529": {
53
- "Type": "AWS::SNS::Topic",
54
- "Properties": {
55
- "KmsMasterKeyId": {
56
- "Fn::GetAtt": [
57
- "testconstructEncryptionKey6153B053",
58
- "Arn"
59
- ]
60
- }
61
- }
62
- },
63
- "testconstructSnsTopicPolicy72FFD530": {
64
- "Type": "AWS::SNS::TopicPolicy",
65
- "Properties": {
66
- "PolicyDocument": {
67
- "Statement": [
68
- {
69
- "Action": [
70
- "SNS:Publish",
71
- "SNS:RemovePermission",
72
- "SNS:SetTopicAttributes",
73
- "SNS:DeleteTopic",
74
- "SNS:ListSubscriptionsByTopic",
75
- "SNS:GetTopicAttributes",
76
- "SNS:Receive",
77
- "SNS:AddPermission",
78
- "SNS:Subscribe"
79
- ],
80
- "Condition": {
81
- "StringEquals": {
82
- "AWS:SourceOwner": {
83
- "Ref": "AWS::AccountId"
84
- }
85
- }
86
- },
87
- "Effect": "Allow",
88
- "Principal": {
89
- "AWS": {
90
- "Fn::Join": [
91
- "",
92
- [
93
- "arn:",
94
- {
95
- "Ref": "AWS::Partition"
96
- },
97
- ":iam::",
98
- {
99
- "Ref": "AWS::AccountId"
100
- },
101
- ":root"
102
- ]
103
- ]
104
- }
105
- },
106
- "Resource": {
107
- "Ref": "testconstructSnsTopic44188529"
108
- },
109
- "Sid": "TopicOwnerOnlyAccess"
110
- },
111
- {
112
- "Action": [
113
- "SNS:Publish",
114
- "SNS:RemovePermission",
115
- "SNS:SetTopicAttributes",
116
- "SNS:DeleteTopic",
117
- "SNS:ListSubscriptionsByTopic",
118
- "SNS:GetTopicAttributes",
119
- "SNS:Receive",
120
- "SNS:AddPermission",
121
- "SNS:Subscribe"
122
- ],
123
- "Condition": {
124
- "Bool": {
125
- "aws:SecureTransport": "false"
126
- }
127
- },
128
- "Effect": "Deny",
129
- "Principal": {
130
- "AWS": "*"
131
- },
132
- "Resource": {
133
- "Ref": "testconstructSnsTopic44188529"
134
- },
135
- "Sid": "HttpsOnly"
136
- },
137
- {
138
- "Action": "sns:Publish",
139
- "Effect": "Allow",
140
- "Principal": {
141
- "Service": "events.amazonaws.com"
142
- },
143
- "Resource": {
144
- "Ref": "testconstructSnsTopic44188529"
145
- },
146
- "Sid": "2"
147
- }
148
- ],
149
- "Version": "2012-10-17"
150
- },
151
- "Topics": [
152
- {
153
- "Ref": "testconstructSnsTopic44188529"
154
- }
155
- ]
156
- }
157
- },
158
- "testconstructEventsRule145DBA20": {
159
- "Type": "AWS::Events::Rule",
160
- "Properties": {
161
- "ScheduleExpression": "rate(5 minutes)",
162
- "State": "ENABLED",
163
- "Targets": [
164
- {
165
- "Arn": {
166
- "Ref": "testconstructSnsTopic44188529"
167
- },
168
- "Id": {
169
- "Fn::Join": [
170
- "",
171
- [
172
- "evtsns-no-argtest-construct-",
173
- {
174
- "Fn::Select": [
175
- 2,
176
- {
177
- "Fn::Split": [
178
- "/",
179
- {
180
- "Ref": "AWS::StackId"
181
- }
182
- ]
183
- }
184
- ]
185
- }
186
- ]
187
- ]
188
- }
189
- }
190
- ]
191
- }
192
- }
193
- },
194
- "Parameters": {
195
- "BootstrapVersion": {
196
- "Type": "AWS::SSM::Parameter::Value<String>",
197
- "Default": "/cdk-bootstrap/hnb659fds/version",
198
- "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
199
- }
200
- },
201
- "Rules": {
202
- "CheckBootstrapVersion": {
203
- "Assertions": [
204
- {
205
- "Assert": {
206
- "Fn::Not": [
207
- {
208
- "Fn::Contains": [
209
- [
210
- "1",
211
- "2",
212
- "3",
213
- "4",
214
- "5"
215
- ],
216
- {
217
- "Ref": "BootstrapVersion"
218
- }
219
- ]
220
- }
221
- ]
222
- },
223
- "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
224
- }
225
- ]
226
- }
227
- }
228
- }