@aws-solutions-constructs/aws-kinesisfirehose-s3 2.51.0 → 2.52.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.
Files changed (70) 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.fhss3-customLoggingBucket.js +6 -3
  7. package/test/integ.fhss3-customLoggingBucket.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +1 -0
  8. package/test/integ.fhss3-customLoggingBucket.js.snapshot/cdk.out +1 -0
  9. package/test/integ.fhss3-customLoggingBucket.js.snapshot/fhss3-customLoggingBucket.assets.json +32 -0
  10. package/test/integ.fhss3-customLoggingBucket.js.snapshot/fhss3-customLoggingBucket.template.json +586 -0
  11. package/test/integ.fhss3-customLoggingBucket.js.snapshot/fhss3customLoggingBucketIntegDefaultTestDeployAssertA125B70A.assets.json +19 -0
  12. package/test/integ.fhss3-customLoggingBucket.js.snapshot/fhss3customLoggingBucketIntegDefaultTestDeployAssertA125B70A.template.json +36 -0
  13. package/test/integ.fhss3-customLoggingBucket.js.snapshot/integ.json +12 -0
  14. package/test/integ.fhss3-customLoggingBucket.js.snapshot/manifest.json +179 -0
  15. package/test/integ.fhss3-customLoggingBucket.js.snapshot/tree.json +753 -0
  16. package/test/integ.fhss3-no-arguments.js +6 -3
  17. package/test/integ.fhss3-no-arguments.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +1 -0
  18. package/test/integ.fhss3-no-arguments.js.snapshot/cdk.out +1 -0
  19. package/test/integ.fhss3-no-arguments.js.snapshot/fhss3-no-arguments.assets.json +32 -0
  20. package/test/integ.fhss3-no-arguments.js.snapshot/fhss3-no-arguments.template.json +638 -0
  21. package/test/integ.fhss3-no-arguments.js.snapshot/fhss3noargumentsIntegDefaultTestDeployAssert4B27D283.assets.json +19 -0
  22. package/test/integ.fhss3-no-arguments.js.snapshot/fhss3noargumentsIntegDefaultTestDeployAssert4B27D283.template.json +36 -0
  23. package/test/integ.fhss3-no-arguments.js.snapshot/integ.json +12 -0
  24. package/test/integ.fhss3-no-arguments.js.snapshot/manifest.json +185 -0
  25. package/test/integ.fhss3-no-arguments.js.snapshot/tree.json +803 -0
  26. package/test/integ.fhss3-noLoggingBucket.js +5 -2
  27. package/test/integ.fhss3-noLoggingBucket.js.snapshot/cdk.out +1 -0
  28. package/test/integ.fhss3-noLoggingBucket.js.snapshot/fhss3-noLoggingBucket.assets.json +19 -0
  29. package/test/integ.fhss3-noLoggingBucket.js.snapshot/fhss3-noLoggingBucket.template.json +320 -0
  30. package/test/integ.fhss3-noLoggingBucket.js.snapshot/fhss3noLoggingBucketIntegDefaultTestDeployAssert461787D6.assets.json +19 -0
  31. package/test/integ.fhss3-noLoggingBucket.js.snapshot/fhss3noLoggingBucketIntegDefaultTestDeployAssert461787D6.template.json +36 -0
  32. package/test/integ.fhss3-noLoggingBucket.js.snapshot/integ.json +12 -0
  33. package/test/integ.fhss3-noLoggingBucket.js.snapshot/manifest.json +149 -0
  34. package/test/integ.fhss3-noLoggingBucket.js.snapshot/tree.json +496 -0
  35. package/test/integ.fhss3-pre-existing-bucket.js +6 -3
  36. package/test/integ.fhss3-pre-existing-bucket.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +1 -0
  37. package/test/integ.fhss3-pre-existing-bucket.js.snapshot/cdk.out +1 -0
  38. package/test/integ.fhss3-pre-existing-bucket.js.snapshot/fhss3-pre-existing-bucket.assets.json +32 -0
  39. package/test/integ.fhss3-pre-existing-bucket.js.snapshot/fhss3-pre-existing-bucket.template.json +633 -0
  40. package/test/integ.fhss3-pre-existing-bucket.js.snapshot/fhss3preexistingbucketIntegDefaultTestDeployAssert84EBBD2B.assets.json +19 -0
  41. package/test/integ.fhss3-pre-existing-bucket.js.snapshot/fhss3preexistingbucketIntegDefaultTestDeployAssert84EBBD2B.template.json +36 -0
  42. package/test/integ.fhss3-pre-existing-bucket.js.snapshot/integ.json +12 -0
  43. package/test/integ.fhss3-pre-existing-bucket.js.snapshot/manifest.json +185 -0
  44. package/test/integ.fhss3-pre-existing-bucket.js.snapshot/tree.json +806 -0
  45. package/test/integ.fhss3-pre-existing-logging-bucket.js +6 -3
  46. package/test/integ.fhss3-pre-existing-logging-bucket.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +1 -0
  47. package/test/integ.fhss3-pre-existing-logging-bucket.js.snapshot/cdk.out +1 -0
  48. package/test/integ.fhss3-pre-existing-logging-bucket.js.snapshot/fhss3-pre-existing-logging-bucket.assets.json +32 -0
  49. package/test/integ.fhss3-pre-existing-logging-bucket.js.snapshot/fhss3-pre-existing-logging-bucket.template.json +803 -0
  50. package/test/integ.fhss3-pre-existing-logging-bucket.js.snapshot/fhss3preexistingloggingbucketIntegDefaultTestDeployAssert92015BF9.assets.json +19 -0
  51. package/test/integ.fhss3-pre-existing-logging-bucket.js.snapshot/fhss3preexistingloggingbucketIntegDefaultTestDeployAssert92015BF9.template.json +36 -0
  52. package/test/integ.fhss3-pre-existing-logging-bucket.js.snapshot/integ.json +12 -0
  53. package/test/integ.fhss3-pre-existing-logging-bucket.js.snapshot/manifest.json +203 -0
  54. package/test/integ.fhss3-pre-existing-logging-bucket.js.snapshot/tree.json +1001 -0
  55. package/test/integ.fhss3-two-instances.js +6 -3
  56. package/test/integ.fhss3-two-instances.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +1 -0
  57. package/test/integ.fhss3-two-instances.js.snapshot/cdk.out +1 -0
  58. package/test/integ.fhss3-two-instances.js.snapshot/fhss3-two-instances.assets.json +32 -0
  59. package/test/integ.fhss3-two-instances.js.snapshot/fhss3-two-instances.template.json +1161 -0
  60. package/test/integ.fhss3-two-instances.js.snapshot/fhss3twoinstancesIntegDefaultTestDeployAssertFD2CF598.assets.json +19 -0
  61. package/test/integ.fhss3-two-instances.js.snapshot/fhss3twoinstancesIntegDefaultTestDeployAssertFD2CF598.template.json +36 -0
  62. package/test/integ.fhss3-two-instances.js.snapshot/integ.json +12 -0
  63. package/test/integ.fhss3-two-instances.js.snapshot/manifest.json +251 -0
  64. package/test/integ.fhss3-two-instances.js.snapshot/tree.json +1471 -0
  65. package/test/integ.fhss3-customLoggingBucket.expected.json +0 -586
  66. package/test/integ.fhss3-no-arguments.expected.json +0 -638
  67. package/test/integ.fhss3-noLoggingBucket.expected.json +0 -320
  68. package/test/integ.fhss3-pre-existing-bucket.expected.json +0 -633
  69. package/test/integ.fhss3-pre-existing-logging-bucket.expected.json +0 -803
  70. package/test/integ.fhss3-two-instances.expected.json +0 -1161
