I've been trying to make CloudWatch Event to work for my CodeBuild project on Build State Change but it's not working. It's working fine if I am removing the resource, but then again it triggers on any CodeBuild project. I am performing this code,  Am I performing this right or not? or is this code is not implemented for CodeBuild?
{
  "detail-type": [
    "CodeBuild Build State Change"
  ],
  "source": [
    "aws.codebuild"
  ],
  "resources": [
    "arn:aws:codebuild:us-east-2:1234567890:build/project-name:*"
  ]
}