@@ -30,10 +30,10 @@ Rule(S3_BUCKET_LOGGING_ENABLED, PASS)
3030 Condition(S3_BUCKET_LOGGING_ENABLED, PASS)
3131 | Message: DEFAULT MESSAGE(PASS)
3232 Clause( %s3_buckets_bucket_logging_enabled not EMPTY , PASS)
33- | From: Map((Path("/Resources/ExampleS3", Location { line: 0, col: 0 }), MapValue { keys: [String((Path("/Resources/ExampleS3/Type", Location { line: 0, col: 0 }), "Type")), String((Path("/Resources/ExampleS3/Properties", Location { line: 0, col: 0 }), "Properties"))], values: {"Type": String((Path("/Resources/ExampleS3/Type", Location { line: 0, col: 0 }), "AWS::S3::Bucket")), "Properties": Map((Path("/Resources/ExampleS3/Properties", Location { line: 0, col: 0 }), MapValue { keys: [String((Path("/Resources/ExampleS3/Properties/BucketName", Location { line: 0, col: 0 }), "BucketName")), String((Path("/Resources/ExampleS3/Properties/VersioningConfiguration", Location { line: 0, col: 0 }), "VersioningConfiguration")), String((Path("/Resources/ExampleS3/Properties/LoggingConfiguration", Location { line: 0, col: 0 }), "LoggingConfiguration"))], values: {"BucketName": String((Path("/Resources/ExampleS3/Properties/BucketName", Location { line: 0, col: 0 }), "my-bucket")), "VersioningConfiguration": Map((Path("/Resources/ExampleS3/Properties/VersioningConfiguration", Location { line: 0, col: 0 }), MapValue { keys: [String((Path("/Resources/ExampleS3/Properties/VersioningConfiguration/Status", Location { line: 0, col: 0 }), "Status"))], values: {"Status": String((Path("/Resources/ExampleS3/Properties/VersioningConfiguration/Status", Location { line: 0, col: 0 }), "Enabled"))} })), "LoggingConfiguration": Map((Path("/Resources/ExampleS3/Properties/LoggingConfiguration", Location { line: 0, col: 0 }), MapValue { keys: [String((Path("/Resources/ExampleS3/Properties/LoggingConfiguration/DestinationBucketName", Location { line: 0, col: 0 }), "DestinationBucketName")), String((Path("/Resources/ExampleS3/Properties/LoggingConfiguration/LogFilePrefix", Location { line: 0, col: 0 }), "LogFilePrefix"))], values: {"DestinationBucketName": Map((Path("/Resources/ExampleS3/Properties/LoggingConfiguration/DestinationBucketName", Location { line: 0, col: 0 }), MapValue { keys: [String((Path("/Resources/ExampleS3/Properties/LoggingConfiguration/DestinationBucketName/Ref", Location { line: 0, col: 0 }), "Ref"))], values: {"Ref": String((Path("/Resources/ExampleS3/Properties/LoggingConfiguration/DestinationBucketName/Ref", Location { line: 0, col: 0 }), "LoggingBucket"))} })), "LogFilePrefix": String((Path("/Resources/ExampleS3/Properties/LoggingConfiguration/LogFilePrefix", Location { line: 0, col: 0 }), "testing-logs"))} }))} }))} }))
33+ | From: Map((Path("/Resources/ExampleS3", Location { line: 0, col: 0 }), MapValue { keys: [String((Path("/Resources/ExampleS3/Type", Location { line: 0, col: 0 }), "Type")), String((Path("/Resources/ExampleS3/Properties", Location { line: 0, col: 0 }), "Properties"))], values: {"Type": String((Path("/Resources/ExampleS3/Type", Location { line: 0, col: 0 }), "AWS::S3::Bucket")), "Properties": Map((Path("/Resources/ExampleS3/Properties", Location { line: 0, col: 0 }), MapValue { keys: [String((Path("/Resources/ExampleS3/Properties/BucketName", Location { line: 0, col: 0 }), "BucketName")), String((Path("/Resources/ExampleS3/Properties/VersioningConfiguration", Location { line: 0, col: 0 }), "VersioningConfiguration")), String((Path("/Resources/ExampleS3/Properties/LoggingConfiguration", Location { line: 0, col: 0 }), "LoggingConfiguration"))], values: {"BucketName": String((Path("/Resources/ExampleS3/Properties/BucketName", Location { line: 0, col: 0 }), "my-bucket")), "VersioningConfiguration": Map((Path("/Resources/ExampleS3/Properties/VersioningConfiguration", Location { line: 0, col: 0 }), MapValue { keys: [String((Path("/Resources/ExampleS3/Properties/VersioningConfiguration/Status", Location { line: 0, col: 0 }), "Status"))], values: {"Status": String((Path("/Resources/ExampleS3/Properties/VersioningConfiguration/Status", Location { line: 0, col: 0 }), "Enabled"))} })), "LoggingConfiguration": Map((Path("/Resources/ExampleS3/Properties/LoggingConfiguration", Location { line: 0, col: 0 }), MapValue { keys: [String((Path("/Resources/ExampleS3/Properties/LoggingConfiguration/DestinationBucketName", Location { line: 0, col: 0 }), "DestinationBucketName")), String((Path("/Resources/ExampleS3/Properties/LoggingConfiguration/LogFilePrefix", Location { line: 0, col: 0 }), "LogFilePrefix"))], values: {"DestinationBucketName": String((Path("/Resources/ExampleS3/Properties/LoggingConfiguration/DestinationBucketName", Location { line: 0, col: 0 }), "LoggingBucket")), "LogFilePrefix": String((Path("/Resources/ExampleS3/Properties/LoggingConfiguration/LogFilePrefix", Location { line: 0, col: 0 }), "testing-logs"))} }))} }))} }))
3434 | Message: DEFAULT MESSAGE(PASS)
3535 Clause( %s3_buckets_bucket_logging_enabled[*].Properties.LoggingConfiguration EXISTS , PASS)
36- | From: Map((Path("/Resources/ExampleS3/Properties/LoggingConfiguration", Location { line: 0, col: 0 }), MapValue { keys: [String((Path("/Resources/ExampleS3/Properties/LoggingConfiguration/DestinationBucketName", Location { line: 0, col: 0 }), "DestinationBucketName")), String((Path("/Resources/ExampleS3/Properties/LoggingConfiguration/LogFilePrefix", Location { line: 0, col: 0 }), "LogFilePrefix"))], values: {"DestinationBucketName": Map((Path("/Resources/ExampleS3/Properties/LoggingConfiguration/DestinationBucketName", Location { line: 0, col: 0 }), MapValue { keys: [String((Path("/Resources/ExampleS3/Properties/LoggingConfiguration/DestinationBucketName/Ref", Location { line: 0, col: 0 }), "Ref"))], values: {"Ref": String((Path("/Resources/ExampleS3/Properties/LoggingConfiguration/DestinationBucketName/Ref", Location { line: 0, col: 0 }), "LoggingBucket"))} })), "LogFilePrefix": String((Path("/Resources/ExampleS3/Properties/LoggingConfiguration/LogFilePrefix", Location { line: 0, col: 0 }), "testing-logs"))} }))
36+ | From: Map((Path("/Resources/ExampleS3/Properties/LoggingConfiguration", Location { line: 0, col: 0 }), MapValue { keys: [String((Path("/Resources/ExampleS3/Properties/LoggingConfiguration/DestinationBucketName", Location { line: 0, col: 0 }), "DestinationBucketName")), String((Path("/Resources/ExampleS3/Properties/LoggingConfiguration/LogFilePrefix", Location { line: 0, col: 0 }), "LogFilePrefix"))], values: {"DestinationBucketName": String((Path("/Resources/ExampleS3/Properties/LoggingConfiguration/DestinationBucketName", Location { line: 0, col: 0 }), "LoggingBucket")), "LogFilePrefix": String((Path("/Resources/ExampleS3/Properties/LoggingConfiguration/LogFilePrefix", Location { line: 0, col: 0 }), "testing-logs"))} }))
3737 | Message: DEFAULT MESSAGE(PASS)
3838 PASS Rules:
3939 S3_BUCKET_LOGGING_ENABLED: Expected = PASS, Evaluated = PASS
0 commit comments