@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        } else if (o == null || getClass() != o.getClass()) {
            return false;
        }
        ActionResources that = (ActionResources) o;
        return Objects.equals(required, that.required)
                && Objects.equals(optional, that.optional);
    }
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