private Set<Mutability> addWriteMutability(Set<Mutability> mutabilities) {
        Set<Mutability> newMutabilities = new HashSet<>(mutabilities);
        newMutabilities.add(Mutability.WRITE);
        return SetUtils.copyOf(newMutabilities);
    }
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