public static ActionResources fromNode(Node value) {
        Builder builder = builder();
        ObjectNode node = value.expectObjectNode()
                .warnIfAdditionalProperties(ListUtils.of(REQUIRED, OPTIONAL));
        if (node.containsMember(REQUIRED)) {
            for (Map.Entry<String, Node> entry : node.expectObjectMember(REQUIRED).getStringMap().entrySet()) {
                builder.putRequired(entry.getKey(), ActionResource.fromNode(entry.getValue()));
            }
        }
        if (node.containsMember(OPTIONAL)) {
            for (Map.Entry<String, Node> entry : node.expectObjectMember(OPTIONAL).getStringMap().entrySet()) {
                builder.putOptional(entry.getKey(), ActionResource.fromNode(entry.getValue()));
            }
        }
        return builder.build();
    }
Gets the resources that will be authorized against based on
optional behavior of the IAM action.

@return the optional resources.
smithy-aws-iam-traits/src/main/java/software/amazon/smithy/aws/iam/traits/ActionResources.java