private Set<Mutability> getExplicitMutability(
            Model model,
            MemberShape member
    ) {
        Optional<CfnMutabilityTrait> traitOptional = member.getMemberTrait(model, CfnMutabilityTrait.class);
        if (!traitOptional.isPresent()) {
            return SetUtils.of();
        }

        CfnMutabilityTrait trait = traitOptional.get();
        if (trait.isFullyMutable()) {
            return FULLY_MUTABLE;
        } else if (trait.isCreateAndRead()) {
            return SetUtils.of(Mutability.CREATE, Mutability.READ);
        } else if (trait.isCreate()) {
            return SetUtils.of(Mutability.CREATE);
        } else if (trait.isRead()) {
            return SetUtils.of(Mutability.READ);
        } else if (trait.isWrite()) {
            return SetUtils.of(Mutability.WRITE);
        }
        return SetUtils.of();
    }
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