public static Partition fromNode(Node node) {
        Builder builder = new Builder(node);
        ObjectNode objectNode = node.expectObjectNode();
        objectNode.expectObjectNode().expectNoAdditionalProperties(PROPERTIES);

        objectNode.expectStringMember(ID, builder::id);
        objectNode.getStringMember(REGION_REGEX, builder::regionRegex);
        objectNode.getObjectMember(REGIONS,
                regionsNode -> regionsNode.getMembers()
                        .forEach((k, v) -> builder.putRegion(k.toString(), RegionOverride.fromNode(v))));
        objectNode.getObjectMember(OUTPUTS, outputsNode -> builder.outputs(PartitionOutputs.fromNode(outputsNode)));

        return builder.build();
    }
Creates a {@link Partition} instance from the given Node information.

@param node the node to deserialize.
@return the created Partition.
smithy-aws-endpoints/src/main/java/software/amazon/smithy/rulesengine/aws/language/functions/partition/Partition.java