@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
@@ -0,0 +1,19 @@
1
+ {
2
+ "version": "36.0.0",
3
+ "files": {
4
+ "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": {
5
+ "source": {
6
+ "path": "evtsnsnoargIntegDefaultTestDeployAssertB64352AF.template.json",
7
+ "packaging": "file"
8
+ },
9
+ "destinations": {
10
+ "current_account-current_region": {
11
+ "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
12
+ "objectKey": "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json",
13
+ "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
14
+ }
15
+ }
16
+ }
17
+ },
18
+ "dockerImages": {}
19
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "Parameters": {
3
+ "BootstrapVersion": {
4
+ "Type": "AWS::SSM::Parameter::Value<String>",
5
+ "Default": "/cdk-bootstrap/hnb659fds/version",
6
+ "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
7
+ }
8
+ },
9
+ "Rules": {
10
+ "CheckBootstrapVersion": {
11
+ "Assertions": [
12
+ {
13
+ "Assert": {
14
+ "Fn::Not": [
15
+ {
16
+ "Fn::Contains": [
17
+ [
18
+ "1",
19
+ "2",
20
+ "3",
21
+ "4",
22
+ "5"
23
+ ],
24
+ {
25
+ "Ref": "BootstrapVersion"
26
+ }
27
+ ]
28
+ }
29
+ ]
30
+ },
31
+ "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
32
+ }
33
+ ]
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "version": "36.0.0",
3
+ "testCases": {
4
+ "evtsns-no-arg/Integ/DefaultTest": {
5
+ "stacks": [
6
+ "evtsns-no-arg"
7
+ ],
8
+ "assertionStack": "evtsns-no-arg/Integ/DefaultTest/DeployAssert",
9
+ "assertionStackName": "evtsnsnoargIntegDefaultTestDeployAssertB64352AF"
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,131 @@
1
+ {
2
+ "version": "36.0.0",
3
+ "artifacts": {
4
+ "evtsnsnoargIntegDefaultTestDeployAssertB64352AF.assets": {
5
+ "type": "cdk:asset-manifest",
6
+ "properties": {
7
+ "file": "evtsnsnoargIntegDefaultTestDeployAssertB64352AF.assets.json",
8
+ "requiresBootstrapStackVersion": 6,
9
+ "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version"
10
+ }
11
+ },
12
+ "evtsnsnoargIntegDefaultTestDeployAssertB64352AF": {
13
+ "type": "aws:cloudformation:stack",
14
+ "environment": "aws://unknown-account/unknown-region",
15
+ "properties": {
16
+ "templateFile": "evtsnsnoargIntegDefaultTestDeployAssertB64352AF.template.json",
17
+ "terminationProtection": false,
18
+ "validateOnSynth": false,
19
+ "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
20
+ "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}",
21
+ "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json",
22
+ "requiresBootstrapStackVersion": 6,
23
+ "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
24
+ "additionalDependencies": [
25
+ "evtsnsnoargIntegDefaultTestDeployAssertB64352AF.assets"
26
+ ],
27
+ "lookupRole": {
28
+ "arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-${AWS::Region}",
29
+ "requiresBootstrapStackVersion": 8,
30
+ "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version"
31
+ }
32
+ },
33
+ "dependencies": [
34
+ "evtsnsnoargIntegDefaultTestDeployAssertB64352AF.assets"
35
+ ],
36
+ "metadata": {
37
+ "/evtsns-no-arg/Integ/DefaultTest/DeployAssert/BootstrapVersion": [
38
+ {
39
+ "type": "aws:cdk:logicalId",
40
+ "data": "BootstrapVersion"
41
+ }
42
+ ],
43
+ "/evtsns-no-arg/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion": [
44
+ {
45
+ "type": "aws:cdk:logicalId",
46
+ "data": "CheckBootstrapVersion"
47
+ }
48
+ ]
49
+ },
50
+ "displayName": "evtsns-no-arg/Integ/DefaultTest/DeployAssert"
51
+ },
52
+ "evtsns-no-arg.assets": {
53
+ "type": "cdk:asset-manifest",
54
+ "properties": {
55
+ "file": "evtsns-no-arg.assets.json",
56
+ "requiresBootstrapStackVersion": 6,
57
+ "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version"
58
+ }
59
+ },
60
+ "evtsns-no-arg": {
61
+ "type": "aws:cloudformation:stack",
62
+ "environment": "aws://unknown-account/unknown-region",
63
+ "properties": {
64
+ "templateFile": "evtsns-no-arg.template.json",
65
+ "terminationProtection": false,
66
+ "validateOnSynth": false,
67
+ "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
68
+ "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}",
69
+ "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/2aa7abfd364b75fb3a76c901e1542462b6d9cf5bdce6c095a778211369e0eeba.json",
70
+ "requiresBootstrapStackVersion": 6,
71
+ "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
72
+ "additionalDependencies": [
73
+ "evtsns-no-arg.assets"
74
+ ],
75
+ "lookupRole": {
76
+ "arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-${AWS::Region}",
77
+ "requiresBootstrapStackVersion": 8,
78
+ "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version"
79
+ }
80
+ },
81
+ "dependencies": [
82
+ "evtsns-no-arg.assets"
83
+ ],
84
+ "metadata": {
85
+ "/evtsns-no-arg/test-construct/EncryptionKey/Resource": [
86
+ {
87
+ "type": "aws:cdk:logicalId",
88
+ "data": "testconstructEncryptionKey6153B053"
89
+ }
90
+ ],
91
+ "/evtsns-no-arg/test-construct/SnsTopic/Resource": [
92
+ {
93
+ "type": "aws:cdk:logicalId",
94
+ "data": "testconstructSnsTopic44188529"
95
+ }
96
+ ],
97
+ "/evtsns-no-arg/test-construct/SnsTopic/Policy/Resource": [
98
+ {
99
+ "type": "aws:cdk:logicalId",
100
+ "data": "testconstructSnsTopicPolicy72FFD530"
101
+ }
102
+ ],
103
+ "/evtsns-no-arg/test-construct/EventsRule/Resource": [
104
+ {
105
+ "type": "aws:cdk:logicalId",
106
+ "data": "testconstructEventsRule145DBA20"
107
+ }
108
+ ],
109
+ "/evtsns-no-arg/BootstrapVersion": [
110
+ {
111
+ "type": "aws:cdk:logicalId",
112
+ "data": "BootstrapVersion"
113
+ }
114
+ ],
115
+ "/evtsns-no-arg/CheckBootstrapVersion": [
116
+ {
117
+ "type": "aws:cdk:logicalId",
118
+ "data": "CheckBootstrapVersion"
119
+ }
120
+ ]
121
+ },
122
+ "displayName": "evtsns-no-arg"
123
+ },
124
+ "Tree": {
125
+ "type": "cdk:tree",
126
+ "properties": {
127
+ "file": "tree.json"
128
+ }
129
+ }
130
+ }
131
+ }
@@ -0,0 +1,371 @@
1
+ {
2
+ "version": "tree-0.1",
3
+ "tree": {
4
+ "id": "App",
5
+ "path": "",
6
+ "children": {
7
+ "evtsns-no-arg": {
8
+ "id": "evtsns-no-arg",
9
+ "path": "evtsns-no-arg",
10
+ "children": {
11
+ "test-construct": {
12
+ "id": "test-construct",
13
+ "path": "evtsns-no-arg/test-construct",
14
+ "children": {
15
+ "EncryptionKey": {
16
+ "id": "EncryptionKey",
17
+ "path": "evtsns-no-arg/test-construct/EncryptionKey",
18
+ "children": {
19
+ "Resource": {
20
+ "id": "Resource",
21
+ "path": "evtsns-no-arg/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-no-arg/test-construct/SnsTopic",
83
+ "children": {
84
+ "Resource": {
85
+ "id": "Resource",
86
+ "path": "evtsns-no-arg/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-no-arg/test-construct/SnsTopic/Policy",
106
+ "children": {
107
+ "Resource": {
108
+ "id": "Resource",
109
+ "path": "evtsns-no-arg/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-no-arg/test-construct/EventsRule",
225
+ "children": {
226
+ "Resource": {
227
+ "id": "Resource",
228
+ "path": "evtsns-no-arg/test-construct/EventsRule/Resource",
229
+ "attributes": {
230
+ "aws:cdk:cloudformation:type": "AWS::Events::Rule",
231
+ "aws:cdk:cloudformation:props": {
232
+ "scheduleExpression": "rate(5 minutes)",
233
+ "state": "ENABLED",
234
+ "targets": [
235
+ {
236
+ "id": {
237
+ "Fn::Join": [
238
+ "",
239
+ [
240
+ "evtsns-no-argtest-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
+ "Integ": {
282
+ "id": "Integ",
283
+ "path": "evtsns-no-arg/Integ",
284
+ "children": {
285
+ "DefaultTest": {
286
+ "id": "DefaultTest",
287
+ "path": "evtsns-no-arg/Integ/DefaultTest",
288
+ "children": {
289
+ "Default": {
290
+ "id": "Default",
291
+ "path": "evtsns-no-arg/Integ/DefaultTest/Default",
292
+ "constructInfo": {
293
+ "fqn": "constructs.Construct",
294
+ "version": "10.0.0"
295
+ }
296
+ },
297
+ "DeployAssert": {
298
+ "id": "DeployAssert",
299
+ "path": "evtsns-no-arg/Integ/DefaultTest/DeployAssert",
300
+ "children": {
301
+ "BootstrapVersion": {
302
+ "id": "BootstrapVersion",
303
+ "path": "evtsns-no-arg/Integ/DefaultTest/DeployAssert/BootstrapVersion",
304
+ "constructInfo": {
305
+ "fqn": "aws-cdk-lib.CfnParameter",
306
+ "version": "2.118.0"
307
+ }
308
+ },
309
+ "CheckBootstrapVersion": {
310
+ "id": "CheckBootstrapVersion",
311
+ "path": "evtsns-no-arg/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
312
+ "constructInfo": {
313
+ "fqn": "aws-cdk-lib.CfnRule",
314
+ "version": "2.118.0"
315
+ }
316
+ }
317
+ },
318
+ "constructInfo": {
319
+ "fqn": "aws-cdk-lib.Stack",
320
+ "version": "2.118.0"
321
+ }
322
+ }
323
+ },
324
+ "constructInfo": {
325
+ "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
326
+ "version": "2.118.0-alpha.0"
327
+ }
328
+ }
329
+ },
330
+ "constructInfo": {
331
+ "fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
332
+ "version": "2.118.0-alpha.0"
333
+ }
334
+ },
335
+ "BootstrapVersion": {
336
+ "id": "BootstrapVersion",
337
+ "path": "evtsns-no-arg/BootstrapVersion",
338
+ "constructInfo": {
339
+ "fqn": "aws-cdk-lib.CfnParameter",
340
+ "version": "2.118.0"
341
+ }
342
+ },
343
+ "CheckBootstrapVersion": {
344
+ "id": "CheckBootstrapVersion",
345
+ "path": "evtsns-no-arg/CheckBootstrapVersion",
346
+ "constructInfo": {
347
+ "fqn": "aws-cdk-lib.CfnRule",
348
+ "version": "2.118.0"
349
+ }
350
+ }
351
+ },
352
+ "constructInfo": {
353
+ "fqn": "aws-cdk-lib.Stack",
354
+ "version": "2.118.0"
355
+ }
356
+ },
357
+ "Tree": {
358
+ "id": "Tree",
359
+ "path": "Tree",
360
+ "constructInfo": {
361
+ "fqn": "constructs.Construct",
362
+ "version": "10.0.0"
363
+ }
364
+ }
365
+ },
366
+ "constructInfo": {
367
+ "fqn": "aws-cdk-lib.App",
368
+ "version": "2.118.0"
369
+ }
370
+ }
371
+ }
@@ -21,6 +21,7 @@ const lib_1 = require("../lib");
21
21
  const events = require("aws-cdk-lib/aws-events");
22
22
  const aws_cdk_lib_2 = require("aws-cdk-lib");
23
23
  const core_1 = require("@aws-solutions-constructs/core");
24
+ const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha");
24
25
  const app = new aws_cdk_lib_2.App();
25
26
  const stackTwo = new aws_cdk_lib_2.Stack(app, core_1.generateIntegStackName(__filename) + 'ThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLessShort');
26
27
  const propsTwo = {
@@ -30,5 +31,7 @@ const propsTwo = {
30
31
  };
31
32
  new lib_1.EventbridgeToSns(stackTwo, 'test-construct', propsTwo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Gb3VyQ2hhcmFjdGVyc0xvbmdBbmRUaGlzU2hvdWxkSnVzdEFib3V0RG9JdE5vSXRNdXN0QmVBQml0TGVzc1Nob3J0Jyk7XG5cbmNvbnN0IHByb3BzVHdvOiBFdmVudGJyaWRnZVRvU25zUHJvcHMgPSB7XG4gIGV2ZW50UnVsZVByb3BzOiB7XG4gICAgc2NoZWR1bGU6IGV2ZW50cy5TY2hlZHVsZS5yYXRlKER1cmF0aW9uLm1pbnV0ZXMoMSkpXG4gIH1cbn07XG5cbm5ldyBFdmVudGJyaWRnZVRvU25zKHN0YWNrVHdvLCAndGVzdC1jb25zdHJ1Y3QnLCBwcm9wc1R3byk7XG5uZXcgRXZlbnRicmlkZ2VUb1NucyhzdGFja1R3bywgJ3NlY29uZC1jb25zdHJ1Y3QnLCBwcm9wc1R3byk7XG5cbm5ldyBJbnRlZ1Rlc3Qoc3RhY2tUd28sICdJbnRlZycsIHsgdGVzdENhc2VzOiBbXG4gIHN0YWNrVHdvXG5dIH0pO1xuIl19
@@ -0,0 +1 @@
1
+ {"version":"36.0.0"}
@@ -0,0 +1,19 @@
1
+ {
2
+ "version": "36.0.0",
3
+ "files": {
4
+ "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": {
5
+ "source": {
6
+ "path": "evtsnssecondlongstacknameThisIsTheLongestNameForAStackItMustAboutDoItNoItMustBeABitLessShortIntegDefaultTestDeployAssert9A452C2E.template.json",
7
+ "packaging": "file"
8
+ },
9
+ "destinations": {
10
+ "current_account-current_region": {
11
+ "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
12
+ "objectKey": "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json",
13
+ "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
14
+ }
15
+ }
16
+ }
17
+ },
18
+ "dockerImages": {}
19
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "Parameters": {
3
+ "BootstrapVersion": {
4
+ "Type": "AWS::SSM::Parameter::Value<String>",
5
+ "Default": "/cdk-bootstrap/hnb659fds/version",
6
+ "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
7
+ }
8
+ },
9
+ "Rules": {
10
+ "CheckBootstrapVersion": {
11
+ "Assertions": [
12
+ {
13
+ "Assert": {
14
+ "Fn::Not": [
15
+ {
16
+ "Fn::Contains": [
17
+ [
18
+ "1",
19
+ "2",
20
+ "3",
21
+ "4",
22
+ "5"
23
+ ],
24
+ {
25
+ "Ref": "BootstrapVersion"
26
+ }
27
+ ]
28
+ }
29
+ ]
30
+ },
31
+ "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
32
+ }
33
+ ]
34
+ }
35
+ }
36
+ }