public static function fromString($location_string)
    {
        preg_match('/^\/types\/([^\/]+)\/buckets\/([^\/]+)\/keys\/([^\/]+)$/', $location_string, $matches);

        return new self($matches[3], new Bucket($matches[2], $matches[1]));
    }