private Set<Mutability> getDefaultIdentifierMutabilities(ResourceShape resource) {
        // If we have a put operation, the identifier will be specified
        // on creation. Otherwise, it's read only.
        if (resource.getPut().isPresent()) {
            return SetUtils.of(Mutability.CREATE, Mutability.READ);
        }

        return SetUtils.of(Mutability.READ);
    }
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