@aws-solutions-constructs/aws-eventbridge-sqs 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 (45) 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.evtsqs-exist-bus.js +5 -2
  7. package/test/integ.evtsqs-exist-bus.js.snapshot/cdk.out +1 -0
  8. package/test/integ.evtsqs-exist-bus.js.snapshot/evtsqs-exist-bus.assets.json +19 -0
  9. package/test/integ.evtsqs-exist-bus.js.snapshot/evtsqs-exist-bus.template.json +168 -0
  10. package/test/integ.evtsqs-exist-bus.js.snapshot/evtsqsexistbusIntegDefaultTestDeployAssertD6166996.assets.json +19 -0
  11. package/test/integ.evtsqs-exist-bus.js.snapshot/evtsqsexistbusIntegDefaultTestDeployAssertD6166996.template.json +36 -0
  12. package/test/integ.evtsqs-exist-bus.js.snapshot/integ.json +12 -0
  13. package/test/integ.evtsqs-exist-bus.js.snapshot/manifest.json +137 -0
  14. package/test/integ.evtsqs-exist-bus.js.snapshot/tree.json +327 -0
  15. package/test/integ.evtsqs-exist-queue.js +5 -2
  16. package/test/integ.evtsqs-exist-queue.js.snapshot/cdk.out +1 -0
  17. package/test/integ.evtsqs-exist-queue.js.snapshot/evtsqs-exist-queue.assets.json +19 -0
  18. package/test/integ.evtsqs-exist-queue.js.snapshot/evtsqs-exist-queue.template.json +155 -0
  19. package/test/integ.evtsqs-exist-queue.js.snapshot/evtsqsexistqueueIntegDefaultTestDeployAssert4E2D04AB.assets.json +19 -0
  20. package/test/integ.evtsqs-exist-queue.js.snapshot/evtsqsexistqueueIntegDefaultTestDeployAssert4E2D04AB.template.json +36 -0
  21. package/test/integ.evtsqs-exist-queue.js.snapshot/integ.json +12 -0
  22. package/test/integ.evtsqs-exist-queue.js.snapshot/manifest.json +131 -0
  23. package/test/integ.evtsqs-exist-queue.js.snapshot/tree.json +296 -0
  24. package/test/integ.evtsqs-new-bus.js +5 -2
  25. package/test/integ.evtsqs-new-bus.js.snapshot/cdk.out +1 -0
  26. package/test/integ.evtsqs-new-bus.js.snapshot/evtsqs-new-bus.assets.json +19 -0
  27. package/test/integ.evtsqs-new-bus.js.snapshot/evtsqs-new-bus.template.json +312 -0
  28. package/test/integ.evtsqs-new-bus.js.snapshot/evtsqsnewbusIntegDefaultTestDeployAssertA45AD5F2.assets.json +19 -0
  29. package/test/integ.evtsqs-new-bus.js.snapshot/evtsqsnewbusIntegDefaultTestDeployAssertA45AD5F2.template.json +36 -0
  30. package/test/integ.evtsqs-new-bus.js.snapshot/integ.json +12 -0
  31. package/test/integ.evtsqs-new-bus.js.snapshot/manifest.json +155 -0
  32. package/test/integ.evtsqs-new-bus.js.snapshot/tree.json +505 -0
  33. package/test/integ.evtsqs-no-arg.js +5 -2
  34. package/test/integ.evtsqs-no-arg.js.snapshot/cdk.out +1 -0
  35. package/test/integ.evtsqs-no-arg.js.snapshot/evtsqs-no-arg.assets.json +19 -0
  36. package/test/integ.evtsqs-no-arg.js.snapshot/evtsqs-no-arg.template.json +299 -0
  37. package/test/integ.evtsqs-no-arg.js.snapshot/evtsqsnoargIntegDefaultTestDeployAssertB5DFB718.assets.json +19 -0
  38. package/test/integ.evtsqs-no-arg.js.snapshot/evtsqsnoargIntegDefaultTestDeployAssertB5DFB718.template.json +36 -0
  39. package/test/integ.evtsqs-no-arg.js.snapshot/integ.json +12 -0
  40. package/test/integ.evtsqs-no-arg.js.snapshot/manifest.json +149 -0
  41. package/test/integ.evtsqs-no-arg.js.snapshot/tree.json +474 -0
  42. package/test/integ.evtsqs-exist-bus.expected.json +0 -168
  43. package/test/integ.evtsqs-exist-queue.expected.json +0 -155
  44. package/test/integ.evtsqs-new-bus.expected.json +0 -312
  45. package/test/integ.evtsqs-no-arg.expected.json +0 -299
