@aws-solutions-constructs/aws-eventbridge-sqs 1.120.0 → 1.121.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.
@@ -0,0 +1,294 @@
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
+ "KeyPolicy": {
86
+ "Statement": [
87
+ {
88
+ "Action": [
89
+ "kms:Create*",
90
+ "kms:Describe*",
91
+ "kms:Enable*",
92
+ "kms:List*",
93
+ "kms:Put*",
94
+ "kms:Update*",
95
+ "kms:Revoke*",
96
+ "kms:Disable*",
97
+ "kms:Get*",
98
+ "kms:Delete*",
99
+ "kms:ScheduleKeyDeletion",
100
+ "kms:CancelKeyDeletion",
101
+ "kms:GenerateDataKey",
102
+ "kms:TagResource",
103
+ "kms:UntagResource"
104
+ ],
105
+ "Effect": "Allow",
106
+ "Principal": {
107
+ "AWS": {
108
+ "Fn::Join": [
109
+ "",
110
+ [
111
+ "arn:",
112
+ {
113
+ "Ref": "AWS::Partition"
114
+ },
115
+ ":iam::",
116
+ {
117
+ "Ref": "AWS::AccountId"
118
+ },
119
+ ":root"
120
+ ]
121
+ ]
122
+ }
123
+ },
124
+ "Resource": "*"
125
+ },
126
+ {
127
+ "Action": [
128
+ "kms:Decrypt",
129
+ "kms:Encrypt",
130
+ "kms:ReEncrypt*",
131
+ "kms:GenerateDataKey*"
132
+ ],
133
+ "Effect": "Allow",
134
+ "Principal": {
135
+ "Service": "events.amazonaws.com"
136
+ },
137
+ "Resource": "*"
138
+ }
139
+ ],
140
+ "Version": "2012-10-17"
141
+ },
142
+ "EnableKeyRotation": true
143
+ },
144
+ "UpdateReplacePolicy": "Retain",
145
+ "DeletionPolicy": "Retain"
146
+ },
147
+ "constructqueue481DC1EC": {
148
+ "Type": "AWS::SQS::Queue",
149
+ "Properties": {
150
+ "KmsMasterKeyId": {
151
+ "Fn::GetAtt": [
152
+ "constructEncryptionKey9426451E",
153
+ "Arn"
154
+ ]
155
+ },
156
+ "RedrivePolicy": {
157
+ "deadLetterTargetArn": {
158
+ "Fn::GetAtt": [
159
+ "constructdeadLetterQueueD87A77D4",
160
+ "Arn"
161
+ ]
162
+ },
163
+ "maxReceiveCount": 15
164
+ }
165
+ },
166
+ "UpdateReplacePolicy": "Delete",
167
+ "DeletionPolicy": "Delete"
168
+ },
169
+ "constructqueuePolicy5B0256B1": {
170
+ "Type": "AWS::SQS::QueuePolicy",
171
+ "Properties": {
172
+ "PolicyDocument": {
173
+ "Statement": [
174
+ {
175
+ "Action": [
176
+ "sqs:DeleteMessage",
177
+ "sqs:ReceiveMessage",
178
+ "sqs:SendMessage",
179
+ "sqs:GetQueueAttributes",
180
+ "sqs:RemovePermission",
181
+ "sqs:AddPermission",
182
+ "sqs:SetQueueAttributes"
183
+ ],
184
+ "Effect": "Allow",
185
+ "Principal": {
186
+ "AWS": {
187
+ "Fn::Join": [
188
+ "",
189
+ [
190
+ "arn:",
191
+ {
192
+ "Ref": "AWS::Partition"
193
+ },
194
+ ":iam::",
195
+ {
196
+ "Ref": "AWS::AccountId"
197
+ },
198
+ ":root"
199
+ ]
200
+ ]
201
+ }
202
+ },
203
+ "Resource": {
204
+ "Fn::GetAtt": [
205
+ "constructqueue481DC1EC",
206
+ "Arn"
207
+ ]
208
+ },
209
+ "Sid": "QueueOwnerOnlyAccess"
210
+ },
211
+ {
212
+ "Action": "SQS:*",
213
+ "Condition": {
214
+ "Bool": {
215
+ "aws:SecureTransport": "false"
216
+ }
217
+ },
218
+ "Effect": "Deny",
219
+ "Principal": {
220
+ "AWS": "*"
221
+ },
222
+ "Resource": {
223
+ "Fn::GetAtt": [
224
+ "constructqueue481DC1EC",
225
+ "Arn"
226
+ ]
227
+ },
228
+ "Sid": "HttpsOnly"
229
+ },
230
+ {
231
+ "Action": [
232
+ "sqs:SendMessage",
233
+ "sqs:GetQueueAttributes",
234
+ "sqs:GetQueueUrl"
235
+ ],
236
+ "Effect": "Allow",
237
+ "Principal": {
238
+ "Service": "events.amazonaws.com"
239
+ },
240
+ "Resource": {
241
+ "Fn::GetAtt": [
242
+ "constructqueue481DC1EC",
243
+ "Arn"
244
+ ]
245
+ }
246
+ }
247
+ ],
248
+ "Version": "2012-10-17"
249
+ },
250
+ "Queues": [
251
+ {
252
+ "Ref": "constructqueue481DC1EC"
253
+ }
254
+ ]
255
+ }
256
+ },
257
+ "constructCustomEventBusA674C94A": {
258
+ "Type": "AWS::Events::EventBus",
259
+ "Properties": {
260
+ "Name": "eventbridgeneweventbusconstructCustomEventBusB03DAAB5"
261
+ }
262
+ },
263
+ "constructEventsRule43880ADB": {
264
+ "Type": "AWS::Events::Rule",
265
+ "Properties": {
266
+ "EventBusName": {
267
+ "Ref": "constructCustomEventBusA674C94A"
268
+ },
269
+ "EventPattern": {
270
+ "source": [
271
+ "solutionsconstructs"
272
+ ]
273
+ },
274
+ "State": "ENABLED",
275
+ "Targets": [
276
+ {
277
+ "Arn": {
278
+ "Fn::GetAtt": [
279
+ "constructqueue481DC1EC",
280
+ "Arn"
281
+ ]
282
+ },
283
+ "Id": {
284
+ "Fn::GetAtt": [
285
+ "constructqueue481DC1EC",
286
+ "QueueName"
287
+ ]
288
+ }
289
+ }
290
+ ]
291
+ }
292
+ }
293
+ }
294
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
6
+ * with the License. A copy of the License is located at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
11
+ * OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
12
+ * and limitations under the License.
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const lib_1 = require("../lib");
16
+ const core_1 = require("@aws-cdk/core");
17
+ const core_2 = require("@aws-solutions-constructs/core");
18
+ const app = new core_1.App();
19
+ const stack = new core_1.Stack(app, core_2.generateIntegStackName(__filename));
20
+ const props = {
21
+ eventRuleProps: {
22
+ eventPattern: {
23
+ source: ['solutionsconstructs']
24
+ }
25
+ },
26
+ eventBusProps: {}
27
+ };
28
+ new lib_1.EventbridgeToSqs(stack, 'construct', props);
29
+ app.synth();
30
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZXZlbnRicmlkZ2UtbmV3LWV2ZW50YnVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZXZlbnRicmlkZ2UtbmV3LWV2ZW50YnVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7Ozs7Ozs7R0FXRzs7QUFFSCxnQ0FBaUU7QUFDakUsd0NBQTJDO0FBQzNDLHlEQUF3RTtBQUV4RSxNQUFNLEdBQUcsR0FBRyxJQUFJLFVBQUcsRUFBRSxDQUFDO0FBQ3RCLE1BQU0sS0FBSyxHQUFHLElBQUksWUFBSyxDQUFDLEdBQUcsRUFBRSw2QkFBc0IsQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFDO0FBRWpFLE1BQU0sS0FBSyxHQUEwQjtJQUNuQyxjQUFjLEVBQUU7UUFDZCxZQUFZLEVBQUU7WUFDWixNQUFNLEVBQUUsQ0FBQyxxQkFBcUIsQ0FBQztTQUNoQztLQUNGO0lBQ0QsYUFBYSxFQUFFLEVBQUU7Q0FDbEIsQ0FBQztBQUVGLElBQUksc0JBQWdCLENBQUMsS0FBSyxFQUFFLFdBQVcsRUFBRSxLQUFLLENBQUMsQ0FBQztBQUNoRCxHQUFHLENBQUMsS0FBSyxFQUFFLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqICBDb3B5cmlnaHQgMjAyMSBBbWF6b24uY29tLCBJbmMuIG9yIGl0cyBhZmZpb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CBnZW5lcmF0ZUludGVnU3RhY2tOYW1lKF9fZmlsZW5hbWUpKTtcblxuY29uc3QgcHJvcHM6IEV2ZW50YnJpZGdlVG9TcXNQcm9wcyA9IHtcbiAgZXZlbnRSdWxlUHJvcHM6IHtcbiAgICBldmVudFBhdHRlcm46IHtcbiAgICAgIHNvdXJjZTogWydzb2x1dGlvbnNjb25zdHJ1Y3RzJ11cbiAgICB9XG4gIH0sXG4gIGV2ZW50QnVzUHJvcHM6IHt9XG59O1xuXG5uZXcgRXZlbnRicmlkZ2VUb1NxcyhzdGFjaywgJ2NvbnN0cnVjdCcsIHByb3BzKTtcbmFwcC5zeW50aCgpOyJdfQ==
@@ -1,285 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`snapshot test EventbridgeToSqs default params 1`] = `
4
- Object {
5
- "Resources": Object {
6
- "testeventbridgesqsEncryptionKey811BDC23": Object {
7
- "DeletionPolicy": "Retain",
8
- "Properties": Object {
9
- "EnableKeyRotation": true,
10
- "KeyPolicy": Object {
11
- "Statement": Array [
12
- Object {
13
- "Action": Array [
14
- "kms:Create*",
15
- "kms:Describe*",
16
- "kms:Enable*",
17
- "kms:List*",
18
- "kms:Put*",
19
- "kms:Update*",
20
- "kms:Revoke*",
21
- "kms:Disable*",
22
- "kms:Get*",
23
- "kms:Delete*",
24
- "kms:ScheduleKeyDeletion",
25
- "kms:CancelKeyDeletion",
26
- "kms:GenerateDataKey",
27
- "kms:TagResource",
28
- "kms:UntagResource",
29
- ],
30
- "Effect": "Allow",
31
- "Principal": Object {
32
- "AWS": Object {
33
- "Fn::Join": Array [
34
- "",
35
- Array [
36
- "arn:",
37
- Object {
38
- "Ref": "AWS::Partition",
39
- },
40
- ":iam::",
41
- Object {
42
- "Ref": "AWS::AccountId",
43
- },
44
- ":root",
45
- ],
46
- ],
47
- },
48
- },
49
- "Resource": "*",
50
- },
51
- Object {
52
- "Action": Array [
53
- "kms:Decrypt",
54
- "kms:Encrypt",
55
- "kms:ReEncrypt*",
56
- "kms:GenerateDataKey*",
57
- ],
58
- "Effect": "Allow",
59
- "Principal": Object {
60
- "Service": "events.amazonaws.com",
61
- },
62
- "Resource": "*",
63
- },
64
- ],
65
- "Version": "2012-10-17",
66
- },
67
- },
68
- "Type": "AWS::KMS::Key",
69
- "UpdateReplacePolicy": "Retain",
70
- },
71
- "testeventbridgesqsEventsRule66E44184": Object {
72
- "Properties": Object {
73
- "ScheduleExpression": "rate(5 minutes)",
74
- "State": "ENABLED",
75
- "Targets": Array [
76
- Object {
77
- "Arn": Object {
78
- "Fn::GetAtt": Array [
79
- "testeventbridgesqsqueue21FF6EBA",
80
- "Arn",
81
- ],
82
- },
83
- "Id": Object {
84
- "Fn::GetAtt": Array [
85
- "testeventbridgesqsqueue21FF6EBA",
86
- "QueueName",
87
- ],
88
- },
89
- },
90
- ],
91
- },
92
- "Type": "AWS::Events::Rule",
93
- },
94
- "testeventbridgesqsdeadLetterQueueF5B377E2": Object {
95
- "DeletionPolicy": "Delete",
96
- "Properties": Object {
97
- "KmsMasterKeyId": "alias/aws/sqs",
98
- },
99
- "Type": "AWS::SQS::Queue",
100
- "UpdateReplacePolicy": "Delete",
101
- },
102
- "testeventbridgesqsdeadLetterQueuePolicy74A33822": Object {
103
- "Properties": Object {
104
- "PolicyDocument": Object {
105
- "Statement": Array [
106
- Object {
107
- "Action": Array [
108
- "sqs:DeleteMessage",
109
- "sqs:ReceiveMessage",
110
- "sqs:SendMessage",
111
- "sqs:GetQueueAttributes",
112
- "sqs:RemovePermission",
113
- "sqs:AddPermission",
114
- "sqs:SetQueueAttributes",
115
- ],
116
- "Effect": "Allow",
117
- "Principal": Object {
118
- "AWS": Object {
119
- "Fn::Join": Array [
120
- "",
121
- Array [
122
- "arn:",
123
- Object {
124
- "Ref": "AWS::Partition",
125
- },
126
- ":iam::",
127
- Object {
128
- "Ref": "AWS::AccountId",
129
- },
130
- ":root",
131
- ],
132
- ],
133
- },
134
- },
135
- "Resource": Object {
136
- "Fn::GetAtt": Array [
137
- "testeventbridgesqsdeadLetterQueueF5B377E2",
138
- "Arn",
139
- ],
140
- },
141
- "Sid": "QueueOwnerOnlyAccess",
142
- },
143
- Object {
144
- "Action": "SQS:*",
145
- "Condition": Object {
146
- "Bool": Object {
147
- "aws:SecureTransport": "false",
148
- },
149
- },
150
- "Effect": "Deny",
151
- "Principal": Object {
152
- "AWS": "*",
153
- },
154
- "Resource": Object {
155
- "Fn::GetAtt": Array [
156
- "testeventbridgesqsdeadLetterQueueF5B377E2",
157
- "Arn",
158
- ],
159
- },
160
- "Sid": "HttpsOnly",
161
- },
162
- ],
163
- "Version": "2012-10-17",
164
- },
165
- "Queues": Array [
166
- Object {
167
- "Ref": "testeventbridgesqsdeadLetterQueueF5B377E2",
168
- },
169
- ],
170
- },
171
- "Type": "AWS::SQS::QueuePolicy",
172
- },
173
- "testeventbridgesqsqueue21FF6EBA": Object {
174
- "DeletionPolicy": "Delete",
175
- "Properties": Object {
176
- "KmsMasterKeyId": Object {
177
- "Fn::GetAtt": Array [
178
- "testeventbridgesqsEncryptionKey811BDC23",
179
- "Arn",
180
- ],
181
- },
182
- "RedrivePolicy": Object {
183
- "deadLetterTargetArn": Object {
184
- "Fn::GetAtt": Array [
185
- "testeventbridgesqsdeadLetterQueueF5B377E2",
186
- "Arn",
187
- ],
188
- },
189
- "maxReceiveCount": 15,
190
- },
191
- },
192
- "Type": "AWS::SQS::Queue",
193
- "UpdateReplacePolicy": "Delete",
194
- },
195
- "testeventbridgesqsqueuePolicy2E375B6A": Object {
196
- "Properties": Object {
197
- "PolicyDocument": Object {
198
- "Statement": Array [
199
- Object {
200
- "Action": Array [
201
- "sqs:DeleteMessage",
202
- "sqs:ReceiveMessage",
203
- "sqs:SendMessage",
204
- "sqs:GetQueueAttributes",
205
- "sqs:RemovePermission",
206
- "sqs:AddPermission",
207
- "sqs:SetQueueAttributes",
208
- ],
209
- "Effect": "Allow",
210
- "Principal": Object {
211
- "AWS": Object {
212
- "Fn::Join": Array [
213
- "",
214
- Array [
215
- "arn:",
216
- Object {
217
- "Ref": "AWS::Partition",
218
- },
219
- ":iam::",
220
- Object {
221
- "Ref": "AWS::AccountId",
222
- },
223
- ":root",
224
- ],
225
- ],
226
- },
227
- },
228
- "Resource": Object {
229
- "Fn::GetAtt": Array [
230
- "testeventbridgesqsqueue21FF6EBA",
231
- "Arn",
232
- ],
233
- },
234
- "Sid": "QueueOwnerOnlyAccess",
235
- },
236
- Object {
237
- "Action": "SQS:*",
238
- "Condition": Object {
239
- "Bool": Object {
240
- "aws:SecureTransport": "false",
241
- },
242
- },
243
- "Effect": "Deny",
244
- "Principal": Object {
245
- "AWS": "*",
246
- },
247
- "Resource": Object {
248
- "Fn::GetAtt": Array [
249
- "testeventbridgesqsqueue21FF6EBA",
250
- "Arn",
251
- ],
252
- },
253
- "Sid": "HttpsOnly",
254
- },
255
- Object {
256
- "Action": Array [
257
- "sqs:SendMessage",
258
- "sqs:GetQueueAttributes",
259
- "sqs:GetQueueUrl",
260
- ],
261
- "Effect": "Allow",
262
- "Principal": Object {
263
- "Service": "events.amazonaws.com",
264
- },
265
- "Resource": Object {
266
- "Fn::GetAtt": Array [
267
- "testeventbridgesqsqueue21FF6EBA",
268
- "Arn",
269
- ],
270
- },
271
- },
272
- ],
273
- "Version": "2012-10-17",
274
- },
275
- "Queues": Array [
276
- Object {
277
- "Ref": "testeventbridgesqsqueue21FF6EBA",
278
- },
279
- ],
280
- },
281
- "Type": "AWS::SQS::QueuePolicy",
282
- },
283
- },
284
- }
285
- `;