public void validateTaggingMetadata()

in src/main/java/software/amazon/cloudformation/resource/ResourceTagging.java [49:59]


    public void validateTaggingMetadata(final boolean containUpdateHandler, final Schema schema) {
        if (this.tagUpdatable && !containUpdateHandler) {
            throw new ValidationException("Invalid tagUpdatable value since update handler is missing", "tagging",
                                          "#/tagging/tagUpdatable");
        }
        final String propertyName = this.tagProperty.toString().substring(this.tagProperty.toString().lastIndexOf('/') + 1);
        if (this.taggable && !schema.definesProperty(propertyName)) {
            final String errorMessage = String.format("Invalid tagProperty value since %s not found in schema", propertyName);
            throw new ValidationException(errorMessage, "tagging", "#/tagging/tagProperty");
        }
    }