@aws-solutions-constructs/aws-eventbridge-sns 2.51.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 +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
@@ -0,0 +1,641 @@
1
+ {
2
+ "version": "tree-0.1",
3
+ "tree": {
4
+ "id": "App",
5
+ "path": "",
6
+ "children": {
7
+ "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger": {
8
+ "id": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger",
9
+ "path": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger",
10
+ "children": {
11
+ "test-construct": {
12
+ "id": "test-construct",
13
+ "path": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger/test-construct",
14
+ "children": {
15
+ "EncryptionKey": {
16
+ "id": "EncryptionKey",
17
+ "path": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger/test-construct/EncryptionKey",
18
+ "children": {
19
+ "Resource": {
20
+ "id": "Resource",
21
+ "path": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger/test-construct/EncryptionKey/Resource",
22
+ "attributes": {
23
+ "aws:cdk:cloudformation:type": "AWS::KMS::Key",
24
+ "aws:cdk:cloudformation:props": {
25
+ "enableKeyRotation": true,
26
+ "keyPolicy": {
27
+ "Statement": [
28
+ {
29
+ "Action": "kms:*",
30
+ "Effect": "Allow",
31
+ "Principal": {
32
+ "AWS": {
33
+ "Fn::Join": [
34
+ "",
35
+ [
36
+ "arn:",
37
+ {
38
+ "Ref": "AWS::Partition"
39
+ },
40
+ ":iam::",
41
+ {
42
+ "Ref": "AWS::AccountId"
43
+ },
44
+ ":root"
45
+ ]
46
+ ]
47
+ }
48
+ },
49
+ "Resource": "*"
50
+ },
51
+ {
52
+ "Action": [
53
+ "kms:Decrypt",
54
+ "kms:Encrypt",
55
+ "kms:GenerateDataKey*",
56
+ "kms:ReEncrypt*"
57
+ ],
58
+ "Effect": "Allow",
59
+ "Principal": {
60
+ "Service": "events.amazonaws.com"
61
+ },
62
+ "Resource": "*"
63
+ }
64
+ ],
65
+ "Version": "2012-10-17"
66
+ }
67
+ }
68
+ },
69
+ "constructInfo": {
70
+ "fqn": "aws-cdk-lib.aws_kms.CfnKey",
71
+ "version": "2.118.0"
72
+ }
73
+ }
74
+ },
75
+ "constructInfo": {
76
+ "fqn": "aws-cdk-lib.aws_kms.Key",
77
+ "version": "2.118.0"
78
+ }
79
+ },
80
+ "SnsTopic": {
81
+ "id": "SnsTopic",
82
+ "path": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger/test-construct/SnsTopic",
83
+ "children": {
84
+ "Resource": {
85
+ "id": "Resource",
86
+ "path": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger/test-construct/SnsTopic/Resource",
87
+ "attributes": {
88
+ "aws:cdk:cloudformation:type": "AWS::SNS::Topic",
89
+ "aws:cdk:cloudformation:props": {
90
+ "kmsMasterKeyId": {
91
+ "Fn::GetAtt": [
92
+ "testconstructEncryptionKey6153B053",
93
+ "Arn"
94
+ ]
95
+ }
96
+ }
97
+ },
98
+ "constructInfo": {
99
+ "fqn": "aws-cdk-lib.aws_sns.CfnTopic",
100
+ "version": "2.118.0"
101
+ }
102
+ },
103
+ "Policy": {
104
+ "id": "Policy",
105
+ "path": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger/test-construct/SnsTopic/Policy",
106
+ "children": {
107
+ "Resource": {
108
+ "id": "Resource",
109
+ "path": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger/test-construct/SnsTopic/Policy/Resource",
110
+ "attributes": {
111
+ "aws:cdk:cloudformation:type": "AWS::SNS::TopicPolicy",
112
+ "aws:cdk:cloudformation:props": {
113
+ "policyDocument": {
114
+ "Statement": [
115
+ {
116
+ "Action": [
117
+ "SNS:AddPermission",
118
+ "SNS:DeleteTopic",
119
+ "SNS:GetTopicAttributes",
120
+ "SNS:ListSubscriptionsByTopic",
121
+ "SNS:Publish",
122
+ "SNS:Receive",
123
+ "SNS:RemovePermission",
124
+ "SNS:SetTopicAttributes",
125
+ "SNS:Subscribe"
126
+ ],
127
+ "Condition": {
128
+ "StringEquals": {
129
+ "AWS:SourceOwner": {
130
+ "Ref": "AWS::AccountId"
131
+ }
132
+ }
133
+ },
134
+ "Effect": "Allow",
135
+ "Principal": {
136
+ "AWS": {
137
+ "Fn::Join": [
138
+ "",
139
+ [
140
+ "arn:",
141
+ {
142
+ "Ref": "AWS::Partition"
143
+ },
144
+ ":iam::",
145
+ {
146
+ "Ref": "AWS::AccountId"
147
+ },
148
+ ":root"
149
+ ]
150
+ ]
151
+ }
152
+ },
153
+ "Resource": {
154
+ "Ref": "testconstructSnsTopic44188529"
155
+ },
156
+ "Sid": "TopicOwnerOnlyAccess"
157
+ },
158
+ {
159
+ "Action": [
160
+ "SNS:AddPermission",
161
+ "SNS:DeleteTopic",
162
+ "SNS:GetTopicAttributes",
163
+ "SNS:ListSubscriptionsByTopic",
164
+ "SNS:Publish",
165
+ "SNS:Receive",
166
+ "SNS:RemovePermission",
167
+ "SNS:SetTopicAttributes",
168
+ "SNS:Subscribe"
169
+ ],
170
+ "Condition": {
171
+ "Bool": {
172
+ "aws:SecureTransport": "false"
173
+ }
174
+ },
175
+ "Effect": "Deny",
176
+ "Principal": {
177
+ "AWS": "*"
178
+ },
179
+ "Resource": {
180
+ "Ref": "testconstructSnsTopic44188529"
181
+ },
182
+ "Sid": "HttpsOnly"
183
+ },
184
+ {
185
+ "Action": "sns:Publish",
186
+ "Effect": "Allow",
187
+ "Principal": {
188
+ "Service": "events.amazonaws.com"
189
+ },
190
+ "Resource": {
191
+ "Ref": "testconstructSnsTopic44188529"
192
+ },
193
+ "Sid": "2"
194
+ }
195
+ ],
196
+ "Version": "2012-10-17"
197
+ },
198
+ "topics": [
199
+ {
200
+ "Ref": "testconstructSnsTopic44188529"
201
+ }
202
+ ]
203
+ }
204
+ },
205
+ "constructInfo": {
206
+ "fqn": "aws-cdk-lib.aws_sns.CfnTopicPolicy",
207
+ "version": "2.118.0"
208
+ }
209
+ }
210
+ },
211
+ "constructInfo": {
212
+ "fqn": "aws-cdk-lib.aws_sns.TopicPolicy",
213
+ "version": "2.118.0"
214
+ }
215
+ }
216
+ },
217
+ "constructInfo": {
218
+ "fqn": "aws-cdk-lib.aws_sns.Topic",
219
+ "version": "2.118.0"
220
+ }
221
+ },
222
+ "EventsRule": {
223
+ "id": "EventsRule",
224
+ "path": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger/test-construct/EventsRule",
225
+ "children": {
226
+ "Resource": {
227
+ "id": "Resource",
228
+ "path": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger/test-construct/EventsRule/Resource",
229
+ "attributes": {
230
+ "aws:cdk:cloudformation:type": "AWS::Events::Rule",
231
+ "aws:cdk:cloudformation:props": {
232
+ "scheduleExpression": "rate(1 minute)",
233
+ "state": "ENABLED",
234
+ "targets": [
235
+ {
236
+ "id": {
237
+ "Fn::Join": [
238
+ "",
239
+ [
240
+ "evtsnslongstatest-construct-",
241
+ {
242
+ "Fn::Select": [
243
+ 2,
244
+ {
245
+ "Fn::Split": [
246
+ "/",
247
+ {
248
+ "Ref": "AWS::StackId"
249
+ }
250
+ ]
251
+ }
252
+ ]
253
+ }
254
+ ]
255
+ ]
256
+ },
257
+ "arn": {
258
+ "Ref": "testconstructSnsTopic44188529"
259
+ }
260
+ }
261
+ ]
262
+ }
263
+ },
264
+ "constructInfo": {
265
+ "fqn": "aws-cdk-lib.aws_events.CfnRule",
266
+ "version": "2.118.0"
267
+ }
268
+ }
269
+ },
270
+ "constructInfo": {
271
+ "fqn": "aws-cdk-lib.aws_events.Rule",
272
+ "version": "2.118.0"
273
+ }
274
+ }
275
+ },
276
+ "constructInfo": {
277
+ "fqn": "@aws-solutions-constructs/aws-eventbridge-sns.EventbridgeToSns",
278
+ "version": "2.50.0"
279
+ }
280
+ },
281
+ "second-construct": {
282
+ "id": "second-construct",
283
+ "path": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger/second-construct",
284
+ "children": {
285
+ "EncryptionKey": {
286
+ "id": "EncryptionKey",
287
+ "path": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger/second-construct/EncryptionKey",
288
+ "children": {
289
+ "Resource": {
290
+ "id": "Resource",
291
+ "path": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger/second-construct/EncryptionKey/Resource",
292
+ "attributes": {
293
+ "aws:cdk:cloudformation:type": "AWS::KMS::Key",
294
+ "aws:cdk:cloudformation:props": {
295
+ "enableKeyRotation": true,
296
+ "keyPolicy": {
297
+ "Statement": [
298
+ {
299
+ "Action": "kms:*",
300
+ "Effect": "Allow",
301
+ "Principal": {
302
+ "AWS": {
303
+ "Fn::Join": [
304
+ "",
305
+ [
306
+ "arn:",
307
+ {
308
+ "Ref": "AWS::Partition"
309
+ },
310
+ ":iam::",
311
+ {
312
+ "Ref": "AWS::AccountId"
313
+ },
314
+ ":root"
315
+ ]
316
+ ]
317
+ }
318
+ },
319
+ "Resource": "*"
320
+ },
321
+ {
322
+ "Action": [
323
+ "kms:Decrypt",
324
+ "kms:Encrypt",
325
+ "kms:GenerateDataKey*",
326
+ "kms:ReEncrypt*"
327
+ ],
328
+ "Effect": "Allow",
329
+ "Principal": {
330
+ "Service": "events.amazonaws.com"
331
+ },
332
+ "Resource": "*"
333
+ }
334
+ ],
335
+ "Version": "2012-10-17"
336
+ }
337
+ }
338
+ },
339
+ "constructInfo": {
340
+ "fqn": "aws-cdk-lib.aws_kms.CfnKey",
341
+ "version": "2.118.0"
342
+ }
343
+ }
344
+ },
345
+ "constructInfo": {
346
+ "fqn": "aws-cdk-lib.aws_kms.Key",
347
+ "version": "2.118.0"
348
+ }
349
+ },
350
+ "SnsTopic": {
351
+ "id": "SnsTopic",
352
+ "path": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger/second-construct/SnsTopic",
353
+ "children": {
354
+ "Resource": {
355
+ "id": "Resource",
356
+ "path": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger/second-construct/SnsTopic/Resource",
357
+ "attributes": {
358
+ "aws:cdk:cloudformation:type": "AWS::SNS::Topic",
359
+ "aws:cdk:cloudformation:props": {
360
+ "kmsMasterKeyId": {
361
+ "Fn::GetAtt": [
362
+ "secondconstructEncryptionKey6A63A25A",
363
+ "Arn"
364
+ ]
365
+ }
366
+ }
367
+ },
368
+ "constructInfo": {
369
+ "fqn": "aws-cdk-lib.aws_sns.CfnTopic",
370
+ "version": "2.118.0"
371
+ }
372
+ },
373
+ "Policy": {
374
+ "id": "Policy",
375
+ "path": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger/second-construct/SnsTopic/Policy",
376
+ "children": {
377
+ "Resource": {
378
+ "id": "Resource",
379
+ "path": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger/second-construct/SnsTopic/Policy/Resource",
380
+ "attributes": {
381
+ "aws:cdk:cloudformation:type": "AWS::SNS::TopicPolicy",
382
+ "aws:cdk:cloudformation:props": {
383
+ "policyDocument": {
384
+ "Statement": [
385
+ {
386
+ "Action": [
387
+ "SNS:AddPermission",
388
+ "SNS:DeleteTopic",
389
+ "SNS:GetTopicAttributes",
390
+ "SNS:ListSubscriptionsByTopic",
391
+ "SNS:Publish",
392
+ "SNS:Receive",
393
+ "SNS:RemovePermission",
394
+ "SNS:SetTopicAttributes",
395
+ "SNS:Subscribe"
396
+ ],
397
+ "Condition": {
398
+ "StringEquals": {
399
+ "AWS:SourceOwner": {
400
+ "Ref": "AWS::AccountId"
401
+ }
402
+ }
403
+ },
404
+ "Effect": "Allow",
405
+ "Principal": {
406
+ "AWS": {
407
+ "Fn::Join": [
408
+ "",
409
+ [
410
+ "arn:",
411
+ {
412
+ "Ref": "AWS::Partition"
413
+ },
414
+ ":iam::",
415
+ {
416
+ "Ref": "AWS::AccountId"
417
+ },
418
+ ":root"
419
+ ]
420
+ ]
421
+ }
422
+ },
423
+ "Resource": {
424
+ "Ref": "secondconstructSnsTopicCE75056B"
425
+ },
426
+ "Sid": "TopicOwnerOnlyAccess"
427
+ },
428
+ {
429
+ "Action": [
430
+ "SNS:AddPermission",
431
+ "SNS:DeleteTopic",
432
+ "SNS:GetTopicAttributes",
433
+ "SNS:ListSubscriptionsByTopic",
434
+ "SNS:Publish",
435
+ "SNS:Receive",
436
+ "SNS:RemovePermission",
437
+ "SNS:SetTopicAttributes",
438
+ "SNS:Subscribe"
439
+ ],
440
+ "Condition": {
441
+ "Bool": {
442
+ "aws:SecureTransport": "false"
443
+ }
444
+ },
445
+ "Effect": "Deny",
446
+ "Principal": {
447
+ "AWS": "*"
448
+ },
449
+ "Resource": {
450
+ "Ref": "secondconstructSnsTopicCE75056B"
451
+ },
452
+ "Sid": "HttpsOnly"
453
+ },
454
+ {
455
+ "Action": "sns:Publish",
456
+ "Effect": "Allow",
457
+ "Principal": {
458
+ "Service": "events.amazonaws.com"
459
+ },
460
+ "Resource": {
461
+ "Ref": "secondconstructSnsTopicCE75056B"
462
+ },
463
+ "Sid": "2"
464
+ }
465
+ ],
466
+ "Version": "2012-10-17"
467
+ },
468
+ "topics": [
469
+ {
470
+ "Ref": "secondconstructSnsTopicCE75056B"
471
+ }
472
+ ]
473
+ }
474
+ },
475
+ "constructInfo": {
476
+ "fqn": "aws-cdk-lib.aws_sns.CfnTopicPolicy",
477
+ "version": "2.118.0"
478
+ }
479
+ }
480
+ },
481
+ "constructInfo": {
482
+ "fqn": "aws-cdk-lib.aws_sns.TopicPolicy",
483
+ "version": "2.118.0"
484
+ }
485
+ }
486
+ },
487
+ "constructInfo": {
488
+ "fqn": "aws-cdk-lib.aws_sns.Topic",
489
+ "version": "2.118.0"
490
+ }
491
+ },
492
+ "EventsRule": {
493
+ "id": "EventsRule",
494
+ "path": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger/second-construct/EventsRule",
495
+ "children": {
496
+ "Resource": {
497
+ "id": "Resource",
498
+ "path": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger/second-construct/EventsRule/Resource",
499
+ "attributes": {
500
+ "aws:cdk:cloudformation:type": "AWS::Events::Rule",
501
+ "aws:cdk:cloudformation:props": {
502
+ "scheduleExpression": "rate(1 minute)",
503
+ "state": "ENABLED",
504
+ "targets": [
505
+ {
506
+ "id": {
507
+ "Fn::Join": [
508
+ "",
509
+ [
510
+ "evtsnslongstacond-construct-",
511
+ {
512
+ "Fn::Select": [
513
+ 2,
514
+ {
515
+ "Fn::Split": [
516
+ "/",
517
+ {
518
+ "Ref": "AWS::StackId"
519
+ }
520
+ ]
521
+ }
522
+ ]
523
+ }
524
+ ]
525
+ ]
526
+ },
527
+ "arn": {
528
+ "Ref": "secondconstructSnsTopicCE75056B"
529
+ }
530
+ }
531
+ ]
532
+ }
533
+ },
534
+ "constructInfo": {
535
+ "fqn": "aws-cdk-lib.aws_events.CfnRule",
536
+ "version": "2.118.0"
537
+ }
538
+ }
539
+ },
540
+ "constructInfo": {
541
+ "fqn": "aws-cdk-lib.aws_events.Rule",
542
+ "version": "2.118.0"
543
+ }
544
+ }
545
+ },
546
+ "constructInfo": {
547
+ "fqn": "@aws-solutions-constructs/aws-eventbridge-sns.EventbridgeToSns",
548
+ "version": "2.50.0"
549
+ }
550
+ },
551
+ "Integ": {
552
+ "id": "Integ",
553
+ "path": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger/Integ",
554
+ "children": {
555
+ "DefaultTest": {
556
+ "id": "DefaultTest",
557
+ "path": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger/Integ/DefaultTest",
558
+ "children": {
559
+ "Default": {
560
+ "id": "Default",
561
+ "path": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger/Integ/DefaultTest/Default",
562
+ "constructInfo": {
563
+ "fqn": "constructs.Construct",
564
+ "version": "10.0.0"
565
+ }
566
+ },
567
+ "DeployAssert": {
568
+ "id": "DeployAssert",
569
+ "path": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger/Integ/DefaultTest/DeployAssert",
570
+ "children": {
571
+ "BootstrapVersion": {
572
+ "id": "BootstrapVersion",
573
+ "path": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger/Integ/DefaultTest/DeployAssert/BootstrapVersion",
574
+ "constructInfo": {
575
+ "fqn": "aws-cdk-lib.CfnParameter",
576
+ "version": "2.118.0"
577
+ }
578
+ },
579
+ "CheckBootstrapVersion": {
580
+ "id": "CheckBootstrapVersion",
581
+ "path": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
582
+ "constructInfo": {
583
+ "fqn": "aws-cdk-lib.CfnRule",
584
+ "version": "2.118.0"
585
+ }
586
+ }
587
+ },
588
+ "constructInfo": {
589
+ "fqn": "aws-cdk-lib.Stack",
590
+ "version": "2.118.0"
591
+ }
592
+ }
593
+ },
594
+ "constructInfo": {
595
+ "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
596
+ "version": "2.118.0-alpha.0"
597
+ }
598
+ }
599
+ },
600
+ "constructInfo": {
601
+ "fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
602
+ "version": "2.118.0-alpha.0"
603
+ }
604
+ },
605
+ "BootstrapVersion": {
606
+ "id": "BootstrapVersion",
607
+ "path": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger/BootstrapVersion",
608
+ "constructInfo": {
609
+ "fqn": "aws-cdk-lib.CfnParameter",
610
+ "version": "2.118.0"
611
+ }
612
+ },
613
+ "CheckBootstrapVersion": {
614
+ "id": "CheckBootstrapVersion",
615
+ "path": "evtsns-long-stack-nameThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger/CheckBootstrapVersion",
616
+ "constructInfo": {
617
+ "fqn": "aws-cdk-lib.CfnRule",
618
+ "version": "2.118.0"
619
+ }
620
+ }
621
+ },
622
+ "constructInfo": {
623
+ "fqn": "aws-cdk-lib.Stack",
624
+ "version": "2.118.0"
625
+ }
626
+ },
627
+ "Tree": {
628
+ "id": "Tree",
629
+ "path": "Tree",
630
+ "constructInfo": {
631
+ "fqn": "constructs.Construct",
632
+ "version": "10.0.0"
633
+ }
634
+ }
635
+ },
636
+ "constructInfo": {
637
+ "fqn": "aws-cdk-lib.App",
638
+ "version": "2.118.0"
639
+ }
640
+ }
641
+ }
@@ -15,6 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  const lib_1 = require("../lib");
16
16
  const aws_cdk_lib_1 = require("aws-cdk-lib");
