@Override
    public List<ValidationEvent> validate(Model model) {
        List<ValidationEvent> events = new ArrayList<>();

        CfnResourceIndex cfnResourceIndex = CfnResourceIndex.of(model);
        for (ResourceShape resource : model.getResourceShapesWithTrait(CfnResourceTrait.class)) {
            events.addAll(validateResource(model, cfnResourceIndex, resource));
        }

        return events;
    }
Validates that derived CloudFormation properties all have the same target.
smithy-aws-cloudformation-traits/src/main/java/software/amazon/smithy/aws/cloudformation/traits/CfnResourcePropertyValidator.java