More detail
Config keeps a history of each resource’s settings (“this bucket became public at 14:02”) and evaluates Config rules against them, marking resources compliant or noncompliant. It reports problems; on its own it doesn’t prevent them. Compare CloudTrail, which records who made the API call, while Config records what the resource looks like now.