17
17
  const core_1 = require("@aws-solutions-constructs/core");
18
+ const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha");
18
19
  const app = new aws_cdk_lib_1.App();
19
20
  const stack = new aws_cdk_lib_1.Stack(app, core_1.generateIntegStackName(__filename));
20
21
  const props = {
@@ -26,5 +27,7 @@ const props = {
26
27
  eventBusProps: {} // Pass props to create new custom EventBus
27
28
  };
28
29
  new lib_1.EventbridgeToSns(stack, 'test-construct', props);
29
- app.synth();
30
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZXZ0c25zLW5ldy1idXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5ldnRzbnMtbmV3LWJ1cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7Ozs7Ozs7Ozs7O0dBV0c7O0FBRUgsZ0NBQWlFO0FBQ2pFLDZDQUF5QztBQUN6Qyx5REFBd0U7QUFFeEUsTUFBTSxHQUFHLEdBQUcsSUFBSSxpQkFBRyxFQUFFLENBQUM7QUFDdEIsTUFBTSxLQUFLLEdBQUcsSUFBSSxtQkFBSyxDQUFDLEdBQUcsRUFBRSw2QkFBc0IsQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFDO0FBRWpFLE1BQU0sS0FBSyxHQUEwQjtJQUNuQyxjQUFjLEVBQUU7UUFDZCxZQUFZLEVBQUU7WUFDWixNQUFNLEVBQUUsQ0FBQyxxQkFBcUIsQ0FBQztTQUNoQztLQUNGO0lBQ0QsYUFBY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