@@ -0,0 +1,638 @@
1
+ {
2
+ "Description": "Integration Test for aws-cdk-apl-kinesisfirehose-s3",
3
+ "Resources": {
4
+ "testfirehoses3S3LoggingBucket31BFDC22": {
5
+ "Type": "AWS::S3::Bucket",
6
+ "Properties": {
7
+ "BucketEncryption": {
8
+ "ServerSideEncryptionConfiguration": [
9
+ {
10
+ "ServerSideEncryptionByDefault": {
11
+ "SSEAlgorithm": "AES256"
12
+ }
13
+ }
14
+ ]
15
+ },
16
+ "PublicAccessBlockConfiguration": {
17
+ "BlockPublicAcls": true,
18
+ "BlockPublicPolicy": true,
19
+ "IgnorePublicAcls": true,
20
+ "RestrictPublicBuckets": true
21
+ },
22
+ "Tags": [
23
+ {
24
+ "Key": "aws-cdk:auto-delete-objects",
25
+ "Value": "true"
26
+ }
27
+ ],
28
+ "VersioningConfiguration": {
29
+ "Status": "Enabled"
30
+ }
31
+ },
32
+ "UpdateReplacePolicy": "Delete",
33
+ "DeletionPolicy": "Delete",
34
+ "Metadata": {
35
+ "cfn_nag": {
36
+ "rules_to_suppress": [
37
+ {
38
+ "id": "W35",
39
+ "reason": "This S3 bucket is used as the access logging bucket for another bucket"
40
+ }
41
+ ]
42
+ }
43
+ }
44
+ },
45
+ "testfirehoses3S3LoggingBucketPolicyA41D0380": {
46
+ "Type": "AWS::S3::BucketPolicy",
47
+ "Properties": {
48
+ "Bucket": {
49
+ "Ref": "testfirehoses3S3LoggingBucket31BFDC22"
50
+ },
51
+ "PolicyDocument": {
52
+ "Statement": [
53
+ {
54
+ "Action": "s3:*",
55
+ "Condition": {
56
+ "Bool": {
57
+ "aws:SecureTransport": "false"
58
+ }
59
+ },
60
+ "Effect": "Deny",
61
+ "Principal": {
62
+ "AWS": "*"
63
+ },
64
+ "Resource": [
65
+ {
66
+ "Fn::GetAtt": [
67
+ "testfirehoses3S3LoggingBucket31BFDC22",
68
+ "Arn"
69
+ ]
70
+ },
71
+ {
72
+ "Fn::Join": [
73
+ "",
74
+ [
75
+ {
76
+ "Fn::GetAtt": [
77
+ "testfirehoses3S3LoggingBucket31BFDC22",
78
+ "Arn"
79
+ ]
80
+ },
81
+ "/*"
82
+ ]
83
+ ]
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ "Action": [
89
+ "s3:DeleteObject*",
90
+ "s3:GetBucket*",
91
+ "s3:List*",
92
+ "s3:PutBucketPolicy"
93
+ ],
94
+ "Effect": "Allow",
95
+ "Principal": {
96
+ "AWS": {
97
+ "Fn::GetAtt": [
98
+ "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092",
99
+ "Arn"
100
+ ]
101
+ }
102
+ },
103
+ "Resource": [
104
+ {
105
+ "Fn::GetAtt": [
106
+ "testfirehoses3S3LoggingBucket31BFDC22",
107
+ "Arn"
108
+ ]
109
+ },
110
+ {
111
+ "Fn::Join": [
112
+ "",
113
+ [
114
+ {
115
+ "Fn::GetAtt": [
116
+ "testfirehoses3S3LoggingBucket31BFDC22",
117
+ "Arn"
118
+ ]
119
+ },
120
+ "/*"
121
+ ]
122
+ ]
123
+ }
124
+ ]
125
+ },
126
+ {
127
+ "Action": "s3:PutObject",
128
+ "Condition": {
129
+ "ArnLike": {
130
+ "aws:SourceArn": {
131
+ "Fn::GetAtt": [
132
+ "testfirehoses3S3Bucket93480488",
133
+ "Arn"
134
+ ]
135
+ }
136
+ },
137
+ "StringEquals": {
138
+ "aws:SourceAccount": {
139
+ "Ref": "AWS::AccountId"
140
+ }
141
+ }
142
+ },
143
+ "Effect": "Allow",
144
+ "Principal": {
145
+ "Service": "logging.s3.amazonaws.com"
146
+ },
147
+ "Resource": {
148
+ "Fn::Join": [
149
+ "",
150
+ [
151
+ {
152
+ "Fn::GetAtt": [
153
+ "testfirehoses3S3LoggingBucket31BFDC22",
154
+ "Arn"
155
+ ]
156
+ },
157
+ "/*"
158
+ ]
159
+ ]
160
+ }
161
+ }
162
+ ],
163
+ "Version": "2012-10-17"
164
+ }
165
+ }
166
+ },
167
+ "testfirehoses3S3LoggingBucketAutoDeleteObjectsCustomResource98E2B981": {
168
+ "Type": "Custom::S3AutoDeleteObjects",
169
+ "Properties": {
170
+ "ServiceToken": {
171
+ "Fn::GetAtt": [
172
+ "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F",
173
+ "Arn"
174
+ ]
175
+ },
176
+ "BucketName": {
177
+ "Ref": "testfirehoses3S3LoggingBucket31BFDC22"
178
+ }
179
+ },
180
+ "DependsOn": [
181
+ "testfirehoses3S3LoggingBucketPolicyA41D0380"
182
+ ],
183
+ "UpdateReplacePolicy": "Delete",
184
+ "DeletionPolicy": "Delete"
185
+ },
186
+ "testfirehoses3S3Bucket93480488": {
187
+ "Type": "AWS::S3::Bucket",
188
+ "Properties": {
189
+ "BucketEncryption": {
190
+ "ServerSideEncryptionConfiguration": [
191
+ {
192
+ "ServerSideEncryptionByDefault": {
193
+ "SSEAlgorithm": "AES256"
194
+ }
195
+ }
196
+ ]
197
+ },
198
+ "LifecycleConfiguration": {
199
+ "Rules": [
200
+ {
201
+ "NoncurrentVersionTransitions": [
202
+ {
203
+ "StorageClass": "GLACIER",
204
+ "TransitionInDays": 90
205
+ }
206
+ ],
207
+ "Status": "Enabled"
208
+ }
209
+ ]
210
+ },
211
+ "LoggingConfiguration": {
212
+ "DestinationBucketName": {
213
+ "Ref": "testfirehoses3S3LoggingBucket31BFDC22"
214
+ }
215
+ },
216
+ "PublicAccessBlockConfiguration": {
217
+ "BlockPublicAcls": true,
218
+ "BlockPublicPolicy": true,
219
+ "IgnorePublicAcls": true,
220
+ "RestrictPublicBuckets": true
221
+ },
222
+ "Tags": [
223
+ {
224
+ "Key": "aws-cdk:auto-delete-objects",
225
+ "Value": "true"
226
+ }
227
+ ],
228
+ "VersioningConfiguration": {
229
+ "Status": "Enabled"
230
+ }
231
+ },
232
+ "UpdateReplacePolicy": "Delete",
233
+ "DeletionPolicy": "Delete"
234
+ },
235
+ "testfirehoses3S3BucketPolicyF01906C0": {
236
+ "Type": "AWS::S3::BucketPolicy",
237
+ "Properties": {
238
+ "Bucket": {
239
+ "Ref": "testfirehoses3S3Bucket93480488"
240
+ },
241
+ "PolicyDocument": {
242
+ "Statement": [
243
+ {
244
+ "Action": "s3:*",
245
+ "Condition": {
246
+ "Bool": {
247
+ "aws:SecureTransport": "false"
248
+ }
249
+ },
250
+ "Effect": "Deny",
251
+ "Principal": {
252
+ "AWS": "*"
253
+ },
254
+ "Resource": [
255
+ {
256
+ "Fn::GetAtt": [
257
+ "testfirehoses3S3Bucket93480488",
258
+ "Arn"
259
+ ]
260
+ },
261
+ {
262
+ "Fn::Join": [
263
+ "",
264
+ [
265
+ {
266
+ "Fn::GetAtt": [
267
+ "testfirehoses3S3Bucket93480488",
268
+ "Arn"
269
+ ]
270
+ },
271
+ "/*"
272
+ ]
273
+ ]
274
+ }
275
+ ]
276
+ },
277
+ {
278
+ "Action": [
279
+ "s3:DeleteObject*",
280
+ "s3:GetBucket*",
281
+ "s3:List*",
282
+ "s3:PutBucketPolicy"
283
+ ],
284
+ "Effect": "Allow",
285
+ "Principal": {
286
+ "AWS": {
287
+ "Fn::GetAtt": [
288
+ "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092",
289
+ "Arn"
290
+ ]
291
+ }
292
+ },
293
+ "Resource": [
294
+ {
295
+ "Fn::GetAtt": [
296
+ "testfirehoses3S3Bucket93480488",
297
+ "Arn"
298
+ ]
299
+ },
300
+ {
301
+ "Fn::Join": [
302
+ "",
303
+ [
304
+ {
305
+ "Fn::GetAtt": [
306
+ "testfirehoses3S3Bucket93480488",
307
+ "Arn"
308
+ ]
309
+ },
310
+ "/*"
311
+ ]
312
+ ]
313
+ }
314
+ ]
315
+ }
316
+ ],
317
+ "Version": "2012-10-17"
318
+ }
319
+ }
320
+ },
321
+ "testfirehoses3S3BucketAutoDeleteObjectsCustomResourceC06077EE": {
322
+ "Type": "Custom::S3AutoDeleteObjects",
323
+ "Properties": {
324
+ "ServiceToken": {
325
+ "Fn::GetAtt": [
326
+ "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F",
327
+ "Arn"
328
+ ]
329
+ },
330
+ "BucketName": {
331
+ "Ref": "testfirehoses3S3Bucket93480488"
332
+ }
333
+ },
334
+ "DependsOn": [
335
+ "testfirehoses3S3BucketPolicyF01906C0"
336
+ ],
337
+ "UpdateReplacePolicy": "Delete",
338
+ "DeletionPolicy": "Delete"
339
+ },
340
+ "testfirehoses3firehoseloggroup8067C3EC": {
341
+ "Type": "AWS::Logs::LogGroup",
342
+ "UpdateReplacePolicy": "Retain",
343
+ "DeletionPolicy": "Retain",
344
+ "Metadata": {
345
+ "cfn_nag": {
346
+ "rules_to_suppress": [
347
+ {
348
+ "id": "W86",
349
+ "reason": "Retention period for CloudWatchLogs LogGroups are set to 'Never Expire' to preserve customer data indefinitely"
350
+ },
351
+ {
352
+ "id": "W84",
353
+ "reason": "By default CloudWatchLogs LogGroups data is encrypted using the CloudWatch server-side encryption keys (AWS Managed Keys)"
354
+ }
355
+ ]
356
+ }
357
+ }
358
+ },
359
+ "testfirehoses3firehoseloggroupfirehoselogstreamAC5E7A6B": {
360
+ "Type": "AWS::Logs::LogStream",
361
+ "Properties": {
362
+ "LogGroupName": {
363
+ "Ref": "testfirehoses3firehoseloggroup8067C3EC"
364
+ }
365
+ },
366
+ "UpdateReplacePolicy": "Retain",
367
+ "DeletionPolicy": "Retain"
368
+ },
369
+ "testfirehoses3KinesisFirehoseRole9BC5362D": {
370
+ "Type": "AWS::IAM::Role",
371
+ "Properties": {
372
+ "AssumeRolePolicyDocument": {
373
+ "Statement": [
374
+ {
375
+ "Action": "sts:AssumeRole",
376
+ "Effect": "Allow",
377
+ "Principal": {
378
+ "Service": "firehose.amazonaws.com"
379
+ }
380
+ }
381
+ ],
382
+ "Version": "2012-10-17"
383
+ }
384
+ }
385
+ },
386
+ "testfirehoses3KinesisFirehosePolicy34C2972F": {
387
+ "Type": "AWS::IAM::Policy",
388
+ "Properties": {
389
+ "PolicyDocument": {
390
+ "Statement": [
391
+ {
392
+ "Action": [
393
+ "s3:AbortMultipartUpload",
394
+ "s3:GetBucketLocation",
395
+ "s3:GetObject",
396
+ "s3:ListBucket",
397
+ "s3:ListBucketMultipartUploads",
398
+ "s3:PutObject"
399
+ ],
400
+ "Effect": "Allow",
401
+ "Resource": [
402
+ {
403
+ "Fn::GetAtt": [
404
+ "testfirehoses3S3Bucket93480488",
405
+ "Arn"
406
+ ]
407
+ },
408
+ {
409
+ "Fn::Join": [
410
+ "",
411
+ [
412
+ {
413
+ "Fn::GetAtt": [
414
+ "testfirehoses3S3Bucket93480488",
415
+ "Arn"
416
+ ]
417
+ },
418
+ "/*"
419
+ ]
420
+ ]
421
+ }
422
+ ]
423
+ },
424
+ {
425
+ "Action": "logs:PutLogEvents",
426
+ "Effect": "Allow",
427
+ "Resource": {
428
+ "Fn::Join": [
429
+ "",
430
+ [
431
+ "arn:",
432
+ {
433
+ "Ref": "AWS::Partition"
434
+ },
435
+ ":logs:",
436
+ {
437
+ "Ref": "AWS::Region"
438
+ },
439
+ ":",
440
+ {
441
+ "Ref": "AWS::AccountId"
442
+ },
443
+ ":log-group:",
444
+ {
445
+ "Ref": "testfirehoses3firehoseloggroup8067C3EC"
446
+ },
447
+ ":log-stream:",
448
+ {
449
+ "Ref": "testfirehoses3firehoseloggroupfirehoselogstreamAC5E7A6B"
450
+ }
451
+ ]
452
+ ]
453
+ }
454
+ }
455
+ ],
456
+ "Version": "2012-10-17"
457
+ },
458
+ "PolicyName": "testfirehoses3KinesisFirehosePolicy34C2972F",
459
+ "Roles": [
460
+ {
461
+ "Ref": "testfirehoses3KinesisFirehoseRole9BC5362D"
462
+ }
463
+ ]
464
+ }
465
+ },
466
+ "testfirehoses3KinesisFirehose5D459661": {
467
+ "Type": "AWS::KinesisFirehose::DeliveryStream",
468
+ "Properties": {
469
+ "DeliveryStreamEncryptionConfigurationInput": {
470
+ "KeyType": "AWS_OWNED_CMK"
471
+ },
472
+ "DeliveryStreamName": "KinesisFirehosefhss3noargumentstestfirehoses3E5198CCB",
473
+ "ExtendedS3DestinationConfiguration": {
474
+ "BucketARN": {
475
+ "Fn::GetAtt": [
476
+ "testfirehoses3S3Bucket93480488",
477
+ "Arn"
478
+ ]
479
+ },
480
+ "BufferingHints": {
481
+ "IntervalInSeconds": 300,
482
+ "SizeInMBs": 5
483
+ },
484
+ "CloudWatchLoggingOptions": {
485
+ "Enabled": true,
486
+ "LogGroupName": {
487
+ "Ref": "testfirehoses3firehoseloggroup8067C3EC"
488
+ },
489
+ "LogStreamName": {
490
+ "Ref": "testfirehoses3firehoseloggroupfirehoselogstreamAC5E7A6B"
491
+ }
492
+ },
493
+ "CompressionFormat": "GZIP",
494
+ "EncryptionConfiguration": {
495
+ "KMSEncryptionConfig": {
496
+ "AWSKMSKeyARN": {
497
+ "Fn::Join": [
498
+ "",
499
+ [
500
+ "arn:",
501
+ {
502
+ "Ref": "AWS::Partition"
503
+ },
504
+ ":kms:",
505
+ {
506
+ "Ref": "AWS::Region"
507
+ },
508
+ ":",
509
+ {
510
+ "Ref": "AWS::AccountId"
511
+ },
512
+ ":alias/aws/s3"
513
+ ]
514
+ ]
515
+ }
516
+ }
517
+ },
518
+ "RoleARN": {
519
+ "Fn::GetAtt": [
520
+ "testfirehoses3KinesisFirehoseRole9BC5362D",
521
+ "Arn"
522
+ ]
523
+ }
524
+ }
525
+ }
526
+ },
527
+ "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": {
528
+ "Type": "AWS::IAM::Role",
529
+ "Properties": {
530
+ "AssumeRolePolicyDocument": {
531
+ "Version": "2012-10-17",
532
+ "Statement": [
533
+ {
534
+ "Action": "sts:AssumeRole",
535
+ "Effect": "Allow",
536
+ "Principal": {
537
+ "Service": "lambda.amazonaws.com"
538
+ }
539
+ }
540
+ ]
541
+ },
542
+ "ManagedPolicyArns": [
543
+ {
544
+ "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
545
+ }
546
+ ]
547
+ }
548
+ },
549
+ "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": {
550
+ "Type": "AWS::Lambda::Function",
551
+ "Properties": {
552
+ "Code": {
553
+ "S3Bucket": {
554
+ "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
555
+ },
556
+ "S3Key": "b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6.zip"
557
+ },
558
+ "Timeout": 900,
559
+ "MemorySize": 128,
560
+ "Handler": "index.handler",
561
+ "Role": {
562
+ "Fn::GetAtt": [
563
+ "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092",
564
+ "Arn"
565
+ ]
566
+ },
567
+ "Runtime": "nodejs18.x",
568
+ "Description": {
569
+ "Fn::Join": [
570
+ "",
571
+ [
572
+ "Lambda function for auto-deleting objects in ",
573
+ {
574
+ "Ref": "testfirehoses3S3LoggingBucket31BFDC22"
575
+ },
576
+ " S3 bucket."
577
+ ]
578
+ ]
579
+ }
580
+ },
581
+ "DependsOn": [
582
+ "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092"
583
+ ],
584
+ "Metadata": {
585
+ "cfn_nag": {
586
+ "rules_to_suppress": [
587
+ {
588
+ "id": "W58",
589
+ "reason": "CDK generated custom resource"
590
+ },
591
+ {
592
+ "id": "W89",
593
+ "reason": "CDK generated custom resource"
594
+ },
595
+ {
596
+ "id": "W92",
597
+ "reason": "CDK generated custom resource"
598
+ }
599
+ ]
600
+ }
601
+ }
602
+ }
603
+ },
604
+ "Parameters": {
605
+ "BootstrapVersion": {
606
+ "Type": "AWS::SSM::Parameter::Value<String>",
607
+ "Default": "/cdk-bootstrap/hnb659fds/version",
608
+ "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
609
+ }
610
+ },
611
+ "Rules": {
612
+ "CheckBootstrapVersion": {
613
+ "Assertions": [
614
+ {
615
+ "Assert": {
616
+ "Fn::Not": [
617
+ {
618
+ "Fn::Contains": [
619
+ [
620
+ "1",
621
+ "2",
622
+ "3",
623
+ "4",
624
+ "5"
625
+ ],
626
+ {
627
+ "Ref": "BootstrapVersion"
628
+ }
629
+ ]
630
+ }
631
+ ]
632
+ },
633
+ "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
634
+ }
635
+ ]
636
+ }
637
+ }
638
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "version": "36.0.0",
3
+ "files": {
4
+ "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": {
5
+ "source": {
6
+ "path": "fhss3noargumentsIntegDefaultTestDeployAssert4B27D283.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
+ "fhss3-no-arguments/Integ/DefaultTest": {
5
+ "stacks": [
6
+ "fhss3-no-arguments"
7
+ ],
8
+ "assertionStack": "fhss3-no-arguments/Integ/DefaultTest/DeployAssert",
9
+ "assertionStackName": "fhss3noargumentsIntegDefaultTestDeployAssert4B27D283"
10
+ }
11
+ }
12
+ }