@aws-solutions-constructs/core 2.95.0 → 2.96.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.
@@ -1,365 +0,0 @@
1
- {
2
- "Resources": {
3
- "lambdatestServiceRoleF3BDB8FC": {
4
- "Type": "AWS::IAM::Role",
5
- "Properties": {
6
- "AssumeRolePolicyDocument": {
7
- "Statement": [
8
- {
9
- "Action": "sts:AssumeRole",
10
- "Effect": "Allow",
11
- "Principal": {
12
- "Service": "lambda.amazonaws.com"
13
- }
14
- }
15
- ],
16
- "Version": "2012-10-17"
17
- },
18
- "ManagedPolicyArns": [
19
- {
20
- "Fn::Join": [
21
- "",
22
- [
23
- "arn:",
24
- {
25
- "Ref": "AWS::Partition"
26
- },
27
- ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
28
- ]
29
- ]
30
- }
31
- ]
32
- }
33
- },
34
- "lambdatest8B679D7F": {
35
- "Type": "AWS::Lambda::Function",
36
- "Properties": {
37
- "Code": {
38
- "ZipFile": "exports.handler = async (event) => console.log(event)"
39
- },
40
- "Handler": "index.handler",
41
- "Role": {
42
- "Fn::GetAtt": [
43
- "lambdatestServiceRoleF3BDB8FC",
44
- "Arn"
45
- ]
46
- },
47
- "Runtime": "nodejs20.x"
48
- },
49
- "DependsOn": [
50
- "lambdatestServiceRoleF3BDB8FC"
51
- ],
52
- "Metadata": {
53
- "cfn_nag": {
54
- "rules_to_suppress": [
55
- {
56
- "id": "W58",
57
- "reason": "This Lambda Function is created for integration testing purposes only and is not part of an actual construct"
58
- },
59
- {
60
- "id": "W89",
61
- "reason": "This Lambda Function is created for integration testing purposes only and is not part of an actual construct"
62
- },
63
- {
64
- "id": "W92",
65
- "reason": "This Lambda Function is created for integration testing purposes only and is not part of an actual construct"
66
- }
67
- ]
68
- }
69
- }
70
- },
71
- "lambdatestLogGroupA97D94B2": {
72
- "Type": "AWS::Logs::LogGroup",
73
- "Properties": {
74
- "LogGroupName": {
75
- "Fn::Join": [
76
- "",
77
- [
78
- "/aws/lambda/",
79
- {
80
- "Ref": "lambdatest8B679D7F"
81
- }
82
- ]
83
- ]
84
- },
85
- "RetentionInDays": 731
86
- },
87
- "UpdateReplacePolicy": "Retain",
88
- "DeletionPolicy": "Retain"
89
- },
90
- "StateMachineLogGroup15B91BCB": {
91
- "Type": "AWS::Logs::LogGroup",
92
- "Properties": {
93
- "LogGroupName": {
94
- "Fn::Join": [
95
- "",
96
- [
97
- "/aws/vendedlogs/states/constructs/DefaultDefaultStateMachineLog-",
98
- {
99
- "Fn::Select": [
100
- 2,
101
- {
102
- "Fn::Split": [
103
- "/",
104
- {
105
- "Ref": "AWS::StackId"
106
- }
107
- ]
108
- }
109
- ]
110
- }
111
- ]
112
- ]
113
- }
114
- },
115
- "UpdateReplacePolicy": "Retain",
116
- "DeletionPolicy": "Retain",
117
- "Metadata": {
118
- "cfn_nag": {
119
- "rules_to_suppress": [
120
- {
121
- "id": "W86",
122
- "reason": "Retention period for CloudWatchLogs LogGroups are set to 'Never Expire' to preserve customer data indefinitely"
123
- },
124
- {
125
- "id": "W84",
126
- "reason": "By default CloudWatchLogs LogGroups data is encrypted using the CloudWatch server-side encryption keys (AWS Managed Keys)"
127
- }
128
- ]
129
- }
130
- }
131
- },
132
- "StateMachineRoleB840431D": {
133
- "Type": "AWS::IAM::Role",
134
- "Properties": {
135
- "AssumeRolePolicyDocument": {
136
- "Statement": [
137
- {
138
- "Action": "sts:AssumeRole",
139
- "Effect": "Allow",
140
- "Principal": {
141
- "Service": "states.amazonaws.com"
142
- }
143
- }
144
- ],
145
- "Version": "2012-10-17"
146
- }
147
- }
148
- },
149
- "StateMachineRoleDefaultPolicyDF1E6607": {
150
- "Type": "AWS::IAM::Policy",
151
- "Properties": {
152
- "PolicyDocument": {
153
- "Statement": [
154
- {
155
- "Action": "lambda:InvokeFunction",
156
- "Effect": "Allow",
157
- "Resource": [
158
- {
159
- "Fn::GetAtt": [
160
- "lambdatest8B679D7F",
161
- "Arn"
162
- ]
163
- },
164
- {
165
- "Fn::Join": [
166
- "",
167
- [
168
- {
169
- "Fn::GetAtt": [
170
- "lambdatest8B679D7F",
171
- "Arn"
172
- ]
173
- },
174
- ":*"
175
- ]
176
- ]
177
- }
178
- ]
179
- },
180
- {
181
- "Action": [
182
- "logs:CreateLogDelivery",
183
- "logs:GetLogDelivery",
184
- "logs:UpdateLogDelivery",
185
- "logs:DeleteLogDelivery",
186
- "logs:ListLogDeliveries",
187
- "logs:PutResourcePolicy",
188
- "logs:DescribeResourcePolicies",
189
- "logs:DescribeLogGroups"
190
- ],
191
- "Effect": "Allow",
192
- "Resource": "*"
193
- }
194
- ],
195
- "Version": "2012-10-17"
196
- },
197
- "PolicyName": "StateMachineRoleDefaultPolicyDF1E6607",
198
- "Roles": [
199
- {
200
- "Ref": "StateMachineRoleB840431D"
201
- }
202
- ]
203
- },
204
- "Metadata": {
205
- "cfn_nag": {
206
- "rules_to_suppress": [
207
- {
208
- "id": "W12",
209
- "reason": "These are CDK defaults. The 'LogDelivery' actions do not support resource-level authorizations. Any logging is done by State Machine code"
210
- }
211
- ]
212
- }
213
- }
214
- },
215
- "StateMachine2E01A3A5": {
216
- "Type": "AWS::StepFunctions::StateMachine",
217
- "Properties": {
218
- "DefinitionString": {
219
- "Fn::Join": [
220
- "",
221
- [
222
- "{\"StartAt\":\"tasktest\",\"States\":{\"tasktest\":{\"End\":true,\"Retry\":[{\"ErrorEquals\":[\"Lambda.ClientExecutionTimeoutException\",\"Lambda.ServiceException\",\"Lambda.AWSLambdaException\",\"Lambda.SdkClientException\"],\"IntervalSeconds\":2,\"MaxAttempts\":6,\"BackoffRate\":2}],\"Type\":\"Task\",\"Resource\":\"arn:",
223
- {
224
- "Ref": "AWS::Partition"
225
- },
226
- ":states:::lambda:invoke\",\"Parameters\":{\"FunctionName\":\"",
227
- {
228
- "Fn::GetAtt": [
229
- "lambdatest8B679D7F",
230
- "Arn"
231
- ]
232
- },
233
- "\",\"Payload.$\":\"$\"}}}}"
234
- ]
235
- ]
236
- },
237
- "LoggingConfiguration": {
238
- "Destinations": [
239
- {
240
- "CloudWatchLogsLogGroup": {
241
- "LogGroupArn": {
242
- "Fn::GetAtt": [
243
- "StateMachineLogGroup15B91BCB",
244
- "Arn"
245
- ]
246
- }
247
- }
248
- }
249
- ],
250
- "Level": "ERROR"
251
- },
252
- "RoleArn": {
253
- "Fn::GetAtt": [
254
- "StateMachineRoleB840431D",
255
- "Arn"
256
- ]
257
- },
258
- "StateMachineName": "myStateMachine"
259
- },
260
- "DependsOn": [
261
- "StateMachineRoleDefaultPolicyDF1E6607",
262
- "StateMachineRoleB840431D"
263
- ],
264
- "UpdateReplacePolicy": "Delete",
265
- "DeletionPolicy": "Delete"
266
- },
267
- "ExecutionFailedAlarm0469091C": {
268
- "Type": "AWS::CloudWatch::Alarm",
269
- "Properties": {
270
- "AlarmDescription": "Alarm for the number of executions that failed exceeded the threshold of 1. ",
271
- "ComparisonOperator": "GreaterThanOrEqualToThreshold",
272
- "Dimensions": [
273
- {
274
- "Name": "StateMachineArn",
275
- "Value": {
276
- "Ref": "StateMachine2E01A3A5"
277
- }
278
- }
279
- ],
280
- "EvaluationPeriods": 1,
281
- "MetricName": "ExecutionsFailed",
282
- "Namespace": "AWS/States",
283
- "Period": 300,
284
- "Statistic": "Sum",
285
- "Threshold": 1
286
- }
287
- },
288
- "ExecutionThrottledAlarm70E4EA04": {
289
- "Type": "AWS::CloudWatch::Alarm",
290
- "Properties": {
291
- "AlarmDescription": "Alarm for the number of executions that throttled exceeded the threshold of 1. ",
292
- "ComparisonOperator": "GreaterThanOrEqualToThreshold",
293
- "Dimensions": [
294
- {
295
- "Name": "StateMachineArn",
296
- "Value": {
297
- "Ref": "StateMachine2E01A3A5"
298
- }
299
- }
300
- ],
301
- "EvaluationPeriods": 1,
302
- "MetricName": "ExecutionThrottled",
303
- "Namespace": "AWS/States",
304
- "Period": 300,
305
- "Statistic": "Sum",
306
- "Threshold": 1
307
- }
308
- },
309
- "ExecutionAbortedAlarmC353A36A": {
310
- "Type": "AWS::CloudWatch::Alarm",
311
- "Properties": {
312
- "AlarmDescription": "Alarm for the number of executions that aborted exceeded the threshold of 1. ",
313
- "ComparisonOperator": "GreaterThanOrEqualToThreshold",
314
- "Dimensions": [
315
- {
316
- "Name": "StateMachineArn",
317
- "Value": {
318
- "Ref": "StateMachine2E01A3A5"
319
- }
320
- }
321
- ],
322
- "EvaluationPeriods": 1,
323
- "MetricName": "ExecutionsAborted",
324
- "Namespace": "AWS/States",
325
- "Period": 300,
326
- "Statistic": "Maximum",
327
- "Threshold": 1
328
- }
329
- }
330
- },
331
- "Parameters": {
332
- "BootstrapVersion": {
333
- "Type": "AWS::SSM::Parameter::Value<String>",
334
- "Default": "/cdk-bootstrap/hnb659fds/version",
335
- "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
336
- }
337
- },
338
- "Rules": {
339
- "CheckBootstrapVersion": {
340
- "Assertions": [
341
- {
342
- "Assert": {
343
- "Fn::Not": [
344
- {
345
- "Fn::Contains": [
346
- [
347
- "1",
348
- "2",
349
- "3",
350
- "4",
351
- "5"
352
- ],
353
- {
354
- "Ref": "BootstrapVersion"
355
- }
356
- ]
357
- }
358
- ]
359
- },
360
- "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
361
- }
362
- ]
363
- }
364
- }
365
- }