private Set<String> getConstrainedProperties(Predicate<CfnResourceProperty> constraint) {
        return getProperties().entrySet()
                .stream()
                .filter(property -> constraint.test(property.getValue()))
                .map(Map.Entry::getKey)
                .collect(Collectors.toSet());
    }
Get write-only property definitions of the CloudFormation resource.

These properties can be specified by the user, but cannot be
returned by a {@code read} or {@code list} request.

@return Returns write-only member names that map to CloudFormation resource
  properties.
smithy-aws-cloudformation-traits/src/main/java/software/amazon/smithy/aws/cloudformation/traits/CfnResource.java