@aws-solutions-constructs/aws-eventbridge-sns 2.50.0 → 2.52.0

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 +50 -5
  3. package/integ.config.json +7 -0
  4. package/lib/index.js +1 -1
  5. package/package.json +12 -11
  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
- "existingeventbusA5B80487": {
4
- "Type": "AWS::Events::EventBus",
5
- "Properties": {
6
- "Name": "evtsnsexistbusexistingeventbusEAEACB72"
7
- }
8
- },
9
- "testconstructEncryptionKey6153B053": {
10
- "Type": "AWS::KMS::Key",
11
- "Properties": {
12
- "EnableKeyRotation": true,
13
- "KeyPolicy": {
14
- "Statement": [
15
- {
16
- "Action": "kms:*",
17
- "Effect": "Allow",
18
- "Principal": {
19
- "AWS": {
20
- "Fn::Join": [
21
- "",
22
- [
23
- "arn:",
24
- {
25
- "Ref": "AWS::Partition"
26
- },
27
- ":iam::",
28
- {
29
- "Ref": "AWS::AccountId"
30
- },
31
- ":root"
32
- ]
33
- ]
34
- }
35
- },
36
- "Resource": "*"
37
- },
38
- {
39
- "Action": [
40
- "kms:Decrypt",
41
- "kms:Encrypt",
42
- "kms:ReEncrypt*",
43
- "kms:GenerateDataKey*"
44
- ],
45
- "Effect": "Allow",
46
- "Principal": {
47
- "Service": "events.amazonaws.com"
48
- },
49
- "Resource": "*"
50
- }
51
- ],
52
- "Version": "2012-10-17"
53
- }
54
- },
55
- "UpdateReplacePolicy": "Retain",
56
- "DeletionPolicy": "Retain"
57
- },
58
- "testconstructSnsTopic44188529": {
59
- "Type": "AWS::SNS::Topic",
60
- "Properties": {
61
- "KmsMasterKeyId": {
62
- "Fn::GetAtt": [
63
- "testconstructEncryptionKey6153B053",
64
- "Arn"
65
- ]
66
- }
67
- }
68
- },
69
- "testconstructSnsTopicPolicy72FFD530": {
70
- "Type": "AWS::SNS::TopicPolicy",
71
- "Properties": {
72
- "PolicyDocument": {
73
- "Statement": [
74
- {
75
- "Action": [
76
- "SNS:Publish",
77
- "SNS:RemovePermission",
78
- "SNS:SetTopicAttributes",
79
- "SNS:DeleteTopic",
80
- "SNS:ListSubscriptionsByTopic",
81
- "SNS:GetTopicAttributes",
82
- "SNS:Receive",
83
- "SNS:AddPermission",
84
- "SNS:Subscribe"
85
- ],
86
- "Condition": {
87
- "StringEquals": {
88
- "AWS:SourceOwner": {
89
- "Ref": "AWS::AccountId"
90
- }
91
- }
92
- },
93
- "Effect": "Allow",
94
- "Principal": {
95
- "AWS": {
96
- "Fn::Join": [
97
- "",
98
- [
99
- "arn:",
100
- {
101
- "Ref": "AWS::Partition"
102
- },
103
- ":iam::",
104
- {
105
- "Ref": "AWS::AccountId"
106
- },
107
- ":root"
108
- ]
109
- ]
110
- }
111
- },
112
- "Resource": {
113
- "Ref": "testconstructSnsTopic44188529"
114
- },
115
- "Sid": "TopicOwnerOnlyAccess"
116
- },
117
- {
118
- "Action": [
119
- "SNS:Publish",
120
- "SNS:RemovePermission",
121
- "SNS:SetTopicAttributes",
122
- "SNS:DeleteTopic",
123
- "SNS:ListSubscriptionsByTopic",
124
- "SNS:GetTopicAttributes",
125
- "SNS:Receive",
126
- "SNS:AddPermission",
127
- "SNS:Subscribe"
128
- ],
129
- "Condition": {
130
- "Bool": {
131
- "aws:SecureTransport": "false"
132
- }
133
- },
134
- "Effect": "Deny",
135
- "Principal": {
136
- "AWS": "*"
137
- },
138
- "Resource": {
139
- "Ref": "testconstructSnsTopic44188529"
140
- },
141
- "Sid": "HttpsOnly"
142
- },
143
- {
144
- "Action": "sns:Publish",
145
- "Effect": "Allow",
146
- "Principal": {
147
- "Service": "events.amazonaws.com"
148
- },
149
- "Resource": {
150
- "Ref": "testconstructSnsTopic44188529"
151
- },
152
- "Sid": "2"
153
- }
154
- ],
155
- "Version": "2012-10-17"
156
- },
157
- "Topics": [
158
- {
159
- "Ref": "testconstructSnsTopic44188529"
160
- }
161
- ]
162
- }
163
- },
164
- "testconstructEventsRule145DBA20": {
165
- "Type": "AWS::Events::Rule",
166
- "Properties": {
167
- "EventBusName": {
168
- "Ref": "existingeventbusA5B80487"
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-exist-test-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,418 +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(1 minute)",
162
- "State": "ENABLED",
163
- "Targets": [
164
- {
165
- "Arn": {
166
- "Ref": "testconstructSnsTopic44188529"
167
- },
168
- "Id": {
169
- "Fn::Join": [
170
- "",
171
- [
172
- "evtsnslongstatest-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
- "secondconstructEncryptionKey6A63A25A": {
194
- "Type": "AWS::KMS::Key",
195
- "Properties": {
196
- "EnableKeyRotation": true,
197
- "KeyPolicy": {
198
- "Statement": [
199
- {
200
- "Action": "kms:*",
201
- "Effect": "Allow",
202
- "Principal": {
203
- "AWS": {
204
- "Fn::Join": [
205
- "",
206
- [
207
- "arn:",
208
- {
209
- "Ref": "AWS::Partition"
210
- },
211
- ":iam::",
212
- {
213
- "Ref": "AWS::AccountId"
214
- },
215
- ":root"
216
- ]
217
- ]
218
- }
219
- },
220
- "Resource": "*"
221
- },
222
- {
223
- "Action": [
224
- "kms:Decrypt",
225
- "kms:Encrypt",
226
- "kms:ReEncrypt*",
227
- "kms:GenerateDataKey*"
228
- ],
229
- "Effect": "Allow",
230
- "Principal": {
231
- "Service": "events.amazonaws.com"
232
- },
233
- "Resource": "*"
234
- }
235
- ],
236
- "Version": "2012-10-17"
237
- }
238
- },
239
- "UpdateReplacePolicy": "Retain",
240
- "DeletionPolicy": "Retain"
241
- },
242
- "secondconstructSnsTopicCE75056B": {
243
- "Type": "AWS::SNS::Topic",
244
- "Properties": {
245
- "KmsMasterKeyId": {
246
- "Fn::GetAtt": [
247
- "secondconstructEncryptionKey6A63A25A",
248
- "Arn"
249
- ]
250
- }
251
- }
252
- },
253
- "secondconstructSnsTopicPolicyD6D4DA55": {
254
- "Type": "AWS::SNS::TopicPolicy",
255
- "Properties": {
256
- "PolicyDocument": {
257
- "Statement": [
258
- {
259
- "Action": [
260
- "SNS:Publish",
261
- "SNS:RemovePermission",
262
- "SNS:SetTopicAttributes",
263
- "SNS:DeleteTopic",
264
- "SNS:ListSubscriptionsByTopic",
265
- "SNS:GetTopicAttributes",
266
- "SNS:Receive",
267
- "SNS:AddPermission",
268
- "SNS:Subscribe"
269
- ],
270
- "Condition": {
271
- "StringEquals": {
272
- "AWS:SourceOwner": {
273
- "Ref": "AWS::AccountId"
274
- }
275
- }
276
- },
277
- "Effect": "Allow",
278
- "Principal": {
279
- "AWS": {
280
- "Fn::Join": [
281
- "",
282
- [
283
- "arn:",
284
- {
285
- "Ref": "AWS::Partition"
286
- },
287
- ":iam::",
288
- {
289
- "Ref": "AWS::AccountId"
290
- },
291
- ":root"
292
- ]
293
- ]
294
- }
295
- },
296
- "Resource": {
297
- "Ref": "secondconstructSnsTopicCE75056B"
298
- },
299
- "Sid": "TopicOwnerOnlyAccess"
300
- },
301
- {
302
- "Action": [
303
- "SNS:Publish",
304
- "SNS:RemovePermission",
305
- "SNS:SetTopicAttributes",
306
- "SNS:DeleteTopic",
307
- "SNS:ListSubscriptionsByTopic",
308
- "SNS:GetTopicAttributes",
309
- "SNS:Receive",
310
- "SNS:AddPermission",
311
- "SNS:Subscribe"
312
- ],
313
- "Condition": {
314
- "Bool": {
315
- "aws:SecureTransport": "false"
316
- }
317
- },
318
- "Effect": "Deny",
319
- "Principal": {
320
- "AWS": "*"
321
- },
322
- "Resource": {
323
- "Ref": "secondconstructSnsTopicCE75056B"
324
- },
325
- "Sid": "HttpsOnly"
326
- },
327
- {
328
- "Action": "sns:Publish",
329
- "Effect": "Allow",
330
- "Principal": {
331
- "Service": "events.amazonaws.com"
332
- },
333
- "Resource": {
334
- "Ref": "secondconstructSnsTopicCE75056B"
335
- },
336
- "Sid": "2"
337
- }
338
- ],
339
- "Version": "2012-10-17"
340
- },
341
- "Topics": [
342
- {
343
- "Ref": "secondconstructSnsTopicCE75056B"
344
- }
345
- ]
346
- }
347
- },
348
- "secondconstructEventsRuleFA5C1CE6": {
349
- "Type": "AWS::Events::Rule",
350
- "Properties": {
351
- "ScheduleExpression": "rate(1 minute)",
352
- "State": "ENABLED",
353
- "Targets": [
354
- {
355
- "Arn": {
356
- "Ref": "secondconstructSnsTopicCE75056B"
357
- },
358
- "Id": {
359
- "Fn::Join": [
360
- "",
361
- [
362
- "evtsnslongstacond-construct-",
363
- {
364
- "Fn::Select": [
365
- 2,
366
- {
367
- "Fn::Split": [
368
- "/",
369
- {
370
- "Ref": "AWS::StackId"
371
- }
372
- ]
373
- }
374
- ]
375
- }
376
- ]
377
- ]
378
- }
379
- }
380
- ]
381
- }
382
- }
383
- },
384
- "Parameters": {
385
- "BootstrapVersion": {
386
- "Type": "AWS::SSM::Parameter::Value<String>",
387
- "Default": "/cdk-bootstrap/hnb659fds/version",
388
- "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
389
- }
390
- },
391
- "Rules": {
392
- "CheckBootstrapVersion": {
393
- "Assertions": [
394
- {
395
- "Assert": {
396
- "Fn::Not": [
397
- {
398
- "Fn::Contains": [
399
- [
400
- "1",
401
- "2",
402
- "3",
403
- "4",
404
- "5"
405
- ],
406
- {
407
- "Ref": "BootstrapVersion"
408
- }
409
- ]
410
- }
411
- ]
412
- },
413
- "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
414
- }
415
- ]
416
- }
417
- }
418
- }