@aws-solutions-constructs/aws-kinesisstreams-lambda 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 (27) 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.kinlam-existing.js +5 -2
  7. package/test/integ.kinlam-existing.js.snapshot/asset.26cf7db64552331215006953bf73e5adfb49b5bf0eb2298bfe04547b76c08b88/index.js +21 -0
  8. package/test/integ.kinlam-existing.js.snapshot/cdk.out +1 -0
  9. package/test/integ.kinlam-existing.js.snapshot/integ.json +12 -0
  10. package/test/integ.kinlam-existing.js.snapshot/kinlam-existing.assets.json +32 -0
  11. package/test/integ.kinlam-existing.js.snapshot/kinlam-existing.template.json +325 -0
  12. package/test/integ.kinlam-existing.js.snapshot/kinlamexistingIntegDefaultTestDeployAssert64C292A9.assets.json +19 -0
  13. package/test/integ.kinlam-existing.js.snapshot/kinlamexistingIntegDefaultTestDeployAssert64C292A9.template.json +36 -0
  14. package/test/integ.kinlam-existing.js.snapshot/manifest.json +161 -0
  15. package/test/integ.kinlam-existing.js.snapshot/tree.json +573 -0
  16. package/test/integ.kinlam-no-arguments.js +5 -2
  17. package/test/integ.kinlam-no-arguments.js.snapshot/asset.26cf7db64552331215006953bf73e5adfb49b5bf0eb2298bfe04547b76c08b88/index.js +21 -0
  18. package/test/integ.kinlam-no-arguments.js.snapshot/cdk.out +1 -0
  19. package/test/integ.kinlam-no-arguments.js.snapshot/integ.json +12 -0
  20. package/test/integ.kinlam-no-arguments.js.snapshot/kinlam-no-arguments.assets.json +32 -0
  21. package/test/integ.kinlam-no-arguments.js.snapshot/kinlam-no-arguments.template.json +355 -0
  22. package/test/integ.kinlam-no-arguments.js.snapshot/kinlamnoargumentsIntegDefaultTestDeployAssertE5672C42.assets.json +19 -0
  23. package/test/integ.kinlam-no-arguments.js.snapshot/kinlamnoargumentsIntegDefaultTestDeployAssertE5672C42.template.json +36 -0
  24. package/test/integ.kinlam-no-arguments.js.snapshot/manifest.json +161 -0
  25. package/test/integ.kinlam-no-arguments.js.snapshot/tree.json +589 -0
  26. package/test/integ.kinlam-existing.expected.json +0 -335
  27. package/test/integ.kinlam-no-arguments.expected.json +0 -365
