private boolean identifierIsInherited(String identifier, Set<ResourceShape> parentResources) {
        return parentResources.stream()
                .anyMatch(parentResource -> parentResource.getIdentifiers().containsKey(identifier));
    }
Gets the definition of the specified CloudFormation resource.

@param resource ShapeID of a resource
@return The resource definition.
smithy-aws-cloudformation-traits/src/main/java/software/amazon/smithy/aws/cloudformation/traits/CfnResourceIndex.java