@@ -1,155 +0,0 @@
1
- {
2
- "Resources": {
3
- "MyKey6AB29FA6": {
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
- "MyQueueE6CA6235": {
53
- "Type": "AWS::SQS::Queue",
54
- "Properties": {
55
- "KmsMasterKeyId": {
56
- "Fn::GetAtt": [
57
- "MyKey6AB29FA6",
58
- "Arn"
59
- ]
60
- }
61
- },
62
- "UpdateReplacePolicy": "Delete",
63
- "DeletionPolicy": "Delete"
64
- },
65
- "MyQueuePolicy6BBEDDAC": {
66
- "Type": "AWS::SQS::QueuePolicy",
67
- "Properties": {
68
- "PolicyDocument": {
69
- "Statement": [
70
- {
71
- "Action": [
72
- "sqs:SendMessage",
73
- "sqs:GetQueueAttributes",
74
- "sqs:GetQueueUrl"
75
- ],
76
- "Effect": "Allow",
77
- "Principal": {
78
- "Service": "events.amazonaws.com"
79
- },
80
- "Resource": {
81
- "Fn::GetAtt": [
82
- "MyQueueE6CA6235",
83
- "Arn"
84
- ]
85
- }
86
- }
87
- ],
88
- "Version": "2012-10-17"
89
- },
90
- "Queues": [
91
- {
92
- "Ref": "MyQueueE6CA6235"
93
- }
94
- ]
95
- }
96
- },
97
- "constructEventsRule43880ADB": {
98
- "Type": "AWS::Events::Rule",
99
- "Properties": {
100
- "ScheduleExpression": "rate(5 minutes)",
101
- "State": "ENABLED",
102
- "Targets": [
103
- {
104
- "Arn": {
105
- "Fn::GetAtt": [
106
- "MyQueueE6CA6235",
107
- "Arn"
108
- ]
109
- },
110
- "Id": {
111
- "Fn::GetAtt": [
112
- "MyQueueE6CA6235",
113
- "QueueName"
114
- ]
115
- }
116
- }
117
- ]
118
- }
119
- }
120
- },
121
- "Parameters": {
122
- "BootstrapVersion": {
123
- "Type": "AWS::SSM::Parameter::Value<String>",
124
- "Default": "/cdk-bootstrap/hnb659fds/version",
125
- "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
126
- }
127
- },
128
- "Rules": {
129
- "CheckBootstrapVersion": {
130
- "Assertions": [
131
- {
132
- "Assert": {
133
- "Fn::Not": [
134
- {
135
- "Fn::Contains": [
136
- [
137
- "1",
138
- "2",
139
- "3",
140
- "4",
141
- "5"
142
- ],
143
- {
144
- "Ref": "BootstrapVersion"
145
- }
146
- ]
147
- }
148
- ]
149
- },
150
- "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
151
- }
152
- ]
153
- }
154
- }
155
- }
@@ -1,312 +0,0 @@
1
- {
2
- "Resources": {
3
- "constructdeadLetterQueueD87A77D4": {
4
- "Type": "AWS::SQS::Queue",
5
- "Properties": {
6
- "KmsMasterKeyId": "alias/aws/sqs"
7
- },
8
- "UpdateReplacePolicy": "Delete",
9
- "DeletionPolicy": "Delete"
10
- },
11
- "constructdeadLetterQueuePolicyBA602BC6": {
12
- "Type": "AWS::SQS::QueuePolicy",
13
- "Properties": {
14
- "PolicyDocument": {
15
- "Statement": [
16
- {
17
- "Action": [
18
- "sqs:DeleteMessage",
19
- "sqs:ReceiveMessage",
20
- "sqs:SendMessage",
21
- "sqs:GetQueueAttributes",
22
- "sqs:RemovePermission",
23
- "sqs:AddPermission",
24
- "sqs:SetQueueAttributes"
25
- ],
26
- "Effect": "Allow",
27
- "Principal": {
28
- "AWS": {
29
- "Fn::Join": [
30
- "",
31
- [
32
- "arn:",
33
- {
34
- "Ref": "AWS::Partition"
35
- },
36
- ":iam::",
37
- {
38
- "Ref": "AWS::AccountId"
39
- },
40
- ":root"
41
- ]
42
- ]
43
- }
44
- },
45
- "Resource": {
46
- "Fn::GetAtt": [
47
- "constructdeadLetterQueueD87A77D4",
48
- "Arn"
49
- ]
50
- },
51
- "Sid": "QueueOwnerOnlyAccess"
52
- },
53
- {
54
- "Action": "SQS:*",
55
- "Condition": {
56
- "Bool": {
57
- "aws:SecureTransport": "false"
58
- }
59
- },
60
- "Effect": "Deny",
61
- "Principal": {
62
- "AWS": "*"
63
- },
64
- "Resource": {
65
- "Fn::GetAtt": [
66
- "constructdeadLetterQueueD87A77D4",
67
- "Arn"
68
- ]
69
- },
70
- "Sid": "HttpsOnly"
71
- }
72
- ],
73
- "Version": "2012-10-17"
74
- },
75
- "Queues": [
76
- {
77
- "Ref": "constructdeadLetterQueueD87A77D4"
78
- }
79
- ]
80
- }
81
- },
82
- "constructEncryptionKey9426451E": {
83
- "Type": "AWS::KMS::Key",
84
- "Properties": {
85
- "EnableKeyRotation": true,
86
- "KeyPolicy": {
87
- "Statement": [
88
- {
89
- "Action": "kms:*",
90
- "Effect": "Allow",
91
- "Principal": {
92
- "AWS": {
93
- "Fn::Join": [
94
- "",
95
- [
96
- "arn:",
97
- {
98
- "Ref": "AWS::Partition"
99
- },
100
- ":iam::",
101
- {
102
- "Ref": "AWS::AccountId"
103
- },
104
- ":root"
105
- ]
106
- ]
107
- }
108
- },
109
- "Resource": "*"
110
- },
111
- {
112
- "Action": [
113
- "kms:Decrypt",
114
- "kms:Encrypt",
115
- "kms:ReEncrypt*",
116
- "kms:GenerateDataKey*"
117
- ],
118
- "Effect": "Allow",
119
- "Principal": {
120
- "Service": "events.amazonaws.com"
121
- },
122
- "Resource": "*"
123
- }
124
- ],
125
- "Version": "2012-10-17"
126
- }
127
- },
128
- "UpdateReplacePolicy": "Retain",
129
- "DeletionPolicy": "Retain"
130
- },
131
- "constructqueue481DC1EC": {
132
- "Type": "AWS::SQS::Queue",
133
- "Properties": {
134
- "KmsMasterKeyId": {
135
- "Fn::GetAtt": [
136
- "constructEncryptionKey9426451E",
137
- "Arn"
138
- ]
139
- },
140
- "RedrivePolicy": {
141
- "deadLetterTargetArn": {
142
- "Fn::GetAtt": [
143
- "constructdeadLetterQueueD87A77D4",
144
- "Arn"
145
- ]
146
- },
147
- "maxReceiveCount": 15
148
- }
149
- },
150
- "UpdateReplacePolicy": "Delete",
151
- "DeletionPolicy": "Delete"
152
- },
153
- "constructqueuePolicy5B0256B1": {
154
- "Type": "AWS::SQS::QueuePolicy",
155
- "Properties": {
156
- "PolicyDocument": {
157
- "Statement": [
158
- {
159
- "Action": [
160
- "sqs:DeleteMessage",
161
- "sqs:ReceiveMessage",
162
- "sqs:SendMessage",
163
- "sqs:GetQueueAttributes",
164
- "sqs:RemovePermission",
165
- "sqs:AddPermission",
166
- "sqs:SetQueueAttributes"
167
- ],
168
- "Effect": "Allow",
169
- "Principal": {
170
- "AWS": {
171
- "Fn::Join": [
172
- "",
173
- [
174
- "arn:",
175
- {
176
- "Ref": "AWS::Partition"
177
- },
178
- ":iam::",
179
- {
180
- "Ref": "AWS::AccountId"
181
- },
182
- ":root"
183
- ]
184
- ]
185
- }
186
- },
187
- "Resource": {
188
- "Fn::GetAtt": [
189
- "constructqueue481DC1EC",
190
- "Arn"
191
- ]
192
- },
193
- "Sid": "QueueOwnerOnlyAccess"
194
- },
195
- {
196
- "Action": "SQS:*",
197
- "Condition": {
198
- "Bool": {
199
- "aws:SecureTransport": "false"
200
- }
201
- },
202
- "Effect": "Deny",
203
- "Principal": {
204
- "AWS": "*"
205
- },
206
- "Resource": {
207
- "Fn::GetAtt": [
208
- "constructqueue481DC1EC",
209
- "Arn"
210
- ]
211
- },
212
- "Sid": "HttpsOnly"
213
- },
214
- {
215
- "Action": [
216
- "sqs:SendMessage",
217
- "sqs:GetQueueAttributes",
218
- "sqs:GetQueueUrl"
219
- ],
220
- "Effect": "Allow",
221
- "Principal": {
222
- "Service": "events.amazonaws.com"
223
- },
224
- "Resource": {
225
- "Fn::GetAtt": [
226
- "constructqueue481DC1EC",
227
- "Arn"
228
- ]
229
- }
230
- }
231
- ],
232
- "Version": "2012-10-17"
233
- },
234
- "Queues": [
235
- {
236
- "Ref": "constructqueue481DC1EC"
237
- }
238
- ]
239
- }
240
- },
241
- "constructCustomEventBusA674C94A": {
242
- "Type": "AWS::Events::EventBus",
243
- "Properties": {
244
- "Name": "evtsqsnewbusconstructCustomEventBus3025C22E"
245
- }
246
- },
247
- "constructEventsRule43880ADB": {
248
- "Type": "AWS::Events::Rule",
249
- "Properties": {
250
- "EventBusName": {
251
- "Ref": "constructCustomEventBusA674C94A"
252
- },
253
- "EventPattern": {
254
- "source": [
255
- "solutionsconstructs"
256
- ]
257
- },
258
- "State": "ENABLED",
259
- "Targets": [
260
- {
261
- "Arn": {
262
- "Fn::GetAtt": [
263
- "constructqueue481DC1EC",
264
- "Arn"
265
- ]
266
- },
267
- "Id": {
268
- "Fn::GetAtt": [
269
- "constructqueue481DC1EC",
270
- "QueueName"
271
- ]
272
- }
273
- }
274
- ]
275
- }
276
- }
277
- },
278
- "Parameters": {
279
- "BootstrapVersion": {
280
- "Type": "AWS::SSM::Parameter::Value<String>",
281
- "Default": "/cdk-bootstrap/hnb659fds/version",
282
- "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
283
- }
284
- },
285
- "Rules": {
286
- "CheckBootstrapVersion": {
287
- "Assertions": [
288
- {
289
- "Assert": {
290
- "Fn::Not": [
291
- {
292
- "Fn::Contains": [
293
- [
294
- "1",
295
- "2",
296
- "3",
297
- "4",
298
- "5"
299
- ],
300
- {
301
- "Ref": "BootstrapVersion"
302
- }
303
- ]
304
- }
305
- ]
306
- },
307
- "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
308
- }
309
- ]
310
- }
311
- }
312
- }