@@ -1,335 +0,0 @@
1
- {
2
- "Description": "Integration Test for aws-kinesisstreams-lambda",
3
- "Resources": {
4
- "testroleB50A37BE": {
5
- "Type": "AWS::IAM::Role",
6
- "Properties": {
7
- "AssumeRolePolicyDocument": {
8
- "Statement": [
9
- {
10
- "Action": "sts:AssumeRole",
11
- "Effect": "Allow",
12
- "Principal": {
13
- "Service": "lambda.amazonaws.com"
14
- }
15
- }
16
- ],
17
- "Version": "2012-10-17"
18
- },
19
- "Policies": [
20
- {
21
- "PolicyDocument": {
22
- "Statement": [
23
- {
24
- "Action": [
25
- "logs:CreateLogGroup",
26
- "logs:CreateLogStream",
27
- "logs:PutLogEvents"
28
- ],
29
- "Effect": "Allow",
30
- "Resource": {
31
- "Fn::Join": [
32
- "",
33
- [
34
- "arn:",
35
- {
36
- "Ref": "AWS::Partition"
37
- },
38
- ":logs:",
39
- {
40
- "Ref": "AWS::Region"
41
- },
42
- ":",
43
- {
44
- "Ref": "AWS::AccountId"
45
- },
46
- ":log-group:/aws/lambda/*"
47
- ]
48
- ]
49
- }
50
- }
51
- ],
52
- "Version": "2012-10-17"
53
- },
54
- "PolicyName": "LambdaFunctionServiceRolePolicy"
55
- }
56
- ]
57
- }
58
- },
59
- "testroleDefaultPolicy884631E2": {
60
- "Type": "AWS::IAM::Policy",
61
- "Properties": {
62
- "PolicyDocument": {
63
- "Statement": [
64
- {
65
- "Action": [
66
- "kinesis:DescribeStreamSummary",
67
- "kinesis:GetRecords",
68
- "kinesis:GetShardIterator",
69
- "kinesis:ListShards",
70
- "kinesis:SubscribeToShard",
71
- "kinesis:DescribeStream",
72
- "kinesis:ListStreams",
73
- "kinesis:DescribeStreamConsumer"
74
- ],
75
- "Effect": "Allow",
76
- "Resource": {
77
- "Fn::GetAtt": [
78
- "teststream04374A09",
79
- "Arn"
80
- ]
81
- }
82
- },
83
- {
84
- "Action": [
85
- "sqs:SendMessage",
86
- "sqs:GetQueueAttributes",
87
- "sqs:GetQueueUrl"
88
- ],
89
- "Effect": "Allow",
90
- "Resource": {
91
- "Fn::GetAtt": [
92
- "testkslambdaSqsDlqQueueDE67EC6C",
93
- "Arn"
94
- ]
95
- }
96
- },
97
- {
98
- "Action": "kinesis:DescribeStream",
99
- "Effect": "Allow",
100
- "Resource": {
101
- "Fn::GetAtt": [
102
- "teststream04374A09",
103
- "Arn"
104
- ]
105
- }
106
- }
107
- ],
108
- "Version": "2012-10-17"
109
- },
110
- "PolicyName": "testroleDefaultPolicy884631E2",
111
- "Roles": [
112
- {
113
- "Ref": "testroleB50A37BE"
114
- }
115
- ]
116
- }
117
- },
118
- "testfn76BCC25C": {
119
- "Type": "AWS::Lambda::Function",
120
- "Properties": {
121
- "Code": {
122
- "S3Bucket": {
123
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
124
- },
125
- "S3Key": "26cf7db64552331215006953bf73e5adfb49b5bf0eb2298bfe04547b76c08b88.zip"
126
- },
127
- "Handler": "index.handler",
128
- "Role": {
129
- "Fn::GetAtt": [
130
- "testroleB50A37BE",
131
- "Arn"
132
- ]
133
- },
134
- "Runtime": "nodejs16.x"
135
- },
136
- "DependsOn": [
137
- "testroleDefaultPolicy884631E2",
138
- "testroleB50A37BE"
139
- ],
140
- "Metadata": {
141
- "cfn_nag": {
142
- "rules_to_suppress": [
143
- {
144
- "id": "W89",
145
- "reason": "This is not a rule for the general case, just for specific use cases/industries"
146
- },
147
- {
148
- "id": "W92",
149
- "reason": "Impossible for us to define the correct concurrency for clients"
150
- }
151
- ]
152
- }
153
- }
154
- },
155
- "testfnKinesisEventSourcekinlamexistingteststream6B91D22533D472A8": {
156
- "Type": "AWS::Lambda::EventSourceMapping",
157
- "Properties": {
158
- "BatchSize": 1,
159
- "BisectBatchOnFunctionError": true,
160
- "DestinationConfig": {
161
- "OnFailure": {
162
- "Destination": {
163
- "Fn::GetAtt": [
164
- "testkslambdaSqsDlqQueueDE67EC6C",
165
- "Arn"
166
- ]
167
- }
168
- }
169
- },
170
- "EventSourceArn": {
171
- "Fn::GetAtt": [
172
- "teststream04374A09",
173
- "Arn"
174
- ]
175
- },
176
- "FunctionName": {
177
- "Ref": "testfn76BCC25C"
178
- },
179
- "MaximumRecordAgeInSeconds": 86400,
180
- "MaximumRetryAttempts": 500,
181
- "StartingPosition": "LATEST"
182
- }
183
- },
184
- "teststream04374A09": {
185
- "Type": "AWS::Kinesis::Stream",
186
- "Properties": {
187
- "RetentionPeriodHours": 24,
188
- "ShardCount": 2,
189
- "StreamEncryption": {
190
- "EncryptionType": "KMS",
191
- "KeyId": "alias/aws/kinesis"
192
- }
193
- }
194
- },
195
- "testkslambdaSqsDlqQueueDE67EC6C": {
196
- "Type": "AWS::SQS::Queue",
197
- "Properties": {
198
- "KmsMasterKeyId": "alias/aws/sqs"
199
- },
200
- "UpdateReplacePolicy": "Delete",
201
- "DeletionPolicy": "Delete"
202
- },
203
- "testkslambdaSqsDlqQueuePolicy48897D8E": {
204
- "Type": "AWS::SQS::QueuePolicy",
205
- "Properties": {
206
- "PolicyDocument": {
207
- "Statement": [
208
- {
209
- "Action": [
210
- "sqs:DeleteMessage",
211
- "sqs:ReceiveMessage",
212
- "sqs:SendMessage",
213
- "sqs:GetQueueAttributes",
214
- "sqs:RemovePermission",
215
- "sqs:AddPermission",
216
- "sqs:SetQueueAttributes"
217
- ],
218
- "Effect": "Allow",
219
- "Principal": {
220
- "AWS": {
221
- "Fn::Join": [
222
- "",
223
- [
224
- "arn:",
225
- {
226
- "Ref": "AWS::Partition"
227
- },
228
- ":iam::",
229
- {
230
- "Ref": "AWS::AccountId"
231
- },
232
- ":root"
233
- ]
234
- ]
235
- }
236
- },
237
- "Resource": {
238
- "Fn::GetAtt": [
239
- "testkslambdaSqsDlqQueueDE67EC6C",
240
- "Arn"
241
- ]
242
- },
243
- "Sid": "QueueOwnerOnlyAccess"
244
- },
245
- {
246
- "Action": "SQS:*",
247
- "Condition": {
248
- "Bool": {
249
- "aws:SecureTransport": "false"
250
- }
251
- },
252
- "Effect": "Deny",
253
- "Principal": {
254
- "AWS": "*"
255
- },
256
- "Resource": {
257
- "Fn::GetAtt": [
258
- "testkslambdaSqsDlqQueueDE67EC6C",
259
- "Arn"
260
- ]
261
- },
262
- "Sid": "HttpsOnly"
263
- }
264
- ],
265
- "Version": "2012-10-17"
266
- },
267
- "Queues": [
268
- {
269
- "Ref": "testkslambdaSqsDlqQueueDE67EC6C"
270
- }
271
- ]
272
- }
273
- },
274
- "testkslambdaKinesisStreamGetRecordsIteratorAgeAlarmD5DC1A73": {
275
- "Type": "AWS::CloudWatch::Alarm",
276
- "Properties": {
277
- "AlarmDescription": "Consumer Record Processing Falling Behind, there is risk for data loss due to record expiration.",
278
- "ComparisonOperator": "GreaterThanOrEqualToThreshold",
279
- "EvaluationPeriods": 1,
280
- "MetricName": "GetRecords.IteratorAgeMilliseconds",
281
- "Namespace": "AWS/Kinesis",
282
- "Period": 300,
283
- "Statistic": "Maximum",
284
- "Threshold": 43200000
285
- }
286
- },
287
- "testkslambdaKinesisStreamReadProvisionedThroughputExceededAlarmFAEF1236": {
288
- "Type": "AWS::CloudWatch::Alarm",
289
- "Properties": {
290
- "AlarmDescription": "Consumer Application is Reading at a Slower Rate Than Expected.",
291
- "ComparisonOperator": "GreaterThanThreshold",
292
- "EvaluationPeriods": 1,
293
- "MetricName": "ReadProvisionedThroughputExceeded",
294
- "Namespace": "AWS/Kinesis",
295
- "Period": 300,
296
- "Statistic": "Average",
297
- "Threshold": 0
298
- }
299
- }
300
- },
301
- "Parameters": {
302
- "BootstrapVersion": {
303
- "Type": "AWS::SSM::Parameter::Value<String>",
304
- "Default": "/cdk-bootstrap/hnb659fds/version",
305
- "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
306
- }
307
- },
308
- "Rules": {
309
- "CheckBootstrapVersion": {
310
- "Assertions": [
311
- {
312
- "Assert": {
313
- "Fn::Not": [
314
- {
315
- "Fn::Contains": [
316
- [
317
- "1",
318
- "2",
319
- "3",
320
- "4",
321
- "5"
322
- ],
323
- {
324
- "Ref": "BootstrapVersion"
325
- }
326
- ]
327
- }
328
- ]
329
- },
330
- "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
331
- }
332
- ]
333
- }
334
- }
335
- }
@@ -1,365 +0,0 @@
1
- {
2
- "Description": "Integration Test for aws-kinesisstreams-lambda",
3
- "Resources": {
4
- "testkinesisstreamslambdaKinesisStream374D6D56": {
5
- "Type": "AWS::Kinesis::Stream",
6
- "Properties": {
7
- "RetentionPeriodHours": 24,
8
- "ShardCount": 1,
9
- "StreamEncryption": {
10
- "EncryptionType": "KMS",
11
- "KeyId": "alias/aws/kinesis"
12
- }
13
- }
14
- },
15
- "testkinesisstreamslambdaLambdaFunctionServiceRoleAD98836E": {
16
- "Type": "AWS::IAM::Role",
17
- "Properties": {
18
- "AssumeRolePolicyDocument": {
19
- "Statement": [
20
- {
21
- "Action": "sts:AssumeRole",
22
- "Effect": "Allow",
23
- "Principal": {
24
- "Service": "lambda.amazonaws.com"
25
- }
26
- }
27
- ],
28
- "Version": "2012-10-17"
29
- },
30
- "Policies": [
31
- {
32
- "PolicyDocument": {
33
- "Statement": [
34
- {
35
- "Action": [
36
- "logs:CreateLogGroup",
37
- "logs:CreateLogStream",
38
- "logs:PutLogEvents"
39
- ],
40
- "Effect": "Allow",
41
- "Resource": {
42
- "Fn::Join": [
43
- "",
44
- [
45
- "arn:",
46
- {
47
- "Ref": "AWS::Partition"
48
- },
49
- ":logs:",
50
- {
51
- "Ref": "AWS::Region"
52
- },
53
- ":",
54
- {
55
- "Ref": "AWS::AccountId"
56
- },
57
- ":log-group:/aws/lambda/*"
58
- ]
59
- ]
60
- }
61
- }
62
- ],
63
- "Version": "2012-10-17"
64
- },
65
- "PolicyName": "LambdaFunctionServiceRolePolicy"
66
- }
67
- ]
68
- }
69
- },
70
- "testkinesisstreamslambdaLambdaFunctionServiceRoleDefaultPolicy4929C676": {
71
- "Type": "AWS::IAM::Policy",
72
- "Properties": {
73
- "PolicyDocument": {
74
- "Statement": [
75
- {
76
- "Action": [
77
- "xray:PutTraceSegments",
78
- "xray:PutTelemetryRecords"
79
- ],
80
- "Effect": "Allow",
81
- "Resource": "*"
82
- },
83
- {
84
- "Action": [
85
- "kinesis:DescribeStreamSummary",
86
- "kinesis:GetRecords",
87
- "kinesis:GetShardIterator",
88
- "kinesis:ListShards",
89
- "kinesis:SubscribeToShard",
90
- "kinesis:DescribeStream",
91
- "kinesis:ListStreams",
92
- "kinesis:DescribeStreamConsumer"
93
- ],
94
- "Effect": "Allow",
95
- "Resource": {
96
- "Fn::GetAtt": [
97
- "testkinesisstreamslambdaKinesisStream374D6D56",
98
- "Arn"
99
- ]
100
- }
101
- },
102
- {
103
- "Action": [
104
- "sqs:SendMessage",
105
- "sqs:GetQueueAttributes",
106
- "sqs:GetQueueUrl"
107
- ],
108
- "Effect": "Allow",
109
- "Resource": {
110
- "Fn::GetAtt": [
111
- "testkinesisstreamslambdaSqsDlqQueue5971C9BA",
112
- "Arn"
113
- ]
114
- }
115
- },
116
- {
117
- "Action": "kinesis:DescribeStream",
118
- "Effect": "Allow",
119
- "Resource": {
120
- "Fn::GetAtt": [
121
- "testkinesisstreamslambdaKinesisStream374D6D56",
122
- "Arn"
123
- ]
124
- }
125
- }
126
- ],
127
- "Version": "2012-10-17"
128
- },
129
- "PolicyName": "testkinesisstreamslambdaLambdaFunctionServiceRoleDefaultPolicy4929C676",
130
- "Roles": [
131
- {
132
- "Ref": "testkinesisstreamslambdaLambdaFunctionServiceRoleAD98836E"
133
- }
134
- ]
135
- },
136
- "Metadata": {
137
- "cfn_nag": {
138
- "rules_to_suppress": [
139
- {
140
- "id": "W12",
141
- "reason": "Lambda needs the following minimum required permissions to send trace data to X-Ray and access ENIs in a VPC."
142
- }
143
- ]
144
- }
145
- }
146
- },
147
- "testkinesisstreamslambdaLambdaFunctionB9A91CA7": {
148
- "Type": "AWS::Lambda::Function",
149
- "Properties": {
150
- "Code": {
151
- "S3Bucket": {
152
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
153
- },
154
- "S3Key": "26cf7db64552331215006953bf73e5adfb49b5bf0eb2298bfe04547b76c08b88.zip"
155
- },
156
- "Environment": {
157
- "Variables": {
158
- "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
159
- }
160
- },
161
- "Handler": "index.handler",
162
- "Role": {
163
- "Fn::GetAtt": [
164
- "testkinesisstreamslambdaLambdaFunctionServiceRoleAD98836E",
165
- "Arn"
166
- ]
167
- },
168
- "Runtime": "nodejs16.x",
169
- "TracingConfig": {
170
- "Mode": "Active"
171
- }
172
- },
173
- "DependsOn": [
174
- "testkinesisstreamslambdaLambdaFunctionServiceRoleDefaultPolicy4929C676",
175
- "testkinesisstreamslambdaLambdaFunctionServiceRoleAD98836E"
176
- ],
177
- "Metadata": {
178
- "cfn_nag": {
179
- "rules_to_suppress": [
180
- {
181
- "id": "W58",
182
- "reason": "Lambda functions has the required permission to write CloudWatch Logs. It uses custom policy instead of arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole with tighter permissions."
183
- },
184
- {
185
- "id": "W89",
186
- "reason": "This is not a rule for the general case, just for specific use cases/industries"
187
- },
188
- {
189
- "id": "W92",
190
- "reason": "Impossible for us to define the correct concurrency for clients"
191
- }
192
- ]
193
- }
194
- }
195
- },
196
- "testkinesisstreamslambdaLambdaFunctionKinesisEventSourcekinlamnoargumentstestkinesisstreamslambdaKinesisStreamB15C5952638E81E3": {
197
- "Type": "AWS::Lambda::EventSourceMapping",
198
- "Properties": {
199
- "BatchSize": 100,
200
- "BisectBatchOnFunctionError": true,
201
- "DestinationConfig": {
202
- "OnFailure": {
203
- "Destination": {
204
- "Fn::GetAtt": [
205
- "testkinesisstreamslambdaSqsDlqQueue5971C9BA",
206
- "Arn"
207
- ]
208
- }
209
- }
210
- },
211
- "EventSourceArn": {
212
- "Fn::GetAtt": [
213
- "testkinesisstreamslambdaKinesisStream374D6D56",
214
- "Arn"
215
- ]
216
- },
217
- "FunctionName": {
218
- "Ref": "testkinesisstreamslambdaLambdaFunctionB9A91CA7"
219
- },
220
- "MaximumRecordAgeInSeconds": 86400,
221
- "MaximumRetryAttempts": 5,
222
- "StartingPosition": "TRIM_HORIZON"
223
- }
224
- },
225
- "testkinesisstreamslambdaSqsDlqQueue5971C9BA": {
226
- "Type": "AWS::SQS::Queue",
227
- "Properties": {
228
- "KmsMasterKeyId": "alias/aws/sqs"
229
- },
230
- "UpdateReplacePolicy": "Delete",
231
- "DeletionPolicy": "Delete"
232
- },
233
- "testkinesisstreamslambdaSqsDlqQueuePolicy670A2EC7": {
234
- "Type": "AWS::SQS::QueuePolicy",
235
- "Properties": {
236
- "PolicyDocument": {
237
- "Statement": [
238
- {
239
- "Action": [
240
- "sqs:DeleteMessage",
241
- "sqs:ReceiveMessage",
242
- "sqs:SendMessage",
243
- "sqs:GetQueueAttributes",
244
- "sqs:RemovePermission",
245
- "sqs:AddPermission",
246
- "sqs:SetQueueAttributes"
247
- ],
248
- "Effect": "Allow",
249
- "Principal": {
250
- "AWS": {
251
- "Fn::Join": [
252
- "",
253
- [
254
- "arn:",
255
- {
256
- "Ref": "AWS::Partition"
257
- },
258
- ":iam::",
259
- {
260
- "Ref": "AWS::AccountId"
261
- },
262
- ":root"
263
- ]
264
- ]
265
- }
266
- },
267
- "Resource": {
268
- "Fn::GetAtt": [
269
- "testkinesisstreamslambdaSqsDlqQueue5971C9BA",
270
- "Arn"
271
- ]
272
- },
273
- "Sid": "QueueOwnerOnlyAccess"
274
- },
275
- {
276
- "Action": "SQS:*",
277
- "Condition": {
278
- "Bool": {
279
- "aws:SecureTransport": "false"
280
- }
281
- },
282
- "Effect": "Deny",
283
- "Principal": {
284
- "AWS": "*"
285
- },
286
- "Resource": {
287
- "Fn::GetAtt": [
288
- "testkinesisstreamslambdaSqsDlqQueue5971C9BA",
289
- "Arn"
290
- ]
291
- },
292
- "Sid": "HttpsOnly"
293
- }
294
- ],
295
- "Version": "2012-10-17"
296
- },
297
- "Queues": [
298
- {
299
- "Ref": "testkinesisstreamslambdaSqsDlqQueue5971C9BA"
300
- }
301
- ]
302
- }
303
- },
304
- "testkinesisstreamslambdaKinesisStreamGetRecordsIteratorAgeAlarmFB74C363": {
305
- "Type": "AWS::CloudWatch::Alarm",
306
- "Properties": {
307
- "AlarmDescription": "Consumer Record Processing Falling Behind, there is risk for data loss due to record expiration.",
308
- "ComparisonOperator": "GreaterThanOrEqualToThreshold",
309
- "EvaluationPeriods": 1,
310
- "MetricName": "GetRecords.IteratorAgeMilliseconds",
311
- "Namespace": "AWS/Kinesis",
312
- "Period": 300,
313
- "Statistic": "Maximum",
314
- "Threshold": 43200000
315
- }
316
- },
317
- "testkinesisstreamslambdaKinesisStreamReadProvisionedThroughputExceededAlarm5ABF4346": {
318
- "Type": "AWS::CloudWatch::Alarm",
319
- "Properties": {
320
- "AlarmDescription": "Consumer Application is Reading at a Slower Rate Than Expected.",
321
- "ComparisonOperator": "GreaterThanThreshold",
322
- "EvaluationPeriods": 1,
323
- "MetricName": "ReadProvisionedThroughputExceeded",
324
- "Namespace": "AWS/Kinesis",
325
- "Period": 300,
326
- "Statistic": "Average",
327
- "Threshold": 0
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
- }